Skip to content

Commit

Permalink
made siderbar actions sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciphrox committed Feb 15, 2025
1 parent 85cb0d1 commit d42c8d8
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions src/assets/styles/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,19 @@
}

[popover] .nav--list__item {
& a {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
transition: all 0.2s ease;
}
display: flex;
align-items: center;
padding: 0.25rem;
transition: all 0.2s ease;
}

[popover] .nav--list__item a {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
transition: all 0.2s ease;
}

[popover] .nav--list__item.active {
Expand Down Expand Up @@ -94,7 +100,6 @@

& a {
justify-content: center;
padding: 0.5rem;
}

& .text {
Expand Down Expand Up @@ -128,13 +133,6 @@
border: 2px solid #0000;
}

[popover] .nav--list__item {
display: flex;
align-items: center;
padding: 0.25rem 0.75rem;
transition: all 0.2s ease;
}

[popover] ul {
list-style-position: inside;
padding: 0;
Expand Down Expand Up @@ -266,8 +264,9 @@

.actions {
justify-content: flex-end;
position: absolute;
position: sticky;
bottom: 0;
z-index: 1;
right: 0;
left: 0;
translate: 0 calc(clamp(0, var(--ty), var(--distance) - 88) * -1px);
Expand Down Expand Up @@ -443,6 +442,9 @@
padding: 1rem;
border-top: 1px solid var(--border);
margin-top: auto;
position: sticky;
bottom: 0;
z-index: 1;

button {
width: 44px;
Expand Down Expand Up @@ -490,4 +492,11 @@
[data-debug="false"] .debug-toggle g:first-of-type {
display: block;
}

[popover] nav {
overflow-y: auto;
overflow-x: hidden;
flex: 1;
padding-bottom: 1rem;
}
}

0 comments on commit d42c8d8

Please sign in to comment.