global.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. // 修复proTable中的列设置,tree list hover效果异常
  54. .ant-pro-table-column-setting-list > .ant-tree .ant-tree-node-content-wrapper:hover {
  55. background-color: unset;
  56. }
  57. .ant-pro-top-nav-header-logo h1 {
  58. font-weight: 600;
  59. font-size: 18px;
  60. }
  61. canvas {
  62. display: block;
  63. }
  64. body {
  65. text-rendering: optimizeLegibility;
  66. -webkit-font-smoothing: antialiased;
  67. -moz-osx-font-smoothing: grayscale;
  68. }
  69. ul,
  70. ol {
  71. list-style: none;
  72. }
  73. @media (max-width: @screen-xs) {
  74. .ant-table {
  75. width: 100%;
  76. overflow-x: auto;
  77. &-thead > tr,
  78. &-tbody > tr {
  79. > th,
  80. > td {
  81. white-space: pre;
  82. > span {
  83. display: block;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. // 兼容IE11
  90. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  91. body .ant-design-pro > .ant-layout {
  92. min-height: 100vh;
  93. }
  94. }
  95. input:-webkit-autofill,
  96. input:-webkit-autofill:hover,
  97. input:-webkit-autofill:focus,
  98. input:-webkit-autofill:active {
  99. -webkit-transition: color 11111s ease-out, background-color 111111s ease-out;
  100. -webkit-transition-delay: 111111s;
  101. }
  102. .ant-picker {
  103. width: 100%;
  104. }
  105. .ant-drawer-body {
  106. padding: 0;
  107. }
  108. .ant-skeleton-element {
  109. width: 100% !important;
  110. }
  111. // .ant-modal-header {
  112. // padding: 0;
  113. // }
  114. // 弹窗左右结构
  115. .sheet-box {
  116. // overflow: hidden;
  117. .sheet-box-left {
  118. height: calc(100vh);
  119. // height: calc(100vh - 15px);
  120. padding: 24px 0 24px 24px;
  121. overflow-y: auto;
  122. .sheet-left-panel {
  123. // overflow-x: hidden;
  124. }
  125. }
  126. .sheet-box-right {
  127. background-color: #fafafa;
  128. border-left: 1px solid #eaeaea;
  129. }
  130. }
  131. .sheet-right-panel,
  132. .sheet-panel-record {
  133. height: calc((100vh - 48px - 92px - 64px) / 2);
  134. overflow-x: hidden;
  135. overflow-y: auto;
  136. }
  137. .sheet-btns {
  138. height: 54px;
  139. }
  140. .sheet-right-panel .ant-card,
  141. .sheet-right-panel .ant-table {
  142. background: #fafafa;
  143. }
  144. .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder > td {
  145. border-bottom: none;
  146. }
  147. .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder:hover > td {
  148. background: none !important;
  149. }
  150. /** 滚动条自定义 */
  151. ::-webkit-scrollbar {
  152. width: 8px;
  153. height: 8px;
  154. }
  155. ::-webkit-scrollbar-track {
  156. background: rgb(239, 239, 239);
  157. border-radius: 2px;
  158. }
  159. ::-webkit-scrollbar-thumb {
  160. background: #bfbfbf;
  161. border-radius: 10px;
  162. }
  163. ::-webkit-scrollbar-thumb:hover {
  164. background: #636363;
  165. }
  166. .ant-select-selection-item {
  167. text-overflow: unset;
  168. }
  169. .ant-typography {
  170. color: inherit;
  171. }
  172. .my-drawer.ant-drawer-open {
  173. // width: 100% !important; // mask: false
  174. > .ant-drawer-content-wrapper {
  175. width: 70% !important;
  176. }
  177. }
  178. @media (max-width: 767.98px) {
  179. .my-drawer.ant-drawer-open {
  180. > .ant-drawer-content-wrapper {
  181. width: 100% !important;
  182. }
  183. }
  184. }
  185. // .react-resizable {
  186. // background-clip: padding-box !important;
  187. // }
  188. // .table-resizable-handle {
  189. // position: absolute;
  190. // right: -5px;
  191. // bottom: 0;
  192. // z-index: 1;
  193. // width: 10px;
  194. // height: 100%;
  195. // cursor: col-resize;
  196. // }