common.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. @prim: #159EFF;
  2. @success: #07c160;
  3. @danger: #159EFF;
  4. @warn: #ff976a;
  5. @text0: #181818;
  6. @text1: #323233;
  7. @text2: #606266;
  8. @text3: #939599;
  9. @text4: #c6c8cc;
  10. @border1: #f5f7fa;
  11. @border2: #f2f3f5;
  12. @border3: #dfe1e6;
  13. @border4: #f2f6fc;
  14. @bg: #f5f7fa;
  15. @ff: #ffffff;
  16. .flex1 {
  17. flex-grow: 1;
  18. }
  19. .flex() {
  20. display: flex;
  21. align-items: center;
  22. }
  23. .flex-col() {
  24. display: flex;
  25. flex-direction: column;
  26. }
  27. .ellipsis() {
  28. overflow: hidden;
  29. text-overflow: ellipsis;
  30. white-space: nowrap;
  31. }
  32. .btn(){
  33. height: 56px;
  34. justify-content: space-between;
  35. background: #ffffff;
  36. width: 100%;
  37. position: fixed;
  38. bottom: 0;
  39. }
  40. .message(){
  41. font-size: 13px;
  42. font-weight: 400;
  43. color: #c8c9cc;
  44. line-height: 22px;
  45. }
  46. .span(){
  47. font-size: 14px;
  48. font-weight: bold;
  49. color: #000000;
  50. line-height: 24px;
  51. }
  52. .p(){
  53. font-family: 'OSP';
  54. font-size: 34px;
  55. font-weight: normal;
  56. color: #ff7f1f;
  57. line-height: 34px;
  58. }
  59. .text10(){
  60. color: #ff7f1f;
  61. font-size: 22px;
  62. font-family: 'OSP';
  63. font-weight: normal;
  64. line-height: 22px;
  65. margin-top: 8px;
  66. }
  67. .text14(){
  68. font-size: 14px;
  69. font-weight: 400;
  70. color: #939599;
  71. line-height: 24px;
  72. }
  73. .text13(){
  74. font-size: 13px;
  75. font-weight: 400;
  76. color: #939599;
  77. line-height: 24px;
  78. }
  79. .text12(){
  80. font-size: 13px;
  81. font-weight: 400;
  82. color: #939599;
  83. line-height: 22px;
  84. }
  85. .price(){
  86. font-size: 14px;
  87. font-weight: 400;
  88. color: #ff7f1f;
  89. line-height: 24px;
  90. }
  91. .add(){
  92. width: 24px;
  93. height: 24px;
  94. background: @prim;
  95. line-height: 24px;
  96. text-align: center;
  97. font-weight: bold;
  98. color: #fff;
  99. border-radius: 2px;
  100. }
  101. .add2(){
  102. width: 24px;
  103. height: 24px;
  104. margin-top: 4px;
  105. line-height: 24px;
  106. }
  107. .mytest(){
  108. position: absolute;
  109. top: 0;
  110. left: 0;
  111. right: 0;
  112. margin: auto;
  113. width: 100%;
  114. z-index: -1;
  115. }
  116. .button(){
  117. width: 120px;
  118. height: 44px;
  119. background: @prim;
  120. border-radius: 8px;
  121. font-size: 16px;
  122. font-weight: 400;
  123. color: #ffffff;
  124. margin-right: 16px;
  125. border: 0;
  126. }
  127. .ellipsis-line( @line:2 ) {
  128. display: -webkit-box;
  129. -webkit-box-orient: vertical;
  130. -webkit-line-clamp: @line;
  131. overflow: hidden;
  132. }
  133. .bottom( @bottom:0.5px ) {
  134. padding-bottom: @bottom;
  135. padding-bottom: calc(@bottom + constant(safe-area-inset-bottom)); // 兼容 IOS<11.2
  136. padding-bottom: calc(@bottom + env(safe-area-inset-bottom)); // 兼容 IOS>=11.2
  137. }
  138. @keyframes iconAnimate {
  139. from {
  140. -webkit-transform: scale(1);
  141. transform: scale(1);
  142. }
  143. 20% {
  144. -webkit-transform: scale(0.8);
  145. transform: scale(0.8);
  146. }
  147. 80% {
  148. -webkit-transform: scale(1.5);
  149. transform: scale(1.5);
  150. }
  151. 100% {
  152. -webkit-transform: scale(1);
  153. transform: scale(1);
  154. }
  155. }
  156. .iconAnimate {
  157. animation: iconAnimate ease-in-out 0.3s;
  158. }