增强Sidebar样式和模态背景模糊效果
This commit is contained in:
parent
a029e2f569
commit
223ff203ec
@ -76,18 +76,38 @@ export default defineComponent({
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.left {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
width: 210px;
|
||||
background: $menuBg;
|
||||
transition: all 0.3s;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
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;
|
||||
display: flex;
|
||||
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 {
|
||||
width: 64px;
|
||||
::v-deep(.brand .title) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.mobile {
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
@ -101,6 +121,7 @@ export default defineComponent({
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(4px);
|
||||
z-index: 9;
|
||||
}
|
||||
&.collapse {
|
||||
@ -111,4 +132,9 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mask {
|
||||
backdrop-filter: blur(4px);
|
||||
-webkit-backdrop-filter: blur(4px);
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user