common.less 6.5 KB

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