增强Sidebar样式和模态背景模糊效果

This commit is contained in:
bakaECC 2025-12-10 16:28:00 +08:00
parent a029e2f569
commit 223ff203ec

View File

@ -76,18 +76,38 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
.left { .left {
position: relative;
z-index: 10;
width: 210px; width: 210px;
background: $menuBg; background: rgba(255, 255, 255, 0.3);
transition: all 0.3s; backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-right: 1px solid rgba(255, 255, 255, 0.3);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-shadow: 4px 0 16px rgba(0, 0, 0, 0.03);
//
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
pointer-events: none;
}
&.collapse { &.collapse {
width: 64px; width: 64px;
::v-deep(.brand .title) { ::v-deep(.brand .title) {
display: none; display: none;
} }
} }
&.mobile { &.mobile {
height: 100%; height: 100%;
position: fixed; position: fixed;
@ -101,6 +121,7 @@ export default defineComponent({
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
z-index: 9; z-index: 9;
} }
&.collapse { &.collapse {
@ -111,4 +132,9 @@ export default defineComponent({
} }
} }
} }
.mask {
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
</style> </style>