mixin.less 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119
  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: #15202B;
  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. }
  252. // 弹窗表格
  253. .dialogTable {
  254. .ant-table {
  255. width: 100%;
  256. background: transparent;
  257. table {
  258. border: 1px solid @m-grey20;
  259. border-radius: 0;
  260. }
  261. .ant-table-thead {
  262. tr {
  263. box-shadow: 0px 1px 0px 0px #2E3539;
  264. th {
  265. line-height: 36px;
  266. background: @m-grey11;
  267. padding-top: 0;
  268. padding-bottom: 0;
  269. color: @m-grey2;
  270. font-size: 16px;
  271. border-right: 1px solid @m-grey20;
  272. border-bottom: 1px solid @m-grey20;
  273. white-space: nowrap;
  274. text-overflow: ellipsis;
  275. overflow: hidden;
  276. }
  277. }
  278. }
  279. .ant-table-tbody {
  280. tr {
  281. td {
  282. height: 36px;
  283. line-height: 36px;
  284. padding: 0 8px;
  285. border-right: 1px solid @m-grey20;
  286. border-bottom: 1px solid @m-grey20;
  287. font-size: 14px;
  288. color: @m-white1;
  289. white-space: nowrap;
  290. text-overflow: ellipsis;
  291. overflow: hidden;
  292. background: @m-grey11;
  293. }
  294. }
  295. }
  296. .ant-table-placeholder {
  297. border: 0;
  298. background: @m-grey11;
  299. }
  300. }
  301. }
  302. .ant-empty-normal {
  303. color: @m-grey17;
  304. }
  305. .ant-empty-img-simple-path,.ant-empty-img-simple-ellipse {
  306. fill: @m-grey17;
  307. }
  308. .ant-empty-img-simple-g {
  309. stroke: @m-grey17;
  310. }
  311. .ant-modal-wrap {
  312. overflow: hidden;
  313. }
  314. .add-custom,.commonModal {
  315. top: 0;
  316. max-height: 100%;
  317. padding-bottom: 0;
  318. .ant-modal-content {
  319. background: #0F1A25;
  320. border-radius: 5px;
  321. height: 100%;
  322. .ant-modal-close {
  323. .ant-modal-close-x {
  324. width: 40px;
  325. height: 40px;
  326. line-height: 40px;
  327. .ant-modal-close-icon {
  328. color: #1271BA;
  329. }
  330. }
  331. }
  332. .ant-modal-header {
  333. height: 40px;
  334. background: linear-gradient(0deg, #112C43, #084258);
  335. border-radius: 5px;
  336. padding: 0;
  337. text-align: center;
  338. border-bottom: 0;
  339. .ant-modal-title {
  340. line-height: 40px;
  341. font-size: 16px;
  342. color: @m-white0;
  343. }
  344. }
  345. .ant-modal-body {
  346. min-height: 380px;
  347. max-height: calc(100vh - 115px);
  348. overflow-y: auto;
  349. }
  350. .ant-modal-footer {
  351. border-top: 0;
  352. text-align: center;
  353. padding-bottom: 31px;
  354. height: 75px;
  355. .ant-btn-primary {
  356. width: 200px;
  357. height: 34px;
  358. line-height: 32px;
  359. border: 0;
  360. background: linear-gradient(0deg, @m-blue8 0%, @m-blue9 100%);
  361. border-radius: 3px;
  362. font-size: 16px;
  363. color: @m-white0;
  364. &:hover {
  365. background: linear-gradient(0deg, @m-blue8-hover 0%, @m-blue9-hover 100%);
  366. color: @m-white0-hover;
  367. }
  368. }
  369. .ant-btn.cancelBtn {
  370. width: 200px;
  371. height: 34px;
  372. line-height: 32px;
  373. border: 1px solid @m-blue10;
  374. border-radius: 3px;
  375. background: transparent;
  376. font-size: 16px;
  377. color: @m-blue10;
  378. margin-right: 20px;
  379. &:hover {
  380. border-color: rgba(@m-blue10, .8);
  381. }
  382. }
  383. }
  384. }
  385. }
  386. .ant-form.inlineForm {
  387. .ant-row.ant-form-item {
  388. margin-bottom: 21px;
  389. .ant-form-item-label {
  390. position: relative;
  391. width: 130px;
  392. line-height: 30px;
  393. text-align: left;
  394. label {
  395. color: @m-grey1;
  396. padding-left: 16px;
  397. &::after {
  398. content: ''
  399. }
  400. &::before {
  401. .position(absolute, 0, auto, auto, 0);
  402. font-size: 16px;
  403. line-height: 21px;
  404. color: @m-red1;
  405. }
  406. }
  407. }
  408. .ant-form-item-control-wrapper {
  409. .ant-form-item-control {
  410. line-height: 30px;
  411. }
  412. }
  413. }
  414. .relative.ant-form-item {
  415. position: relative;
  416. // .itemTip {
  417. // position: absolute;
  418. // color: @m-grey1;
  419. // }
  420. .tip {
  421. position: absolute;
  422. font-size: 14px;
  423. color: @m-grey1;
  424. }
  425. .ant-form-item-control {
  426. width: 200px;
  427. .unit {
  428. float: right;
  429. color: @m-grey2;
  430. }
  431. }
  432. }
  433. .tc.ant-form-item {
  434. .ant-form-item-control-wrapper {
  435. margin: 0 auto;
  436. }
  437. }
  438. }
  439. .ant-select-single {
  440. .ant-select-selector {
  441. height: 30px;
  442. padding: 0 8px;
  443. background: #15202B;
  444. border: 1px solid #0C95FF;
  445. border-radius: 3px;
  446. color: #E5E5E5;
  447. }
  448. .ant-select-arrow {
  449. right: 8px;
  450. color: #3A87F7;
  451. }
  452. }
  453. .inlineFormSelect.ant-select-single {
  454. .rounded-corners(3px);
  455. border: 1px solid #2B3F52;
  456. &:hover, &:focus {
  457. border-color:#0C95FF;
  458. }
  459. .ant-select-selector {
  460. height: 30px;
  461. padding: 0 8px;
  462. background: #15202B;
  463. border: 0;
  464. color: #E5E5E5;
  465. .ant-select-selection-placeholder {
  466. color: @m-grey10;
  467. }
  468. }
  469. .ant-select-arrow {
  470. right: 8px;
  471. color: #3A87F7 !important;
  472. }
  473. }
  474. .shortSelect.ant-select-single:extend(.inlineFormSelect.ant-select-single) {
  475. margin-right: 0;
  476. .ant-select-selector {
  477. padding: 0 5px;
  478. .ant-select-selection-item {
  479. padding-right: 14px;
  480. }
  481. }
  482. }
  483. .typeSelect.ant-select-single {
  484. .rounded-corners(3px);
  485. border: 1px solid #2B3F52;
  486. &:hover, &:focus {
  487. border-color:#0C95FF;
  488. }
  489. .ant-select-selector {
  490. height: 30px;
  491. padding: 0 8px;
  492. background: #15202B;
  493. border: 0;
  494. color: #E5E5E5;
  495. .ant-select-selection-placeholder {
  496. color: @m-grey10;
  497. }
  498. }
  499. .ant-select-arrow {
  500. right: 8px;
  501. color: @m-blue0;
  502. }
  503. }
  504. .dialogInput {
  505. background: #15202B;
  506. border: 1px solid @m-grey14;
  507. border-radius: 3px;
  508. color: #E5E5E5;
  509. .ant-input {
  510. color: #E5E5E5;
  511. background: transparent
  512. }
  513. .ant-input-suffix {
  514. color: #E5E5E5;
  515. }
  516. &:hover,&:focus {
  517. border-color: @m-blue10;
  518. }
  519. }
  520. .suffixGrey {
  521. .ant-input-suffix {
  522. color: @m-grey2;
  523. }
  524. }
  525. .formFieldSet {
  526. border: 1px solid @m-grey19;
  527. padding: 0 20px 20px;
  528. legend {
  529. color: @m-white0;
  530. }
  531. }
  532. .formFieldSet+.formFieldSet {
  533. margin-top: 35px;
  534. }
  535. .ant-form {
  536. legend {
  537. width: auto;
  538. margin-left: 20px;
  539. font-size: 16px;
  540. color: @m-white0;
  541. border-bottom: 0;
  542. padding: 0 10px;
  543. }
  544. }
  545. .paddingDialog {
  546. .ant-modal-content {
  547. .ant-modal-body {
  548. padding: 24px;
  549. }
  550. }
  551. .formFieldSet {
  552. legend {
  553. width: auto;
  554. margin-left: 20px;
  555. font-size: 16px;
  556. color: @m-white0;
  557. border-bottom: 0;
  558. padding: 0 10px;
  559. }
  560. }
  561. }
  562. // 上传
  563. .upload {
  564. display: inline-flex;
  565. .ant-btn.uploadBtn {
  566. width: 60px;
  567. height: 30px;
  568. background: @m-blue0;
  569. border: 0;
  570. padding: 0;
  571. text-align: center;
  572. font-size: 14px;
  573. color: @m-white0;
  574. .rounded-corners(3px);
  575. &:hover {
  576. background: rgba(@m-blue0, 0.8);
  577. color: rgba(@m-white0, 0.8);
  578. }
  579. }
  580. .look {
  581. color: @m-blue0;
  582. font-size: 14px;
  583. margin-left: 10px;
  584. cursor: pointer;
  585. }
  586. }
  587. .ml10 {
  588. margin-left: 10px;
  589. }
  590. .ml9 {
  591. margin-left: 9px;
  592. }
  593. .ml5{
  594. margin-left: 5px;
  595. }
  596. .grey {
  597. color: @m-grey2;
  598. }
  599. .white {
  600. color: @m-white0;
  601. }
  602. .blue {
  603. color: @m-blue0;
  604. }
  605. .green {
  606. color: @m-green0;
  607. }
  608. .yellow {
  609. color: @m-yellow0;
  610. }
  611. .orange {
  612. color: @m-orange0;
  613. }
  614. .selectBtn.ant-btn {
  615. margin-left: 10px;
  616. width: 80px;
  617. height: 30px;
  618. line-height: 31px;
  619. text-align: center;
  620. background: linear-gradient(0deg, @m-grey15 0%, @m-grey16 98%);
  621. border: 0;
  622. color: @m-white0;
  623. font-size: 14px;
  624. .rounded-corners(3px);
  625. &:hover,
  626. &:focus {
  627. background: linear-gradient(0deg, @m-grey15-hover 0%, @m-grey16-hover 98%);
  628. color: rgba(@m-white0, 0.8);
  629. border: 0;
  630. }
  631. }
  632. .btnPrimary.ant-btn,.operBtn.ant-btn {
  633. margin-left: 10px;
  634. width: 80px;
  635. height: 30px;
  636. line-height: 31px;
  637. text-align: center;
  638. background: linear-gradient(0deg, @m-blue6 0%, @m-blue7 99%);
  639. border: 0;
  640. color: @m-white0;
  641. font-size: 14px;
  642. .rounded-corners(3px);
  643. &:hover,
  644. &:focus {
  645. background: linear-gradient(0deg, @m-blue6-hover 0%, @m-blue7-hover 99%);
  646. color: rgba(@m-white0, 0.8);
  647. border: 0;
  648. }
  649. }
  650. .operBtn.ant-btn {
  651. margin-top: 9px;
  652. margin-bottom: 6px;
  653. }
  654. .ant-table-expanded-row {
  655. .btn-list {
  656. padding-right: 10px;
  657. text-align: right;
  658. }
  659. .btnPrimary.ant-btn {
  660. width: 80px;
  661. height: 26px;
  662. line-height: 27px;
  663. border: 0;
  664. background: linear-gradient(0deg, @m-blue2, @m-blue0);
  665. box-shadow: -1px 0px 0px 0px @m-black10;
  666. .rounded-corners(3px);
  667. &:hover,
  668. &:focus {
  669. background: linear-gradient(0deg, @m-blue2-hover 0%, @m-blue0-hover 99%);
  670. color: rgba(@m-white0, 0.8);
  671. border: 0;
  672. }
  673. }
  674. .ant-btn+.ant-btn {
  675. margin-left: 10px;
  676. }
  677. }
  678. .btnDanger.ant-btn{
  679. margin-left: 10px;
  680. width: 80px;
  681. height: 30px;
  682. line-height: 31px;
  683. text-align: center;
  684. border: 0;
  685. color: @m-white0;
  686. font-size: 14px;
  687. background: linear-gradient(0deg, @m-red0 0%, @m-red1 99%);
  688. .rounded-corners(3px);
  689. &:hover,
  690. &:focus {
  691. background: linear-gradient(0deg, @m-red0-hover 0%, @m-red1-hover 99%);
  692. color: rgba(@m-white0, 0.8);
  693. border: 0;
  694. }
  695. }
  696. .btnDeafault.ant-btn {
  697. margin-left: 10px;
  698. width: 80px;
  699. height: 30px;
  700. line-height: 31px;
  701. text-align: center;
  702. border: 0;
  703. color: @m-white0;
  704. font-size: 14px;
  705. background: linear-gradient(0deg, @m-grey12 0%, @m-grey13 100%);
  706. .rounded-corners(3px);
  707. &:hover,
  708. &:focus {
  709. background: linear-gradient(0deg, @m-grey12-hover 0%, @m-grey13-hover 99%);
  710. color: rgba(@m-white0, 0.8);
  711. border: 0;
  712. }
  713. }
  714. .hiddenFirstCol {
  715. .ant-table {
  716. .ant-table-content {
  717. .ant-table-body {
  718. table {
  719. .ant-table-thead {
  720. .ant-table-expand-icon-th {
  721. display: none;
  722. }
  723. }
  724. .ant-table-tbody {
  725. .ant-table-row {
  726. .ant-table-row-expand-icon-cell {
  727. display: none;
  728. }
  729. }
  730. }
  731. }
  732. }
  733. }
  734. }
  735. }
  736. .to {
  737. font-size: 14px;
  738. color: @m-grey2;
  739. margin-left: -8px;
  740. margin-right: 2px;
  741. }
  742. .filterTable {
  743. display: inline-flex;
  744. width: 100%;
  745. }
  746. .ant-row.dialogRowTitle {
  747. margin-left: 0 !important;
  748. margin-right: 0 !important;
  749. border: 1px solid @m-grey20;
  750. .ant-col {
  751. border-top: 1px solid @m-grey20;
  752. border-right: 1px solid @m-grey20;
  753. padding-left: 0 !important;
  754. padding-right: 0 !important;
  755. height: 34px;
  756. line-height: 34px;
  757. font-size: 16px;
  758. color: @m-grey2;
  759. .red {
  760. color: @m-red1;
  761. }
  762. }
  763. .ant-col:nth-child(1),.ant-col:nth-child(2),.ant-col:nth-child(3),.ant-col:nth-child(4){
  764. border-top: 0;
  765. text-align: center;
  766. }
  767. .ant-col:last-child {
  768. border-right: 1px solid @m-grey20;
  769. }
  770. }
  771. // 日期输入框 @m-grey21
  772. .commonPicker.ant-calendar-picker {
  773. .ant-input {
  774. background: @m-grey21;
  775. border-color: @m-grey14;
  776. padding: 4px 8px;
  777. .rounded-corners(3px);
  778. .ant-calendar-range-picker-input {
  779. color: @m-white0;
  780. font-size: 14px;
  781. &::placeholder {
  782. color: @m-grey10;
  783. }
  784. }
  785. .ant-calendar-picker-clear {
  786. background: @m-white0;
  787. }
  788. .ant-calendar-range-picker-separator {
  789. font-size: 14px;
  790. color: @m-grey2;
  791. }
  792. }
  793. }
  794. .ant-popover {
  795. .ant-popover-content {
  796. border: 1px solid @m-grey22;
  797. .rounded-corners(5px);
  798. .ant-popover-arrow {
  799. border-top-color: @m-grey22;
  800. border-left-color: @m-grey22;
  801. }
  802. .ant-popover-inner {
  803. .ant-popover-inner-content {
  804. border-image-width: 0;
  805. background: @m-grey22;
  806. color: @m-white0;
  807. padding: 5px 15px;
  808. &:hover {
  809. color: @m-blue0;
  810. }
  811. }
  812. }
  813. }
  814. }
  815. .ant-calendar-picker-container {
  816. .ant-calendar-range {
  817. background: @m-grey22;
  818. border-color: @m-grey22;
  819. .ant-calendar-panel {
  820. .ant-calendar-date-panel {
  821. .ant-calendar-range-part {
  822. .ant-calendar-input-wrap {
  823. border-bottom-color: @m-grey23;
  824. .ant-calendar-input {
  825. background: transparent;
  826. border: 1px solid @m-grey1;
  827. color: @m-white0;
  828. &::placeholder {
  829. color: @m-grey1;
  830. }
  831. }
  832. }
  833. .ant-calendar-header {
  834. .ant-calendar-prev-year-btn,.ant-calendar-prev-month-btn {
  835. color: @m-grey1;
  836. &::before,&::after {
  837. border-color: @m-grey2;
  838. }
  839. }
  840. .ant-calendar-month-select,.ant-calendar-year-select {
  841. color: @m-grey1;
  842. }
  843. }
  844. .ant-calendar-body {
  845. border-top-color: @m-grey1;
  846. .ant-calendar-column-header-inner {
  847. color: @m-grey1;
  848. }
  849. .ant-calendar-cell {
  850. .ant-calendar-date {
  851. background: transparent;
  852. color: @m-white0;
  853. }
  854. }
  855. .ant-calendar-last-day-of-month,.ant-calendar-next-month-btn-day {
  856. .ant-calendar-date {
  857. color: @m-white1;
  858. }
  859. }
  860. .ant-calendar-disabled-cell {
  861. .ant-calendar-date {
  862. color: @m-grey1;
  863. }
  864. }
  865. .ant-calendar-selected-day {
  866. .ant-calendar-date {
  867. color: @m-blue0;
  868. }
  869. }
  870. .ant-calendar-active-week {
  871. .ant-calendar-cell {
  872. .ant-calendar-date {
  873. background: transparent;
  874. }
  875. }
  876. }
  877. }
  878. }
  879. .ant-calendar-range-middle {
  880. color: @m-white1;
  881. }
  882. }
  883. }
  884. .ant-calendar-footer {
  885. border-top-color: @m-grey1;
  886. .ant-calendar-time-picker-btn {
  887. color: @m-grey1;
  888. }
  889. .ant-calendar-ok-btn {
  890. background-color: @m-blue0;
  891. border-color: @m-blue0;
  892. color: @m-white0;
  893. &:hover {
  894. background-color: @m-blue0-hover;
  895. border-color: @m-blue0-hover;
  896. color: @m-white0-hover;
  897. }
  898. }
  899. }
  900. }
  901. }
  902. .ant-calendar-range {
  903. .ant-calendar-in-range-cell::before {
  904. background: @m-grey22-hover;
  905. }
  906. }
  907. .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) {
  908. background: @m-grey21;
  909. }
  910. .ant-modal-confirm-confirm {
  911. top: 50%;
  912. padding-bottom: 0;
  913. margin-top: -64px;
  914. .ant-modal-content {
  915. background: @m-grey11;
  916. .ant-modal-close {
  917. .ant-modal-close-x {
  918. width: 40px;
  919. height: 40px;
  920. line-height: 40px;
  921. .ant-modal-close-icon {
  922. color: @m-blue11;
  923. }
  924. }
  925. }
  926. .ant-modal-body {
  927. padding: 24px;
  928. .ant-modal-confirm-body-wrapper {
  929. .ant-modal-confirm-body {
  930. .ant-modal-confirm-title {
  931. color: @m-white0;
  932. text-align: center;
  933. }
  934. }
  935. .ant-modal-confirm-btns {
  936. float: none;
  937. text-align: center;
  938. .ant-btn {
  939. width: 100px;
  940. height: 34px;
  941. line-height: 32px;
  942. border: 1px solid @m-blue10;
  943. border-radius: 3px;
  944. background: transparent;
  945. font-size: 16px;
  946. color: @m-blue10;
  947. margin-right: 20px;
  948. &:hover {
  949. border-color: rgba(@m-blue10, .8);
  950. }
  951. }
  952. .ant-btn-primary {
  953. margin-left: 20px;
  954. width: 100px;
  955. height: 34px;
  956. line-height: 32px;
  957. border: 0;
  958. background: linear-gradient(0deg, @m-blue8 0%, @m-blue9 100%);
  959. border-radius: 3px;
  960. font-size: 16px;
  961. color: @m-white0;
  962. &:hover {
  963. background: linear-gradient(0deg, @m-blue8-hover 0%, @m-blue9-hover 100%);
  964. color: @m-white0-hover;
  965. }
  966. }
  967. }
  968. }
  969. }
  970. }
  971. }
  972. .tltLeft {
  973. font-size: 16px;
  974. text-align: left;
  975. .icon {
  976. font-size: 20px;
  977. fill: @m-blue0;
  978. margin-right: 10px;
  979. }
  980. }
  981. .ant-collapse.spotCollapse.ant-collapse-borderless {
  982. margin-top: 10px;
  983. background-color: transparent;
  984. .ant-collapse-item {
  985. border-bottom: 0;
  986. .ant-collapse-header {
  987. color: @m-grey17;
  988. font-size: 14px;
  989. border-bottom: 1px solid @m-grey18;
  990. padding: 10px 8px 10px 44px;
  991. height: 43px;
  992. .ant-collapse-arrow {
  993. fill: @m-grey17;
  994. width: 16px;
  995. height: 16px;
  996. font-size: 16px;
  997. left: 0;
  998. }
  999. }
  1000. .ant-collapse-content {
  1001. .ant-collapse-content-box {
  1002. padding: 0 0 0 30px;
  1003. background-color: transparent;
  1004. .ant-row.contRow {
  1005. width: 100%;
  1006. height: 40px;
  1007. line-height: 40px;
  1008. font-size: 16px;
  1009. color: @m-white1;
  1010. margin-bottom: 10px;
  1011. background: #0f161c;
  1012. border: 1px solid #172b56;
  1013. border-radius: 3px;
  1014. padding-left: 14px;
  1015. padding-right: 12px;
  1016. .ant-col:last-child {
  1017. text-align: right;
  1018. }
  1019. .ant-col:first-child {
  1020. text-align: left;
  1021. }
  1022. }
  1023. .contRow:first-child {
  1024. margin-top: 9px;
  1025. }
  1026. .contRow:last-child {
  1027. margin-bottom: 20px;
  1028. }
  1029. }
  1030. }
  1031. }
  1032. }
  1033. .ant-collapse.busyCollapse.ant-collapse-borderless {
  1034. margin-top: 10px;
  1035. background: #0f161c;
  1036. border: 1px solid #172b56;
  1037. .rounded-corners(3px);
  1038. .ant-collapse-item {
  1039. border-bottom: 0;
  1040. .ant-collapse-header {
  1041. color: @m-grey17;
  1042. font-size: 14px;
  1043. border-bottom: 0;
  1044. padding: 0;
  1045. line-height: 43px;
  1046. .ant-collapse-arrow {
  1047. fill: @m-grey17;
  1048. width: 16px;
  1049. height: 16px;
  1050. font-size: 16px;
  1051. left: 0;
  1052. }
  1053. .ant-row.contRow {
  1054. width: 100%;
  1055. // height: 40px;
  1056. line-height: 40px;
  1057. font-size: 16px;
  1058. color: @m-white1;
  1059. margin-bottom: 10px;
  1060. // background: #0f161c;
  1061. border: 0 !important;
  1062. // border-radius: 3px;
  1063. padding-left: 14px;
  1064. padding-right: 12px;
  1065. .ant-col:last-child {
  1066. text-align: right;
  1067. }
  1068. .ant-col:first-child {
  1069. text-align: left;
  1070. }
  1071. }
  1072. .contRow:first-child {
  1073. margin-top: 0 !important;
  1074. }
  1075. .contRow:last-child {
  1076. margin-bottom: 0 !important;
  1077. }
  1078. }
  1079. .ant-collapse-content.ant-collapse-content-active {
  1080. .ant-collapse-content-box {
  1081. padding: 0 0 0 30px;
  1082. background-color: transparent;
  1083. .btn-list {
  1084. width: calc(100% - 10px);
  1085. justify-content: flex-end;
  1086. padding-right: 10px;
  1087. padding-bottom: 10px;
  1088. }
  1089. }
  1090. }
  1091. }
  1092. }
  1093. .ant-row.headRow {
  1094. .ant-col:first-child {
  1095. text-align: left;
  1096. }
  1097. .ant-col:nth-child(3) {
  1098. text-align: right;
  1099. }
  1100. }