mixin.less 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327
  1. // 公共的mixin混入(可以把重复的样式封装为mixin 混入到复用的地方)
  2. // .iconBg(@width: 3rem, @height: 3rem, @bgUrl: 'icons.png') {
  3. // /*图片背景,大小作为参数传递,默认是30*30*/
  4. // display: inline-block;
  5. // width: @width;
  6. // height: @height;
  7. // cursor: pointer;
  8. // background-image: url('../images/@{bgUrl}');
  9. // background-color: transparent;
  10. // }
  11. .position(@position: static, @top: auto, @right: auto, @bottom: auto, @left: auto) {
  12. // 定位方式
  13. position: @position;
  14. top: @top;
  15. right: @right;
  16. bottom: @bottom;
  17. left: @left;
  18. }
  19. .boxShadow(@color, @xWdh, @yWdh, @wdh) {
  20. box-shadow: @color @xWdh @yWdh @wdh;
  21. -webkit-box-shadow: @color @xWdh @yWdh @wdh;
  22. -moz-box-shadow: @color @xWdh @yWdh @wdh;
  23. }
  24. .link-colors(@normal: @black-color, @hover-color: @hover-color, @visited: @black-color) {
  25. /*a标签经过以及访问颜色变化混合器*/
  26. color: @normal;
  27. &:hover {
  28. color: @hover-color;
  29. }
  30. &:visited {
  31. color: @visited;
  32. }
  33. }
  34. .rounded-corners(@border-radius: 5px, @border-radius1: @border-radius, @border-radius2: @border-radius, @border-radius3: @border-radius) {
  35. /*圆角兼容性*/
  36. -moz-border-radius: @border-radius @border-radius1 @border-radius2 @border-radius3;
  37. -webkit-border-radius: @border-radius @border-radius1 @border-radius2 @border-radius3;
  38. border-radius: @border-radius @border-radius1 @border-radius2 @border-radius3;
  39. }
  40. // 线性渐变
  41. .linearGradient(@point, @start, @stop) {
  42. background-color: @stop;
  43. background: linear-gradient(@point, @start, @stop);
  44. background: -moz-linear-gradient(@point, @start, @stop);
  45. background: -webkit-linear-gradient(@point, @start, @stop);
  46. }
  47. .transition-animation(@property: all, @duration: 0.2s, @timing-function: linear) {
  48. /*过渡动画*/
  49. transition: @property @duration @timing-function;
  50. -webkit-transition: @property @duration @timing-function;
  51. -moz-transition: @property @duration @timing-function;
  52. }
  53. .borderStyle(@width: 1px, @style: solid, @color: #181d1f) {
  54. border: @width @style @color;
  55. }
  56. .resetElement(@border: 0, @background: transparent, @radius: 0) {
  57. border: @border;
  58. background-color: @background;
  59. border-radius: @radius;
  60. }
  61. /* 定制宽高按钮 */
  62. .btn(@width: @width, @height: @height) {
  63. width: @width;
  64. height: @height;
  65. line-height: @height;
  66. cursor: pointer;
  67. }
  68. // flex弹性布局兼容性
  69. .flex {
  70. display: -webkit-box; /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */
  71. display: -moz-box; /* Firefox 17- */
  72. display: -webkit-flex; /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */
  73. display: -moz-flex; /* Firefox 18+ */
  74. display: -ms-flexbox; /* IE 10 */
  75. display: flex; /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */
  76. }
  77. // 行内flex 弹性布局兼容性
  78. .inlineflex {
  79. display: -webkit-inline-box; /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */
  80. display: -moz-inline-box; /* Firefox 17- */
  81. display: -webkit-inline-flex; /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */
  82. display: -moz-inline-flex; /* Firefox 18+ */
  83. display: -ms-inline-flexbox; /* IE 10 */
  84. display: inline-flex; /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */
  85. }
  86. // 行内元素span强转块元素
  87. .specailSpan(@width: 50%, @height: 2.6rem) {
  88. display: inline-block;
  89. text-align: center;
  90. float: left;
  91. width: @width;
  92. height: @height;
  93. line-height: @height;
  94. cursor: pointer;
  95. }
  96. .inputStyle(@height: 2.8rem, @fontSize: 1.3rem) {
  97. height: @height;
  98. line-height: @height;
  99. border-color: @money-border-color;
  100. color: @black-color;
  101. font-size: @fontSize;
  102. @if @skin == 'black' {
  103. background-color: transparent;
  104. } @else if @skin == 'white' {
  105. background-color: @white-color;
  106. }
  107. }
  108. .ellipse {
  109. // 一行显示,超过显示省略号
  110. white-space: nowrap;
  111. text-overflow: ellipsis;
  112. overflow: hidden;
  113. }
  114. .dateInputStyle(@width: 12rem, @height: 2.2rem, @fontSize: 1.3rem) {
  115. width: @width;
  116. height: @height;
  117. line-height: @height;
  118. @if @skin == 'black' {
  119. background-color: transparent;
  120. } @else if @skin == 'white' {
  121. background-color: @white-color;
  122. }
  123. border-color: @money-border-color;
  124. font-size: @fontSize;
  125. }
  126. .submitBtnStyle(@width: 12rem, @height: 2.8rem, @fontSize: 1.4rem, @rounded: 2px) {
  127. width: @width;
  128. height: @height;
  129. line-height: @height;
  130. padding: 0;
  131. color: @white-color;
  132. background-color: @hover-color;
  133. border-color: @hover-color;
  134. font-size: @fontSize;
  135. .rounded-corners(@rounded);
  136. }
  137. .resetBtnStyle(@width: 7rem, @height: 2.2rem, @fontSize: 1.3rem, @rounded: 2px) {
  138. width: @width;
  139. height: @height;
  140. line-height: @height;
  141. padding: 0;
  142. color: @hover-color;
  143. background-color: transparent;
  144. border-color: @hover-color;
  145. font-size: @fontSize;
  146. .rounded-corners(@rounded);
  147. }
  148. .ant-input {
  149. &::placeholder {
  150. color: @m-grey10;
  151. }
  152. }
  153. .commonInput {
  154. background: @m-grey21;
  155. border: 1px solid @m-grey14;
  156. border-radius: 3px;
  157. color: #E5E5E5;
  158. .ant-input {
  159. color: #E5E5E5;
  160. background: transparent;
  161. }
  162. .ant-input-suffix {
  163. color: #E5E5E5;
  164. }
  165. &:hover, &:focus {
  166. border-color:#0C95FF;
  167. }
  168. }
  169. .tableConditionInput {
  170. width: 140px;
  171. height: 30px;
  172. line-height: 30px;
  173. background: @m-grey9;
  174. .rounded-corners(3px);
  175. border: 0;
  176. color: @m-white1;
  177. font-size: 14px;
  178. }
  179. .tableConditionInput+.tableConditionInput {
  180. margin-left: 10px;
  181. }
  182. .ant-select-dropdown {
  183. background: #424E59;
  184. border: 1px solid #48545F;
  185. box-shadow: 0px 10px 10px 0px rgba(18, 22, 24, 0.36);
  186. border-radius: 5px;
  187. .ant-select-item {
  188. color:@m-grey1;
  189. }
  190. .ant-select-item-option-active,.ant-select-item-option-selected,.ant-select-item-option-hover {
  191. background: @m-blue0;
  192. color: @m-white1;
  193. }
  194. }
  195. // 上面表格样式
  196. .topTable {
  197. .ant-table {
  198. width: 100%;
  199. table {
  200. border: 0;
  201. }
  202. .ant-table-thead {
  203. tr {
  204. box-shadow: 0px 1px 0px 0px #2E3539;
  205. th {
  206. line-height: 34px;
  207. background: @m-black8;
  208. padding-top: 0;
  209. padding-bottom: 0;
  210. color: @m-grey17;
  211. font-size: 14px;
  212. border-right: 1px solid @m-black9;
  213. border-bottom: 1px solid @m-black9;
  214. white-space: nowrap;
  215. text-overflow: ellipsis;
  216. overflow: hidden;
  217. }
  218. }
  219. }
  220. .ant-table-tbody {
  221. tr {
  222. td {
  223. height: 34px;
  224. line-height: 34px;
  225. padding: 0 8px;
  226. border-right: 1px solid @m-black9;
  227. border-bottom: 1px solid @m-black9;
  228. font-size: 16px;
  229. color: @m-white1;
  230. white-space: nowrap;
  231. text-overflow: ellipsis;
  232. overflow: hidden;
  233. }
  234. }
  235. tr.ant-table-expanded-row:hover { //tr.ant-table-expanded-row,
  236. td {
  237. background-color: @m-blue3;
  238. }
  239. }
  240. tr.ant-table-expanded-row {
  241. td {
  242. text-align: right;
  243. }
  244. }
  245. }
  246. .ant-table-placeholder {
  247. border: 0;
  248. background: @m-black2;
  249. }
  250. }
  251. .ant-table-row-expand-icon {
  252. border-color: @m-grey17;
  253. background-color: transparent;
  254. color: @m-grey17;
  255. }
  256. }
  257. // 弹窗表格
  258. .dialogTable {
  259. .ant-table {
  260. width: 100%;
  261. background: transparent;
  262. table {
  263. border: 1px solid @m-grey20;
  264. border-radius: 0;
  265. }
  266. .ant-table-thead {
  267. tr {
  268. box-shadow: 0px 1px 0px 0px #2E3539;
  269. th {
  270. line-height: 36px;
  271. background: @m-grey11;
  272. padding-top: 0;
  273. padding-bottom: 0;
  274. color: @m-grey2;
  275. font-size: 16px;
  276. border-right: 1px solid @m-grey20;
  277. border-bottom: 1px solid @m-grey20;
  278. white-space: nowrap;
  279. text-overflow: ellipsis;
  280. overflow: hidden;
  281. }
  282. }
  283. }
  284. .ant-table-tbody {
  285. tr {
  286. td {
  287. height: 36px;
  288. line-height: 36px;
  289. padding: 0 8px;
  290. border-right: 1px solid @m-grey20;
  291. border-bottom: 1px solid @m-grey20;
  292. font-size: 14px;
  293. color: @m-white1;
  294. white-space: nowrap;
  295. text-overflow: ellipsis;
  296. overflow: hidden;
  297. background: @m-grey11;
  298. }
  299. }
  300. }
  301. .ant-table-placeholder {
  302. border: 0;
  303. background: @m-grey11;
  304. }
  305. }
  306. }
  307. .ant-empty-normal {
  308. color: @m-grey17;
  309. }
  310. .ant-empty-img-simple-path,.ant-empty-img-simple-ellipse {
  311. fill: @m-grey17;
  312. }
  313. .ant-empty-img-simple-g {
  314. stroke: @m-grey17;
  315. }
  316. .ant-modal-wrap {
  317. overflow: hidden;
  318. }
  319. .add-custom,.commonModal {
  320. top: 0;
  321. max-height: 100%;
  322. padding-bottom: 0;
  323. .ant-modal-content {
  324. background: #0F1A25;
  325. border-radius: 5px;
  326. height: 100%;
  327. .ant-modal-close {
  328. .ant-modal-close-x {
  329. width: 40px;
  330. height: 40px;
  331. line-height: 40px;
  332. .ant-modal-close-icon {
  333. color: #1271BA;
  334. }
  335. }
  336. }
  337. .ant-modal-header {
  338. height: 40px;
  339. background: linear-gradient(0deg, #112C43, #084258);
  340. border-radius: 5px;
  341. padding: 0;
  342. text-align: center;
  343. border-bottom: 0;
  344. .ant-modal-title {
  345. line-height: 40px;
  346. font-size: 16px;
  347. color: @m-white0;
  348. }
  349. }
  350. .ant-modal-body {
  351. min-height: 380px;
  352. max-height: calc(100vh - 115px);
  353. overflow-y: auto;
  354. }
  355. .ant-modal-footer {
  356. border-top: 0;
  357. text-align: center;
  358. padding-bottom: 31px;
  359. height: 75px;
  360. .ant-btn-primary {
  361. width: 200px;
  362. height: 34px;
  363. line-height: 32px;
  364. border: 0;
  365. background: linear-gradient(0deg, @m-blue8 0%, @m-blue9 100%);
  366. border-radius: 3px;
  367. font-size: 16px;
  368. color: @m-white0;
  369. &:hover {
  370. background: linear-gradient(0deg, @m-blue8-hover 0%, @m-blue9-hover 100%);
  371. color: @m-white0-hover;
  372. }
  373. }
  374. .ant-btn.cancelBtn {
  375. width: 200px;
  376. height: 34px;
  377. line-height: 32px;
  378. border: 1px solid @m-blue10;
  379. border-radius: 3px;
  380. background: transparent;
  381. font-size: 16px;
  382. color: @m-blue10;
  383. margin-right: 20px;
  384. &:hover {
  385. border-color: rgba(@m-blue10, .8);
  386. }
  387. }
  388. }
  389. }
  390. }
  391. .ant-form.inlineForm {
  392. .ant-row.ant-form-item {
  393. margin-bottom: 21px;
  394. .ant-form-item-label {
  395. position: relative;
  396. width: 130px;
  397. line-height: 30px;
  398. text-align: left;
  399. label {
  400. color: @m-grey1;
  401. padding-left: 16px;
  402. &::after {
  403. content: ''
  404. }
  405. &::before {
  406. .position(absolute, 0, auto, auto, 0);
  407. font-size: 16px;
  408. line-height: 21px;
  409. color: @m-red1;
  410. }
  411. label {
  412. padding-left: 0;
  413. }
  414. }
  415. }
  416. .ant-form-item-control-wrapper {
  417. .ant-form-item-control {
  418. line-height: 30px;
  419. }
  420. }
  421. }
  422. .relative.ant-form-item {
  423. position: relative;
  424. // .itemTip {
  425. // position: absolute;
  426. // color: @m-grey1;
  427. // }
  428. .tip {
  429. position: absolute;
  430. font-size: 14px;
  431. color: @m-grey1;
  432. width: 100%;
  433. // div:nth-child(2){
  434. // margin-top: -10px;
  435. // }
  436. }
  437. .ant-form-item-control {
  438. width: 200px;
  439. .unit {
  440. float: right;
  441. color: @m-grey2;
  442. }
  443. }
  444. }
  445. .tc.ant-form-item {
  446. .ant-form-item-control-wrapper {
  447. margin: 0 auto;
  448. }
  449. }
  450. .pl40.ant-form-item {
  451. .ant-form-item-label {
  452. label {
  453. padding-left: 40px;
  454. }
  455. }
  456. }
  457. }
  458. .ant-select-single {
  459. .ant-select-selector {
  460. height: 30px;
  461. padding: 0 8px;
  462. background: @m-grey21;
  463. border: 1px solid #0C95FF;
  464. border-radius: 3px;
  465. color: #E5E5E5;
  466. }
  467. .ant-select-arrow {
  468. right: 8px;
  469. color: #3A87F7;
  470. }
  471. }
  472. .inlineFormSelect.ant-select-single {
  473. .rounded-corners(3px);
  474. border: 1px solid #2B3F52;
  475. &:hover, &:focus {
  476. border-color:#0C95FF;
  477. }
  478. .ant-select-selector {
  479. height: 30px;
  480. padding: 0 8px;
  481. background: @m-grey21;
  482. border: 0;
  483. color: #E5E5E5;
  484. .ant-select-selection-placeholder {
  485. color: @m-grey10;
  486. }
  487. }
  488. .ant-select-arrow {
  489. right: 8px;
  490. color: #3A87F7 !important;
  491. }
  492. }
  493. .shortSelect.ant-select-single:extend(.inlineFormSelect.ant-select-single) {
  494. margin-right: 0;
  495. .ant-select-selector {
  496. padding: 0 5px;
  497. .ant-select-selection-item {
  498. padding-right: 14px;
  499. }
  500. }
  501. }
  502. .typeSelect.ant-select-single {
  503. .rounded-corners(3px);
  504. border: 1px solid #2B3F52;
  505. &:hover, &:focus {
  506. border-color:#0C95FF;
  507. }
  508. .ant-select-selector {
  509. height: 30px;
  510. padding: 0 8px;
  511. background: @m-grey21;
  512. border: 0;
  513. color: #E5E5E5;
  514. .ant-select-selection-placeholder {
  515. color: @m-grey10;
  516. }
  517. }
  518. .ant-select-arrow {
  519. right: 8px;
  520. color: @m-blue0;
  521. }
  522. }
  523. .dialogInput {
  524. background: @m-grey21;
  525. border: 1px solid @m-grey14;
  526. border-radius: 3px;
  527. color: #E5E5E5;
  528. .ant-input {
  529. color: #E5E5E5;
  530. background: transparent
  531. }
  532. .ant-input-suffix {
  533. color: #E5E5E5;
  534. }
  535. .ant-input-suffix {
  536. .ant-input-password-icon {
  537. color: #E5E5E5;
  538. }
  539. }
  540. &:hover,&:focus {
  541. border-color: @m-blue10;
  542. }
  543. }
  544. .suffixGrey {
  545. .ant-input-suffix {
  546. color: @m-grey2;
  547. }
  548. }
  549. .formFieldSet {
  550. border: 1px solid @m-grey19;
  551. padding: 0 20px 20px;
  552. legend {
  553. color: @m-white0;
  554. }
  555. }
  556. .formFieldSet+.formFieldSet {
  557. margin-top: 35px;
  558. }
  559. .ant-form {
  560. legend {
  561. width: auto;
  562. margin-left: 20px;
  563. font-size: 16px;
  564. color: @m-white0;
  565. border-bottom: 0;
  566. padding: 0 10px;
  567. }
  568. }
  569. .paddingDialog,.fieldsetDialog {
  570. .formFieldSet {
  571. legend {
  572. width: auto;
  573. margin-left: 20px;
  574. font-size: 16px;
  575. color: @m-white0;
  576. border-bottom: 0;
  577. padding: 0 10px;
  578. }
  579. }
  580. }
  581. .paddingDialog {
  582. .ant-modal-content {
  583. .ant-modal-body {
  584. padding: 24px;
  585. }
  586. }
  587. }
  588. // 上传
  589. .upload {
  590. display: inline-flex;
  591. .ant-btn.uploadBtn {
  592. width: 60px;
  593. height: 30px;
  594. background: @m-blue0;
  595. border: 0;
  596. padding: 0;
  597. text-align: center;
  598. font-size: 14px;
  599. color: @m-white0;
  600. .rounded-corners(3px);
  601. &:hover {
  602. background: rgba(@m-blue0, 0.8);
  603. color: rgba(@m-white0, 0.8);
  604. }
  605. }
  606. .ant-upload-list-item-info {
  607. .anticon-loading,.anticon-paper-clip {
  608. color: @m-white0;
  609. }
  610. .ant-upload-list-item-name {
  611. color: @m-white0;
  612. }
  613. .ant-upload-list-item-card-actions {
  614. .anticon {
  615. color: @m-white0;
  616. }
  617. }
  618. &:hover {
  619. background: transparent;
  620. .anticon-loading,.anticon-paper-clip {
  621. color: @m-blue0;
  622. }
  623. .ant-upload-list-item-name {
  624. color: @m-blue0;
  625. }
  626. .ant-upload-list-item-card-actions {
  627. .anticon {
  628. color: @m-blue0;
  629. }
  630. }
  631. }
  632. }
  633. .look {
  634. color: @m-blue0;
  635. font-size: 14px;
  636. margin-left: 10px;
  637. cursor: pointer;
  638. }
  639. }
  640. .fl {
  641. float: left;
  642. }
  643. .fr {
  644. float: right;
  645. }
  646. .ml10 {
  647. margin-left: 10px;
  648. }
  649. .ml9 {
  650. margin-left: 9px;
  651. }
  652. .ml5{
  653. margin-left: 5px;
  654. }
  655. .mt5 {
  656. margin-top: 5px;
  657. }
  658. .mt10 {
  659. margin-top: 10px;
  660. }
  661. .mt20 {
  662. margin-top: 20px;
  663. }
  664. .mt30 {
  665. margin-top: 30px;
  666. }
  667. .mb40 {
  668. margin-bottom: 40px !important;
  669. }
  670. .grey {
  671. color: @m-grey2;
  672. }
  673. .white {
  674. color: @m-white0;
  675. }
  676. .blue {
  677. color: @m-blue0;
  678. }
  679. .green {
  680. color: @m-green0;
  681. }
  682. .yellow {
  683. color: @m-yellow0;
  684. }
  685. .orange {
  686. color: @m-orange0;
  687. }
  688. .selectBtn.ant-btn {
  689. margin-left: 10px;
  690. width: 80px;
  691. height: 30px;
  692. line-height: 31px;
  693. text-align: center;
  694. background: linear-gradient(0deg, @m-grey15 0%, @m-grey16 98%);
  695. border: 0;
  696. color: @m-white0;
  697. font-size: 14px;
  698. .rounded-corners(3px);
  699. &:hover,
  700. &:focus {
  701. background: linear-gradient(0deg, @m-grey15-hover 0%, @m-grey16-hover 98%);
  702. color: rgba(@m-white0, 0.8);
  703. border: 0;
  704. }
  705. }
  706. .btnPrimary.ant-btn,.operBtn.ant-btn {
  707. margin-left: 10px;
  708. width: auto;
  709. min-width: 80px;
  710. height: 30px;
  711. line-height: 31px;
  712. text-align: center;
  713. background: linear-gradient(0deg, @m-blue6 0%, @m-blue7 99%);
  714. border: 0;
  715. color: @m-white0;
  716. font-size: 14px;
  717. .rounded-corners(3px);
  718. &:hover,
  719. &:focus {
  720. background: linear-gradient(0deg, @m-blue6-hover 0%, @m-blue7-hover 99%);
  721. color: rgba(@m-white0, 0.8);
  722. border: 0;
  723. }
  724. }
  725. .operBtn.ant-btn {
  726. margin-top: 9px;
  727. margin-bottom: 6px;
  728. }
  729. .ant-table-expanded-row {
  730. .btn-list {
  731. padding-right: 10px;
  732. text-align: right;
  733. }
  734. .btnPrimary.ant-btn {
  735. width: 80px;
  736. height: 26px;
  737. line-height: 27px;
  738. border: 0;
  739. background: linear-gradient(0deg, @m-blue2, @m-blue0);
  740. box-shadow: -1px 0px 0px 0px @m-black10;
  741. .rounded-corners(3px);
  742. &:hover,
  743. &:focus {
  744. background: linear-gradient(0deg, @m-blue2-hover 0%, @m-blue0-hover 99%);
  745. color: rgba(@m-white0, 0.8);
  746. border: 0;
  747. }
  748. }
  749. .ant-btn+.ant-btn {
  750. margin-left: 10px;
  751. }
  752. }
  753. .btnDanger.ant-btn{
  754. margin-left: 10px;
  755. width: 80px;
  756. height: 26px;
  757. line-height: 27px;
  758. text-align: center;
  759. border: 0;
  760. color: @m-white0;
  761. font-size: 14px;
  762. background: linear-gradient(0deg, @m-red0 0%, @m-red1 99%);
  763. .rounded-corners(3px);
  764. &:hover,
  765. &:focus {
  766. background: linear-gradient(0deg, @m-red0-hover 0%, @m-red1-hover 99%);
  767. color: rgba(@m-white0, 0.8);
  768. border: 0;
  769. }
  770. }
  771. .btnDeafault.ant-btn {
  772. margin-left: 10px;
  773. width: 80px;
  774. height: 26px;
  775. line-height: 27px;
  776. text-align: center;
  777. border: 0;
  778. color: @m-white0;
  779. font-size: 14px;
  780. background: linear-gradient(0deg, @m-grey12 0%, @m-grey13 100%);
  781. .rounded-corners(3px);
  782. &:hover,
  783. &:focus {
  784. background: linear-gradient(0deg, @m-grey12-hover 0%, @m-grey13-hover 99%);
  785. color: rgba(@m-white0, 0.8);
  786. border: 0;
  787. }
  788. }
  789. // .hiddenFirstCol {
  790. // .ant-table {
  791. // .ant-table-content {
  792. // .ant-table-scroll {
  793. // .ant-table-hide-scrollbar {
  794. // .ant-table-fixed {
  795. // .ant-table-thead {
  796. // .ant-table-expand-icon-th {
  797. // width: 0 !important;
  798. // }
  799. // }
  800. // }
  801. // }
  802. // }
  803. // .ant-table-body {
  804. // table {
  805. // .ant-table-thead {
  806. // .ant-table-expand-icon-th {
  807. // width: 0 !important;
  808. // }
  809. // }
  810. // .ant-table-tbody {
  811. // .ant-table-row {
  812. // .ant-table-row-expand-icon-cell {
  813. // width: 0 !important;
  814. // }
  815. // }
  816. // tr.ant-table-expanded-row {
  817. // td:first-child {
  818. // width: 0 !important;
  819. // }
  820. // }
  821. // }
  822. // }
  823. // }
  824. // }
  825. // }
  826. // }
  827. .to {
  828. font-size: 14px;
  829. color: @m-grey2;
  830. margin-left: -8px;
  831. margin-right: 2px;
  832. }
  833. .filterTable {
  834. display: inline-flex;
  835. width: calc(100% - 3px);
  836. padding-left: 3px;
  837. }
  838. .ant-row.dialogRowTitle {
  839. margin-left: 0 !important;
  840. margin-right: 0 !important;
  841. border: 1px solid @m-grey20;
  842. .ant-col {
  843. border-top: 1px solid @m-grey20;
  844. border-right: 1px solid @m-grey20;
  845. padding-left: 0 !important;
  846. padding-right: 0 !important;
  847. height: 34px;
  848. line-height: 34px;
  849. font-size: 16px;
  850. color: @m-grey2;
  851. .red {
  852. color: @m-red1;
  853. }
  854. }
  855. .ant-col:nth-child(1),.ant-col:nth-child(2),.ant-col:nth-child(3),.ant-col:nth-child(4){
  856. border-top: 0;
  857. text-align: center;
  858. }
  859. .ant-col:last-child {
  860. border-right: 1px solid @m-grey20;
  861. }
  862. .bt1 {
  863. border-top: 1px solid @m-grey20 !important;
  864. }
  865. }
  866. // 日期输入框 @m-grey21
  867. .commonPicker.ant-calendar-picker {
  868. .ant-input {
  869. background: @m-grey21;
  870. border-color: @m-grey14;
  871. padding: 4px 8px;
  872. .rounded-corners(3px);
  873. .ant-calendar-range-picker-input {
  874. color: @m-white0;
  875. font-size: 14px;
  876. &::placeholder {
  877. color: @m-grey10;
  878. }
  879. }
  880. .ant-calendar-picker-clear {
  881. background: @m-white0;
  882. }
  883. .ant-calendar-range-picker-separator {
  884. font-size: 14px;
  885. color: @m-grey2;
  886. }
  887. }
  888. }
  889. .ant-popover {
  890. .ant-popover-content {
  891. border: 1px solid @m-grey22;
  892. .rounded-corners(5px);
  893. .ant-popover-arrow {
  894. border-top-color: @m-grey22;
  895. border-left-color: @m-grey22;
  896. }
  897. .ant-popover-inner {
  898. .ant-popover-inner-content {
  899. border-image-width: 0;
  900. background: @m-grey22;
  901. color: @m-white0;
  902. padding: 5px 15px;
  903. &:hover {
  904. color: @m-blue0;
  905. }
  906. }
  907. }
  908. }
  909. }
  910. .ant-calendar-picker-container {
  911. .ant-calendar-range {
  912. background: @m-grey22;
  913. border-color: @m-grey22;
  914. .ant-calendar-panel {
  915. .ant-calendar-date-panel {
  916. .ant-calendar-range-part {
  917. .ant-calendar-input-wrap {
  918. border-bottom-color: @m-grey23;
  919. .ant-calendar-input {
  920. background: transparent;
  921. border: 1px solid @m-grey1;
  922. color: @m-white0;
  923. &::placeholder {
  924. color: @m-grey1;
  925. }
  926. }
  927. }
  928. .ant-calendar-header {
  929. .ant-calendar-prev-year-btn,.ant-calendar-prev-month-btn {
  930. color: @m-grey1;
  931. &::before,&::after {
  932. border-color: @m-grey2;
  933. }
  934. }
  935. .ant-calendar-month-select,.ant-calendar-year-select {
  936. color: @m-grey1;
  937. }
  938. }
  939. .ant-calendar-body {
  940. border-top-color: @m-grey1;
  941. .ant-calendar-column-header-inner {
  942. color: @m-grey1;
  943. }
  944. .ant-calendar-cell {
  945. .ant-calendar-date {
  946. background: transparent;
  947. color: @m-white0;
  948. }
  949. }
  950. .ant-calendar-last-day-of-month,.ant-calendar-next-month-btn-day {
  951. .ant-calendar-date {
  952. color: @m-white1;
  953. }
  954. }
  955. .ant-calendar-disabled-cell {
  956. .ant-calendar-date {
  957. color: @m-grey1;
  958. }
  959. }
  960. .ant-calendar-selected-day {
  961. .ant-calendar-date {
  962. color: @m-blue0;
  963. }
  964. }
  965. .ant-calendar-active-week {
  966. .ant-calendar-cell {
  967. .ant-calendar-date {
  968. background: transparent;
  969. }
  970. }
  971. }
  972. }
  973. }
  974. .ant-calendar-range-middle {
  975. color: @m-white1;
  976. }
  977. }
  978. }
  979. .ant-calendar-footer {
  980. border-top-color: @m-grey1;
  981. .ant-calendar-time-picker-btn {
  982. color: @m-grey1;
  983. }
  984. .ant-calendar-ok-btn {
  985. background-color: @m-blue0;
  986. border-color: @m-blue0;
  987. color: @m-white0;
  988. &:hover {
  989. background-color: @m-blue0-hover;
  990. border-color: @m-blue0-hover;
  991. color: @m-white0-hover;
  992. }
  993. }
  994. }
  995. }
  996. }
  997. .ant-calendar-range {
  998. .ant-calendar-in-range-cell::before {
  999. background: @m-grey22-hover;
  1000. }
  1001. }
  1002. .has-error .ant-input:not(.has-error .ant-input-disabled), -has-error .ant-input:not(.has-error .ant-input-disabled), .has-error .ant-input:not(-has-error .ant-input-disabled), -has-error .ant-input:not(-has-error .ant-input-disabled) {
  1003. background: @m-grey21;
  1004. }
  1005. .ant-modal-confirm-confirm {
  1006. top: 50%;
  1007. padding-bottom: 0;
  1008. margin-top: -64px;
  1009. .ant-modal-content {
  1010. background: @m-grey11;
  1011. .ant-modal-close {
  1012. .ant-modal-close-x {
  1013. width: 40px;
  1014. height: 40px;
  1015. line-height: 40px;
  1016. .ant-modal-close-icon {
  1017. color: @m-blue11;
  1018. }
  1019. }
  1020. }
  1021. .ant-modal-body {
  1022. padding: 24px;
  1023. .ant-modal-confirm-body-wrapper {
  1024. .ant-modal-confirm-body {
  1025. .ant-modal-confirm-title {
  1026. color: @m-white0;
  1027. text-align: center;
  1028. }
  1029. }
  1030. .ant-modal-confirm-btns {
  1031. float: none;
  1032. text-align: center;
  1033. .ant-btn {
  1034. width: 100px;
  1035. height: 34px;
  1036. line-height: 32px;
  1037. border: 1px solid @m-blue10;
  1038. border-radius: 3px;
  1039. background: transparent;
  1040. font-size: 16px;
  1041. color: @m-blue10;
  1042. margin-right: 20px;
  1043. &:hover {
  1044. border-color: rgba(@m-blue10, .8);
  1045. }
  1046. }
  1047. .ant-btn-primary {
  1048. margin-left: 20px;
  1049. width: 100px;
  1050. height: 34px;
  1051. line-height: 32px;
  1052. border: 0;
  1053. background: linear-gradient(0deg, @m-blue8 0%, @m-blue9 100%);
  1054. border-radius: 3px;
  1055. font-size: 16px;
  1056. color: @m-white0;
  1057. &:hover {
  1058. background: linear-gradient(0deg, @m-blue8-hover 0%, @m-blue9-hover 100%);
  1059. color: @m-white0-hover;
  1060. }
  1061. }
  1062. }
  1063. }
  1064. }
  1065. }
  1066. }
  1067. .tltLeft {
  1068. font-size: 16px;
  1069. text-align: left;
  1070. .icon {
  1071. font-size: 20px;
  1072. fill: @m-blue0;
  1073. margin-right: 10px;
  1074. }
  1075. }
  1076. .ant-collapse.spotCollapse.ant-collapse-borderless {
  1077. margin-top: 10px;
  1078. background-color: transparent;
  1079. .ant-collapse-item {
  1080. border-bottom: 0;
  1081. .ant-collapse-header {
  1082. color: @m-grey17;
  1083. font-size: 14px;
  1084. border-bottom: 1px solid @m-grey18;
  1085. padding: 10px 8px 10px 44px;
  1086. height: 43px;
  1087. .ant-collapse-arrow {
  1088. fill: @m-grey17;
  1089. width: 16px;
  1090. height: 16px;
  1091. font-size: 16px;
  1092. left: 0;
  1093. }
  1094. }
  1095. .ant-collapse-content {
  1096. .ant-collapse-content-box {
  1097. padding: 0 0 0 30px;
  1098. background-color: transparent;
  1099. .ant-row.contRow {
  1100. width: 100%;
  1101. height: 40px;
  1102. line-height: 40px;
  1103. font-size: 16px;
  1104. color: @m-white1;
  1105. margin-bottom: 10px;
  1106. background: #0f161c;
  1107. border: 1px solid #172b56;
  1108. border-radius: 3px;
  1109. padding-left: 14px;
  1110. padding-right: 12px;
  1111. .ant-col:last-child {
  1112. text-align: right;
  1113. }
  1114. .ant-col:first-child {
  1115. text-align: left;
  1116. }
  1117. }
  1118. .contRow:first-child {
  1119. margin-top: 9px;
  1120. }
  1121. .contRow:last-child {
  1122. margin-bottom: 20px;
  1123. }
  1124. }
  1125. }
  1126. }
  1127. }
  1128. .ant-collapse.busyCollapse.ant-collapse-borderless {
  1129. margin-top: 10px;
  1130. background: #0f161c;
  1131. border: 1px solid #172b56;
  1132. .rounded-corners(3px);
  1133. .ant-collapse-item {
  1134. border-bottom: 0;
  1135. .ant-collapse-header {
  1136. color: @m-grey17;
  1137. font-size: 14px;
  1138. border-bottom: 0;
  1139. padding: 0;
  1140. line-height: 43px;
  1141. .ant-collapse-arrow {
  1142. fill: @m-grey17;
  1143. width: 16px;
  1144. height: 16px;
  1145. font-size: 16px;
  1146. left: 0;
  1147. }
  1148. .ant-row.contRow {
  1149. width: 100%;
  1150. // height: 40px;
  1151. line-height: 40px;
  1152. font-size: 16px;
  1153. color: @m-white1;
  1154. margin-bottom: 10px;
  1155. // background: #0f161c;
  1156. border: 0 !important;
  1157. // border-radius: 3px;
  1158. padding-left: 14px;
  1159. padding-right: 12px;
  1160. .ant-col:last-child {
  1161. text-align: right;
  1162. }
  1163. .ant-col:first-child {
  1164. text-align: left;
  1165. }
  1166. }
  1167. .contRow:first-child {
  1168. margin-top: 0 !important;
  1169. }
  1170. .contRow:last-child {
  1171. margin-bottom: 0 !important;
  1172. }
  1173. }
  1174. .ant-collapse-content.ant-collapse-content-active {
  1175. .ant-collapse-content-box {
  1176. padding: 0 0 0 30px;
  1177. background-color: transparent;
  1178. .btn-list {
  1179. width: calc(100% - 10px);
  1180. justify-content: flex-end;
  1181. padding-right: 10px;
  1182. padding-bottom: 10px;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. }
  1188. .ant-row.headRow {
  1189. .ant-col:first-child {
  1190. text-align: left;
  1191. }
  1192. .ant-col:nth-child(3) {
  1193. text-align: right;
  1194. }
  1195. }
  1196. // 输入框自动填充背景色和字体颜色
  1197. input:-webkit-autofill,
  1198. textarea:-webkit-autofill,
  1199. select:-webkit-autofill,
  1200. .dialogInput:-webkit-autofill {
  1201. box-shadow: inset 0 0 0 1000px @m-grey21;
  1202. -webkit-text-fill-color: #e5e5e5;
  1203. }
  1204. input:-internal-autofill-selected {
  1205. background-color: @m-grey21 !important;
  1206. }
  1207. .login {
  1208. input:-webkit-autofill {
  1209. box-shadow: inset 0 0 0 1000px @m-white0;
  1210. }
  1211. }
  1212. .ant-checkbox-group.commonCheckboxGroup {
  1213. width: 100%;
  1214. .ant-checkbox-wrapper {
  1215. color: @m-white0;
  1216. font-size: 14px;
  1217. .ant-checkbox {
  1218. margin-right: 2px;
  1219. .ant-checkbox-inner {
  1220. background: #15202B;
  1221. border: 1px solid #2B3F52;
  1222. border-radius: 3px;
  1223. }
  1224. }
  1225. .ant-checkbox.ant-checkbox-checked {
  1226. .ant-checkbox-inner {
  1227. &::after {
  1228. border-color: #3A87F7;
  1229. }
  1230. }
  1231. &::after {
  1232. border-color: #3A87F7;
  1233. }
  1234. }
  1235. span+span {
  1236. margin-right: 15px;
  1237. color: @m-white0;
  1238. font-size: 14px;
  1239. }
  1240. }
  1241. .ant-checkbox-wrapper-disabled {
  1242. .ant-checkbox-disabled {
  1243. outline-color: #2B3F52;
  1244. .ant-checkbox-input {
  1245. color: @m-white0;
  1246. font-size: 14px;
  1247. }
  1248. .ant-checkbox-inner {
  1249. border-color: #2B3F52 !important;
  1250. }
  1251. }
  1252. }
  1253. }
  1254. .commonRadioGroup {
  1255. .ant-radio-wrapper {
  1256. color: @m-white0;
  1257. font-size: 14px;
  1258. .ant-radio {
  1259. .ant-radio-inner {
  1260. border-color:#3A87F7;
  1261. background: #15202B;
  1262. &::after {
  1263. left: 4px;
  1264. top: 4px;
  1265. width: 6px;
  1266. height: 6px;
  1267. background: #3A87F7;
  1268. border-radius: 50%;
  1269. }
  1270. }
  1271. }
  1272. }
  1273. .ant-radio-wrapper-disabled {
  1274. .ant-radio-disabled {
  1275. .ant-radio-inner {
  1276. border-color:#3A87F7 !important;
  1277. background: #15202B;
  1278. &::after {
  1279. left: 4px;
  1280. top: 4px;
  1281. width: 6px;
  1282. height: 6px;
  1283. background: #3A87F7;
  1284. border-radius: 50%;
  1285. }
  1286. }
  1287. }
  1288. span+span {
  1289. color: @m-white0;
  1290. font-size: 14px;
  1291. }
  1292. }
  1293. }
  1294. .tc {
  1295. text-align: center;
  1296. }
  1297. .checkboxGroupItem {
  1298. .ant-col.ant-form-item-control-wrapper {
  1299. max-width: calc(100% - 130px);
  1300. }
  1301. }
  1302. .ant-spin-container::after,.ant-drawer-content {
  1303. background-color: transparent;
  1304. }