mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fix backdrop appearances
This commit is contained in:
parent
ee049eb430
commit
cbf7b1f616
5 changed files with 16 additions and 15 deletions
|
@ -1,12 +1,11 @@
|
||||||
@import 'src/styles/variables';
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.stack {
|
.stack {
|
||||||
@include blur;
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
width: auto;
|
width: auto;
|
||||||
border-radius: $radius 0 0 $radius;
|
border-radius: $radius 0 0 $radius;
|
||||||
|
background: $content_bg_backdrop;
|
||||||
|
|
||||||
@include sidebar_stack_limit {
|
@include sidebar_stack_limit {
|
||||||
& > *:not(:last-child) {
|
& > *:not(:last-child) {
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
0% { opacity: 0; }
|
0% {
|
||||||
100% { opacity: 1; }
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideIn {
|
@keyframes slideIn {
|
||||||
100% { transform: translate(0, 0); }
|
100% {
|
||||||
|
transform: translate(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
@ -17,7 +23,7 @@
|
||||||
z-index: 26;
|
z-index: 26;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
animation: appear 0.25s forwards;
|
// animation: appear 0.25s forwards;
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
|
|
|
@ -28,9 +28,7 @@ const SettingsSidebar: VFC<SettingsSidebarProps> = ({
|
||||||
openSidebar,
|
openSidebar,
|
||||||
}) => {
|
}) => {
|
||||||
const { isUser } = useAuth();
|
const { isUser } = useAuth();
|
||||||
const {
|
const cover = false;
|
||||||
user: { cover },
|
|
||||||
} = useUser();
|
|
||||||
|
|
||||||
const tab = useMemo(
|
const tab = useMemo(
|
||||||
() => (page ? Math.max(tabs.indexOf(page), 0) : undefined),
|
() => (page ? Math.max(tabs.indexOf(page), 0) : undefined),
|
||||||
|
|
|
@ -112,8 +112,7 @@
|
||||||
@supports ((bla-bla-bla: 4px)) {
|
@supports ((bla-bla-bla: 4px)) {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
// uncomment if you like blur performance again :-)
|
|
||||||
/*
|
|
||||||
@supports (
|
@supports (
|
||||||
(-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))
|
(-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))
|
||||||
) {
|
) {
|
||||||
|
@ -128,10 +127,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin blur($color: $content_bg_backdrop, $radius: 15px) {
|
@mixin blur($color: $content_bg_backdrop, $radius: 10px) {
|
||||||
background: $color;
|
background: $color;
|
||||||
|
|
||||||
@include can_backdrop {
|
@include can_backdrop {
|
||||||
|
|
|
@ -63,7 +63,7 @@ $_brown: #23201f;
|
||||||
--content_bg_success: #{transparentize($_wisegreen, 0.7)};
|
--content_bg_success: #{transparentize($_wisegreen, 0.7)};
|
||||||
--content_bg_info: #{transparentize($_blue, 0.5)};
|
--content_bg_info: #{transparentize($_blue, 0.5)};
|
||||||
--content_bg_danger: #{transparentize($_red, 0.5)};
|
--content_bg_danger: #{transparentize($_red, 0.5)};
|
||||||
--content_bg_backdrop: #{transparentize($_brown, 0.05)};
|
--content_bg_backdrop: #{transparentize($_brown, 0.3)};
|
||||||
|
|
||||||
// white shades (move to --vars)
|
// white shades (move to --vars)
|
||||||
--white: white;
|
--white: white;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue