main.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  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 {
  3. margin: 0;
  4. padding: 0
  5. }
  6. body, input, select, textarea {
  7. font: 14px -apple-system;
  8. color: #333;
  9. -ms-overflow-style: scrollbar
  10. }
  11. body, html {
  12. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  13. }
  14. button, input, select, textarea {
  15. font-size: 100%
  16. }
  17. a {
  18. color: #333;
  19. text-decoration: none;
  20. outline: 0
  21. }
  22. a:hover {
  23. color: $primary
  24. }
  25. table {
  26. border-collapse: collapse;
  27. border-spacing: 0
  28. }
  29. fieldset, img, area, a {
  30. border: 0;
  31. outline: 0
  32. }
  33. address, caption, cite, code, dfn, em, th, var, i {
  34. font-style: normal;
  35. font-weight: normal
  36. }
  37. code, kbd, pre, samp {
  38. font-family: courier new, courier, monospace
  39. }
  40. ol, ul {
  41. list-style: none
  42. }
  43. body {
  44. background: #fff;
  45. -webkit-text-size-adjust: none;
  46. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  47. }
  48. small {
  49. font-size: 12px
  50. }
  51. h1, h2, h3, h4, h5, h6 {
  52. font-size: 100%
  53. }
  54. sup {
  55. vertical-align: text-top
  56. }
  57. sub {
  58. vertical-align: text-bottom
  59. }
  60. legend {
  61. color: #000
  62. }
  63. a, input {
  64. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  65. }
  66. div {
  67. -webkit-overflow-scrolling: touch;
  68. }
  69. input, textarea, select {
  70. border: none;
  71. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  72. -webkit-appearance: none;
  73. -moz-appearance: none;
  74. border-radius: 0;
  75. background: none;
  76. outline: none;
  77. }
  78. input[type='checkbox'] {
  79. -webkit-appearance: checkbox;
  80. }
  81. img {
  82. vertical-align: top;
  83. }
  84. @media screen and (max-device-width: 828px) {
  85. body {
  86. -webkit-text-size-adjust: none;
  87. }
  88. }
  89. /****************flexbox**************/
  90. .flex {
  91. display: flex;
  92. }
  93. .inline-flex {
  94. display: inline-flex;
  95. }
  96. .flex-center {
  97. justify-content: center;
  98. align-items: center;
  99. }
  100. .flex-center-between {
  101. justify-content: space-between;
  102. align-items: center;
  103. }
  104. /*横向或纵向*/
  105. .flex-row {
  106. flex-direction: row;
  107. }
  108. .flex-col {
  109. flex-direction: column;
  110. }
  111. .flex-row-reverse {
  112. flex-direction: row-reverse;
  113. }
  114. .flex-col-reverse {
  115. flex-direction: column-reverse;
  116. }
  117. .flex-wrap {
  118. flex-wrap: wrap;
  119. }
  120. /*主轴对齐方式*/
  121. .flex-justify-start {
  122. justify-content: flex-start;
  123. }
  124. .flex-justify-end {
  125. justify-content: flex-end;
  126. }
  127. .flex-justify-center {
  128. justify-content: center;
  129. }
  130. .flex-justify-between {
  131. justify-content: space-between;
  132. }
  133. .flex-justify-around {
  134. justify-content: space-around;
  135. }
  136. /*侧轴对齐方式*/
  137. .flex-align-start {
  138. align-items: flex-start;
  139. }
  140. .flex-align-end {
  141. align-items: flex-end;
  142. }
  143. .flex-align-center {
  144. align-items: center;
  145. }
  146. .flex-align-baseline {
  147. align-items: baseline;
  148. }
  149. .flex-align-stretch {
  150. align-items: stretch;
  151. }
  152. /*主轴换行时行在侧轴的对齐方式,必须定义flex-wrap为换行*/
  153. .flex-content-start {
  154. align-content: flex-start;
  155. }
  156. .flex-content-end {
  157. align-content: flex-end;
  158. }
  159. .flex-content-center {
  160. align-content: center;
  161. }
  162. .flex-content-between {
  163. align-content: space-between;
  164. }
  165. .flex-content-around {
  166. align-content: space-around;
  167. }
  168. .flex-content-stretch {
  169. align-content: stretch;
  170. }
  171. /*允许子元素收缩*/
  172. .flex-child-grow {
  173. flex-grow: 1;
  174. }
  175. /*允许拉伸*/
  176. .flex-child-shrink {
  177. flex-shrink: 1;
  178. }
  179. /*允许收缩*/
  180. .flex-child-noshrink {
  181. flex-shrink: 0;
  182. }
  183. /*不允许收缩*/
  184. .flex-child-average {
  185. flex: 1;
  186. }
  187. /*平均分布,兼容旧版必须给宽度*/
  188. .flex-child-first {
  189. order: 1;
  190. }
  191. /*排第一个*/
  192. /*子元素在侧轴的对齐方式*/
  193. .flex-child-align-start {
  194. align-self: flex-start;
  195. }
  196. .flex-child-align-end {
  197. align-self: flex-end;
  198. }
  199. .flex-child-align-center {
  200. align-self: center;
  201. }
  202. .flex-child-align-baseline {
  203. align-self: baseline;
  204. }
  205. .flex-child-align-stretch {
  206. align-self: stretch;
  207. }
  208. .wrapper {
  209. width: 1200px;
  210. margin: 0 auto;
  211. }
  212. .block {
  213. display: block;
  214. }
  215. .inline-block {
  216. display: inline-block;
  217. }
  218. .inline {
  219. display: inline;
  220. }
  221. .hide {
  222. display: none;
  223. }
  224. .full-height {
  225. height: 100%;
  226. }
  227. .full-width {
  228. width: 100%;
  229. }
  230. .full-size {
  231. width: 100%;
  232. height: 100%;
  233. }
  234. .full-screen {
  235. width: 100vw;
  236. height: 100vh;
  237. }
  238. .relative {
  239. position: relative;
  240. }
  241. .absolute {
  242. position: absolute;
  243. }
  244. .fixed {
  245. position: fixed;
  246. }
  247. .clear {
  248. clear: both;
  249. }
  250. .overflow-hide {
  251. overflow: hidden;
  252. }
  253. .normal {
  254. font-weight: normal;
  255. }
  256. .bold {
  257. font-weight: bold;
  258. }
  259. .radius {
  260. border-radius: 10px;
  261. }
  262. .font-34 {
  263. font-size: 34px;
  264. }
  265. .font-30 {
  266. font-size: 30px;
  267. }
  268. .font-28 {
  269. font-size: 28px;
  270. }
  271. .font-24 {
  272. font-size: 24px;
  273. }
  274. .font-20 {
  275. font-size: 20px;
  276. }
  277. .font-18 {
  278. font-size: 18px;
  279. }
  280. .font-16 {
  281. font-size: 16px;
  282. }
  283. .font-15 {
  284. font-size: 15px;
  285. }
  286. .font-14 {
  287. font-size: 14px;
  288. }
  289. .font-13 {
  290. font-size: 13px;
  291. }
  292. .font-12 {
  293. font-size: 12px;
  294. }
  295. .border-box {
  296. box-sizing: border-box;
  297. }
  298. .border {
  299. border: 1px solid $border;
  300. }
  301. .border-top {
  302. border-top: 1px solid $border;
  303. }
  304. .border-bottom {
  305. border-bottom: 1px solid $border;
  306. }
  307. .border-left {
  308. border-left: 1px solid $border;
  309. }
  310. .border-right {
  311. border-right: 1px solid $border;
  312. }
  313. .margin {
  314. margin: 10px;
  315. }
  316. .mt-5 {
  317. margin-top: 5px;
  318. }
  319. .mr-5 {
  320. margin-right: 5px;
  321. }
  322. .mb-5 {
  323. margin-bottom: 5px;
  324. }
  325. .ml-5 {
  326. margin-left: 5px;
  327. }
  328. .mt-10 {
  329. margin-top: 10px;
  330. }
  331. .mr-10 {
  332. margin-right: 10px;
  333. }
  334. .mb-10 {
  335. margin-bottom: 10px;
  336. }
  337. .ml-10 {
  338. margin-left: 10px;
  339. }
  340. .mt-15 {
  341. margin-top: 15px;
  342. }
  343. .mr-15 {
  344. margin-right: 15px;
  345. }
  346. .mb-15 {
  347. margin-bottom: 15px;
  348. }
  349. .ml-15 {
  350. margin-left: 15px;
  351. }
  352. .mt-20 {
  353. margin-top: 20px;
  354. }
  355. .mr-20 {
  356. margin-right: 20px;
  357. }
  358. .mb-20 {
  359. margin-bottom: 20px;
  360. }
  361. .ml-20 {
  362. margin-left: 20px;
  363. }
  364. .padding {
  365. padding: 10px;
  366. }
  367. .padding-14 {
  368. padding: 14px;
  369. }
  370. .padding-20 {
  371. padding: 20px;
  372. }
  373. .padding-top {
  374. padding-top: 10px;
  375. }
  376. .padding-right {
  377. padding-right: 10px;
  378. }
  379. .padding-bottom {
  380. padding-bottom: 10px;
  381. }
  382. .padding-left {
  383. padding-left: 10px;
  384. }
  385. .text-center {
  386. text-align: center;
  387. }
  388. .text-right {
  389. text-align: right;
  390. }
  391. .text-left {
  392. text-align: left;
  393. }
  394. .pointer {
  395. cursor: pointer;
  396. }
  397. .ellipsis {
  398. overflow: hidden;
  399. text-overflow: ellipsis;
  400. white-space: nowrap;
  401. }
  402. .nowrap {
  403. word-wrap: normal;
  404. white-space: nowrap;
  405. }
  406. .lines-1 {
  407. text-overflow: ellipsis;
  408. -webkit-line-clamp: 1;
  409. display: -webkit-box;
  410. overflow: hidden;
  411. -webkit-box-orient: vertical;
  412. }
  413. .lines-2 {
  414. text-overflow: ellipsis;
  415. -webkit-line-clamp: 2;
  416. display: -webkit-box;
  417. overflow: hidden;
  418. -webkit-box-orient: vertical;
  419. word-break: break-all;
  420. }
  421. .lines-height-2 {
  422. line-height: 2
  423. }
  424. .lines-height-15 {
  425. line-height: 1.5
  426. }
  427. .row2 {
  428. word-break: break-all;
  429. display: -webkit-box;
  430. -webkit-box-orient: vertical;
  431. -webkit-line-clamp: 2;
  432. overflow: hidden;
  433. }
  434. .card-item {
  435. border-radius: 8px;
  436. box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.08);
  437. background-color: #fff;
  438. margin: 0 14px 14px;
  439. overflow: hidden;
  440. }
  441. .btn {
  442. height: 32px;
  443. border-radius: 5px;
  444. }
  445. .pointer {
  446. cursor: pointer;
  447. }
  448. .hide-scrollbar::-webkit-scrollbar {
  449. display: none;
  450. }
  451. .box-shadow-blue {
  452. box-shadow: 0 0 16px 2px #deedff;
  453. }
  454. .box-shadow {
  455. box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.18)
  456. }
  457. .main-button {
  458. color: #fff;
  459. width: 100%;
  460. height: 44px;
  461. line-height: 44px;
  462. border-radius: 8px;
  463. font-size: 16px;
  464. background: linear-gradient(239deg, #85CAFF 0%, #007CDD 100%);
  465. cursor: pointer;
  466. &:hover {
  467. opacity: 0.9;
  468. }
  469. }
  470. .button-plain {
  471. width: 110px;
  472. color: $primary;
  473. text-align: center;
  474. height: 32px;
  475. border-radius: 16px;
  476. border: 2px solid $primary;
  477. line-height: 28px;
  478. box-sizing: border-box;
  479. &:hover {
  480. background: rgba($primary, 0.1);
  481. }
  482. }
  483. /*颜色*/
  484. .main-color, a.main-color {
  485. color: $primary;
  486. }
  487. /*主色*/
  488. .main-bgcolor {
  489. background-color: $primary;
  490. }
  491. .assist-color, a.assist-color {
  492. color: #78b
  493. }
  494. /*辅助色*/
  495. .assist-bgcolor {
  496. background-color: #78b;
  497. }
  498. .orange, a.orange {
  499. color: #ff6700;
  500. }
  501. .orange-bg {
  502. background-color: #ff6700;
  503. }
  504. .grey, a.grey {
  505. color: #707070;
  506. }
  507. .grey-bg {
  508. background-color: #505050;
  509. }
  510. .grey-6, a.grey-6 {
  511. color: #6b6b6b;
  512. }
  513. .grey-6-bg {
  514. background-color: #F6F6F6;
  515. }
  516. .grey-9, a.grey-9 {
  517. color: #9c9c9c;
  518. }
  519. .grey-9-bg {
  520. background-color: #9c9c9c;
  521. }
  522. .grey-d, a.grey-d {
  523. color: #dfdfdf;
  524. }
  525. .grey-d-bg {
  526. background-color: #dfdfdf;
  527. }
  528. .grey-e, a.grey-e {
  529. color: #efefef;
  530. }
  531. .grey-e-bg {
  532. background-color: #efefef;
  533. }
  534. .grey-f, a.grey-f {
  535. color: #f5f5f5;
  536. }
  537. .grey-f-bg {
  538. background-color: #f5f5f5;
  539. }
  540. .grey-fa-bg {
  541. background-color: #fafafa;
  542. }
  543. .black, a.black {
  544. color: #333;
  545. }
  546. .black-bg {
  547. background-color: #333;
  548. }
  549. .white, a.white {
  550. color: #fff;
  551. }
  552. .white-bg {
  553. background-color: #fff;
  554. }
  555. .red, a.red {
  556. color: #e12e2e;
  557. }
  558. .red-bg {
  559. background-color: #e12e2e;
  560. }
  561. .light-red, a.light-red {
  562. color: #ff5050;
  563. }
  564. .light-red-bg {
  565. background-color: #ff5050;
  566. }
  567. .orange-red, a.orange-red {
  568. color: #ff4e00;
  569. }
  570. .orange-red-bg {
  571. background-color: #ff4e00;
  572. }
  573. .yellow, a.yellow {
  574. color: #fbcb30;
  575. }
  576. .yellow-bg {
  577. background-color: #fbcb30;
  578. }
  579. .orange, a.orange {
  580. color: #ff6700;
  581. }
  582. .orange-bg {
  583. background-color: #ff6700;
  584. }
  585. .orange-yellow, a.orange-yellow {
  586. color: #fd9712;
  587. }
  588. .orange-yellow-bg {
  589. background-color: #fd9712;
  590. }
  591. .green, a.green {
  592. color: $green;
  593. }
  594. .green-bg {
  595. background-color: $green;
  596. }
  597. .green-text, a.green-text {
  598. color: #008000;
  599. }
  600. .light-green, a.light-green {
  601. color: #8fd14c;
  602. }
  603. .light-green-bg {
  604. background-color: #8fd14c;
  605. }
  606. .blue, a.blue {
  607. color: #3caaff;
  608. }
  609. .blue-bg {
  610. background-color: #3caaff;
  611. }
  612. .light-blue, a.light-blue {
  613. color: #7597dc;
  614. }
  615. .light-blue-bg {
  616. background-color: #7597dc;
  617. }
  618. .pink, a.pink {
  619. color: #fb5c9b;
  620. }
  621. .pink-bg {
  622. background-color: #fb5c9b;
  623. }
  624. .purple, a.purple {
  625. color: #a776d9;
  626. }
  627. .purple-bg {
  628. background-color: #a776d9;
  629. }
  630. .light-purple, a.light-purple {
  631. color: #b394f3;
  632. }
  633. .light-purple-bg {
  634. background-color: #b394f3;
  635. }
  636. /* 表格头部标题左边的border */
  637. .before-line {
  638. position: relative;
  639. margin-left: 10px;
  640. }
  641. .before-line:before {
  642. content: '';
  643. position: absolute;
  644. left: -10px;
  645. top: 54%;
  646. transform: translateY(-50%);
  647. border: 2px solid $primary;
  648. border-radius: 2px;
  649. height: 50%;
  650. }