Sidebar shows "Commit & Push" button when uncommitted changes exist. Clicking opens a commit message dialog. After committing, auto-pushes and shows success/error toast. Modified files count refreshes after commit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
279 lines
5.0 KiB
CSS
279 lines
5.0 KiB
CSS
.sidebar {
|
|
background: var(--bg-sidebar);
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.sidebar__header {
|
|
padding: 12px 16px;
|
|
padding-left: 78px; /* space for macOS traffic light buttons */
|
|
border-bottom: 1px solid var(--border-primary);
|
|
flex-shrink: 0;
|
|
-webkit-app-region: drag;
|
|
app-region: drag;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.sidebar__header h2 {
|
|
margin: 0;
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--text-heading);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.sidebar__header button {
|
|
-webkit-app-region: no-drag;
|
|
app-region: no-drag;
|
|
}
|
|
|
|
.sidebar__theme-toggle {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 4px 6px;
|
|
border-radius: 6px;
|
|
line-height: 1;
|
|
transition: all 0.15s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sidebar__theme-toggle:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-heading);
|
|
}
|
|
|
|
.sidebar__nav {
|
|
padding: 8px 0;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Filters */
|
|
.sidebar__filters {
|
|
padding: 4px 0;
|
|
margin-bottom: 8px;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.sidebar__filter-item {
|
|
padding: 6px 16px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
border-radius: 6px;
|
|
margin: 1px 6px;
|
|
transition: all 0.12s;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar__filter-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar__filter-item--active {
|
|
background: var(--accent-blue-bg);
|
|
color: var(--accent-blue);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar__badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
margin-left: 6px;
|
|
border-radius: 9px;
|
|
background: var(--accent-orange, #ff9800);
|
|
color: #fff;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Section Groups */
|
|
.sidebar__section {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.sidebar__section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 8px;
|
|
margin: 0 4px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-tertiary);
|
|
user-select: none;
|
|
}
|
|
|
|
.sidebar__section-header:hover {
|
|
background: var(--bg-button);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar__section-header--active {
|
|
background: var(--bg-button);
|
|
color: var(--text-heading);
|
|
}
|
|
|
|
.sidebar__collapse-btn {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
padding: 0 4px 0 0;
|
|
line-height: 1;
|
|
width: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar__section-label {
|
|
flex: 1;
|
|
}
|
|
|
|
.sidebar__section-count {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.sidebar__add-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
padding: 0 2px;
|
|
line-height: 1;
|
|
border-radius: 3px;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.sidebar__section-header:hover .sidebar__add-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.sidebar__add-btn:hover {
|
|
color: var(--text-heading);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Section items (entity list) */
|
|
.sidebar__section-items {
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.sidebar__item {
|
|
padding: 5px 16px 5px 28px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
border-radius: 6px;
|
|
margin: 1px 6px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--text-secondary);
|
|
transition: all 0.12s;
|
|
}
|
|
|
|
.sidebar__item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar__item--active {
|
|
background: var(--accent-blue-bg);
|
|
color: var(--accent-blue);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Topics */
|
|
.sidebar__topics {
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.sidebar__topics-header {
|
|
padding: 6px 16px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-tertiary);
|
|
user-select: none;
|
|
}
|
|
|
|
.sidebar__topic-item {
|
|
padding: 5px 16px 5px 28px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
border-radius: 6px;
|
|
margin: 1px 6px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--text-secondary);
|
|
transition: all 0.12s;
|
|
}
|
|
|
|
.sidebar__topic-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar__topic-item--active {
|
|
background: var(--accent-blue-bg);
|
|
color: var(--accent-blue);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Commit button */
|
|
.sidebar__commit {
|
|
padding: 10px 12px;
|
|
border-top: 1px solid var(--border-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar__commit-btn {
|
|
width: 100%;
|
|
padding: 7px 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: var(--accent-blue, #2196f3);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.sidebar__commit-btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.sidebar__commit-btn .sidebar__badge {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
color: #fff;
|
|
}
|