common.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. page {
  2. background: #f7f7f7;
  3. height: 100%;
  4. }
  5. .container{
  6. height: 100%;
  7. }
  8. .border-line {
  9. position: relative;
  10. &::after {
  11. content: "";
  12. position: absolute;
  13. bottom: 0;
  14. left: 0;
  15. border-bottom: 1px solid #F5F7FA;
  16. width: 100%;
  17. transform: scaleY(0.5);
  18. border-top-color: #F5F7FA;
  19. border-right-color: #F5F7FA;
  20. border-left-color: #F5F7FA;
  21. }
  22. }
  23. /*单行文本溢出省略号*/
  24. .one-t {
  25. overflow: hidden;
  26. /*#ifndef APP-NVUE*/
  27. white-space: nowrap;
  28. /*#endif*/
  29. text-overflow: ellipsis;
  30. transition: all linear 0.2s;
  31. }
  32. /*多行文本溢出省略号*/
  33. .more-t {
  34. overflow: hidden;
  35. text-overflow: ellipsis;
  36. /*#ifndef APP-NVUE*/
  37. display: -webkit-box;
  38. -webkit-line-clamp: 2;
  39. -webkit-box-orient: vertical;
  40. /*#endif*/
  41. transition: all linear 0.2s;
  42. }
  43. /* ==================
  44. flex布局(colorui里面也有相关基础样式)
  45. ==================== */
  46. /* x水平排列*/
  47. .x-f {
  48. display: flex;
  49. align-items: center;
  50. }
  51. /*x两端且水平居中*/
  52. .x-bc {
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. flex-direction: row;
  57. }
  58. /*x平分且水平居中*/
  59. .x-ac {
  60. display: flex;
  61. justify-content: space-around;
  62. align-items: center;
  63. }
  64. /*x水平靠上对齐*/
  65. .x-start {
  66. display: flex;
  67. align-items: flex-start;
  68. }
  69. /*x水平靠下对齐*/
  70. .x-end {
  71. display: flex;
  72. align-items: flex-end;
  73. }
  74. /*上下左右居中*/
  75. .x-c {
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. }
  80. /*y竖直靠左*/
  81. .y-start {
  82. display: flex;
  83. flex-direction: column;
  84. align-items: flex-start;
  85. }
  86. /*y竖直靠右*/
  87. .y-end {
  88. display: flex;
  89. flex-direction: column;
  90. align-items: flex-end;
  91. }
  92. /*y竖直居中*/
  93. .y-f {
  94. display: flex;
  95. flex-direction: column;
  96. align-items: center;
  97. }
  98. // y竖直两端
  99. .y-b {
  100. display: flex;
  101. flex-direction: column;
  102. justify-content: space-between;
  103. }
  104. /*y竖直两端居中*/
  105. .y-bc {
  106. display: flex;
  107. flex-direction: column;
  108. align-items: center;
  109. justify-content: space-between;
  110. }
  111. /* layout */
  112. .acea-row {
  113. display: flex;
  114. flex-wrap: wrap;
  115. /* 辅助类 */
  116. }
  117. .acea-row.row-middle {
  118. align-items: center;
  119. }
  120. .acea-row.row-top {
  121. align-items: flex-start;
  122. }
  123. .acea-row.row-bottom {
  124. align-items: flex-end;
  125. }
  126. .acea-row.row-center {
  127. justify-content: center;
  128. }
  129. .acea-row.row-right {
  130. justify-content: flex-end;
  131. }
  132. .acea-row.row-left {
  133. justify-content: flex-start;
  134. }
  135. .acea-row.row-between {
  136. justify-content: space-between;
  137. }
  138. .acea-row.row-around {
  139. justify-content: space-around;
  140. }
  141. .acea-row.row-column-around {
  142. flex-direction: column;
  143. justify-content: space-around;
  144. }
  145. .acea-row.row-column {
  146. flex-direction: column;
  147. }
  148. .acea-row.row-column-between {
  149. flex-direction: column;
  150. justify-content: space-between;
  151. }
  152. /* 上下左右垂直居中 */
  153. .acea-row.row-center-wrapper {
  154. align-items: center;
  155. justify-content: center;
  156. }
  157. /* 上下两边居中对齐 */
  158. .acea-row.row-between-wrapper {
  159. align-items: center;
  160. justify-content: space-between;
  161. }
  162. .cts-btn {
  163. display: flex;
  164. align-items: center;
  165. justify-content: center;
  166. width: 100%;
  167. height: 80rpx;
  168. // background: linear-gradient(to right, #35d861 0%, #35d861 100%);
  169. // background: -moz-linear-gradient(to right, #35d861 0%, #35d861 100%);
  170. background: #FF5C03;
  171. box-shadow: 0px 7rpx 6rpx 0px rgba(229, 138, 0, 0.22);
  172. border-radius: 40rpx;
  173. font-size: 30rpx;
  174. font-family: PingFang SC;
  175. font-weight: 500;
  176. color: rgba(255, 255, 255, 1);
  177. margin-left: 30rpx;
  178. margin-right: 30rpx;
  179. width: calc(100% - 30px);
  180. }
  181. .flex{
  182. flex: 1;
  183. }