2026-08-14 14:34:27 +08:00

213 lines
3.5 KiB
CSS

.sidebar {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
height: 100%;
overflow: hidden;
padding: 10px 7px;
border-right: 1px solid #323230;
background: var(--color-sidebar);
}
.sidebar-scroll {
flex: 1 1 auto;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
scrollbar-gutter: stable;
}
.window-controls {
display: flex;
gap: 8px;
height: 19px;
padding: 1px 4px;
}
.window-controls span {
width: 9px;
height: 9px;
border-radius: 50%;
background: #55534f;
}
.mode-switch {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3px;
margin: 6px 3px 8px;
padding: 2px;
border-radius: 7px;
background: #2d2d2b;
}
.mode-switch button {
min-height: 23px;
border-radius: 5px;
color: #8e8b85;
background: transparent;
font-size: 11px;
}
.mode-switch button.active {
color: #e7e4de;
background: #42413e;
}
.new-task,
.nav-item {
width: 100%;
min-height: 29px;
padding: 0 9px;
border-radius: 6px;
text-align: left;
background: transparent;
font-size: 12px;
}
.new-task {
background: #1c1c1b;
}
.new-task:hover,
.recent-list button:hover,
.project-open:hover {
background: #323230;
}
.project-list,
.project-conversations {
display: grid;
gap: 1px;
margin: 0;
padding: 0;
list-style: none;
}
.project-item {
position: relative;
border-radius: 6px;
}
.project-item.selected {
background: #2d2d2b;
}
.project-open {
overflow: hidden;
width: 100%;
padding: 7px 8px;
color: #c3c0ba;
background: transparent;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
}
.project-open span {
margin-right: 7px;
color: #77736e;
}
.project-actions {
position: absolute;
top: 3px;
right: 4px;
display: flex;
background: #2d2d2b;
}
.project-actions button {
width: 24px;
height: 24px;
color: #96928c;
background: transparent;
}
.project-conversations button {
overflow: hidden;
width: 100%;
padding: 5px 8px 5px 27px;
color: #98958f;
background: transparent;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 10px;
}
.workspace-warning {
display: block;
padding: 0 8px 6px 25px;
color: #c17769;
font-size: 9px;
}
.plus {
display: inline-block;
width: 19px;
font-size: 17px;
vertical-align: -1px;
}
.nav-item {
color: #c8c5bf;
}
.sidebar h2 {
margin: 14px 7px 6px;
color: #77746f;
font-size: 10px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.sidebar-empty {
padding: 5px 8px;
color: #716e69;
font-size: 11px;
}
.recent-list {
display: grid;
gap: 1px;
margin: 0;
padding: 0;
list-style: none;
}
.recent-list button {
overflow: hidden;
width: 100%;
padding: 6px 10px 6px 20px;
border-radius: 5px;
color: #b8b5af;
background: transparent;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
}
.recent-list button::before {
content: "○";
margin-left: -13px;
margin-right: 6px;
color: #5d5a56;
}
.sidebar-footer {
display: flex;
flex: 0 0 auto;
gap: 9px;
align-items: center;
margin-top: auto;
padding: 9px 8px 3px;
border-top: 1px solid #302f2e;
color: #c8c5bf;
font-size: 11px;
}
.sidebar-footer div {
display: grid;
gap: 1px;
}
.sidebar-footer div span {
color: #77746f;
font-size: 9px;
}
.avatar {
display: grid;
width: 25px;
height: 25px;
place-items: center;
border-radius: 50%;
color: #1f1e1c;
background: #ce7c64;
font-weight: 700;
}
@media (max-width: 700px) {
.sidebar {
display: none;
}
}