重构项目,方便开发
This commit is contained in:
51
frontend-vue/src/styles/main.css
Normal file
51
frontend-vue/src/styles/main.css
Normal file
@@ -0,0 +1,51 @@
|
||||
@import './tokens.css';
|
||||
@import './reset.css';
|
||||
|
||||
body {
|
||||
background: var(--color-bg-light);
|
||||
}
|
||||
|
||||
html {
|
||||
scrollbar-color: rgba(123, 135, 148, 0.7) rgba(255, 255, 255, 0.04);
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-track {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background: rgba(123, 135, 148, 0.7);
|
||||
border: 2px solid transparent;
|
||||
border-radius: 999px;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(148, 163, 184, 0.9);
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.theme-light {
|
||||
background: var(--color-bg-light);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.theme-dark {
|
||||
background: var(--color-bg-dark);
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
27
frontend-vue/src/styles/reset.css
Normal file
27
frontend-vue/src/styles/reset.css
Normal file
@@ -0,0 +1,27 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
margin: 0;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-family-base);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
17
frontend-vue/src/styles/tokens.css
Normal file
17
frontend-vue/src/styles/tokens.css
Normal file
@@ -0,0 +1,17 @@
|
||||
:root {
|
||||
--font-family-base: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
|
||||
--color-primary: #409eff;
|
||||
--color-bg-light: #eef3f8;
|
||||
--color-bg-dark: #0d0d0d;
|
||||
--color-surface-light: rgba(255, 255, 255, 0.92);
|
||||
--color-surface-dark: #1a1a1a;
|
||||
--color-border-light: #d6e4ef;
|
||||
--color-border-dark: #2a2a2a;
|
||||
--color-text-primary: #303133;
|
||||
--color-text-secondary: #606266;
|
||||
--color-text-dark: #e5eaf3;
|
||||
--shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
|
||||
--radius-lg: 16px;
|
||||
--radius-md: 12px;
|
||||
--radius-sm: 8px;
|
||||
}
|
||||
Reference in New Issue
Block a user