common.less 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. .ant-table-tbody tr:nth-of-type(2n){
  2. background-color: #e9f7e9!important;
  3. }
  4. .w320px {
  5. width: 320px;
  6. }
  7. .pt0{
  8. padding-top: 0!important;
  9. }
  10. .ml8 {
  11. margin-left: 8px !important;
  12. }
  13. .mb8 {
  14. margin-bottom: 8px !important;
  15. }
  16. .mr8 {
  17. margin-right: 8px !important;
  18. }
  19. .mt8 {
  20. margin-top: 8px !important;
  21. }
  22. .mt0 {
  23. margin-top: 0 !important;
  24. }
  25. .ml16 {
  26. margin-left: 16px !important;
  27. }
  28. .gap8{
  29. gap: 8px !important;
  30. }
  31. .line_height_normal{
  32. line-height: normal !important;
  33. }
  34. .w100 {
  35. width: 100% !important;
  36. }
  37. .h100 {
  38. height: 100% !important;
  39. }
  40. .w135 {
  41. width: 135px !important;
  42. }
  43. .wp75 {
  44. width: 75% !important;
  45. }
  46. .wp60 {
  47. width: 60% !important;
  48. }
  49. .wp20 {
  50. width: 20% !important;
  51. }
  52. .dib {
  53. display: inline-block !important;
  54. }
  55. .red {
  56. color: #d81e06 !important;
  57. }
  58. .green {
  59. color: #49b856 !important;
  60. }
  61. .yellow {
  62. color: #FADB14 !important;
  63. }
  64. .text_align_left{
  65. text-align: left !important;
  66. }
  67. .text_align_center{
  68. text-align: center !important;
  69. }
  70. .text_align_right{
  71. text-align: right !important;
  72. }
  73. // 加载中
  74. .loadingFull {
  75. height: 100%;
  76. text-align: center;
  77. }
  78. .loading-css {
  79. width: 50px; /*先将loading区域变成正方形*/
  80. height: 50px;
  81. display: inline-block; /*将loading区域变成行内元素,防止旋转的时候,100%宽度都在旋转*/
  82. border: 3px solid #f3f3f3; /*设置四周边框大小,并将颜色设置为浅白色*/
  83. border-top: 3px solid red; /*将上边框颜色设置为红色高亮,以便旋转的时候能够看到旋转的效果*/
  84. border-radius: 50%; /*将边框和内容区域都变成圆形*/
  85. }
  86. .cur {
  87. cursor: pointer;
  88. }
  89. // flex布局
  90. .display_flex {
  91. display: flex;
  92. }
  93. /*伸缩流方向*/
  94. .flex-direction_column {
  95. flex-direction: column;
  96. }
  97. /** 垂直伸缩容器**/
  98. .col-flex {
  99. flex-flow: column wrap;
  100. }
  101. /*主轴对齐*/
  102. .justify-content_flex-center {
  103. justify-content: center;
  104. }
  105. .justify-content_flex-start {
  106. justify-content: flex-start !important;
  107. }
  108. .justify-content_flex-end {
  109. justify-content: flex-end;
  110. }
  111. .justify-content_space-between {
  112. justify-content: space-between;
  113. }
  114. .justify-content_space-around {
  115. justify-content: space-around;
  116. }
  117. .justify-content_space-evenly {
  118. justify-content: space-evenly;
  119. }
  120. /*侧轴对齐*/
  121. .align-items_flex-start {
  122. align-items: flex-start;
  123. }
  124. .align-items_flex-end {
  125. align-items: flex-end;
  126. }
  127. .align-items_center {
  128. align-items: center;
  129. }
  130. .align-items_baseline {
  131. align-items: baseline;
  132. }
  133. .align-items_space-evenly {
  134. align-items: space-evenly;
  135. }
  136. /*伸缩性*/
  137. .flex_auto {
  138. flex: auto;
  139. }
  140. .flex_1 {
  141. width: 0;
  142. flex: 1;
  143. }
  144. /*显示顺序*/
  145. .order_2 {
  146. order: 2;
  147. }
  148. .order_3 {
  149. order: 3;
  150. }
  151. .flex-wrap {
  152. flex-wrap: wrap;
  153. }
  154. .wd{
  155. word-break: break-all;
  156. }
  157. .fl {
  158. float: left !important;
  159. }
  160. .fr {
  161. float: right !important;
  162. }
  163. .ellipsis-multiline {
  164. display: -webkit-box;
  165. -webkit-box-orient: vertical;
  166. -webkit-line-clamp: 2; /* 定义显示的行数 */
  167. overflow: hidden;
  168. text-overflow: ellipsis;
  169. }
  170. .ellipsis-oneline {
  171. overflow: hidden;
  172. text-overflow: ellipsis;
  173. white-space: nowrap;
  174. }
  175. .cursorDefault{
  176. cursor: default!important;
  177. }
  178. // list模板样式 end
  179. // button
  180. @lg-btn-height: 52px;
  181. @default-btn-height: 34px;
  182. @sm-btn-height: 28px;
  183. @mini-btn-height: 22px;
  184. .btn {
  185. border: 1px solid @primary-color;
  186. border-radius: 4px;
  187. color: #fff;
  188. cursor: pointer;
  189. &:focus {
  190. outline: none;
  191. }
  192. &.default {
  193. color: @primary-color;
  194. background: #fff;
  195. height: @default-btn-height;
  196. line-height: @default-btn-height;
  197. padding: 0 8px 24px;
  198. min-width: 80px;
  199. font-size: 14px;
  200. }
  201. &.ghost {
  202. color: #fff;
  203. background: linear-gradient(135deg, @bg-start, @bg-end);
  204. height: @default-btn-height;
  205. line-height: @default-btn-height;
  206. padding: 0 0 26px;
  207. min-width: 80px;
  208. font-size: 14px;
  209. }
  210. &.lg {
  211. height: @lg-btn-height;
  212. line-height: @lg-btn-height;
  213. }
  214. &.know {
  215. padding: 0 40px !important;
  216. }
  217. &.cancel {
  218. color: rgba(0, 0, 0, 0.25) !important;
  219. background: #f5f5f5;
  220. border: 1px solid rgba(0, 0, 0, 0.25);
  221. &:hover,
  222. &:focus {
  223. color: @primary-color !important;
  224. background: #fff;
  225. border-color: @primary-color;
  226. }
  227. }
  228. &[disabled] {
  229. color: rgba(0, 0, 0, 0.25);
  230. background: #f5f5f5;
  231. cursor: not-allowed;
  232. border: 1px solid rgba(0, 0, 0, 0.25);
  233. }
  234. .clearfixer :after {
  235. content: "";
  236. display: block;
  237. clear: both;
  238. height: 0;
  239. }
  240. }
  241. // 可点击
  242. .clickable{
  243. text-decoration: underline;
  244. cursor: pointer
  245. }
  246. // list模板样式 start
  247. .list-template {
  248. padding: 8px;
  249. nz-range-picker {
  250. width: 373px!important;
  251. }
  252. .list-template__content {
  253. .list-template__tab{
  254. height: 44px;
  255. display: flex;
  256. align-items: center;
  257. border-bottom: 1px solid #D9D9D9;
  258. .list-template__tabItem{
  259. width: 148px;
  260. height: 100%;
  261. display: flex;
  262. justify-content: center;
  263. align-items: center;
  264. cursor: pointer;
  265. &.active{
  266. color: @primary-color;
  267. position: relative;
  268. &::after{
  269. content: '';
  270. width: 100%;
  271. height: 2px;
  272. background-color: @primary-color;
  273. position: absolute;
  274. left: 0;
  275. bottom: -1px;
  276. }
  277. }
  278. }
  279. }
  280. .list-template__top {
  281. display: flex;
  282. justify-content: space-between;
  283. align-items: center;
  284. padding: 16px 0;
  285. position: relative;
  286. overflow: hidden;
  287. z-index: 2;
  288. .list-template__searchBox {
  289. display: flex;
  290. align-items: center;
  291. flex-wrap: wrap;
  292. row-gap: 16px;
  293. .list-template__searchItem {
  294. .label {
  295. margin-left: 16px;
  296. color: #333;
  297. display: inline-block;
  298. width: 70px;
  299. text-align-last: justify;
  300. text-align: justify;
  301. &.label--big {
  302. width: 100px;
  303. }
  304. }
  305. .formItem {
  306. width: 135px;
  307. }
  308. }
  309. }
  310. .list-template__btns {
  311. display: flex;
  312. justify-content: flex-end;
  313. align-items: center;
  314. flex-wrap: wrap;
  315. row-gap: 8px;
  316. .dropdown{
  317. position: relative;
  318. .dropdown-content {
  319. position: absolute;
  320. left: 8px;
  321. background-color: #fff;
  322. width: 80px;
  323. box-shadow: 0px 0px 4px 1px #D9D9D9;
  324. z-index: 999;
  325. border-radius: 4px;
  326. border: 1px solid rgba(0,0,0,0.15);
  327. color: rgba(0,0,0,0.65);
  328. }
  329. .dropdown-content .dropdownItem {
  330. padding: 4px 0;
  331. text-align: center;
  332. cursor: pointer;
  333. }
  334. .dropdown-content .dropdownItem:hover {
  335. background-color: #e9f7e9;
  336. }
  337. }
  338. }
  339. }
  340. .list-template__checkBoxes {
  341. height: 38px;
  342. border-top: 1px solid #e5e9ed;
  343. display: flex;
  344. align-items: center;
  345. }
  346. .list-template__chart {
  347. display: flex;
  348. .echarts{
  349. flex: 1;
  350. margin-right: 8px;
  351. border: 1px solid #e8e8e8;
  352. margin-bottom: 8px;
  353. &:last-of-type{
  354. margin-right: 0;
  355. }
  356. .echart-head{
  357. height: 46px;
  358. padding: 0 24px;
  359. display: flex;
  360. align-items: center;
  361. font-size: 16px;
  362. font-weight: bold;
  363. position: relative;
  364. &:before{
  365. content: '';
  366. width: 10px;
  367. height: 10px;
  368. border-radius: 50%;
  369. background-color: @primary-color;
  370. position: absolute;
  371. top: 50%;
  372. left: 8px;
  373. transform: translateY(-50%);
  374. }
  375. }
  376. .echart{
  377. height: 250px;
  378. }
  379. }
  380. }
  381. .list-template__bottom {
  382. background: #f9fafb;
  383. border: 1px solid #e5e9ed;
  384. border-radius: 8px;
  385. padding-bottom: 56px;
  386. position: relative;
  387. .list-template__nzTable {
  388. padding: 16px 16px 0;
  389. .thead {
  390. background-image: linear-gradient(to right, @bg-start, @bg-end);
  391. th {
  392. background: transparent;
  393. color: #fff;
  394. text-align: center;
  395. }
  396. }
  397. .ant-table-body {
  398. border-bottom: 1px solid #e5e9ed;
  399. }
  400. .ant-table-tbody {
  401. tr {
  402. text-align: center;
  403. color: #333;
  404. td {
  405. border: none;
  406. &.tab_hover:hover{
  407. text-decoration: underline;
  408. cursor: pointer;
  409. }
  410. .coop {
  411. button{
  412. color: #333;
  413. }
  414. span,button {
  415. display: inline-block;
  416. padding: 0 8px;
  417. cursor: pointer;
  418. position: relative;
  419. &::after {
  420. content: "|";
  421. position: absolute;
  422. top: 0;
  423. right: 0;
  424. }
  425. &:hover,
  426. &:active {
  427. color: @primary-color;
  428. }
  429. &:nth-last-child(1) {
  430. &::after {
  431. content: "";
  432. }
  433. }
  434. }
  435. }
  436. }
  437. }
  438. }
  439. }
  440. .list-template__pagination {
  441. height: 56px;
  442. display: flex;
  443. align-items: center;
  444. position: absolute;
  445. right: 8px;
  446. }
  447. }
  448. }
  449. }
  450. // list模板样式 end
  451. @keyframes arrow_move {
  452. /* 开始状态 */
  453. 0% {
  454. left: 140px;
  455. }
  456. /* 结束状态 */
  457. 100% {
  458. left: 150px;
  459. }
  460. }
  461. .wordBreak{
  462. word-break: break-all;
  463. }