common.less 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. .ml8 {
  2. margin-left: 8px !important;
  3. }
  4. .mb8 {
  5. margin-bottom: 8px !important;
  6. }
  7. .mr8 {
  8. margin-right: 8px !important;
  9. }
  10. .mt8 {
  11. margin-top: 8px !important;
  12. }
  13. .ml16 {
  14. margin-left: 16px !important;
  15. }
  16. .w100 {
  17. width: 100% !important;
  18. }
  19. .wp75 {
  20. width: 75% !important;
  21. }
  22. .wp60 {
  23. width: 60% !important;
  24. }
  25. .wp20 {
  26. width: 20% !important;
  27. }
  28. .dib {
  29. display: inline-block !important;
  30. }
  31. .red {
  32. color: #d81e06 !important;
  33. }
  34. // 加载中
  35. .loadingFull {
  36. height: 100%;
  37. text-align: center;
  38. }
  39. .loading-css {
  40. width: 50px; /*先将loading区域变成正方形*/
  41. height: 50px;
  42. display: inline-block; /*将loading区域变成行内元素,防止旋转的时候,100%宽度都在旋转*/
  43. border: 3px solid #f3f3f3; /*设置四周边框大小,并将颜色设置为浅白色*/
  44. border-top: 3px solid red; /*将上边框颜色设置为红色高亮,以便旋转的时候能够看到旋转的效果*/
  45. border-radius: 50%; /*将边框和内容区域都变成圆形*/
  46. }
  47. .cur {
  48. cursor: pointer;
  49. }
  50. // flex布局
  51. .display_flex {
  52. display: flex;
  53. }
  54. /*伸缩流方向*/
  55. .flex-direction_column {
  56. flex-direction: column;
  57. }
  58. /** 垂直伸缩容器**/
  59. .col-flex {
  60. flex-flow: column wrap;
  61. }
  62. /*主轴对齐*/
  63. .justify-content_flex-center {
  64. justify-content: center;
  65. }
  66. .justify-content_flex-start {
  67. justify-content: flex-start !important;
  68. }
  69. .justify-content_flex-end {
  70. justify-content: flex-end;
  71. }
  72. .justify-content_space-between {
  73. justify-content: space-between;
  74. }
  75. .justify-content_space-around {
  76. justify-content: space-around;
  77. }
  78. .justify-content_space-evenly {
  79. justify-content: space-evenly;
  80. }
  81. /*侧轴对齐*/
  82. .align-items_flex-start {
  83. align-items: flex-start;
  84. }
  85. .align-items_flex-end {
  86. align-items: flex-end;
  87. }
  88. .align-items_center {
  89. align-items: center;
  90. }
  91. .align-items_baseline {
  92. align-items: baseline;
  93. }
  94. .align-items_space-evenly {
  95. align-items: space-evenly;
  96. }
  97. /*伸缩性*/
  98. .flex_auto {
  99. flex: auto;
  100. }
  101. .flex_1 {
  102. width: 0;
  103. flex: 1;
  104. }
  105. /*显示顺序*/
  106. .order_2 {
  107. order: 2;
  108. }
  109. .order_3 {
  110. order: 3;
  111. }
  112. .flex-wrap {
  113. flex-wrap: wrap;
  114. }
  115. // button
  116. @lg-btn-height: 52px;
  117. @default-btn-height: 34px;
  118. @sm-btn-height: 28px;
  119. @mini-btn-height: 22px;
  120. .btn {
  121. border: 1px solid @primary-color;
  122. border-radius: 4px;
  123. color: #fff;
  124. cursor: pointer;
  125. &:focus {
  126. outline: none;
  127. }
  128. &.default {
  129. color: @primary-color;
  130. background: #fff;
  131. height: @default-btn-height;
  132. line-height: @default-btn-height;
  133. padding: 0 8px 24px;
  134. min-width: 80px;
  135. font-size: 14px;
  136. }
  137. &.ghost {
  138. color: #fff;
  139. background: linear-gradient(135deg, @bg-start, @bg-end);
  140. height: @default-btn-height;
  141. line-height: @default-btn-height;
  142. padding: 0 0 26px;
  143. min-width: 80px;
  144. font-size: 14px;
  145. }
  146. &.lg {
  147. height: @lg-btn-height;
  148. line-height: @lg-btn-height;
  149. }
  150. &.know {
  151. padding: 0 40px !important;
  152. }
  153. &.cancel {
  154. color: rgba(0, 0, 0, 0.25) !important;
  155. background: #f5f5f5;
  156. border: 1px solid rgba(0, 0, 0, 0.25);
  157. &:hover,
  158. &:focus {
  159. color: @primary-color !important;
  160. background: #fff;
  161. border-color: @primary-color;
  162. }
  163. }
  164. &[disabled] {
  165. color: rgba(0, 0, 0, 0.25);
  166. background: #f5f5f5;
  167. cursor: not-allowed;
  168. border: 1px solid rgba(0, 0, 0, 0.25);
  169. }
  170. .fl {
  171. float: left !important;
  172. }
  173. .fr {
  174. float: right !important;
  175. }
  176. .clearfixer :after {
  177. content: "";
  178. display: block;
  179. clear: both;
  180. height: 0;
  181. }
  182. }
  183. // list模板样式 start
  184. .list-template {
  185. padding: 0 16px 16px;
  186. .list-template__content {
  187. .list-template__top {
  188. display: flex;
  189. justify-content: space-between;
  190. align-items: center;
  191. padding: 16px 0;
  192. position: relative;
  193. overflow: hidden;
  194. z-index: 2;
  195. .list-template__searchBox {
  196. display: flex;
  197. align-items: center;
  198. flex-wrap: wrap;
  199. .list-template__searchItem {
  200. margin-bottom: 8px;
  201. .label {
  202. margin-left: 16px;
  203. color: #333;
  204. display: inline-block;
  205. width: 70px;
  206. text-align-last: justify;
  207. text-align: justify;
  208. &.label--big {
  209. width: 100px;
  210. }
  211. }
  212. .formItem {
  213. width: 135px;
  214. }
  215. }
  216. }
  217. .list-template__btns {
  218. display: flex;
  219. justify-content: flex-end;
  220. align-items: center;
  221. }
  222. }
  223. .list-template__checkBoxes {
  224. height: 38px;
  225. border-top: 1px solid #e5e9ed;
  226. display: flex;
  227. align-items: center;
  228. }
  229. .list-template__bottom {
  230. background: #f9fafb;
  231. border: 1px solid #e5e9ed;
  232. border-radius: 8px;
  233. padding-bottom: 56px;
  234. position: relative;
  235. .list-template__nzTable {
  236. padding: 16px 16px 0;
  237. .thead {
  238. background-image: linear-gradient(to right, @bg-start, @bg-end);
  239. th {
  240. background: transparent;
  241. color: #fff;
  242. text-align: center;
  243. }
  244. }
  245. .ant-table-body {
  246. border-bottom: 1px solid #e5e9ed;
  247. }
  248. .ant-table-tbody {
  249. tr {
  250. text-align: center;
  251. color: #333;
  252. td {
  253. border: none;
  254. .coop {
  255. span {
  256. display: inline-block;
  257. padding: 0 8px;
  258. cursor: pointer;
  259. position: relative;
  260. &::after {
  261. content: "|";
  262. position: absolute;
  263. top: 0;
  264. right: 0;
  265. }
  266. &:hover,
  267. &:active {
  268. color: @primary-color;
  269. }
  270. &:nth-last-child(1) {
  271. &::after {
  272. content: "";
  273. }
  274. }
  275. }
  276. }
  277. }
  278. }
  279. }
  280. }
  281. .list-template__pagination {
  282. height: 56px;
  283. display: flex;
  284. align-items: center;
  285. position: absolute;
  286. right: 8px;
  287. }
  288. }
  289. }
  290. }
  291. // list模板样式 end
  292. @keyframes arrow_move {
  293. /* 开始状态 */
  294. 0% {
  295. left: 140px;
  296. }
  297. /* 结束状态 */
  298. 100% {
  299. left: 150px;
  300. }
  301. }