global.less 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @import '~antd/es/style/variable.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-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  14. left: unset;
  15. }
  16. canvas {
  17. display: block;
  18. }
  19. body {
  20. text-rendering: optimizeLegibility;
  21. -webkit-font-smoothing: antialiased;
  22. -moz-osx-font-smoothing: grayscale;
  23. }
  24. ul,
  25. ol {
  26. list-style: none;
  27. }
  28. @media (max-width: @screen-xs) {
  29. .ant-table {
  30. width: 100%;
  31. overflow-x: auto;
  32. &-thead > tr,
  33. &-tbody > tr {
  34. > th,
  35. > td {
  36. white-space: pre;
  37. > span {
  38. display: block;
  39. }
  40. }
  41. }
  42. }
  43. }
  44. // Compatible with IE11
  45. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  46. body .ant-design-pro > .ant-layout {
  47. min-height: 100vh;
  48. }
  49. }
  50. .full-height {
  51. height: 100%;
  52. }
  53. .flex {
  54. display: flex;
  55. }
  56. .flex-column {
  57. flex-direction: column;
  58. }
  59. .flex-0 {
  60. flex: 0;
  61. }
  62. .flex-1 {
  63. flex: 1;
  64. }
  65. // 修改大屏地图的 zoom 空间样式
  66. .amap-toolbar {
  67. background-color: rgba(255, 255, 255, 0.3);
  68. }
  69. .amap-toolbar span:first-child {
  70. border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  71. }
  72. .amap-marker-label {
  73. background: transparent;
  74. border: none;
  75. }