global.less 5.1 KB

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