/* main.scss */
@import './color.scss';
@import './mixin.scss';
*, *::before, *::after {
box-sizing: border-box;
}
html {
text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html:focus-within { scroll-behavior: smooth; }
body {
@include black(1);
@include white-bg(1);
position: relative;
width: 100%;
min-height: 100vh;
display: grid;
grid-template-columns: 1fr;
overflow: hidden;
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
font-size: 1.4rem;
text-rendering: optimizespeed;
line-height: 1.5;
font-family: -apple-system, BlinkMacSystemFont, 'Open Sans', Ubuntu, 'PingFang SC', system-ui, sans-serif;
letter-spacing: 0.02rem;
}
#root {
position: relative;
width: 100%;
height: 100vh;
display: grid;
grid-template-columns: 1fr;
overflow-y: hidden;
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
}
::selection {
@include white(1);
@include tomato-bg(1);
}
标签:scss,box,include,height,font,grid,main
From: https://www.cnblogs.com/h6lianfu/p/17072598.html