mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
fixed sidebar z-indexes
This commit is contained in:
parent
e28fdd2c05
commit
2e65992a84
3 changed files with 20 additions and 23 deletions
|
@ -23,6 +23,7 @@ const SidebarWrapper: FC<IProps> = ({ children, onClose }) => {
|
|||
return createPortal(
|
||||
<div className={styles.wrapper} ref={ref}>
|
||||
<div className={styles.clicker} onClick={onClose} />
|
||||
|
||||
{children}
|
||||
</div>,
|
||||
document.body
|
||||
|
|
|
@ -20,19 +20,11 @@
|
|||
overflow: hidden;
|
||||
animation: appear 0.25s forwards;
|
||||
|
||||
@include sidebar
|
||||
}
|
||||
@include sidebar;
|
||||
|
||||
.content {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
animation: slideIn 0.5s 0.1s forwards;
|
||||
transform: translate(100%, 0);
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
& > * {
|
||||
z-index: 4;
|
||||
}
|
||||
}
|
||||
|
||||
.clicker {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue