global.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @import '~antd/es/style/themes/default.less';
  2. html,
  3. body,
  4. #root {
  5. height: 100%;
  6. // 变成灰色
  7. //-webkit-filter: grayscale(.95);
  8. }
  9. .colorWeak {
  10. filter: invert(80%);
  11. }
  12. .ant-layout {
  13. min-height: 100vh;
  14. }
  15. .ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  16. left: unset;
  17. }
  18. canvas {
  19. display: block;
  20. }
  21. body {
  22. text-rendering: optimizeLegibility;
  23. -webkit-font-smoothing: antialiased;
  24. -moz-osx-font-smoothing: grayscale;
  25. }
  26. ul,
  27. ol {
  28. list-style: none;
  29. }
  30. // 菜单图标
  31. .ant-pro-menu-item {
  32. display: flex;
  33. align-items: center;
  34. img {
  35. width: 20px;
  36. height: 20px;
  37. }
  38. }
  39. @media (max-width: @screen-xs) {
  40. .ant-table {
  41. width: 100%;
  42. overflow-x: auto;
  43. &-thead > tr,
  44. &-tbody > tr {
  45. > th,
  46. > td {
  47. white-space: pre;
  48. > span {
  49. display: block;
  50. }
  51. }
  52. }
  53. }
  54. }
  55. // Compatible with IE11
  56. @media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  57. body .ant-design-pro > .ant-layout {
  58. min-height: 100vh;
  59. }
  60. }
  61. .ant-pro-top-nav-header-logo {
  62. display: flex;
  63. justify-content: center;
  64. }
  65. .ant-form-item-required {
  66. &::before {
  67. position: absolute;
  68. right: -12px;
  69. }
  70. }
  71. .ant-formily-item-label-content {
  72. position: relative;
  73. overflow: unset;
  74. .ant-formily-item-asterisk {
  75. float: right;
  76. margin-right: 0;
  77. //position: absolute;
  78. //right: -8px;
  79. }
  80. }
  81. .ant-formily-item-colon {
  82. display: none;
  83. }
  84. .ant-page-header-heading {
  85. display: none;
  86. }
  87. .page-title-show {
  88. .ant-page-header-heading {
  89. display: flex;
  90. }
  91. }
  92. .tabs-full-active {
  93. .ant-tabs-tab-active {
  94. background-color: @primary-1;
  95. }
  96. }
  97. .ellipsis {
  98. width: 100%;
  99. overflow: hidden;
  100. white-space: nowrap;
  101. text-align: left;
  102. text-overflow: ellipsis;
  103. }
  104. .ellipsis-70 {
  105. width: 70%;
  106. overflow: hidden;
  107. white-space: nowrap;
  108. text-align: left;
  109. text-overflow: ellipsis;
  110. }
  111. // fuck chrome
  112. input[type='text'],
  113. input[type='password'],
  114. input[type='number'],
  115. input[type='tel'] {
  116. &:not([disabled]) {
  117. box-shadow: inset 0 0 0 100vw white !important;
  118. }
  119. }
  120. //引导遮罩
  121. #driver-page-overlay {
  122. opacity: 0.35 !important;
  123. }