feat:初始化工程
This commit is contained in:
83
src/styles/index.module.scss
Normal file
83
src/styles/index.module.scss
Normal file
@@ -0,0 +1,83 @@
|
||||
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-record-card-bg: #F5F5DC;
|
||||
--color-border-bg: #FFFFFF;
|
||||
--color-text: #000000;
|
||||
}
|
||||
|
||||
// 暗黑主题变量
|
||||
.dark {
|
||||
--color-bg: #000000;
|
||||
--color-card-bg: #000000;
|
||||
--color-record-card-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.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
Reference in New Issue
Block a user