yapi/client/styles/common.scss

203 lines
3.2 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 {
2017-09-19 20:04:18 +08:00
// background-color: #32363a;
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
2017-09-20 12:18:46 +08:00
/* 设置滚动条的样式 */
::-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;
2017-09-20 15:35:37 +08:00
background: rgba(0,0,0,0.2);
2017-09-20 12:18:46 +08:00
-webkit-box-shadow: inset006pxrgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
2017-09-20 15:35:37 +08:00
background: rgba(0,0,0,0.2);
2017-09-20 12:18:46 +08:00
}
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-09-21 18:59:49 +08:00
&:active, &:hover, &:visited, &:focus{
2017-07-17 11:01:05 +08:00
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-21 14:15:42 +08:00
padding-bottom: .24rem;
min-height: 100%;
height: auto !important;
height: 100%;
margin-bottom: -2.4rem;
2017-09-21 18:44:39 +08:00
background-color: #eceef1;
2017-09-21 14:15:42 +08:00
&::after {
content: '';
display: block;
height: 2.4rem;
}
2017-07-10 19:50:11 +08:00
}
2017-09-22 19:40:51 +08:00
.m-tab {
.ant-tabs-nav-wrap {
background-color: #eceef1;
}
}
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 {
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-08-25 14:38:40 +08:00
2017-09-22 14:01:41 +08:00
.panel-title {
margin-bottom: .16rem;
border-left: 3px solid #2395f1;
padding-left: 8px;
.title {
font-weight: normal;
}
.desc {
font-size: 13px;
color: #919191;
}
}
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;
}
// 页面级底部固定 需要添加padding以保证页面底部不被覆盖
.has-affix-footer {
padding-bottom: .92rem;
}
2017-09-28 19:41:10 +08:00
.popover-index {
max-width: 3.2rem;
.ant-popover-title {
height: auto;
}
.title-container {
padding: .16rem 0;
.title {
text-align: center;
}
}
.btn-container {
text-align: center;
.btn {
margin: 0 .04rem;
}
}
}
2017-09-29 14:44:00 +08:00
.study-mask {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
2017-09-29 15:39:52 +08:00
background-color: rgba(0,0,0,.35);
z-index: 2;
2017-09-29 14:44:00 +08:00
}