global.less 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. * {
  2. font-family: 'SourceHanSansCN, SourceHanSansCN';
  3. }
  4. /* Safari */
  5. @media screen and (-webkit-min-device-pixel-ratio:0)
  6. {
  7. * {
  8. margin: 0;
  9. padding: 0;
  10. font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  11. }
  12. #password {
  13. &::placeholder {
  14. font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  15. }
  16. }
  17. }
  18. body {
  19. margin: 0;
  20. height: 100%;
  21. zoom: unset !important;
  22. }
  23. /* 禁用所有输入框的自动填充背景 */
  24. input:-webkit-autofill,
  25. textarea:-webkit-autofill,
  26. select:-webkit-autofill {
  27. -webkit-box-shadow: 0 0 0 1000px white inset !important;
  28. box-shadow: 0 0 0 1000px white inset !important;
  29. -webkit-text-fill-color: #000 !important;
  30. }
  31. .cost-ant-space-item {
  32. &>a {
  33. color: #3377FF !important;
  34. }
  35. }
  36. textarea {
  37. border-radius: 4px !important;
  38. border: 1px solid #CFD7E6 !important;
  39. }
  40. .cost-ant-btn-primary {
  41. background: #3377FF;
  42. }
  43. .cost-ant-btn-primary[disabled]{
  44. background:#f5f5f5 ;
  45. }
  46. .cost-ant-checkbox {
  47. &.cost-ant-checkbox-checked {
  48. .cost-ant-checkbox-inner {
  49. background-color:#3377FF;
  50. background: #3377FF;
  51. }
  52. }
  53. // &.cost-ant-checkbox-indeterminate {
  54. // &.cost-ant-checkbox-inner {
  55. // &::after {
  56. // background-color:#3377FF !important;
  57. // }
  58. // }
  59. // }
  60. }
  61. .cost-ant-checkbox-indeterminate .cost-ant-checkbox-inner::after {
  62. background-color:#3377FF;
  63. }
  64. .cost-ant-input-affix-wrapper {
  65. border-radius: 4px !important;
  66. }
  67. .cost-ant-input {
  68. border-radius: 4px;
  69. // border: 1px solid #CFD7E6 !important;
  70. &::placeholder {
  71. color: #99A6BF !important;
  72. }
  73. }
  74. .cost-ant-table-cell {
  75. a {
  76. color: #3376FE !important;
  77. }
  78. }
  79. .cost-ant-input-number {
  80. border-radius: 4px !important;
  81. }
  82. //Modal
  83. .cost-ant-modal {
  84. .cost-ant-modal-content {
  85. padding: 16px !important;
  86. border-radius: 4px !important;
  87. .cost-ant-modal-header {
  88. padding: 0 ;
  89. margin-bottom: 16px;
  90. border-bottom: none;
  91. }
  92. .cost-ant-modal-body {
  93. max-height: 570px;
  94. overflow-y: scroll;
  95. overflow-x: hidden;
  96. padding: 0;
  97. padding-left: 4px;
  98. .cost-ant-modal-confirm-body-wrapper {
  99. .cost-ant-modal-confirm-body {
  100. .cost-ant-modal-confirm-title {
  101. font-size: 16px;
  102. height:18px;
  103. }
  104. .cost-ant-modal-confirm-content {
  105. max-width: 100% !important;
  106. max-height: 498px;
  107. overflow-y: scroll;
  108. overflow-x: hidden;
  109. margin-block-start:16px;
  110. .TableTransfer {
  111. .cost-ant-transfer-operation {
  112. // align-self: self-end;
  113. // margin-bottom: 30px;
  114. button {
  115. //color: #17181A;
  116. width: 24px;
  117. height: 40px !important;
  118. // background: #FAFCFF;
  119. border-radius: 4px;
  120. border: 1px solid #DAE2F2;
  121. }
  122. }
  123. .cost-ant-transfer-list {
  124. overflow: hidden;
  125. border: 1px solid #DAE2F2;
  126. .cost-ant-transfer-list-header {
  127. height: 32px;
  128. font-size: 12px;
  129. border-bottom: 1px solid #DAE2F2;
  130. .anticon {
  131. color: #99A6BF;
  132. }
  133. .cost-ant-transfer-list-header-selected {
  134. color: #515866;
  135. }
  136. }
  137. .cost-ant-transfer-list-body {
  138. .cost-ant-transfer-list-body-search-wrapper {
  139. padding: 8px;
  140. .cost-ant-input-prefix {
  141. .anticon-search {
  142. color: #99A6BF;
  143. }
  144. }
  145. }
  146. .cost-ant-transfer-list-body-customize-wrapper {
  147. .costTable {
  148. border: none !important;
  149. border-radius: 0 !important;
  150. }
  151. }
  152. }
  153. }
  154. .cost-ant-table {
  155. .cost-ant-table-container {
  156. .cost-ant-table-content {
  157. .cost-ant-table-thead {
  158. &>tr>th {
  159. font-size: 14px;
  160. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  161. font-weight: 500;
  162. color: #17181A;
  163. background: #EEF3FA;
  164. border-radius: 0 !important;
  165. padding: 4px 8px !important;
  166. border-bottom: none;
  167. }
  168. }
  169. .cost-ant-table-tbody {
  170. &>tr>td {
  171. padding-left: 8px !important;
  172. padding-right: 8px !important;
  173. }
  174. }
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. .cost-ant-modal-confirm-btns {
  182. display: flex;
  183. flex-direction: row;
  184. align-items: center;
  185. justify-content: flex-end;
  186. margin-top: 16px;
  187. &>button {
  188. display: flex;
  189. justify-content: center;
  190. align-items: center;
  191. padding: 0 14px;
  192. height: 24px;
  193. border-radius: 4px;
  194. &.cost-ant-btn-default {
  195. border: 1px solid #DAE2F2;
  196. background-color: #FAFCFF;
  197. }
  198. &.cost-ant-btn-primary {
  199. background-color: #3376FE;
  200. }
  201. }
  202. }
  203. }
  204. }
  205. .cost-ant-modal-footer {
  206. border-top: none;
  207. padding: 0;
  208. margin-top: 16px;
  209. .cost-ant-btn {
  210. border-radius: 4px !important;
  211. height: 24px !important;
  212. padding: 0 14px !important;
  213. }
  214. }
  215. }
  216. .cost-ant-modal-footer {
  217. margin-top: 0;
  218. .cost-ant-space-item {
  219. &>button {
  220. display: flex;
  221. justify-content: center;
  222. align-items: center;
  223. padding: 0 14px;
  224. height: 24px;
  225. ;
  226. border-radius: 4px;
  227. &>span {}
  228. &.cost-ant-btn-default {
  229. border: 1px solid #DAE2F2;
  230. background-color: #FAFCFF;
  231. }
  232. &.cost-ant-btn-primary {
  233. background-color: #3376FE;
  234. }
  235. }
  236. }
  237. }
  238. }
  239. //message
  240. .cost-ant-message {
  241. .ant-message-notice-success {
  242. .cost-ant-message-notice-content {
  243. .anticon-check-circle {
  244. &>svg {
  245. color: #52c41a;
  246. }
  247. }
  248. }
  249. }
  250. }
  251. //Form
  252. .cost-ant-form {
  253. &.cost-ant-form-vertical {
  254. .cost-ant-form-item {
  255. margin-bottom: 16px;
  256. .cost-ant-form-item-label {
  257. padding: 0 !important;
  258. height: 15px;
  259. margin-bottom: 8px;
  260. line-height: 15px;
  261. }
  262. .cost-ant-form-item-control-input {
  263. min-height: 24px;
  264. }
  265. }
  266. }
  267. }
  268. // .cost-ant-form-item-label {
  269. // padding: 0;
  270. // //height: 15px;
  271. // line-height: 15px;
  272. // margin-bottom: 5px;
  273. // .cost-ant-form-item-required {
  274. // &::before {
  275. // margin-right: 0 !important;
  276. // }
  277. // }
  278. // }
  279. .cost-ant-input-affix-wrapper {
  280. padding: 0px 8px !important;
  281. border-radius: 4px;
  282. border: 1px solid #CFD7E6 !important;
  283. &>input {
  284. &::placeholder {
  285. font-size: 14px;
  286. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  287. font-weight: 400;
  288. color: #99A6BF;
  289. }
  290. }
  291. }
  292. .cost-ant-input-disabled {
  293. &::placeholder {
  294. color: #7A8599 !important;
  295. }
  296. }
  297. .cost-ant-input-affix-wrapper-disabled {
  298. background: #F0F2F5 !important;
  299. }
  300. // //proContsiner 标题样式覆盖
  301. // .cost-ant-page-header .cost-ant-page-header-heading-title {
  302. // height: 17px !important;
  303. // font-size: 16px !important;
  304. // line-height: 17px !important;
  305. // }
  306. .cost-ant-page-header {
  307. .cost-ant-page-header-heading-title {
  308. font-size: 16px !important;
  309. }
  310. }
  311. .cost-ant-page-header .cost-ant-page-header-heading-left {
  312. margin-block: 0 !important;
  313. }
  314. .cost-ant-pro .cost-ant-pro-layout .cost-ant-pro-sider-fixed {
  315. position: absolute !important;
  316. // min-width:230px !important;
  317. // width: 230px !important;
  318. }
  319. //避免logo区域的层级过高,影响父容器
  320. .cost-ant-pro .cost-ant-pro-layout .cost-ant-pro-sider-fixed {
  321. height: calc(100vh - 48px) !important;
  322. z-index: 0 !important;
  323. }
  324. .cost-ant-pro .cost-ant-pro-layout .cost-ant-pro-sider-menu {
  325. height: calc(100vh - 200px) !important;
  326. overflow-y: scroll !important;
  327. overflow-x: hidden;
  328. }
  329. .cost-ant-menu .cost-ant-menu-root .cost-ant-menu-inline .cost-ant-menu-light .cost-ant-pro-sider-menu .cost-ant-pro-base-menu{
  330. height: calc(100vh - 90px) !important;
  331. }
  332. .cost-ant-pro-base-menu .cost-ant-pro-base-menu-submenu-has-icon >.cost-ant-menu-sub {
  333. padding-inline-start:0 !important;
  334. }
  335. .cost-ant-menu-submenu {
  336. &.cost-ant-menu-submenu-selected {
  337. color: #3376FE !important;
  338. }
  339. }
  340. .cost-ant-menu-item-selected {
  341. color: #3376FE !important;
  342. background-color:#F2F6FF !important;
  343. // margin:8px !important;
  344. &:hover {
  345. color: #3376FE !important;
  346. }
  347. }
  348. .cost-ant-menu-light:not(.cost-ant-menu-horizontal) .cost-ant-menu-item:not(.cost-ant-menu-item-selected):hover {
  349. background-color: #f0f2f5 !important;
  350. // margin:8px !important;
  351. }
  352. .cost-ant-menu-light:not(.cost-ant-menu-horizontal) .cost-ant-menu-submenu-title:hover {
  353. background-color: #f0f2f5 !important;
  354. }
  355. .cost-ant-tree.cost-ant-tree-directory .cost-ant-tree-treenode:hover::before {
  356. background: #f0f2f5 !important;
  357. border-radius: 4px;
  358. }
  359. .cost-EditableProTable {
  360. .cost-ant-pro-card-body {
  361. padding-inline: 0 !important;
  362. padding-block: 0 !important;
  363. .cost-ant-table {
  364. border: 1px solid #CFD7E6 !important;
  365. overflow: hidden;
  366. .cost-ant-table-content {
  367. .cost-ant-table-thead {
  368. &>tr>th {
  369. height: 15px;
  370. line-height: 15px;
  371. font-size: 14px;
  372. padding: 12px 16px !important;
  373. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  374. // font-weight: 500;
  375. color: #17181A;
  376. border-bottom: 1px solid #CFD7E6 !important;
  377. background: rgb(238 243 250 / 100%) !important;
  378. &::before {
  379. display: none !important;
  380. }
  381. }
  382. }
  383. .cost-ant-table-tbody {
  384. .cost-ant-table-row {
  385. .cost-ant-table-cell {
  386. height: 15px;
  387. line-height: 15px;
  388. font-size: 14px;
  389. padding: 8px 8px !important;
  390. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  391. color: #17181A;
  392. &>div {
  393. justify-content: flex-start !important;
  394. }
  395. }
  396. &:last-child {
  397. &>td {
  398. border-bottom-color: none !important;
  399. }
  400. }
  401. }
  402. }
  403. }
  404. }
  405. }
  406. }
  407. .cost-ant-table-wrapper {
  408. .cost-ant-table:not(.cost-ant-table-bordered) .cost-ant-table-tbody>tr.cost-ant-table-row.cost-ant-table-row-selected>td:first-child {
  409. border-radius: 0 !important;
  410. }
  411. .cost-ant-table-content {
  412. .cost-ant-table-thead {
  413. tr {
  414. &:last-child {
  415. .cost-ant-table-cell {
  416. // border-top: 1px solid #dae2f2;
  417. }
  418. }
  419. }
  420. }
  421. }
  422. }
  423. .cost-ant-table-wrapper .cost-ant-table:not(.cost-ant-table-bordered) .cost-ant-table-tbody>tr.cost-ant-table-row:hover>td:first-child {
  424. border-start-start-radius: 0 !important;
  425. border-end-start-radius: 0 !important;
  426. }
  427. .cost-ant-table-wrapper .cost-ant-table:not(.cost-ant-table-bordered) .cost-ant-table-tbody>tr.cost-ant-table-row:last-child:hover>td {
  428. border-bottom-color: #dae2f2 !important;
  429. }
  430. .cost-ant-table-wrapper .cost-ant-table:not(.cost-ant-table-bordered) .cost-ant-table-tbody>tr.cost-ant-table-row:last-child>td {
  431. border-bottom-color: #dae2f2 !important;
  432. }
  433. .cost-ant-table-wrapper .cost-ant-table:not(.cost-ant-table-bordered) .cost-ant-table-tbody>tr.cost-ant-table-row:hover>td:last-child {
  434. border-end-end-radius: 0 !important;
  435. border-start-end-radius: 0 !important;
  436. }
  437. .cost-ant-pro .cost-ant-pro-layout .cost-ant-pro-layout-bg-list {
  438. background: #F7F9FC !important;
  439. }
  440. // .cost-ant-message-notice .cost-ant-message-success .anticon {
  441. // color: #52c41a !important;
  442. // }
  443. .ant-message-success {
  444. .anticon .anticon-check-circle {
  445. color: #52c41a !important;
  446. }
  447. }
  448. /**
  449. Select
  450. **/
  451. .cost-ant-select {
  452. .cost-ant-select-selector {
  453. height: 24px !important;
  454. padding: 0 8px !important;
  455. border-radius: 4px !important;
  456. border: 1px solid #CFD7E6 !important;
  457. .cost-ant-select-selection-item {
  458. line-height: 24px !important;
  459. }
  460. .cost-ant-select-selection-search-input {
  461. height: 24px !important;
  462. }
  463. .cost-ant-select-selection-placeholder {
  464. line-height: 22px !important;
  465. font-size: 14px;
  466. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  467. font-weight: 400;
  468. color: #99A6BF;
  469. }
  470. .cost-ant-select-selection-overflow {
  471. .cost-ant-select-selection-overflow-item {
  472. .cost-ant-select-selection-item {
  473. height: 22px !important;
  474. line-height: 22px !important;
  475. margin-top: 0 !important;
  476. margin-bottom: 7px !important;
  477. }
  478. }
  479. }
  480. }
  481. .cost-ant-select-arrow {
  482. color: #CFD7E6;
  483. }
  484. &.cost-ant-select-disabled {
  485. .cost-ant-select-selector {
  486. border: 1px solid #DADEE6 !important;
  487. .cost-ant-select-selection-placeholder {
  488. color: #7A8599;
  489. }
  490. }
  491. .cost-ant-select-arrow {
  492. color: #7A8599;
  493. }
  494. }
  495. }
  496. .cost-ant-tabs {
  497. .cost-ant-tabs-tab {
  498. padding: 5px 0 !important;
  499. padding-top: 12px !important;
  500. }
  501. .cost-ant-tabs-nav {
  502. &::before {
  503. border-bottom: none !important;
  504. }
  505. }
  506. }
  507. .cost-ant-table-wrapper {
  508. overflow: hidden;
  509. }
  510. .cost-ant-pro-layout .cost-ant-pro-layout-container {
  511. flex: 1;
  512. overflow-y: scroll;
  513. background: #F7F9FC !important;
  514. }
  515. //页面全局底色
  516. .cost-ant-pro .cost-ant-pro-layout .cost-ant-pro-layout-bg-list {
  517. background: rgb(247 249 252 / 100%);
  518. }
  519. .cost-ant-pro-page-container-children-content {
  520. padding-inline: 0 !important;
  521. }
  522. .cost-ant-pro-sider-actions {
  523. display: none !important;
  524. }
  525. .cost-ant-pro-sider-collapsed-button {
  526. top: 95% !important;
  527. right: 17px !important;
  528. }
  529. .cost-ant-menu .cost-ant-menu-submenu-title .anticon {
  530. transition: none !important;
  531. }
  532. .cost-ant-menu .cost-ant-menu-item .anticon+span {
  533. transition: none !important;
  534. }
  535. .cost-ant-menu .cost-ant-menu-item .anticon {
  536. transition: none !important;
  537. }
  538. .cost-ant-menu .cost-ant-menu-item {
  539. transition: none !important;
  540. }
  541. .cost-ant-menu .cost-ant-menu-submenu-title .anticon+span {
  542. transition: none !important;
  543. }
  544. .cost-ant-tabs .cost-ant-tabs-tab+.cost-ant-tabs-tab {
  545. margin: 0 0 0 24px !important;
  546. }
  547. .menuCollapseIcon {
  548. &>svg {
  549. width: 24px;
  550. height: 24px;
  551. }
  552. }
  553. .cost-ant-layout-sider {
  554. max-width: 100% !important;
  555. min-width: unset !important;
  556. width: 100% !important;
  557. }
  558. .cost-ant-pro .cost-ant-pro-layout .cost-ant-pro-sider .cost-ant-layout-sider-children {
  559. padding-inline: 0 !important;
  560. &>div {
  561. &>ul {
  562. padding-inline: 8px !important;
  563. }
  564. }
  565. }
  566. .cost-ant-pro-form>div:not(.cost-ant-pro-form-light-filter) .pro-field-lg {
  567. width: 100% !important;
  568. }
  569. .cost-ant-select {
  570. .cost-ant-select-selector {
  571. border: 1px solid #CFD7E6 !important;
  572. // color: #99A6BF !important;
  573. .cost-ant-select-selection-placeholder {
  574. color: #99A6BF !important;
  575. }
  576. }
  577. .cost-ant-select-arrow {
  578. color: #99A6BF !important;
  579. }
  580. }
  581. .cost-ant-input-number-input {
  582. border-radius: 4px;
  583. &::placeholder {
  584. color: #99A6BF !important;
  585. }
  586. }
  587. .cost-ant-select-disabled {
  588. .cost-ant-select-selector {
  589. border: 1px solid #DADEE6 !important;
  590. background: #F0F2F5 !important;
  591. .cost-ant-select-selection-placeholder {
  592. color: #7A8599 !important;
  593. }
  594. }
  595. .cost-ant-select-arrow {
  596. color: #7A8599 !important;
  597. }
  598. }
  599. .cost-ant-input-number {
  600. border: 1px solid #CFD7E6 !important;
  601. // color: #99A6BF !important;
  602. border-radius: 4px;
  603. box-shadow: none !important;
  604. .cost-ant-input-number-input {
  605. height: 22px !important;
  606. line-height: 22px !important;
  607. }
  608. }
  609. .cost-ant-input-number-disabled {
  610. border: 1px solid #DADEE6 !important;
  611. background: #F0F2F5 !important;
  612. .cost-ant-input-number-input {
  613. color: #7A8599 !important;
  614. }
  615. }
  616. .cost-ant-input-affix-wrapper-disabled {
  617. border: 1px solid #DADEE6 !important;
  618. }
  619. .cost-ant-picker {
  620. border-radius: 4px !important;
  621. border: 1px solid #CFD7E6 !important;
  622. height: 24px;
  623. .cost-ant-picker-input {
  624. &>input {
  625. &::placeholder {
  626. color:#99A6BF !important;
  627. }
  628. }
  629. .cost-ant-picker-suffix {
  630. color:#99A6BF !important;
  631. }
  632. }
  633. }
  634. .cost-ant-picker-panel-container {
  635. .cost-ant-picker-panel {
  636. .cost-ant-picker-month-panel {
  637. .cost-ant-picker-body {
  638. .cost-ant-picker-content {
  639. tr {
  640. td {
  641. &.cost-ant-picker-cell-selected {
  642. .cost-ant-picker-cell-inner {
  643. background:#3377FF;
  644. }
  645. }
  646. }
  647. }
  648. }
  649. }
  650. }
  651. }
  652. }
  653. .cost-ant-picker-input>input[disabled] {
  654. color: #7A8599 !important;
  655. }
  656. .cost-ant-picker-disabled {
  657. background: #F0F2F5 !important;
  658. border: 1px solid #DADEE6 !important;
  659. .anticon-swap-right,
  660. .anticon-calendar {
  661. color: #7A8599 !important;
  662. }
  663. }