common.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. page {
  2. background: #f5f5f5;
  3. height: 100%;
  4. }
  5. .container{
  6. height: 100%;
  7. }
  8. rich-text {
  9. width: 100%;
  10. display: block;
  11. img,
  12. image {
  13. display: block;
  14. width: 100%;
  15. }
  16. }
  17. /*单行文本溢出省略号*/
  18. .one-t {
  19. overflow: hidden;
  20. white-space: nowrap;
  21. text-overflow: ellipsis;
  22. transition: all linear 0.2s;
  23. }
  24. /*多行文本溢出省略号*/
  25. .more-t {
  26. overflow: hidden;
  27. text-overflow: ellipsis;
  28. display: -webkit-box;
  29. -webkit-line-clamp: 2;
  30. -webkit-box-orient: vertical;
  31. transition: all linear 0.2s;
  32. }
  33. /* ==================
  34. flex布局(colorui里面也有相关基础样式)
  35. ==================== */
  36. /* x水平排列*/
  37. .x-f {
  38. display: flex;
  39. align-items: center;
  40. }
  41. /*x两端且水平居中*/
  42. .x-bc {
  43. display: flex;
  44. justify-content: space-between;
  45. align-items: center;
  46. }
  47. /*x平分且水平居中*/
  48. .x-ac {
  49. display: flex;
  50. justify-content: space-around;
  51. align-items: center;
  52. }
  53. /*x水平靠上对齐*/
  54. .x-start {
  55. display: flex;
  56. align-items: flex-start;
  57. }
  58. /*x水平靠下对齐*/
  59. .x-end {
  60. display: flex;
  61. align-items: flex-end;
  62. }
  63. /*上下左右居中*/
  64. .x-c {
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. }
  69. /*y竖直靠左*/
  70. .y-start {
  71. display: flex;
  72. flex-direction: column;
  73. align-items: flex-start;
  74. }
  75. /*y竖直靠右*/
  76. .y-end {
  77. display: flex;
  78. flex-direction: column;
  79. align-items: flex-end;
  80. }
  81. /*y竖直居中*/
  82. .y-f {
  83. display: flex;
  84. flex-direction: column;
  85. align-items: center;
  86. }
  87. // y竖直两端
  88. .y-b {
  89. display: flex;
  90. flex-direction: column;
  91. justify-content: space-between;
  92. }
  93. /*y竖直两端居中*/
  94. .y-bc {
  95. display: flex;
  96. flex-direction: column;
  97. align-items: center;
  98. justify-content: space-between;
  99. }
  100. /* layout */
  101. .acea-row {
  102. display: flex;
  103. flex-wrap: wrap;
  104. /* 辅助类 */
  105. }
  106. .acea-row.row-middle {
  107. align-items: center;
  108. }
  109. .acea-row.row-top {
  110. align-items: flex-start;
  111. }
  112. .acea-row.row-bottom {
  113. align-items: flex-end;
  114. }
  115. .acea-row.row-center {
  116. justify-content: center;
  117. }
  118. .acea-row.row-right {
  119. justify-content: flex-end;
  120. }
  121. .acea-row.row-left {
  122. justify-content: flex-start;
  123. }
  124. .acea-row.row-between {
  125. justify-content: space-between;
  126. }
  127. .acea-row.row-around {
  128. justify-content: space-around;
  129. }
  130. .acea-row.row-column-around {
  131. flex-direction: column;
  132. justify-content: space-around;
  133. }
  134. .acea-row.row-column {
  135. flex-direction: column;
  136. }
  137. .acea-row.row-column-between {
  138. flex-direction: column;
  139. justify-content: space-between;
  140. }
  141. /* 上下左右垂直居中 */
  142. .acea-row.row-center-wrapper {
  143. align-items: center;
  144. justify-content: center;
  145. }
  146. /* 上下两边居中对齐 */
  147. .acea-row.row-between-wrapper {
  148. align-items: center;
  149. justify-content: space-between;
  150. }
  151. /*每个页面公共css */
  152. .ellipsis{
  153. overflow: hidden;
  154. text-overflow: ellipsis;
  155. white-space: nowrap;
  156. }
  157. .ellipsis2{
  158. overflow:hidden;
  159. text-overflow:ellipsis;
  160. display:-webkit-box;
  161. -webkit-box-orient:vertical;
  162. -webkit-line-clamp:2;
  163. }
  164. radio .wx-radio-input{
  165. width: 36rpx;
  166. height: 36rpx;
  167. border: 1px solid #CCCCCC;
  168. }
  169. /* 选中后的 背景样式 */
  170. radio .wx-radio-input.wx-radio-input-checked{
  171. background: linear-gradient(135deg, #66b2ef 0%, #018C39 100%);
  172. border: 1px solid #018C39;
  173. }
  174. /* 选中后的 对勾样式 (白色对勾) */
  175. radio .wx-radio-input.wx-radio-input-checked::before{
  176. color: #ffffff;
  177. }
  178. checkbox .wx-checkbox-input{
  179. width: 36rpx;
  180. height: 36rpx;
  181. border: 1px solid #CCCCCC;
  182. border-radius: 50%;
  183. }
  184. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  185. background: linear-gradient(135deg, #66b2ef 0%, #018C39 100%);
  186. border: 1px solid #018C39;
  187. border-radius: 50%;
  188. }
  189. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  190. color: #ffffff;
  191. }
  192. ::-webkit-scrollbar {
  193. width: 0;
  194. height: 0;
  195. color: transparent;
  196. }
  197. /* 暂无数据 */
  198. .no-data-box{
  199. padding: 100upx 50upx;
  200. text-align: center;
  201. image{
  202. width: 372rpx;
  203. height: 240rpx;
  204. }
  205. .empty-title{
  206. margin-top: 20rpx;
  207. font-size: 32rpx;
  208. color: #bbbbbb;
  209. }
  210. }
  211. .Loads {
  212. height: 0.8*100rpx;
  213. font-size: 0.25*100rpx;
  214. color: #000;
  215. }
  216. .Loads .iconfont {
  217. font-size: 0.3*100rpx;
  218. margin-right: 0.1*100rpx;
  219. height: 0.32*100rpx;
  220. line-height: 0.32*100rpx;
  221. }
  222. /*加载动画*/
  223. @keyframes load {
  224. from {
  225. transform: rotate(0deg);
  226. }
  227. to {
  228. transform: rotate(360deg);
  229. }
  230. }
  231. .loadingpic {
  232. animation: load 3s linear 1s infinite;
  233. }
  234. .loading {
  235. animation: load linear 1s infinite;
  236. }
  237. .back-box{
  238. position: relative;
  239. .title{
  240. position: absolute;
  241. left: 50%;
  242. top: 50%;
  243. transform: translate(-50%,-50%);
  244. }
  245. }