This commit is contained in:
2025-11-12 02:24:46 +01:00
parent 44c982f015
commit 32ef3ced59
12 changed files with 700 additions and 31 deletions
+46 -3
View File
@@ -128,10 +128,53 @@
color: var(--sidebar-fg);
display: flex;
flex-direction: column;
width: 20em;
max-width: 20em;
flex: 0 0 20em;
width: min(100vw, var(--sidebar-width));
max-width: min(100vw, var(--sidebar-width));
flex: 0 0 var(--sidebar-width);
background: var(--bg);
position: relative;
}
.sidebar--resizing {
cursor: col-resize;
user-select: none;
}
.sidebar__resize-handle {
position: absolute;
top: 0;
right: -0.4rem;
width: 0.8rem;
height: 100%;
border: none;
background: transparent;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
cursor: col-resize;
z-index: 1;
}
.sidebar__resize-handle span {
width: 2px;
height: 32px;
border-radius: 999px;
background: transparent;
transition: background 120ms ease;
}
.sidebar__resize-handle:hover span,
.sidebar__resize-handle:focus-visible span,
.sidebar__resize-handle.is-active span {
background: var(--accent);
}
.sidebar__resize-handle:focus-visible {
outline: 2px solid color-mix(in oklch, var(--accent) 60%, transparent);
outline-offset: 2px;
border-radius: 999px;
}
.sidebar__body {