common.less 9.6 KB

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