global.less 1.21 KB
@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;
}

#logo {
  width: 200px;
}

.ant-pro-top-nav-header-menu {
  max-width: 860px !important;
}

.antd-pro-components-global-header-index-right {
  width: 154px !important;
}

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

.ant-pro-sider-menu-logo h1 {
  font-size: 18px !important;
}
// 设置PageHeaderwrapper的基础样式
.ant-pro-grid-content.wide {
    max-width: 1200px;
    min-width: 1000px;
    margin: 0 auto;
}
//iconfont图标的图标样式
.ant-pro-icon {
    width: 1.1em; 
    height: 1.1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    margin: 0 5px;
}
//menu头
.ant-layout-sider-children > .ant-pro-sider-menu-logo, #logo {
  width: 100%;
}