mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46: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';
|
||||
|
||||
.stack {
|
||||
@include blur;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
width: auto;
|
||||
border-radius: $radius 0 0 $radius;
|
||||
background: $content_bg_backdrop;
|
||||
|
||||
@include sidebar_stack_limit {
|
||||
& > *:not(:last-child) {
|
||||
|
|
|
@ -1,12 +1,18 @@
|
|||
@import "src/styles/variables";
|
||||
@import 'src/styles/variables';
|
||||
|
||||
@keyframes appear {
|
||||
0% { opacity: 0; }
|
||||
100% { opacity: 1; }
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
100% { transform: translate(0, 0); }
|
||||
100% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
|
@ -17,7 +23,7 @@
|
|||
z-index: 26;
|
||||
justify-content: flex-end;
|
||||
overflow: hidden;
|
||||
animation: appear 0.25s forwards;
|
||||
// animation: appear 0.25s forwards;
|
||||
|
||||
& > * {
|
||||
z-index: 4;
|
||||
|
|
|
@ -28,9 +28,7 @@ const SettingsSidebar: VFC<SettingsSidebarProps> = ({
|
|||
openSidebar,
|
||||
}) => {
|
||||
const { isUser } = useAuth();
|
||||
const {
|
||||
user: { cover },
|
||||
} = useUser();
|
||||
const cover = false;
|
||||
|
||||
const tab = useMemo(
|
||||
() => (page ? Math.max(tabs.indexOf(page), 0) : undefined),
|
||||
|
|
|
@ -112,8 +112,7 @@
|
|||
@supports ((bla-bla-bla: 4px)) {
|
||||
@content;
|
||||
}
|
||||
// uncomment if you like blur performance again :-)
|
||||
/*
|
||||
|
||||
@supports (
|
||||
(-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;
|
||||
|
||||
@include can_backdrop {
|
||||
|
|
|
@ -63,7 +63,7 @@ $_brown: #23201f;
|
|||
--content_bg_success: #{transparentize($_wisegreen, 0.7)};
|
||||
--content_bg_info: #{transparentize($_blue, 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: white;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue