mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed can_backdrop usage
This commit is contained in:
parent
f1d05b1da9
commit
dde02dc2e3
6 changed files with 15 additions and 34 deletions
|
@ -51,12 +51,8 @@
|
|||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: transparentize($color: $content_bg, $amount: 0.1);
|
||||
cursor: pointer;
|
||||
animation: appear 0.25s forwards;
|
||||
|
||||
@include can_backdrop {
|
||||
backdrop-filter: blur(15px);
|
||||
background: transparentize($color: $content_bg, $amount: 0.9);
|
||||
}
|
||||
@include blur();
|
||||
}
|
||||
|
|
|
@ -16,15 +16,12 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 21;
|
||||
background: transparentize($color: #000000, $amount: 0.9);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation: appear 0.25s forwards;
|
||||
|
||||
@include can_backdrop {
|
||||
backdrop-filter: blur(15px);
|
||||
}
|
||||
@include blur();
|
||||
}
|
||||
|
||||
.title {
|
||||
|
|
|
@ -19,13 +19,7 @@
|
|||
}
|
||||
|
||||
&.is_scrolled {
|
||||
background: transparentize($content_bg, 0.05);
|
||||
|
||||
@include can_backdrop {
|
||||
background: transparentize($content_bg, 0.25);
|
||||
-webkit-backdrop-filter: blur(5px);
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
@include blur();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
border-radius: $radius $radius 0 0;
|
||||
box-sizing: border-box;
|
||||
padding: $gap $gap;
|
||||
background: $node_bg;
|
||||
height: 64px;
|
||||
min-width: 0;
|
||||
|
||||
|
@ -69,11 +68,6 @@
|
|||
border-radius: 0;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@include can_backdrop {
|
||||
backdrop-filter: blur(15px);
|
||||
background: transparentize($node_bg, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 2;
|
||||
background-color: transparentize($red, 0.5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
|
@ -16,10 +15,7 @@
|
|||
box-sizing: border-box;
|
||||
border-radius: $radius;
|
||||
|
||||
@include can_backdrop {
|
||||
background-color: transparentize($red, 0.5);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
@include blur($red);
|
||||
}
|
||||
|
||||
.title {
|
||||
|
|
|
@ -160,6 +160,16 @@ $sidebar_border: transparentize(white, 0.95);
|
|||
}
|
||||
}
|
||||
|
||||
@mixin blur($color: $content_bg, $radius: 15px) {
|
||||
background: transparentize($color, 0.1);
|
||||
|
||||
@include can_backdrop {
|
||||
backdrop-filter: blur($radius);
|
||||
-webkit-backdrop-filter: blur($radius);
|
||||
background: transparentize($color, 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin title_with_line {
|
||||
font: $font_14_semibold;
|
||||
text-transform: uppercase;
|
||||
|
@ -190,13 +200,7 @@ $sidebar_border: transparentize(white, 0.95);
|
|||
}
|
||||
|
||||
@mixin sidebar {
|
||||
background: transparentize($content_bg, 0.15);
|
||||
|
||||
@include can_backdrop {
|
||||
background: transparentize($content_bg, 0.3);
|
||||
-webkit-backdrop-filter: blur(15px);
|
||||
backdrop-filter: blur(15px);
|
||||
}
|
||||
@include blur();
|
||||
}
|
||||
|
||||
@mixin sidebar_content(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue