global.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. /* stylelint-disable */
  2. @import '~antd/es/style/themes/default.less';
  3. html,
  4. body,
  5. #root {
  6. height: 100%;
  7. }
  8. .colorWeak {
  9. filter: invert(80%);
  10. }
  11. .ant-layout {
  12. max-height: 100vh;
  13. overflow-y: hidden;
  14. }
  15. .ant-pro-basicLayout-content {
  16. max-height: 100%;
  17. max-width: 100%;
  18. overscroll-behavior: none;
  19. overflow: hidden;
  20. }
  21. // .ant-menu-submenu-selected .ant-menu-submenu-title {
  22. // background: #595284;
  23. // border-left: 3px solid #886ab5;
  24. // }
  25. .ant-layout-header {
  26. background: linear-gradient(to right, #584475 0%, #7c62a4 50%, #7c62a4 50%, #584475 100%) !important;
  27. }
  28. .ant-pro-basicLayout .ant-layout-header.ant-pro-fixed-header {
  29. background: linear-gradient(to right, #584475 0%, #7c62a4 50%, #7c62a4 50%, #584475 100%) !important;
  30. }
  31. .ant-menu-dark .ant-menu-sub,
  32. .ant-menu.ant-menu-dark,
  33. .ant-menu.ant-menu-dark .ant-menu-sub {
  34. background: none !important;
  35. }
  36. .ant-menu-dark.ant-menu-submenu-popup {
  37. background: #7c62a4;
  38. }
  39. .ant-menu-dark .ant-menu-inline.ant-menu-sub {
  40. background: #584475;
  41. }
  42. .ant-menu-dark .ant-menu-item-only-child:hover {
  43. background: @primary-color;
  44. }
  45. .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
  46. background: @primary-color;
  47. border-right: 3px solid #ffffff;
  48. }
  49. .ant-menu-inline .ant-menu-submenu-title {
  50. margin-bottom: 0;
  51. }
  52. .ant-switch-checked {
  53. background: @primary-color;
  54. }
  55. // 修复proTable中的列设置,tree list hover效果异常
  56. .ant-pro-table-column-setting-list > .ant-tree .ant-tree-node-content-wrapper:hover {
  57. background-color: unset;
  58. }
  59. .ant-btn-primary[disabled],
  60. .ant-btn-primary[disabled]:hover,
  61. .ant-btn-primary[disabled]:focus,
  62. .ant-btn-primary[disabled]:active {
  63. color: white;
  64. background: rgba(136 106 181 / 50%);
  65. }
  66. .ant-pro-top-nav-header-logo h1 {
  67. font-weight: 600;
  68. font-size: 18px;
  69. }
  70. canvas {
  71. display: block;
  72. }
  73. body {
  74. text-rendering: optimizelegibility;
  75. -webkit-font-smoothing: antialiased;
  76. -moz-osx-font-smoothing: grayscale;
  77. }
  78. ul,
  79. ol {
  80. list-style: none;
  81. margin: 0;
  82. padding: 0;
  83. }
  84. *,
  85. :after,
  86. :before {
  87. box-sizing: border-box;
  88. border: 0 solid #e4e4e7;
  89. }
  90. .vditor-reset ul,
  91. .vditor-reset ol {
  92. list-style-type: decimal !important;
  93. }
  94. @media (max-width: @screen-xs) {
  95. .ant-table {
  96. width: 100%;
  97. overflow-x: auto;
  98. &-thead > tr,
  99. &-tbody > tr {
  100. > th,
  101. > td {
  102. white-space: pre;
  103. > span {
  104. display: block;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. // 兼容IE11
  111. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  112. body .ant-design-pro > .ant-layout {
  113. min-height: 100vh;
  114. }
  115. }
  116. input:-webkit-autofill,
  117. input:-webkit-autofill:hover,
  118. input:-webkit-autofill:focus,
  119. input:-webkit-autofill:active {
  120. -webkit-transition: color 11111s ease-out, background-color 111111s ease-out;
  121. -webkit-transition-delay: 111111s;
  122. }
  123. .ant-picker {
  124. width: 100%;
  125. }
  126. .ant-drawer-body {
  127. padding: 0 !important;
  128. }
  129. .ant-skeleton-element {
  130. width: 100% !important;
  131. }
  132. // 弹窗左右结构
  133. .sheet-box {
  134. // overflow: hidden;
  135. .sheet-box-left {
  136. height: 100vh;
  137. // height: calc(100vh - 15px);
  138. padding: 24px 0 24px 24px;
  139. overflow-y: auto;
  140. .sheet-left-panel {
  141. // overflow-x: hidden;
  142. }
  143. }
  144. .sheet-box-right {
  145. background-color: #fafafa;
  146. border-left: 1px solid #eaeaea;
  147. .sheet-right-panel,
  148. .sheet-panel-record {
  149. height: calc(50vh - 62px);
  150. overflow-x: hidden;
  151. overflow-y: auto;
  152. // 带有按钮时需减去54px
  153. &.sheet-panel-has-btn {
  154. height: calc(50vh - 62px - 54px);
  155. }
  156. }
  157. .sheet-btns {
  158. height: 54px;
  159. }
  160. .sheet-right-panel {
  161. & .ant-card,
  162. & .ant-table {
  163. background: #fafafa;
  164. }
  165. // 空数据时tbody样式
  166. .ant-table-tbody {
  167. & > tr.ant-table-placeholder > td {
  168. border-bottom: none;
  169. }
  170. & > tr.ant-table-placeholder:hover > td {
  171. background: none !important;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. /** 滚动条自定义 */
  178. ::-webkit-scrollbar {
  179. width: 8px;
  180. height: 8px;
  181. }
  182. ::-webkit-scrollbar-track {
  183. background: rgb(239 239 239);
  184. border-radius: 2px;
  185. }
  186. ::-webkit-scrollbar-thumb {
  187. background: #bfbfbf;
  188. border-radius: 10px;
  189. }
  190. ::-webkit-scrollbar-thumb:hover {
  191. background: #636363;
  192. }
  193. .ant-select-selection-item {
  194. text-overflow: unset;
  195. }
  196. .ant-table-cell .ant-typography {
  197. // color: unset;
  198. }
  199. .zh-drawer.ant-drawer-open {
  200. @media (min-width: 1200px) {
  201. > .ant-drawer-content-wrapper {
  202. width: 70% !important;
  203. }
  204. }
  205. @media all and (min-width: 768px) and (max-width: 1024px) {
  206. > .ant-drawer-content-wrapper {
  207. width: 100% !important;
  208. }
  209. }
  210. @media screen and (min-width: 320px) and (max-width: 750px) {
  211. > .ant-drawer-content-wrapper {
  212. width: 100% !important;
  213. }
  214. }
  215. // > .ant-drawer-content-wrapper {
  216. // width: 70% !important;
  217. // }
  218. .ant-drawer-header {
  219. padding: 0 !important;
  220. .ant-drawer-header-title {
  221. position: absolute;
  222. top: 12px;
  223. right: 0;
  224. z-index: 1050;
  225. }
  226. }
  227. }
  228. .ant-pro-table-list-toolbar-search {
  229. > .ant-input-group-wrapper {
  230. width: 250px;
  231. }
  232. }