yapi/client/styles/common.scss

135 lines
2.1 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;
}
2017-09-15 15:57:34 +08:00
html {
// background-color: #202d3a;
2017-09-15 15:57:34 +08:00
}
2017-08-24 18:31:16 +08:00
::selection {
background-color: #2395f1;
}
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-09-19 16:27:52 +08:00
// 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;
// }
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;
}
2017-08-22 16:03:39 +08:00
.card-panel {
padding: .36rem .24rem 0;
}
2017-08-25 11:48:42 +08:00
.pannel-without-tab {
min-height: 5rem;
}
2017-09-15 16:35:48 +08:00
.ant-tabs-tabpane .m-panel {
border-top-left-radius: 0px;
}
2017-08-25 14:38:40 +08:00
@media (max-width: 768px) {
html {
width: min-content !important;
}
}
2017-09-08 15:52:18 +08:00
.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;
}
}
2017-09-15 16:35:48 +08:00
.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;
}