yintai-company-home/src/index.css

80 lines
1.4 KiB
CSS

/* rem 基准:以设计稿 16px 为基准;再按 --ui-scale 抵消 Windows 显示缩放带来的物理尺寸偏大 */
:root {
--design-rem-base: 16px;
--ui-scale: 1;
--zoom-compensation: 1;
}
html {
font-size: calc(var(--design-rem-base) * var(--ui-scale));
}
@media screen and (max-width: 1920px) {
html {
--design-rem-base: 16px;
}
}
@media screen and (max-width: 1440px) {
html {
--design-rem-base: 14px;
}
}
@media screen and (max-width: 1024px) {
html {
--design-rem-base: 12px;
}
}
@media screen and (max-width: 768px) {
html {
--design-rem-base: 12px;
}
}
@media screen and (max-width: 480px) {
html {
--design-rem-base: 12px;
}
}
body {
margin: 0;
/* min-width: 1320px; */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
html.lenis,
html.lenis body {
height: auto;
}
.lenis.lenis-stopped {
overflow: hidden;
}
.lenis.lenis-smooth iframe {
pointer-events: none;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
@font-face {
font-family: 'D-DIN-PRO';
src: url('/public/ttf/D-DIN-PRO-400-Regular.otf');
}
@font-face {
font-family: 'Source Han Sans';
src: url('/public/ttf/SourceHanSansCN-Normal.otf');
}