pub.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. @use "./color.scss" as *;
  2. .flex { display: flex; display: -webkit-flex; align-items: center; justify-content: center;}
  3. .flex.left { justify-content: flex-start}
  4. .flex.center { justify-content: center}
  5. .flex.col { flex-direction: column;}
  6. .flex.right { justify-content:flex-end}
  7. .flex.around { justify-content: space-around }
  8. .flex.between { justify-content: space-between }
  9. .flex.wrap { flex-wrap: wrap; }
  10. .flex.top {align-items: flex-start}
  11. .flex.bottom { align-items: flex-end}
  12. .flex-item { flex: 1}
  13. .flex-item.left { text-align: left}
  14. .flex-item.right { text-align: right}
  15. .f-left { float: left}
  16. .f-right { float: right}
  17. .clear, .clearfix:after {
  18. clear: both;
  19. }
  20. .clear, .clearfix:before, .clearfix:after {
  21. display: block;
  22. overflow: hidden;
  23. visibility: hidden;
  24. width: 0; height: 0;
  25. }
  26. .clearfix:before, .clearfix:after {
  27. content: '';
  28. }
  29. .clearfix {
  30. *zoom: 1;
  31. }
  32. .te-l { text-align:left;}
  33. .te-c { text-align:center;}
  34. .te-r { text-align:right;}
  35. .chaochu { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  36. .chaochu_1 {overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical; word-break:break-all;}
  37. .chaochu_2 {overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical; word-break:break-all;}
  38. .chaochu_3 {overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical; word-break:break-all;}
  39. .chaochu_4 {overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 4;-webkit-box-orient: vertical; word-break:break-all;}
  40. .cu-p { cursor: pointer;}
  41. .line-20 { line-height: 20px}
  42. .line-30 { line-height: 30px}
  43. .line-40 { line-height: 40px}
  44. .line-50 { line-height: 50px}
  45. .mar-top-5 { margin-top: 5px;}
  46. .mar-top-10 { margin-top: 10px;}
  47. .mar-top-15 { margin-top: 15px;}
  48. .mar-top-20 { margin-top: 20px;}
  49. .mar-top-30 { margin-top: 30px;}
  50. .mar-top-40 { margin-top: 40px;}
  51. .mar-top-50 { margin-top: 50px;}
  52. .mar-left-10 { margin-left: 10px;}
  53. .mar-left-20 { margin-left: 20px;}
  54. .mar-left-30 { margin-left: 30px;}
  55. .mar-left-40 { margin-left: 40px;}
  56. .mar-left-50 { margin-left: 50px;}
  57. .mar-right-5 { margin-right: 5px;}
  58. .mar-right-10 { margin-right: 10px;}
  59. .mar-right-20 { margin-right: 20px;}
  60. .mar-right-30 { margin-right: 30px;}
  61. .mar-right-40 { margin-right: 40px;}
  62. .mar-right-50 { margin-right: 50px;}
  63. .fs-11 { font-size: 11px}
  64. .fs-12 { font-size: 12px}
  65. .fs-14 { font-size: 14px}
  66. .fs-15 { font-size: 15px}
  67. .fs-16 { font-size: 16px}
  68. .fs-17 { font-size: 17px}
  69. .fs-18 { font-size: 18px}
  70. .fs-19 { font-size: 19px}
  71. .fs-20 { font-size: 20px}
  72. .fs-30 { font-size: 30px}
  73. .c-primary {color:$primary2 }
  74. .c-blue {color: $blue1 }
  75. .c-333 { color:#333; }
  76. .c-666 { color:#666; }
  77. .c-999 { color:#999; }
  78. .c-fff { color:#fff; }
  79. .c-eee { color:#eee; }
  80. .c-b0 { color: #b0b0b0;;}
  81. .bg-fff { background: #fff;}
  82. .fw-b{
  83. font-weight: 500;
  84. }
  85. .fw-b6{
  86. font-weight: 600;
  87. }
  88. .pad-5 { padding: 5px;}
  89. .pad-10 { padding: 10px;}
  90. .pad-20 { padding: 20px;}
  91. .pad-30 { padding: 30px;}
  92. .pad-40 { padding: 40px;}
  93. .pad-50 { padding: 50px;}
  94. .w-full { width: 100%}
  95. .h-full { height: 100% }
  96. ::-webkit-scrollbar {/*滚动条整体样式*/ width: 8px; /*高宽分别对应横竖滚动条的尺寸*/ height: 8px; background: #000;}
  97. ::-webkit-scrollbar-thumb {/*滚动条里面小方块*/ border-radius: 10px; background: #ddd;}
  98. ::-webkit-scrollbar-track {/*滚动条里面轨道*/ -webkit-box-shadow: none; border-radius: 10px; background: none;}
  99. .tabs { display: flex; height: 50px; line-height: 50px; border-bottom: 2px solid #dfe4ed; margin-bottom: 15px; justify-items: left;}
  100. .tabs .tab { margin-right: 10px; padding: 0 10px; position: relative; cursor: pointer; height: 50px; line-height: 50px; }
  101. .tabs .tab.active { color:$primary2}
  102. .tabs .tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: $primary2;}
  103. /*div page*/
  104. .bg-efefef { background: #efefef;}
  105. .anm { transition: 0.5s; }
  106. .page—wrap {
  107. width: 1200px;
  108. margin: 0 auto;
  109. }
  110. .el-button__primary {
  111. background: #2CFFFC;
  112. color: #000;
  113. &:hover,&.active {
  114. background: rgba(0, 244, 34, 1);
  115. color: #000;
  116. }
  117. }
  118. .relative{
  119. position: relative;
  120. }
  121. .middle{
  122. vertical-align: middle;
  123. }
  124. .bor-radius-10{
  125. border-radius: 10px;
  126. overflow: hidden;
  127. }
  128. .bor-radius-4{
  129. border-radius: 4px;
  130. overflow: hidden;
  131. }
  132. .miniappIcon{
  133. top:8px;
  134. }
  135. // 放大元素 鼠标移入
  136. .zoom-ele{
  137. overflow: hidden;
  138. cursor: pointer;
  139. img{
  140. transition: transform 0.3s;
  141. display: block;
  142. &:hover{
  143. transform: scale(1.1);
  144. }
  145. }
  146. }
  147. // 放大元素 鼠标点击
  148. .magnify-ele{
  149. transition: transform 0.4s;
  150. &:active{
  151. transform: scale(1.2);
  152. }
  153. }
  154. /*单行溢出隐藏*/
  155. .overflow1{
  156. white-space: nowrap;
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. }
  160. /*两行溢出隐藏*/
  161. .overflow2{
  162. overflow: hidden;
  163. display: -webkit-box;
  164. -webkit-line-clamp: 2;
  165. -webkit-box-orient: vertical;
  166. }
  167. .cur-p{
  168. cursor: pointer;
  169. }
  170. .disable-el{
  171. pointer-events: none;
  172. }
  173. .grayscale {
  174. >div {
  175. filter: grayscale(1);
  176. }
  177. ~div img {
  178. filter: grayscale(1);
  179. }
  180. }
  181. .button-black {
  182. background: $color-black !important;
  183. color: #fff !important;
  184. &:hover {
  185. background: $color-black-7 !important;
  186. }
  187. &.active {
  188. background: linear-gradient(135deg, #2FB0FF 0%, #B863FB 100%) !important;
  189. }
  190. }
  191. .nav-back {
  192. background: linear-gradient( 90deg, #6B6394 0%, #3A345A 100%);
  193. border-radius: 8px;
  194. padding: 0 15px;
  195. color: #fff;
  196. padding-left: 30px;
  197. position: relative;
  198. height: 30px;
  199. line-height: 30px;
  200. font-size: 14px;
  201. margin-right: 15px;
  202. &:before {
  203. content: "";
  204. display: block;
  205. width: 12px;
  206. height: 12px;
  207. border-left:1px solid #D8D8D8;
  208. border-bottom:1px solid #D8D8D8;
  209. position: absolute;
  210. left:11px;
  211. top:50%;
  212. margin-top: -5px;
  213. transform:rotate(45deg);
  214. }
  215. }