global.less 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @import '~antd/es/style/variable.less';
  2. @import '~antd/dist/antd.less'; // 引入官方提供的 less 样式入口文件
  3. @import './assets/css/antd-tenants.less';
  4. @import './assets/css/antd-reset.less';
  5. html,
  6. body,
  7. #root {
  8. height: 100%;
  9. }
  10. .colorWeak {
  11. filter: invert(80%);
  12. }
  13. .ant-layout {
  14. min-height: 100vh;
  15. }
  16. .ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  17. left: unset;
  18. }
  19. canvas {
  20. display: block;
  21. }
  22. body {
  23. text-rendering: optimizeLegibility;
  24. -webkit-font-smoothing: antialiased;
  25. -moz-osx-font-smoothing: grayscale;
  26. }
  27. ul,
  28. ol {
  29. list-style: none;
  30. }
  31. @media (max-width: @screen-xs) {
  32. .ant-table {
  33. width: 100%;
  34. overflow-x: auto;
  35. &-thead > tr,
  36. &-tbody > tr {
  37. > th,
  38. > td {
  39. white-space: pre;
  40. > span {
  41. display: block;
  42. }
  43. }
  44. }
  45. }
  46. }
  47. // Compatible with IE11
  48. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  49. body .ant-design-pro > .ant-layout {
  50. min-height: 100vh;
  51. }
  52. }