public.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. @charset "utf-8";
  2. @import './size.scss';
  3. page {
  4. color: #232323;
  5. font-size: 30rpx;
  6. font-family: 'PingFang SC';
  7. --theme: #ec1c24;
  8. --second: #ff8500;
  9. --text: #232323;
  10. @extend .bg-gray;
  11. }
  12. .page {
  13. box-sizing: border-box;
  14. position: relative;
  15. min-height: calc(100vh - var(--window-bottom));
  16. }
  17. /* 弹性盒start */
  18. .flex {
  19. display: flex;
  20. }
  21. .flex-row {
  22. flex-direction: row !important;
  23. }
  24. .flex-column {
  25. flex-direction: column;
  26. }
  27. .flex1 {
  28. flex: 1;
  29. overflow: hidden;
  30. }
  31. .noFlex1 {
  32. width: auto !important;
  33. flex: 0 0 auto !important;
  34. }
  35. .flex-auto {
  36. flex: auto;
  37. }
  38. .flex-center {
  39. justify-content: center;
  40. align-items: center;
  41. }
  42. .flex-start {
  43. justify-content: flex-start;
  44. }
  45. .flex-around {
  46. justify-content: space-around;
  47. }
  48. .flex-between {
  49. justify-content: space-between;
  50. }
  51. .flex-end {
  52. justify-content: flex-end;
  53. }
  54. .flex-wrap {
  55. flex-wrap: wrap;
  56. }
  57. .align-start{
  58. align-items: center;
  59. }
  60. .align-center {
  61. align-items: center;
  62. }
  63. .align-end{
  64. align-items: end;
  65. }
  66. /* 模型、模式 */
  67. .box {
  68. box-sizing: border-box;
  69. }
  70. .inline {
  71. display: inline-block;
  72. }
  73. .block {
  74. display: block;
  75. }
  76. .overflow-hidden {
  77. overflow: hidden;
  78. }
  79. .text-left {
  80. text-align: left;
  81. }
  82. .text-center {
  83. text-align: center;
  84. }
  85. .text-right {
  86. text-align: right;
  87. }
  88. .text-theme {
  89. color: var(--theme) !important;
  90. }
  91. .text-ellipse {
  92. overflow: hidden;
  93. white-space: nowrap;
  94. text-overflow: ellipsis;
  95. }
  96. .u-line2{
  97. display: -webkit-box !important;
  98. overflow: hidden;
  99. text-overflow: ellipsis;
  100. word-break: break-all;
  101. -webkit-line-clamp: 2;
  102. -webkit-box-orient: vertical !important;
  103. }
  104. .bg-white {
  105. background-color: #fff;
  106. }
  107. .bg-gray {
  108. background-color: #f5f5f5;
  109. }
  110. .bg-black {
  111. background-color: #000;
  112. }
  113. .bg-theme {
  114. background-color: var(--theme);
  115. }
  116. // position 定位
  117. .sticky {
  118. position: sticky;
  119. top: 0;
  120. z-index: 1;
  121. }
  122. .relative {
  123. position: relative;
  124. }
  125. .absolute {
  126. position: absolute;
  127. }
  128. .w {
  129. padding: 0 25rpx;
  130. }
  131. .w-m,
  132. .m {
  133. margin: 0 25rpx;
  134. }
  135. .radius {
  136. border-radius: 10px;
  137. }
  138. /* Standard syntax */
  139. .applyShake {
  140. animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  141. }
  142. @keyframes shake {
  143. 10%,
  144. 90% {
  145. transform: translate3d(-1px, 0, 0);
  146. }
  147. 20%,
  148. 80% {
  149. transform: translate3d(2px, 0, 0);
  150. }
  151. 30%,
  152. 50%,
  153. 70% {
  154. transform: translate3d(-4px, 0, 0);
  155. }
  156. 40%,
  157. 60% {
  158. transform: translate3d(4px, 0, 0);
  159. }
  160. }