global.less 21 KB

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