mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-25 00:35:42 +00:00
79 lines
1.5 KiB
CSS
79 lines
1.5 KiB
CSS
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
:host {
|
|
transition: transform 0.1s ease-in-out;
|
|
transform: translateX(-100%);
|
|
z-index: 1;
|
|
display: block;
|
|
position: absolute;
|
|
height: 100%;
|
|
}
|
|
|
|
:host([open]) {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
#zen-library-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 8px;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
width: 84px;
|
|
-moz-window-dragging: drag;
|
|
box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.025);
|
|
}
|
|
|
|
#zen-library-content {
|
|
display: flex;
|
|
transition: width 0.15s ease-in-out;
|
|
width: 45vw;
|
|
max-width: 100%;
|
|
|
|
&[large-content] {
|
|
width: 80vw;
|
|
}
|
|
}
|
|
|
|
#zen-library-sidebar-tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
-moz-window-dragging: no-drag;
|
|
}
|
|
|
|
.zen-library-tab {
|
|
display: flex;
|
|
padding: 12px 0;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: transparent;
|
|
position: relative;
|
|
font-weight: 600;
|
|
|
|
&::before {
|
|
content: "";
|
|
inset: 0;
|
|
border-radius: 6px;
|
|
transition: transform 0.1s ease-in-out;
|
|
position: absolute;
|
|
}
|
|
|
|
&:hover::before {
|
|
background: color-mix(in srgb, currentColor 5%, transparent);
|
|
}
|
|
|
|
&[active]::before {
|
|
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
}
|
|
|
|
&:active:hover::before {
|
|
transform: scale(0.95);
|
|
}
|
|
}
|