mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
108 lines
1.7 KiB
SCSS
108 lines
1.7 KiB
SCSS
.sidebar {
|
|
width: 200px;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 16px 0;
|
|
transition: width 0.25s ease;
|
|
|
|
&.collapsed {
|
|
width: 64px;
|
|
|
|
.nav-menu,
|
|
.sidebar-footer {
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.nav-label {
|
|
display: none;
|
|
}
|
|
|
|
.nav-item {
|
|
justify-content: center;
|
|
padding: 10px;
|
|
gap: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-menu {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
border-radius: 9999px;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
width: 100%;
|
|
|
|
&:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
&.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
.nav-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 0 8px;
|
|
border-top: 1px solid var(--border-color);
|
|
padding-top: 12px;
|
|
margin-top: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.collapse-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
border-radius: 9999px;
|
|
transition: all 0.2s ease;
|
|
margin-top: 4px;
|
|
|
|
&:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
}
|