mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
150 lines
2.5 KiB
SCSS
Executable File
150 lines
2.5 KiB
SCSS
Executable File
@charset "utf-8";
|
|
|
|
|
|
html {
|
|
font-size:625%;
|
|
}
|
|
html, body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
|
|
SimSun, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
// background-color: #32363a;
|
|
}
|
|
|
|
::selection {
|
|
background-color: #2395f1;
|
|
}
|
|
|
|
/* 设置滚动条的样式 */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
/* 外层轨道 */
|
|
::-webkit-scrollbar-track {
|
|
-webkit-box-shadow: inset006pxrgba(255,0,0,0.3);
|
|
background: rgba(0, 0, 0, 0.1);
|
|
}
|
|
/* 滚动条滑块 */
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 4px;
|
|
background: rgba(0,0,0,0.2);
|
|
-webkit-box-shadow: inset006pxrgba(0,0,0,0.5);
|
|
}
|
|
::-webkit-scrollbar-thumb:window-inactive {
|
|
background: rgba(0,0,0,0.2);
|
|
}
|
|
|
|
div, article, p, table, tr, td, th, ul, ol, li, h1, h2, h3, form, dl, dt, dd {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
&:active, &:hover, &:visited{
|
|
text-decoration: none
|
|
}
|
|
}
|
|
|
|
a:hover {
|
|
color: #636363;
|
|
}
|
|
|
|
em {
|
|
font-style: normal;
|
|
}
|
|
|
|
[data-reactroot], .g-main, .router-main {
|
|
height: 100%;
|
|
}
|
|
// 页面最外层元素 样式
|
|
.router-main {
|
|
// padding-bottom: .24rem;
|
|
// min-height: 100%;
|
|
// height: auto !important;
|
|
// height: 100%;
|
|
// margin-bottom: -2.4rem;
|
|
background-color: #ececec;
|
|
// &::after {
|
|
// content: '';
|
|
// display: block;
|
|
// height: 2.4rem;
|
|
// }
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
// 布局容器 guitter: 16px
|
|
.g-row {
|
|
min-width: 7.52rem; // Col宽度 (752+16)/24 = 32
|
|
margin: 0 auto;
|
|
padding: 0 .24rem;
|
|
}
|
|
|
|
.m-container {
|
|
margin: .24rem auto;
|
|
padding: .24rem;
|
|
}
|
|
|
|
.ant-dropdown .user-menu {
|
|
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
// confirm 框内边距过大
|
|
.ant-confirm .ant-modal-body{
|
|
padding: .24rem !important;
|
|
}
|
|
|
|
.card-panel {
|
|
padding: .36rem .24rem 0;
|
|
}
|
|
|
|
.pannel-without-tab {
|
|
min-height: 5rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
html {
|
|
width: min-content !important;
|
|
}
|
|
}
|
|
|
|
.tag-status {
|
|
&::before {
|
|
content: '';
|
|
display: inline-block;
|
|
margin-right: 6px;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
position: relative;
|
|
bottom: 1px;
|
|
}
|
|
&.done::before {
|
|
background-color: #57cf27;
|
|
}
|
|
&.undone::before {
|
|
background-color: #ff561b;
|
|
}
|
|
}
|
|
|
|
|
|
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab{
|
|
border: none;
|
|
}
|
|
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active{
|
|
border: none;
|
|
}
|