yapi/client/styles/common.scss

84 lines
1.4 KiB
SCSS
Raw Normal View History

2017-07-10 19:50:11 +08:00
@charset "utf-8";
2017-07-10 19:50:11 +08:00
html {
2017-07-11 19:12:13 +08:00
font-size:625%;
2017-07-10 19:50:11 +08:00
}
html, body {
2017-07-13 15:10:13 +08:00
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
SimSun, sans-serif;
2017-07-10 19:50:11 +08:00
margin: 0;
padding: 0;
height: 100%;
2017-08-08 15:24:26 +08:00
background: #ececec;
2017-07-10 19:50:11 +08:00
}
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;
2017-07-17 11:01:05 +08:00
&:active, &:hover, &:visited{
text-decoration: none
}
2017-07-10 19:50:11 +08:00
}
a:hover {
color: #636363;
}
em {
font-style: normal;
}
2017-08-21 15:13:52 +08:00
[data-reactroot], .g-main, .router-main {
height: 100%;
}
2017-07-10 19:50:11 +08:00
// 页面最外层元素 样式
.router-main {
2017-08-21 15:13:52 +08:00
padding-bottom: .24rem;
min-height: 100%;
height: auto !important;
2017-07-25 18:11:53 +08:00
height: 100%;
2017-08-21 15:13:52 +08:00
margin-bottom: -2rem;
&::after {
content: '';
display: block;
height: 2rem;
2017-07-26 16:20:20 +08:00
}
2017-07-10 19:50:11 +08:00
}
2017-07-26 18:24:06 +08:00
.hidden {
display: none;
2017-07-10 19:50:11 +08:00
}
2017-08-08 15:24:26 +08:00
// 布局容器 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;
}
2017-08-08 20:27:18 +08:00
2017-08-10 21:20:57 +08:00
.m-container {
margin: .24rem auto;
padding: .24rem;
2017-08-08 20:27:18 +08:00
}
2017-08-11 14:22:20 +08:00
.ant-dropdown .user-menu {
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
2017-08-19 15:18:55 +08:00
// confirm 框内边距过大
.ant-confirm .ant-modal-body{
padding: .24rem !important;
}