index.scss
index.scss
@use "@/styles/global-class.scss";
@use "@/styles/theme.scss";
@use "nprogress/nprogress.css";
body {
width: 100vw;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizelegibility;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
background-color: #f5f7f9;
}
html {
font-size: 14px;
box-sizing: border-box;
overflow-y: scroll;
-webkit-tap-highlight-color: rgb(255 255 255 / 0%);
}
html.dark {
color: #fff;
}
:root {
overflow-y: auto;
overflow-x: hidden;
}
:root body {
margin: 0;
padding: 0;
height: 100%;
position: absolute;
}
#app,
html {
height: 100%;
}
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
background-color: transparent;
outline: none;
}
ul,
ol {
list-style: none;
}
svg {
box-sizing: content-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
// 滚动条样式
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-thumb {
background: rgba(#000, 0.2);
border-radius: 3px;
}
::-webkit-scrollbar-track {
background: rgba(#000, 0.06);
border-radius: 3px;
}
// el-table 表格与表头错位 bug
body .el-table th.gutter {
display: table-cell !important;
}
body .el-table colgroup.gutter {
display: table-cell !important;
}
table {
width: 100% !important;
}
// https://stackoverflow.com/questions/43778196/input-background-removed-by-chrome-autofill
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px #fff inset;
-moz-box-shadow: 0 0 0 100px #fff inset;
box-shadow: 0 0 0 100px #fff inset;
}