Files
fe_supplier_frontend/src/global.less

78 lines
1.3 KiB
Plaintext

@import '~antd/es/style/themes/default.less';
@import './baseStyle.less';
// 页面公用样式
@import './utils/componentStyle.less';
@font-face {
font-family: 'HarmonyOS Sans SC';
src: url('./assets/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
html,
body,
#root {
height: 100%;
}
.colorWeak {
filter: invert(80%);
}
body {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.ant-layout-header {
background: #fff;
color: @main-text-color;
padding: 0;
}
.ant-btn {
&.ant-btn-link {
padding: 4px 8px;
}
}
.ant-layout {
// min-height: 100vh;
}
canvas {
display: block;
}
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;
}
}
}
}
}
// Compatible with IE11
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
body .ant-design-pro > .ant-layout {
// min-height: 100vh;
}
}