common.less 6.3 KB

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