首页 > 其他分享 >main.scss

main.scss

时间:2023-01-29 14:33:24浏览次数:40  
标签:scss box include height font grid main

/* 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

相关文章