common.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. .x-jc{
  81. justify-content: flex-start;
  82. }
  83. /*y竖直靠左*/
  84. .y-start {
  85. display: flex;
  86. flex-direction: column;
  87. align-items: flex-start;
  88. }
  89. /*y竖直靠右*/
  90. .y-end {
  91. display: flex;
  92. flex-direction: column;
  93. align-items: flex-end;
  94. }
  95. /*y竖直居中*/
  96. .y-f {
  97. display: flex;
  98. flex-direction: column;
  99. align-items: center;
  100. }
  101. // y竖直两端
  102. .y-b {
  103. display: flex;
  104. flex-direction: column;
  105. justify-content: space-between;
  106. }
  107. /*y竖直两端居中*/
  108. .y-bc {
  109. display: flex;
  110. flex-direction: column;
  111. align-items: center;
  112. justify-content: space-between;
  113. }
  114. /* layout */
  115. .acea-row {
  116. display: flex;
  117. flex-wrap: wrap;
  118. /* 辅助类 */
  119. }
  120. .acea-row.row-middle {
  121. align-items: center;
  122. }
  123. .acea-row.row-top {
  124. align-items: flex-start;
  125. }
  126. .acea-row.row-bottom {
  127. align-items: flex-end;
  128. }
  129. .acea-row.row-center {
  130. justify-content: center;
  131. }
  132. .acea-row.row-right {
  133. justify-content: flex-end;
  134. }
  135. .acea-row.row-left {
  136. justify-content: flex-start;
  137. }
  138. .acea-row.row-between {
  139. justify-content: space-between;
  140. }
  141. .acea-row.row-around {
  142. justify-content: space-around;
  143. }
  144. .acea-row.row-column-around {
  145. flex-direction: column;
  146. justify-content: space-around;
  147. }
  148. .acea-row.row-column {
  149. flex-direction: column;
  150. }
  151. .acea-row.row-column-between {
  152. flex-direction: column;
  153. justify-content: space-between;
  154. }
  155. /* 上下左右垂直居中 */
  156. .acea-row.row-center-wrapper {
  157. align-items: center;
  158. justify-content: center;
  159. }
  160. /* 上下两边居中对齐 */
  161. .acea-row.row-between-wrapper {
  162. align-items: center;
  163. justify-content: space-between;
  164. }
  165. .cts-btn {
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. width: 100%;
  170. height: 80rpx;
  171. // background: linear-gradient(to right, #35d861 0%, #35d861 100%);
  172. // background: -moz-linear-gradient(to right, #35d861 0%, #35d861 100%);
  173. background: #FF5030;
  174. box-shadow: 0px 7rpx 6rpx 0px rgba(229, 138, 0, 0.22);
  175. border-radius: 40rpx;
  176. font-size: 30rpx;
  177. font-family: PingFang SC;
  178. font-weight: 500;
  179. color: rgba(255, 255, 255, 1);
  180. margin-left: 30rpx;
  181. margin-right: 30rpx;
  182. width: calc(100% - 30px);
  183. }
  184. .flex{
  185. flex: 1;
  186. }
  187. .page_container {
  188. display: flex;
  189. flex-direction: column;
  190. height: 100vh;
  191. }
  192. .text_message_container {
  193. word-break: break-all;
  194. }