87 lines
1.3 KiB
SCSS
87 lines
1.3 KiB
SCSS
body {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
font-family: CustomFont, sans-serif;
|
|
}
|
|
|
|
*,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
a:focus,
|
|
a:active {
|
|
outline: none;
|
|
}
|
|
|
|
a,
|
|
a:focus,
|
|
a:hover {
|
|
cursor: pointer;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
}
|
|
|
|
span, input {
|
|
font-family: 'CustomFont', serif;
|
|
}
|
|
|
|
// 明亮主题变量
|
|
:root {
|
|
// 基础颜色
|
|
--color-bg: #F5F5F5;
|
|
--color-card-bg: #FFFFFF;
|
|
--color-scroll-card-bg: #F8F9FA;
|
|
--color-copyright-bg: #F8F8F8;
|
|
--color-navigation-bg: #F8F8F8;
|
|
--color-border-bg: #F5F5F5;
|
|
--color-text: #000000;
|
|
}
|
|
|
|
// 暗黑主题变量
|
|
.dark {
|
|
--color-bg: #000000;
|
|
--color-card-bg: #000000;
|
|
--color-scroll-card-bg: #4C4D4F;
|
|
--color-copyright-bg: #4C4D4F;
|
|
--color-border-bg: #4C4D4F;
|
|
--color-text: #FFFFFF;
|
|
}
|
|
|
|
::view-transition-old(root),
|
|
::view-transition-new(root) {
|
|
animation: none;
|
|
}
|
|
.dark::view-transition-old(root) {
|
|
z-index: 9999;
|
|
}
|
|
|
|
@media (max-width: 1280px) {
|
|
html {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'CustomFont';
|
|
src: url('@/assets/font/custom.woff2') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|