global.less 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @import '~antd/es/style/themes/default.less';
  2. @import './assets/css/common.less';
  3. html,
  4. body,
  5. #root {
  6. height: 100%;
  7. }
  8. .colorWeak {
  9. filter: invert(80%);
  10. }
  11. .ant-layout {
  12. min-height: 100vh;
  13. }
  14. .ant-menu-submenu-selected .ant-menu-submenu-title {
  15. background: #595284;
  16. border-left: 3px solid #886ab5;
  17. }
  18. .ant-menu-dark .ant-menu-inline.ant-menu-sub {
  19. background: #4a4473;
  20. }
  21. .ant-menu-dark .ant-menu-item-only-child:hover {
  22. background: #423d68;
  23. }
  24. .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
  25. background: #4a4473;
  26. border-right: 3px solid #24b3a4;
  27. }
  28. .ant-menu-inline .ant-menu-submenu-title {
  29. margin-bottom: 0;
  30. }
  31. canvas {
  32. display: block;
  33. }
  34. body {
  35. text-rendering: optimizeLegibility;
  36. -webkit-font-smoothing: antialiased;
  37. -moz-osx-font-smoothing: grayscale;
  38. }
  39. ul,
  40. ol {
  41. list-style: none;
  42. }
  43. @media (max-width: @screen-xs) {
  44. .ant-table {
  45. width: 100%;
  46. overflow-x: auto;
  47. &-thead > tr,
  48. &-tbody > tr {
  49. > th,
  50. > td {
  51. white-space: pre;
  52. > span {
  53. display: block;
  54. }
  55. }
  56. }
  57. }
  58. }
  59. // 兼容IE11
  60. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  61. body .ant-design-pro > .ant-layout {
  62. min-height: 100vh;
  63. }
  64. }