1
0
Fork 0
tsgames/src/games/storywriter/assets/sidebar.module.css

49 lines
820 B
CSS

.sidebar {
display: flex;
flex-direction: column;
height: 100%;
background: var(--bg-panel);
border-right: 1px solid var(--border);
transition: width 0.2s ease, min-width 0.2s ease;
overflow: hidden;
position: relative;
}
.sidebar:last-child {
border-right: none;
border-left: 1px solid var(--border);
}
.open {
width: 260px;
min-width: 260px;
}
.closed {
width: 32px;
min-width: 32px;
}
.toggle {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
flex-shrink: 0;
align-self: flex-end;
font-size: 11px;
color: var(--text-muted);
&:hover {
color: var(--accent);
background: var(--bg-hover);
}
}
.content {
flex: 1;
overflow-y: auto;
padding: 8px;
}