yapi/client/styles/common.scss
2017-09-08 15:52:18 +08:00

119 lines
1.9 KiB
SCSS

@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;
background: #ececec;
}
::selection {
background-color: #2395f1;
}
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;
&::after {
content: '';
display: block;
height: 2.4rem;
}
}
.hidden {
display: none;
}
// 布局容器 guitter: 16px
.g-row {
max-width: 12.08rem; // Col宽度 (1208+16)/24 = 51
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;
}
}