global.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. .vditor-reset ul,
  74. .vditor-reset ol {
  75. list-style-type: decimal !important;
  76. }
  77. @media (max-width: @screen-xs) {
  78. .ant-table {
  79. width: 100%;
  80. overflow-x: auto;
  81. &-thead > tr,
  82. &-tbody > tr {
  83. > th,
  84. > td {
  85. white-space: pre;
  86. > span {
  87. display: block;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. // 兼容IE11
  94. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  95. body .ant-design-pro > .ant-layout {
  96. min-height: 100vh;
  97. }
  98. }
  99. input:-webkit-autofill,
  100. input:-webkit-autofill:hover,
  101. input:-webkit-autofill:focus,
  102. input:-webkit-autofill:active {
  103. -webkit-transition: color 11111s ease-out, background-color 111111s ease-out;
  104. -webkit-transition-delay: 111111s;
  105. }
  106. .ant-picker {
  107. width: 100%;
  108. }
  109. .ant-drawer-body {
  110. padding: 0;
  111. }
  112. .ant-skeleton-element {
  113. width: 100% !important;
  114. }
  115. // .ant-modal-header {
  116. // padding: 0;
  117. // }
  118. // 弹窗左右结构
  119. .sheet-box {
  120. // overflow: hidden;
  121. .sheet-box-left {
  122. height: calc(100vh);
  123. // height: calc(100vh - 15px);
  124. padding: 24px 0 24px 24px;
  125. overflow-y: auto;
  126. .sheet-left-panel {
  127. // overflow-x: hidden;
  128. }
  129. }
  130. .sheet-box-right {
  131. background-color: #fafafa;
  132. border-left: 1px solid #eaeaea;
  133. }
  134. }
  135. .sheet-right-panel,
  136. .sheet-panel-record {
  137. height: calc((100vh - 48px - 92px - 44px) / 2);
  138. overflow-x: hidden;
  139. overflow-y: auto;
  140. }
  141. .sheet-btns {
  142. height: 54px;
  143. }
  144. .sheet-right-panel .ant-card,
  145. .sheet-right-panel .ant-table {
  146. background: #fafafa;
  147. }
  148. .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder > td {
  149. border-bottom: none;
  150. }
  151. .sheet-right-panel .ant-table-tbody > tr.ant-table-placeholder:hover > td {
  152. background: none !important;
  153. }
  154. /** 滚动条自定义 */
  155. ::-webkit-scrollbar {
  156. width: 8px;
  157. height: 8px;
  158. }
  159. ::-webkit-scrollbar-track {
  160. background: rgb(239, 239, 239);
  161. border-radius: 2px;
  162. }
  163. ::-webkit-scrollbar-thumb {
  164. background: #bfbfbf;
  165. border-radius: 10px;
  166. }
  167. ::-webkit-scrollbar-thumb:hover {
  168. background: #636363;
  169. }
  170. .ant-select-selection-item {
  171. text-overflow: unset;
  172. }
  173. .ant-table-cell .ant-typography {
  174. color: unset;
  175. }
  176. .my-drawer.ant-drawer-open {
  177. // width: 100% !important; // mask: false
  178. > .ant-drawer-content-wrapper {
  179. width: 70% !important;
  180. }
  181. }
  182. @media (max-width: 767.98px) {
  183. .my-drawer.ant-drawer-open {
  184. > .ant-drawer-content-wrapper {
  185. width: 100% !important;
  186. }
  187. }
  188. .ant-pro-basicLayout-content {
  189. margin: 0 !important;
  190. }
  191. }
  192. // .react-resizable {
  193. // background-clip: padding-box !important;
  194. // }
  195. // .table-resizable-handle {
  196. // position: absolute;
  197. // right: -5px;
  198. // bottom: 0;
  199. // z-index: 1;
  200. // width: 10px;
  201. // height: 100%;
  202. // cursor: col-resize;
  203. // }
  204. .card-transition {
  205. display: flex;
  206. justify-content: center;
  207. height: calc(11.11111vw - 20px);
  208. min-height: 130px;
  209. max-height: 280px;
  210. -o-object-fit: cover;
  211. object-fit: cover;
  212. overflow: hidden;
  213. border: 1px solid #f0f0f0;
  214. border-radius: 6px;
  215. transition: all 0.3s;
  216. }
  217. .card-transition:hover {
  218. border-color: transparent;
  219. box-shadow: 0 6px 16px rgb(107 147 224 / 14%);
  220. transform: translateY(-4px);
  221. }