common.less 4.1 KB

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