common.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. page {
  2. background: #f5f5f5;
  3. height: 100%;
  4. }
  5. .container{
  6. height: 100%;
  7. }
  8. /*单行文本溢出省略号*/
  9. .one-t {
  10. overflow: hidden;
  11. white-space: nowrap;
  12. text-overflow: ellipsis;
  13. transition: all linear 0.2s;
  14. }
  15. /*多行文本溢出省略号*/
  16. .more-t {
  17. overflow: hidden;
  18. text-overflow: ellipsis;
  19. display: -webkit-box;
  20. -webkit-line-clamp: 2;
  21. -webkit-box-orient: vertical;
  22. transition: all linear 0.2s;
  23. }
  24. /* ==================
  25. flex布局(colorui里面也有相关基础样式)
  26. ==================== */
  27. /* x水平排列*/
  28. .x-f {
  29. display: flex;
  30. align-items: center;
  31. }
  32. /*x两端且水平居中*/
  33. .x-bc {
  34. display: flex;
  35. justify-content: space-between;
  36. align-items: center;
  37. }
  38. /*x平分且水平居中*/
  39. .x-ac {
  40. display: flex;
  41. justify-content: space-around;
  42. align-items: center;
  43. }
  44. /*x水平靠上对齐*/
  45. .x-start {
  46. display: flex;
  47. align-items: flex-start;
  48. }
  49. /*x水平靠下对齐*/
  50. .x-end {
  51. display: flex;
  52. align-items: flex-end;
  53. }
  54. /*上下左右居中*/
  55. .x-c {
  56. display: flex;
  57. justify-content: center;
  58. align-items: center;
  59. }
  60. /*y竖直靠左*/
  61. .y-start {
  62. display: flex;
  63. flex-direction: column;
  64. align-items: flex-start;
  65. }
  66. /*y竖直靠右*/
  67. .y-end {
  68. display: flex;
  69. flex-direction: column;
  70. align-items: flex-end;
  71. }
  72. /*y竖直居中*/
  73. .y-f {
  74. display: flex;
  75. flex-direction: column;
  76. align-items: center;
  77. }
  78. // y竖直两端
  79. .y-b {
  80. display: flex;
  81. flex-direction: column;
  82. justify-content: space-between;
  83. }
  84. /*y竖直两端居中*/
  85. .y-bc {
  86. display: flex;
  87. flex-direction: column;
  88. align-items: center;
  89. justify-content: space-between;
  90. }
  91. /* layout */
  92. .acea-row {
  93. display: flex;
  94. flex-wrap: wrap;
  95. /* 辅助类 */
  96. }
  97. .acea-row.row-middle {
  98. align-items: center;
  99. }
  100. .acea-row.row-top {
  101. align-items: flex-start;
  102. }
  103. .acea-row.row-bottom {
  104. align-items: flex-end;
  105. }
  106. .acea-row.row-center {
  107. justify-content: center;
  108. }
  109. .acea-row.row-right {
  110. justify-content: flex-end;
  111. }
  112. .acea-row.row-left {
  113. justify-content: flex-start;
  114. }
  115. .acea-row.row-between {
  116. justify-content: space-between;
  117. }
  118. .acea-row.row-around {
  119. justify-content: space-around;
  120. }
  121. .acea-row.row-column-around {
  122. flex-direction: column;
  123. justify-content: space-around;
  124. }
  125. .acea-row.row-column {
  126. flex-direction: column;
  127. }
  128. .acea-row.row-column-between {
  129. flex-direction: column;
  130. justify-content: space-between;
  131. }
  132. /* 上下左右垂直居中 */
  133. .acea-row.row-center-wrapper {
  134. align-items: center;
  135. justify-content: center;
  136. }
  137. /* 上下两边居中对齐 */
  138. .acea-row.row-between-wrapper {
  139. align-items: center;
  140. justify-content: space-between;
  141. }