common.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. html, body, #root {
  2. height: 100%;
  3. }
  4. body {
  5. margin: 0;
  6. height: 100%;
  7. font-family: PingFangSC-Regular,PingFangSC-Medium,Helvetica,HelveticaNeue,Arial,Verdana,Sans-serif;
  8. word-break: break-all;
  9. }
  10. dl, dd, dt, p, h1, h2, h3, h4, h5, h6, ul, li, ol {
  11. padding: 0; margin: 0;
  12. }
  13. ul, ol, li {
  14. list-style: none;
  15. }
  16. h1, h2, h3, h4, h5, h6 {
  17. font-weight: 500;
  18. }
  19. @color-333: #333;
  20. .hidden {
  21. display: none !important;
  22. }
  23. .color-fff {
  24. color: #fff !important;
  25. }
  26. .color-white {
  27. color: #fff !important;
  28. }
  29. .color-primary {
  30. color: #ff4d5b;
  31. }
  32. .color-333 {
  33. color: #333;
  34. }
  35. .color-999 {
  36. color: #999;
  37. }
  38. .color-ccc {
  39. color: #ccc;
  40. }
  41. .color-green {
  42. color: #1fb922;
  43. }
  44. .font-20 {
  45. font-size: 20px !important;
  46. }
  47. .font-24 {
  48. font-size: 24px !important;
  49. }
  50. .font-26 {
  51. font-size: 26px !important;
  52. }
  53. .font-28 {
  54. font-size: 28px !important;
  55. }
  56. .font-30 {
  57. font-size: 30px !important;
  58. }
  59. .font-44 {
  60. font-size: 44px !important;
  61. }
  62. .font-48 {
  63. font-size: 48px !important;
  64. }
  65. .border-bottom {
  66. border-bottom: 1px solid #f2f2ff;
  67. }
  68. .font-weight-500 {
  69. font-weight: 500;
  70. }
  71. .line-h-1 {
  72. line-height: 1;
  73. }
  74. .base-line-height {
  75. line-height: 1.5;
  76. }
  77. //灰色遮罩
  78. .mask {
  79. position: fixed;
  80. top: 0px;
  81. right: 0px;
  82. bottom: 0px;
  83. left: 0px;
  84. z-index: 1000;
  85. background-color: rgba(0, 0, 0, 0.4);
  86. }
  87. .no-height {
  88. height: 0px !important;
  89. }
  90. .padding-30 {
  91. padding: 30px;
  92. }
  93. .border-bottom {
  94. border-bottom: 1px solid #f5f5f5;
  95. }
  96. .word-break-all {
  97. word-break: break-all;
  98. }
  99. .text-overflow-hidden {
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. white-space: nowrap;
  103. }
  104. .vertical-align-middle {
  105. vertical-align: middle;
  106. }
  107. .line-2 {
  108. overflow: hidden;
  109. display: -webkit-box;
  110. line-height: 1.5;
  111. -webkit-line-clamp: 2;
  112. /*! autoprefixer: off */
  113. -webkit-box-orient: vertical;
  114. /* autoprefixer: on */
  115. }
  116. .line-3 {
  117. overflow: hidden;
  118. display: -webkit-box;
  119. -webkit-line-clamp: 3;
  120. /*! autoprefixer: off */
  121. -webkit-box-orient: vertical;
  122. /* autoprefixer: on */
  123. }
  124. .line-12 {
  125. overflow: hidden;
  126. display: -webkit-box;
  127. -webkit-line-clamp: 12;
  128. /*! autoprefixer: off */
  129. -webkit-box-orient: vertical;
  130. /* autoprefixer: on */
  131. }
  132. .position-relative {
  133. position: relative;
  134. }
  135. .text-align-left {
  136. text-align: left;
  137. }
  138. .text-align-right {
  139. text-align: right;
  140. }
  141. .text-align-center {
  142. text-align: center;
  143. }
  144. .text-line-through {
  145. text-decoration: line-through;
  146. }
  147. .bg-fff {
  148. background-color: #fff;
  149. }
  150. .border-radius-10 {
  151. border-radius: 10px;
  152. }
  153. .margin-top-20 {
  154. margin-top: 20px;
  155. }
  156. .margin-top-30 {
  157. margin-top: 30px;
  158. }