feat: style
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
:root {
|
:root {
|
||||||
|
overflow-y: scroll;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
font-family:
|
font-family:
|
||||||
"Inter",
|
"Inter",
|
||||||
-apple-system,
|
-apple-system,
|
||||||
@@ -51,7 +53,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
max-width: 1400px;
|
/* max-width: 1400px; */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -119,9 +121,8 @@ body {
|
|||||||
/* 动画和过渡 */
|
/* 动画和过渡 */
|
||||||
.fade-enter-active,
|
.fade-enter-active,
|
||||||
.fade-leave-active {
|
.fade-leave-active {
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-enter-from,
|
.fade-enter-from,
|
||||||
.fade-leave-to {
|
.fade-leave-to {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -129,7 +130,7 @@ body {
|
|||||||
|
|
||||||
.slide-enter-active,
|
.slide-enter-active,
|
||||||
.slide-leave-active {
|
.slide-leave-active {
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-enter-from {
|
.slide-enter-from {
|
||||||
@@ -167,7 +168,7 @@ body {
|
|||||||
border-radius: var(--border-radius-lg);
|
border-radius: var(--border-radius-lg);
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: var(--shadow-lg);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-card:hover {
|
.modern-card:hover {
|
||||||
@@ -178,7 +179,7 @@ body {
|
|||||||
/* 按钮增强 */
|
/* 按钮增强 */
|
||||||
.modern-button {
|
.modern-button {
|
||||||
border-radius: var(--border-radius-md);
|
border-radius: var(--border-radius-md);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
@@ -191,7 +192,7 @@ body {
|
|||||||
/* 输入框增强 */
|
/* 输入框增强 */
|
||||||
.modern-input {
|
.modern-input {
|
||||||
border-radius: var(--border-radius-md);
|
border-radius: var(--border-radius-md);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-input:focus {
|
.modern-input:focus {
|
||||||
@@ -266,8 +267,8 @@ body {
|
|||||||
/* 悬停效果增强 */
|
/* 悬停效果增强 */
|
||||||
.hover-lift {
|
.hover-lift {
|
||||||
transition:
|
transition:
|
||||||
transform 0.3s ease,
|
transform 0.2s ease,
|
||||||
box-shadow 0.3s ease;
|
box-shadow 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hover-lift:hover {
|
.hover-lift:hover {
|
||||||
@@ -328,3 +329,7 @@ body {
|
|||||||
.bounce {
|
.bounce {
|
||||||
animation: bounce 1s ease-in-out;
|
animation: bounce 1s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.n-layout-scroll-container {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
@@ -56,7 +56,7 @@ onMounted(() => {
|
|||||||
v-for="(stat, index) in stats"
|
v-for="(stat, index) in stats"
|
||||||
:key="stat.title"
|
:key="stat.title"
|
||||||
class="stat-card modern-card"
|
class="stat-card modern-card"
|
||||||
:style="{ animationDelay: `${index * 0.1}s` }"
|
:style="{ animationDelay: `${index * 0.07}s` }"
|
||||||
>
|
>
|
||||||
<div class="stat-header">
|
<div class="stat-header">
|
||||||
<div class="stat-icon" :style="{ background: stat.color }">
|
<div class="stat-icon" :style="{ background: stat.color }">
|
||||||
@@ -92,7 +92,7 @@ onMounted(() => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.stats-container {
|
.stats-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
animation: fadeInUp 0.6s ease-out;
|
animation: fadeInUp 0.2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-grid {
|
.stats-grid {
|
||||||
@@ -108,7 +108,7 @@ onMounted(() => {
|
|||||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
animation: slideInUp 0.6s ease-out both;
|
animation: slideInUp 0.2s ease-out both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-header {
|
.stat-header {
|
||||||
@@ -190,7 +190,7 @@ onMounted(() => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
transition: width 1s ease-out;
|
transition: width 1s ease-out;
|
||||||
transition-delay: 0.3s;
|
transition-delay: 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideInUp {
|
@keyframes slideInUp {
|
||||||
|
@@ -57,14 +57,14 @@ import NavBar from "@/components/NavBar.vue";
|
|||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
|
max-width: 1400px;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-content {
|
.header-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
max-width: 1400px;
|
|
||||||
margin: 0 auto;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
@@ -100,14 +100,18 @@ import NavBar from "@/components/NavBar.vue";
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header-nav {
|
.header-nav {
|
||||||
flex: 1;
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
max-width: 600px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-actions {
|
.header-actions {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-content {
|
.layout-content {
|
||||||
@@ -152,22 +156,6 @@ import NavBar from "@/components/NavBar.vue";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 过渡动画 */
|
|
||||||
.fade-enter-active,
|
|
||||||
.fade-leave-active {
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fade-enter-from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(10px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.fade-leave-to {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(-10px);
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.n-layout-header) {
|
:deep(.n-layout-header) {
|
||||||
height: 64px;
|
height: 64px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@@ -215,11 +215,11 @@ onMounted(() => {
|
|||||||
|
|
||||||
.chart-line {
|
.chart-line {
|
||||||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
|
||||||
transition: stroke-dashoffset 2s ease-out;
|
transition: stroke-dashoffset 0.2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-point {
|
.chart-point {
|
||||||
transition: r 0.3s ease;
|
transition: r 0.2s ease;
|
||||||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -30,7 +30,7 @@ const handleLogout = () => {
|
|||||||
background: rgba(255, 255, 255, 0.8);
|
background: rgba(255, 255, 255, 0.8);
|
||||||
backdrop-filter: blur(8px);
|
backdrop-filter: blur(8px);
|
||||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
letter-spacing: 0.2px;
|
letter-spacing: 0.2px;
|
||||||
}
|
}
|
||||||
|
@@ -58,7 +58,7 @@ function renderMenuItem(key: string, label: string, icon: string): MenuOption {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-radius: var(--border-radius-md);
|
border-radius: var(--border-radius-md);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,12 +81,13 @@ function renderMenuItem(key: string, label: string, icon: string): MenuOption {
|
|||||||
:deep(.n-menu) {
|
:deep(.n-menu) {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.n-menu-item) {
|
:deep(.n-menu-item) {
|
||||||
border-radius: var(--border-radius-md);
|
border-radius: var(--border-radius-md);
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.n-menu-item:hover) {
|
:deep(.n-menu-item:hover) {
|
||||||
|
@@ -54,7 +54,7 @@ import LineChart from "@/components/LineChart.vue";
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dashboard-chart {
|
.dashboard-chart {
|
||||||
animation: fadeInUp 0.6s ease-out 0.2s both;
|
animation: fadeInUp 0.2s ease-out 0.2s both;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeInUp {
|
@keyframes fadeInUp {
|
||||||
|
@@ -169,20 +169,20 @@ async function handleSubmit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settings-category {
|
.settings-category {
|
||||||
animation: fadeInUp 0.6s ease-out both;
|
animation: fadeInUp 0.2s ease-out both;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-category:nth-child(2) {
|
.settings-category:nth-child(2) {
|
||||||
animation-delay: 0.1s;
|
animation-delay: 0.07s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-category:nth-child(3) {
|
.settings-category:nth-child(3) {
|
||||||
animation-delay: 0.2s;
|
animation-delay: 0.14s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-category:nth-child(4) {
|
.settings-category:nth-child(4) {
|
||||||
animation-delay: 0.3s;
|
animation-delay: 0.21s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-card {
|
.category-card {
|
||||||
|
Reference in New Issue
Block a user