main.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. @import "./color";
  2. 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 }
  3. body, input, select, textarea { font: 14px -apple-system; color: #333; -ms-overflow-style: scrollbar }
  4. body, html {font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;}
  5. button, input, select, textarea { font-size: 100% }
  6. a { color: #333; text-decoration: none;outline: 0 }
  7. a:hover { color: $primary }
  8. table { border-collapse: collapse; border-spacing: 0 }
  9. fieldset, img, area, a { border: 0; outline: 0 }
  10. address, caption, cite, code, dfn, em, th, var, i { font-style: normal; font-weight: normal }
  11. code, kbd, pre, samp { font-family: courier new, courier, monospace }
  12. ol, ul { list-style: none }
  13. body { background: #fff;-webkit-text-size-adjust: none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
  14. small { font-size: 12px }
  15. h1, h2, h3, h4, h5, h6 { font-size: 100% }
  16. sup { vertical-align: text-top }
  17. sub { vertical-align: text-bottom }
  18. legend { color: #000 }
  19. a, input { -webkit-tap-highlight-color: rgba(0,0,0,0); }
  20. div{ -webkit-overflow-scrolling: touch; }
  21. 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; }
  22. input[type='checkbox'] { -webkit-appearance: checkbox; }
  23. img {vertical-align: top;}
  24. @media screen and (max-device-width: 828px) {
  25. body { -webkit-text-size-adjust: none; }
  26. }
  27. /****************flexbox**************/
  28. .flex {display:flex;}
  29. .inline-flex {display:inline-flex;}
  30. .flex-center{justify-content: center;align-items: center;}
  31. .flex-center-between{justify-content: space-between;align-items: center;}
  32. /*横向或纵向*/
  33. .flex-row {flex-direction:row;}
  34. .flex-col {flex-direction:column;}
  35. .flex-row-reverse {flex-direction:row-reverse;}
  36. .flex-col-reverse {flex-direction:column-reverse;}
  37. .flex-wrap {flex-wrap:wrap;}
  38. /*主轴对齐方式*/
  39. .flex-justify-start {justify-content:flex-start;}
  40. .flex-justify-end {justify-content:flex-end;}
  41. .flex-justify-center {justify-content:center;}
  42. .flex-justify-between {justify-content:space-between;}
  43. .flex-justify-around {justify-content:space-around;}
  44. /*侧轴对齐方式*/
  45. .flex-align-start {align-items:flex-start;}
  46. .flex-align-end {align-items:flex-end;}
  47. .flex-align-center {align-items:center;}
  48. .flex-align-baseline {align-items:baseline;}
  49. .flex-align-stretch {align-items:stretch;}
  50. /*主轴换行时行在侧轴的对齐方式,必须定义flex-wrap为换行*/
  51. .flex-content-start {align-content:flex-start;}
  52. .flex-content-end {align-content:flex-end;}
  53. .flex-content-center {align-content:center;}
  54. .flex-content-between {align-content:space-between;}
  55. .flex-content-around {align-content:space-around;}
  56. .flex-content-stretch {align-content:stretch;}
  57. /*允许子元素收缩*/
  58. .flex-child-grow {flex-grow: 1;}/*允许拉伸*/
  59. .flex-child-shrink {flex-shrink: 1;}/*允许收缩*/
  60. .flex-child-noshrink {flex-shrink: 0;}/*不允许收缩*/
  61. .flex-child-average {flex:1;}/*平均分布,兼容旧版必须给宽度*/
  62. .flex-child-first {order: 1;}/*排第一个*/
  63. /*子元素在侧轴的对齐方式*/
  64. .flex-child-align-start {align-self:flex-start;}
  65. .flex-child-align-end {align-self:flex-end;}
  66. .flex-child-align-center {align-self:center;}
  67. .flex-child-align-baseline {align-self:baseline;}
  68. .flex-child-align-stretch {align-self:stretch;}
  69. .wrapper { width: 1200px; margin: 0 auto; }
  70. .block { display: block; }
  71. .inline-block { display: inline-block; }
  72. .inline { display: inline; }
  73. .hide { display: none; }
  74. .full-height{height:100%;}
  75. .full-width{width:100%;}
  76. .full-size{width:100%;height:100%;}
  77. .full-screen{width:100vw;height:100vh;}
  78. .relative { position: relative; }
  79. .absolute { position: absolute; }
  80. .fixed { position: fixed; }
  81. .clear { clear: both; }
  82. .overflow-hide { overflow: hidden; }
  83. .normal { font-weight: normal; }
  84. .bold { font-weight: bold; }
  85. .radius { border-radius: 5px; }
  86. .font-34 { font-size: 34px; }
  87. .font-30 { font-size: 30px; }
  88. .font-28 { font-size: 28px; }
  89. .font-24 { font-size: 24px; }
  90. .font-20 { font-size: 20px; }
  91. .font-18 { font-size: 18px; }
  92. .font-16 { font-size: 16px; }
  93. .font-15 { font-size: 15px; }
  94. .font-14 { font-size: 14px; }
  95. .font-13 { font-size: 13px; }
  96. .font-12 { font-size: 12px; }
  97. .border-box{box-sizing: border-box;}
  98. .border { border: 1px solid $border; }
  99. .border-top { border-top: 1px solid $border; }
  100. .border-bottom { border-bottom: 1px solid $border; }
  101. .border-left { border-left: 1px solid $border; }
  102. .border-right { border-right: 1px solid $border; }
  103. .margin { margin: 10px; }
  104. .mt-5 { margin-top: 5px; }
  105. .mr-5 { margin-right: 5px; }
  106. .mb-5 { margin-bottom: 5px; }
  107. .ml-5 { margin-left: 5px; }
  108. .mt-10 { margin-top: 10px; }
  109. .mr-10 { margin-right: 10px; }
  110. .mb-10 { margin-bottom: 10px; }
  111. .ml-10 { margin-left: 10px; }
  112. .mt-15 { margin-top: 15px; }
  113. .mr-15 { margin-right: 15px; }
  114. .mb-15 { margin-bottom: 15px; }
  115. .ml-15 { margin-left: 15px; }
  116. .mt-20 { margin-top: 20px; }
  117. .mr-20 { margin-right: 20px; }
  118. .mb-20 { margin-bottom: 20px; }
  119. .ml-20 { margin-left: 20px; }
  120. .padding { padding: 10px; }
  121. .padding-14 { padding: 14px; }
  122. .padding-20 { padding: 20px; }
  123. .padding-top { padding-top: 10px; }
  124. .padding-right { padding-right: 10px; }
  125. .padding-bottom { padding-bottom: 10px; }
  126. .padding-left { padding-left: 10px; }
  127. .text-center { text-align: center; }
  128. .text-right { text-align: right; }
  129. .pointer{cursor: pointer;}
  130. .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  131. .nowrap { word-wrap: normal; white-space: nowrap; }
  132. .lines-1{text-overflow:ellipsis;-webkit-line-clamp:1;display: -webkit-box;overflow:hidden;-webkit-box-orient: vertical;}
  133. .lines-2{text-overflow:ellipsis;-webkit-line-clamp:2;display: -webkit-box;overflow:hidden;-webkit-box-orient: vertical;word-break: break-all;}
  134. .lines-height-2 {line-height: 2}
  135. .lines-height-15 {line-height: 1.5}
  136. .row2 { word-break: break-all; display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden; }
  137. .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; }
  138. .btn{ height: 32px; border-radius: 5px; }
  139. .pointer{cursor: pointer;}
  140. .box-shadow-blue {
  141. box-shadow: 0 0 16px 2px #deedff;
  142. }
  143. .main-button {
  144. color: #fff;
  145. width: 100%;
  146. height: 44px;
  147. line-height: 44px;
  148. border-radius: 8px;
  149. font-size: 16px;
  150. background: linear-gradient(239deg, #85CAFF 0%, #007CDD 100%);
  151. cursor: pointer;
  152. &:hover {
  153. opacity: 0.9;
  154. }
  155. }
  156. .button-plain {
  157. width: 110px;
  158. color: $primary;
  159. text-align: center;
  160. height: 32px;
  161. border-radius: 16px;
  162. border: 2px solid $primary;
  163. line-height: 28px;
  164. box-sizing: border-box;
  165. &:hover {
  166. background: rgba($primary, 0.1);
  167. }
  168. }
  169. /*颜色*/
  170. .main-color, a.main-color { color: $primary; } /*主色*/
  171. .main-bgcolor { background-color: $primary; }
  172. .assist-color, a.assist-color{color:#78b} /*辅助色*/
  173. .assist-bgcolor { background-color: #78b; }
  174. .orange, a.orange { color: #ff6700; }
  175. .orange-bg { background-color: #ff6700; }
  176. .grey, a.grey { color: #505050; }
  177. .grey-bg { background-color: #505050; }
  178. .grey-6, a.grey-6 { color: #6b6b6b; }
  179. .grey-6-bg { background-color: #6b6b6b; }
  180. .grey-9, a.grey-9 { color: #9c9c9c; }
  181. .grey-9-bg { background-color: #9c9c9c; }
  182. .grey-d, a.grey-d { color: #dfdfdf; }
  183. .grey-d-bg { background-color: #dfdfdf; }
  184. .grey-e, a.grey-e { color: #efefef; }
  185. .grey-e-bg { background-color: #efefef; }
  186. .grey-f, a.grey-f { color: #f5f5f5; }
  187. .grey-f-bg { background-color: #f5f5f5; }
  188. .black, a.black { color: #333; }
  189. .black-bg { background-color: #333; }
  190. .white, a.white { color: #fff; }
  191. .white-bg { background-color: #fff; }
  192. .red, a.red { color: #e12e2e; }
  193. .red-bg { background-color: #e12e2e; }
  194. .light-red, a.light-red { color: #ff5050; }
  195. .light-red-bg { background-color: #ff5050; }
  196. .orange-red, a.orange-red { color: #ff4e00; }
  197. .orange-red-bg { background-color: #ff4e00; }
  198. .yellow, a.yellow { color: #fbcb30; }
  199. .yellow-bg { background-color: #fbcb30; }
  200. .orange, a.orange { color: #ff6700; }
  201. .orange-bg { background-color: #ff6700; }
  202. .orange-yellow, a.orange-yellow { color: #fd9712; }
  203. .orange-yellow-bg { background-color: #fd9712; }
  204. .green, a.green { color: $green; }
  205. .green-bg { background-color: $green; }
  206. .green-text, a.green-text { color: #008000; }
  207. .light-green, a.light-green { color: #8fd14c; }
  208. .light-green-bg { background-color: #8fd14c; }
  209. .blue, a.blue { color: #3caaff; }
  210. .blue-bg { background-color: #3caaff; }
  211. .light-blue, a.light-blue { color: #7597dc; }
  212. .light-blue-bg { background-color: #7597dc; }
  213. .pink, a.pink { color: #fb5c9b; }
  214. .pink-bg { background-color: #fb5c9b; }
  215. .purple, a.purple { color: #a776d9; }
  216. .purple-bg { background-color: #a776d9; }
  217. .light-purple, a.light-purple { color: #b394f3; }
  218. .light-purple-bg { background-color: #b394f3; }
  219. /* 表格头部标题左边的border */
  220. .before-line {
  221. position: relative;
  222. margin-left: 10px;
  223. }
  224. .before-line:before {
  225. content: '';
  226. position: absolute;
  227. left: -10px;
  228. top: 54%;
  229. transform: translateY(-50%);
  230. border: 2px solid $primary;
  231. border-radius: 2px;
  232. height: 50%;
  233. }