common.less 8.2 KB

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