panels
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user