@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.ant-design-pro {
  .ant-pro-basicLayout-content {
    margin-bottom: 0;
  }
}

.ant-pro-basicLayout-content .ant-pro-page-header-wrap {
  margin: 0 0 0 0;
}

.ant-layout-footer {
  .ant-pro-global-footer {
    margin: 10px 0 6px 0;
  }
  .ant-pro-global-footer-links {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 2px;
  }
  .ant-pro-global-footer-copyright {
    display: inline-block;
  }
}
