@import "./color"; body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, input, textarea, th, td { margin: 0; padding: 0 } body, input, select, textarea { font: 14px -apple-system; color: #333; -ms-overflow-style: scrollbar } body, html {font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;} button, input, select, textarea { font-size: 100% } a { color: #333; text-decoration: none;outline: 0 } a:hover { color: $primary } table { border-collapse: collapse; border-spacing: 0 } fieldset, img, area, a { border: 0; outline: 0 } address, caption, cite, code, dfn, em, th, var, i { font-style: normal; font-weight: normal } code, kbd, pre, samp { font-family: courier new, courier, monospace } ol, ul { list-style: none } body { background: #fff;-webkit-text-size-adjust: none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);} small { font-size: 12px } h1, h2, h3, h4, h5, h6 { font-size: 100% } sup { vertical-align: text-top } sub { vertical-align: text-bottom } legend { color: #000 } a, input { -webkit-tap-highlight-color: rgba(0,0,0,0); } div{ -webkit-overflow-scrolling: touch; } input, textarea, select { border: none; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-appearance: none; -moz-appearance: none; border-radius: 0; background:none; outline:none; } input[type='checkbox'] { -webkit-appearance: checkbox; } img {vertical-align: top;} @media screen and (max-device-width: 828px) { body { -webkit-text-size-adjust: none; } } /****************flexbox**************/ .flex {display:flex;} .inline-flex {display:inline-flex;} .flex-center{justify-content: center;align-items: center;} .flex-center-between{justify-content: space-between;align-items: center;} /*横向或纵向*/ .flex-row {flex-direction:row;} .flex-col {flex-direction:column;} .flex-row-reverse {flex-direction:row-reverse;} .flex-col-reverse {flex-direction:column-reverse;} .flex-wrap {flex-wrap:wrap;} /*主轴对齐方式*/ .flex-justify-start {justify-content:flex-start;} .flex-justify-end {justify-content:flex-end;} .flex-justify-center {justify-content:center;} .flex-justify-between {justify-content:space-between;} .flex-justify-around {justify-content:space-around;} /*侧轴对齐方式*/ .flex-align-start {align-items:flex-start;} .flex-align-end {align-items:flex-end;} .flex-align-center {align-items:center;} .flex-align-baseline {align-items:baseline;} .flex-align-stretch {align-items:stretch;} /*主轴换行时行在侧轴的对齐方式,必须定义flex-wrap为换行*/ .flex-content-start {align-content:flex-start;} .flex-content-end {align-content:flex-end;} .flex-content-center {align-content:center;} .flex-content-between {align-content:space-between;} .flex-content-around {align-content:space-around;} .flex-content-stretch {align-content:stretch;} /*允许子元素收缩*/ .flex-child-grow {flex-grow: 1;}/*允许拉伸*/ .flex-child-shrink {flex-shrink: 1;}/*允许收缩*/ .flex-child-noshrink {flex-shrink: 0;}/*不允许收缩*/ .flex-child-average {flex:1;}/*平均分布,兼容旧版必须给宽度*/ .flex-child-first {order: 1;}/*排第一个*/ /*子元素在侧轴的对齐方式*/ .flex-child-align-start {align-self:flex-start;} .flex-child-align-end {align-self:flex-end;} .flex-child-align-center {align-self:center;} .flex-child-align-baseline {align-self:baseline;} .flex-child-align-stretch {align-self:stretch;} .wrapper { width: 1200px; margin: 0 auto; } .block { display: block; } .inline-block { display: inline-block; } .inline { display: inline; } .hide { display: none; } .full-height{height:100%;} .full-width{width:100%;} .full-size{width:100%;height:100%;} .full-screen{width:100vw;height:100vh;} .relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .clear { clear: both; } .overflow-hide { overflow: hidden; } .normal { font-weight: normal; } .bold { font-weight: bold; } .radius { border-radius: 5px; } .font-34 { font-size: 34px; } .font-30 { font-size: 30px; } .font-28 { font-size: 28px; } .font-24 { font-size: 24px; } .font-20 { font-size: 20px; } .font-18 { font-size: 18px; } .font-16 { font-size: 16px; } .font-15 { font-size: 15px; } .font-14 { font-size: 14px; } .font-13 { font-size: 13px; } .font-12 { font-size: 12px; } .border-box{box-sizing: border-box;} .border { border: 1px solid $border; } .border-top { border-top: 1px solid $border; } .border-bottom { border-bottom: 1px solid $border; } .border-left { border-left: 1px solid $border; } .border-right { border-right: 1px solid $border; } .margin { margin: 10px; } .mt-5 { margin-top: 5px; } .mr-5 { margin-right: 5px; } .mb-5 { margin-bottom: 5px; } .ml-5 { margin-left: 5px; } .mt-10 { margin-top: 10px; } .mr-10 { margin-right: 10px; } .mb-10 { margin-bottom: 10px; } .ml-10 { margin-left: 10px; } .mt-15 { margin-top: 15px; } .mr-15 { margin-right: 15px; } .mb-15 { margin-bottom: 15px; } .ml-15 { margin-left: 15px; } .mt-20 { margin-top: 20px; } .mr-20 { margin-right: 20px; } .mb-20 { margin-bottom: 20px; } .ml-20 { margin-left: 20px; } .padding { padding: 10px; } .padding-14 { padding: 14px; } .padding-20 { padding: 20px; } .padding-top { padding-top: 10px; } .padding-right { padding-right: 10px; } .padding-bottom { padding-bottom: 10px; } .padding-left { padding-left: 10px; } .text-center { text-align: center; } .text-right { text-align: right; } .pointer{cursor: pointer;} .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nowrap { word-wrap: normal; white-space: nowrap; } .lines-1{text-overflow:ellipsis;-webkit-line-clamp:1;display: -webkit-box;overflow:hidden;-webkit-box-orient: vertical;} .lines-2{text-overflow:ellipsis;-webkit-line-clamp:2;display: -webkit-box;overflow:hidden;-webkit-box-orient: vertical;word-break: break-all;} .lines-height-2 {line-height: 2} .lines-height-15 {line-height: 1.5} .row2 { word-break: break-all; display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden; } .card-item{border-radius: 8px; box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.08); background-color: #fff; margin: 0 14px 14px; overflow:hidden; } .btn{ height: 32px; border-radius: 5px; } .pointer{cursor: pointer;} .box-shadow-blue { box-shadow: 0 0 16px 2px #deedff; } .main-button { color: #fff; width: 100%; height: 44px; line-height: 44px; border-radius: 8px; font-size: 16px; background: linear-gradient(239deg, #85CAFF 0%, #007CDD 100%); cursor: pointer; &:hover { opacity: 0.9; } } .button-plain { width: 110px; color: $primary; text-align: center; height: 32px; border-radius: 16px; border: 2px solid $primary; line-height: 28px; box-sizing: border-box; &:hover { background: rgba($primary, 0.1); } } /*颜色*/ .main-color, a.main-color { color: $primary; } /*主色*/ .main-bgcolor { background-color: $primary; } .assist-color, a.assist-color{color:#78b} /*辅助色*/ .assist-bgcolor { background-color: #78b; } .orange, a.orange { color: #ff6700; } .orange-bg { background-color: #ff6700; } .grey, a.grey { color: #505050; } .grey-bg { background-color: #505050; } .grey-6, a.grey-6 { color: #6b6b6b; } .grey-6-bg { background-color: #6b6b6b; } .grey-9, a.grey-9 { color: #9c9c9c; } .grey-9-bg { background-color: #9c9c9c; } .grey-d, a.grey-d { color: #dfdfdf; } .grey-d-bg { background-color: #dfdfdf; } .grey-e, a.grey-e { color: #efefef; } .grey-e-bg { background-color: #efefef; } .grey-f, a.grey-f { color: #f5f5f5; } .grey-f-bg { background-color: #f5f5f5; } .black, a.black { color: #333; } .black-bg { background-color: #333; } .white, a.white { color: #fff; } .white-bg { background-color: #fff; } .red, a.red { color: #e12e2e; } .red-bg { background-color: #e12e2e; } .light-red, a.light-red { color: #ff5050; } .light-red-bg { background-color: #ff5050; } .orange-red, a.orange-red { color: #ff4e00; } .orange-red-bg { background-color: #ff4e00; } .yellow, a.yellow { color: #fbcb30; } .yellow-bg { background-color: #fbcb30; } .orange, a.orange { color: #ff6700; } .orange-bg { background-color: #ff6700; } .orange-yellow, a.orange-yellow { color: #fd9712; } .orange-yellow-bg { background-color: #fd9712; } .green, a.green { color: $green; } .green-bg { background-color: $green; } .green-text, a.green-text { color: #008000; } .light-green, a.light-green { color: #8fd14c; } .light-green-bg { background-color: #8fd14c; } .blue, a.blue { color: #3caaff; } .blue-bg { background-color: #3caaff; } .light-blue, a.light-blue { color: #7597dc; } .light-blue-bg { background-color: #7597dc; } .pink, a.pink { color: #fb5c9b; } .pink-bg { background-color: #fb5c9b; } .purple, a.purple { color: #a776d9; } .purple-bg { background-color: #a776d9; } .light-purple, a.light-purple { color: #b394f3; } .light-purple-bg { background-color: #b394f3; } /* 表格头部标题左边的border */ .before-line { position: relative; margin-left: 10px; } .before-line:before { content: ''; position: absolute; left: -10px; top: 54%; transform: translateY(-50%); border: 2px solid $primary; border-radius: 2px; height: 50%; }