优化样式,调整背景模糊效果和颜色透明度,以提升用户界面视觉效果。

This commit is contained in:
jxxghp
2025-05-14 14:22:44 +08:00
parent 5c0d0d5a95
commit a82a89afd3
2 changed files with 39 additions and 86 deletions
+34 -81
View File
@@ -3,6 +3,14 @@
background: transparent; background: transparent;
box-shadow: none; box-shadow: none;
.v-theme--light & {
border-radius: 0 0 16px 16px;
backdrop-filter: blur(16px);
background: rgba(var(--v-theme-surface), 0.6);
box-shadow: 0 0 8px 0 rgba(var(--v-theme-on-surface), 0.1);
}
&::before { &::before {
position: absolute; position: absolute;
z-index: -1; z-index: -1;
@@ -11,83 +19,17 @@
inset-block-start: 0; inset-block-start: 0;
inset-inline: 0; inset-inline: 0;
pointer-events: none; pointer-events: none;
transition: opacity 0.2s ease-in-out, background 0.2s ease-in-out; transition: all 0.2s ease-in-out;
// PC端样式 (默认)
.v-theme--light & {
background: linear-gradient(
to bottom,
rgba(var(--v-theme-surface), 0.9) 0%,
rgba(var(--v-theme-surface), 0.7) 20%,
rgba(var(--v-theme-surface), 0.5) 40%,
rgba(var(--v-theme-surface), 0.3) 60%,
rgba(var(--v-theme-surface), 0.1) 80%,
rgba(var(--v-theme-surface), 0.0) 100%
);
}
.v-theme--dark & {
background: linear-gradient(
to bottom,
rgba(var(--v-theme-background), 0.8) 0%,
rgba(var(--v-theme-background), 0.6) 20%,
rgba(var(--v-theme-background), 0.4) 40%,
rgba(var(--v-theme-background), 0.25) 60%,
rgba(var(--v-theme-background), 0.1) 80%,
rgba(var(--v-theme-background), 0.0) 100%
);
}
.v-theme--purple & {
background: linear-gradient(
to bottom,
rgba(var(--v-theme-background), 0.8) 0%,
rgba(var(--v-theme-background), 0.6) 20%,
rgba(var(--v-theme-background), 0.4) 40%,
rgba(var(--v-theme-background), 0.25) 60%,
rgba(var(--v-theme-background), 0.1) 80%,
rgba(var(--v-theme-background), 0.0) 100%
);
}
.v-theme--transparent & {
background: linear-gradient(
to bottom,
rgba(11, 11, 11, 60%) 0%,
rgba(11, 11, 11, 50%) 20%,
rgba(11, 11, 11, 40%) 40%,
rgba(11, 11, 11, 25%) 60%,
rgba(11, 11, 11, 10%) 80%,
rgba(11, 11, 11, 0%) 100%
);
}
}
}
// 移动端样式
@media (pointer: coarse) {
%blurry-bg {
&::before {
.v-theme--light & {
background: linear-gradient(
to bottom,
rgba(var(--v-theme-surface), 1) 0%,
rgba(var(--v-theme-surface), 0.9) 20%,
rgba(var(--v-theme-surface), 0.7) 40%,
rgba(var(--v-theme-surface), 0.5) 60%,
rgba(var(--v-theme-surface), 0.2) 80%,
rgba(var(--v-theme-surface), 0.0) 100%
);
}
.v-theme--dark & { .v-theme--dark & {
background: linear-gradient( background: linear-gradient(
to bottom, to bottom,
rgba(var(--v-theme-background), 1) 0%, rgba(var(--v-theme-background), 1) 0%,
rgba(var(--v-theme-background), 0.85) 20%, rgba(var(--v-theme-background), 0.8) 20%,
rgba(var(--v-theme-background), 0.7) 40%, rgba(var(--v-theme-background), 0.6) 40%,
rgba(var(--v-theme-background), 0.5) 60%, rgba(var(--v-theme-background), 0.4) 60%,
rgba(var(--v-theme-background), 0.3) 80%, rgba(var(--v-theme-background), 0.2) 80%,
rgba(var(--v-theme-background), 0.0) 100% rgba(var(--v-theme-background), 0.0) 100%
); );
} }
@@ -96,10 +38,10 @@
background: linear-gradient( background: linear-gradient(
to bottom, to bottom,
rgba(var(--v-theme-background), 1) 0%, rgba(var(--v-theme-background), 1) 0%,
rgba(var(--v-theme-background), 0.85) 20%, rgba(var(--v-theme-background), 0.8) 20%,
rgba(var(--v-theme-background), 0.7) 40%, rgba(var(--v-theme-background), 0.6) 40%,
rgba(var(--v-theme-background), 0.5) 60%, rgba(var(--v-theme-background), 0.4) 60%,
rgba(var(--v-theme-background), 0.3) 80%, rgba(var(--v-theme-background), 0.2) 80%,
rgba(var(--v-theme-background), 0.0) 100% rgba(var(--v-theme-background), 0.0) 100%
); );
} }
@@ -107,12 +49,23 @@
.v-theme--transparent & { .v-theme--transparent & {
background: linear-gradient( background: linear-gradient(
to bottom, to bottom,
rgba(11, 11, 11, 90%) 0%, rgba(var(--v-theme-background), 0.5) 0%,
rgba(11, 11, 11, 80%) 20%, rgba(var(--v-theme-background), 0.4) 20%,
rgba(11, 11, 11, 60%) 40%, rgba(var(--v-theme-background), 0.3) 40%,
rgba(11, 11, 11, 40%) 60%, rgba(var(--v-theme-background), 0.2) 60%,
rgba(11, 11, 11, 15%) 80%, rgba(var(--v-theme-background), 0.1) 80%,
rgba(11, 11, 11, 0%) 100% rgba(var(--v-theme-background), 0.0) 100%
);
@media (width <= 640px) {
background: linear-gradient(
to bottom,
rgba(var(--v-theme-background), 0.9) 0%,
rgba(var(--v-theme-background), 0.7) 20%,
rgba(var(--v-theme-background), 0.5) 40%,
rgba(var(--v-theme-background), 0.3) 60%,
rgba(var(--v-theme-background), 0.1) 80%,
rgba(var(--v-theme-background), 0.0) 100%
); );
} }
} }
+2 -2
View File
@@ -183,8 +183,8 @@ const showDynamicButton = computed(() => {
.footer-nav-card { .footer-nav-card {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
backdrop-filter: blur(12px); backdrop-filter: blur(16px);
background-color: rgba(var(--v-theme-surface), 0.8); background-color: rgba(var(--v-theme-surface), 0.6);
pointer-events: auto; pointer-events: auto;
transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);