global.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @import '~antd/es/style/themes/default.less';
  2. html,
  3. body,
  4. #root {
  5. height: 100%;
  6. }
  7. .colorWeak {
  8. filter: invert(80%);
  9. }
  10. .ant-layout {
  11. min-height: 100vh;
  12. }
  13. // .ant-menu-submenu-selected .ant-menu-submenu-title {
  14. // background: #595284;
  15. // border-left: 3px solid #886ab5;
  16. // }
  17. .ant-layout-header {
  18. background: linear-gradient(
  19. to right,
  20. #584475 0%,
  21. #7c62a4 50%,
  22. #7c62a4 50%,
  23. #584475 100%
  24. ) !important;
  25. }
  26. .ant-pro-basicLayout .ant-layout-header.ant-pro-fixed-header {
  27. background: linear-gradient(
  28. to right,
  29. #584475 0%,
  30. #7c62a4 50%,
  31. #7c62a4 50%,
  32. #584475 100%
  33. ) !important;
  34. }
  35. .ant-menu-dark .ant-menu-sub,
  36. .ant-menu.ant-menu-dark,
  37. .ant-menu.ant-menu-dark .ant-menu-sub {
  38. background: none !important;
  39. }
  40. .ant-menu-dark .ant-menu-inline.ant-menu-sub {
  41. background: #ffffff;
  42. }
  43. .ant-menu-dark .ant-menu-item-only-child:hover {
  44. background: #423d68;
  45. }
  46. .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
  47. background: #4a4473;
  48. border-right: 3px solid #24b3a4;
  49. }
  50. .ant-menu-inline .ant-menu-submenu-title {
  51. margin-bottom: 0;
  52. }
  53. .ant-pro-top-nav-header-logo h1 {
  54. font-weight: 600;
  55. font-size: 18px;
  56. }
  57. canvas {
  58. display: block;
  59. }
  60. body {
  61. text-rendering: optimizeLegibility;
  62. -webkit-font-smoothing: antialiased;
  63. -moz-osx-font-smoothing: grayscale;
  64. }
  65. ul,
  66. ol {
  67. list-style: none;
  68. }
  69. @media (max-width: @screen-xs) {
  70. .ant-table {
  71. width: 100%;
  72. overflow-x: auto;
  73. &-thead > tr,
  74. &-tbody > tr {
  75. > th,
  76. > td {
  77. white-space: pre;
  78. > span {
  79. display: block;
  80. }
  81. }
  82. }
  83. }
  84. }
  85. // 兼容IE11
  86. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  87. body .ant-design-pro > .ant-layout {
  88. min-height: 100vh;
  89. }
  90. }
  91. input:-webkit-autofill,
  92. input:-webkit-autofill:hover,
  93. input:-webkit-autofill:focus,
  94. input:-webkit-autofill:active {
  95. -webkit-transition: color 11111s ease-out, background-color 111111s ease-out;
  96. -webkit-transition-delay: 111111s;
  97. }
  98. .ant-picker {
  99. width: 100%;
  100. }
  101. .ant-drawer-body {
  102. padding: 0;
  103. }
  104. .ant-skeleton-element {
  105. width: 100% !important;
  106. }
  107. .ant-modal-header {
  108. padding: 0;
  109. }
  110. // 弹窗左右结构
  111. .sheet-box {
  112. // overflow: hidden;
  113. .sheet-box-left {
  114. height: calc(100vh);
  115. // height: calc(100vh - 15px);
  116. padding: 24px 0 24px 24px;
  117. overflow-y: auto;
  118. .sheet-left-panel {
  119. // overflow-x: hidden;
  120. }
  121. }
  122. .sheet-box-right {
  123. background-color: #fafafa;
  124. border-left: 1px solid #eaeaea;
  125. }
  126. }
  127. .sheet-right-panel,
  128. .sheet-panel-record {
  129. height: calc((100vh - 48px - 92px - 64px) / 2);
  130. overflow-x: hidden;
  131. overflow-y: auto;
  132. }
  133. .sheet-btns {
  134. height: 54px;
  135. }
  136. .sheet-right-panel .ant-card,
  137. .sheet-right-panel .ant-table {
  138. background: #fafafa;
  139. }
  140. .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder > td {
  141. border-bottom: none;
  142. }
  143. .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder:hover > td {
  144. background: none !important;
  145. }
  146. /** 滚动条自定义 */
  147. ::-webkit-scrollbar {
  148. width: 8px;
  149. height: 8px;
  150. }
  151. ::-webkit-scrollbar-track {
  152. background: rgb(239, 239, 239);
  153. border-radius: 2px;
  154. }
  155. ::-webkit-scrollbar-thumb {
  156. background: #bfbfbf;
  157. border-radius: 10px;
  158. }
  159. ::-webkit-scrollbar-thumb:hover {
  160. background: #636363;
  161. }