Files
fusion/packages/dashboard/app/styles.css

884 lines
17 KiB
CSS

/* === Reset & Tokens === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0d1117;
--surface: #161b22;
--card: #21262d;
--card-hover: #282e36;
--border: #30363d;
--text: #e6edf3;
--text-muted: #8b949e;
--text-dim: #484f58;
--triage: #d29922;
--todo: #58a6ff;
--in-progress: #bc8cff;
--in-review: #3fb950;
--done: #8b949e;
--radius: 8px;
--radius-lg: 12px;
--shadow: 0 4px 24px rgba(0,0,0,0.4);
}
html, body {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
overflow: hidden;
}
/* === Header === */
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
border-bottom: 1px solid var(--border);
background: var(--surface);
}
.header-left { display: flex; align-items: baseline; gap: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon {
background: none;
border: none;
color: var(--text-muted);
font-size: 18px;
cursor: pointer;
padding: 4px 8px;
border-radius: var(--radius);
transition: color 0.15s, background 0.15s;
}
.btn-icon:hover {
color: var(--text);
background: var(--border);
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.logo-sub { font-size: 13px; color: var(--text-muted); font-weight: 400; }
/* === Buttons === */
.btn {
padding: 8px 16px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--card);
color: var(--text);
font-size: 13px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--card-hover); border-color: var(--text-muted); }
.btn-primary {
background: #238636;
border-color: #2ea043;
color: #fff;
}
.btn-primary:hover { background: #2ea043; }
.btn-danger {
background: #da3633;
border-color: #f85149;
color: #fff;
}
.btn-danger:hover { background: #f85149; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
/* === Board === */
.board {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 12px;
padding: 16px 24px;
height: calc(100vh - 57px);
overflow: hidden;
}
.column {
display: flex;
flex-direction: column;
background: var(--surface);
border-radius: var(--radius-lg);
border: 1px solid var(--border);
overflow: hidden;
min-height: 0;
transition: border-color 0.2s;
}
.column.drag-over {
border-color: var(--todo);
box-shadow: inset 0 0 0 1px var(--todo);
}
.column-header {
display: flex;
align-items: center;
gap: 8px;
padding: 14px 14px 0;
}
.column-dot {
width: 10px;
height: 10px;
border-radius: 50%;
}
.dot-triage { background: var(--triage); }
.dot-todo { background: var(--todo); }
.dot-in-progress { background: var(--in-progress); }
.dot-in-review { background: var(--in-review); }
.dot-done { background: var(--done); }
.column-header h2 {
font-size: 14px;
font-weight: 600;
flex: 1;
}
.column-count {
font-size: 12px;
color: var(--text-muted);
background: var(--card);
padding: 2px 8px;
border-radius: 10px;
min-width: 24px;
text-align: center;
}
.column-desc {
font-size: 11px;
color: var(--text-dim);
padding: 4px 14px 10px;
}
.column-body {
flex: 1;
overflow-y: auto;
padding: 4px 8px 8px;
display: flex;
flex-direction: column;
gap: 6px;
}
.column-body::-webkit-scrollbar { width: 4px; }
.column-body::-webkit-scrollbar-track { background: transparent; }
.column-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
/* === Cards === */
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 10px 12px;
cursor: grab;
transition: background 0.15s, border-color 0.15s, transform 0.15s, opacity 0.2s;
user-select: none;
}
.card:hover {
background: var(--card-hover);
border-color: var(--text-muted);
}
.card:active { cursor: grabbing; }
.card.dragging { opacity: 0.4; transform: scale(0.98); }
.card-header {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
}
.card-id {
display: inline-block;
font-size: 11px;
font-weight: 600;
color: var(--text-muted);
font-family: "SF Mono", Monaco, Consolas, monospace;
}
.card-title {
font-size: 13px;
line-height: 1.4;
word-break: break-word;
}
.card-meta {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
font-size: 11px;
color: var(--text-dim);
}
.card-status-badge {
display: inline-flex;
align-items: center;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 2px 8px;
border-radius: 10px;
}
.card-status-badge.pulsing {
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.card-dep-badge {
display: inline-flex;
align-items: center;
gap: 3px;
font-size: 11px;
color: var(--triage);
}
.card-progress {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
}
.card-progress-bar {
flex: 1;
height: 3px;
background: var(--border);
border-radius: 2px;
overflow: hidden;
}
.card-progress-fill {
height: 100%;
border-radius: 2px;
transition: width 0.3s;
}
.card-progress-label {
font-size: 11px;
font-weight: 600;
color: var(--text-muted);
font-family: "SF Mono", Monaco, Consolas, monospace;
flex-shrink: 0;
}
/* === Modals === */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(4px);
z-index: 100;
justify-content: center;
align-items: flex-start;
padding-top: 10vh;
}
.modal-overlay.open { display: flex; }
.modal {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
width: 480px;
max-height: 80vh;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
}
.modal-lg { width: 640px; }
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close {
background: none;
border: none;
color: var(--text-muted);
font-size: 22px;
cursor: pointer;
padding: 0 4px;
line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 16px 20px;
border-top: 1px solid var(--border);
}
/* === Forms === */
.form-group { padding: 0 20px; margin-top: 16px; }
.form-group:last-of-type { margin-bottom: 8px; }
.form-group label {
display: block;
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
margin-bottom: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-group input,
.form-group textarea {
width: 100%;
padding: 8px 12px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 14px;
font-family: inherit;
outline: none;
transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
border-color: var(--todo);
}
.form-group textarea { resize: vertical; }
/* === Settings Form === */
.settings-form {
display: flex;
flex-direction: column;
gap: 4px;
padding-bottom: 8px;
}
/* === Detail Modal === */
.detail-title-row { display: flex; align-items: center; gap: 10px; }
.detail-id {
font-family: "SF Mono", Monaco, Consolas, monospace;
font-size: 13px;
font-weight: 600;
color: var(--text-muted);
}
.detail-column-badge {
font-size: 11px;
padding: 2px 8px;
border-radius: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.badge-triage { background: rgba(210,153,34,0.15); color: var(--triage); }
.badge-todo { background: rgba(88,166,255,0.15); color: var(--todo); }
.badge-in-progress { background: rgba(188,140,255,0.15); color: var(--in-progress); }
.badge-in-review { background: rgba(63,185,80,0.15); color: var(--in-review); }
.badge-done { background: rgba(139,148,158,0.15); color: var(--done); }
.detail-body {
padding: 20px;
overflow-y: auto;
flex: 1;
}
.detail-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 12px;
}
.detail-meta {
font-size: 12px;
color: var(--text-muted);
margin-bottom: 16px;
}
.detail-section { margin-top: 16px; }
.detail-section h4 {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
margin-bottom: 8px;
}
.detail-prompt {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px;
font-size: 13px;
line-height: 1.6;
font-family: "SF Mono", Monaco, Consolas, monospace;
white-space: pre-wrap;
word-break: break-word;
color: var(--text-muted);
max-height: 320px;
overflow-y: auto;
}
.detail-prompt.markdown-body {
font-family: inherit;
white-space: normal;
color: var(--text);
}
/* === Markdown Prose === */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
color: var(--text);
font-weight: 600;
margin-top: 1.2em;
margin-bottom: 0.5em;
line-height: 1.3;
}
.markdown-body h1 { font-size: 1.4em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.markdown-body h2 { font-size: 1.2em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.05em; }
.markdown-body h4 { font-size: 1em; color: var(--text-muted); }
.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child,
.markdown-body h4:first-child { margin-top: 0; }
.markdown-body p {
margin: 0.6em 0;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 1.6em;
margin: 0.5em 0;
}
.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }
.markdown-body li { margin: 0.25em 0; }
.markdown-body li > ul,
.markdown-body li > ol { margin: 0.15em 0; }
.markdown-body code {
background: var(--card);
border-radius: 4px;
padding: 0.15em 0.4em;
font-size: 0.9em;
font-family: "SF Mono", Monaco, Consolas, monospace;
}
.markdown-body pre {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px;
overflow-x: auto;
margin: 0.6em 0;
}
.markdown-body pre > code {
background: none;
padding: 0;
border-radius: 0;
font-size: 0.85em;
}
.markdown-body a {
color: var(--todo);
text-decoration: none;
}
.markdown-body a:hover { text-decoration: underline; }
.markdown-body blockquote {
border-left: 3px solid var(--border);
padding: 0.3em 0.8em;
margin: 0.6em 0;
color: var(--text-muted);
}
.markdown-body table {
border-collapse: collapse;
width: 100%;
margin: 0.6em 0;
font-size: 0.9em;
}
.markdown-body th,
.markdown-body td {
border: 1px solid var(--border);
padding: 6px 10px;
text-align: left;
}
.markdown-body th {
background: var(--card);
font-weight: 600;
}
.markdown-body input[type="checkbox"] {
margin-right: 0.4em;
vertical-align: middle;
}
.markdown-body hr {
border: none;
border-top: 1px solid var(--border);
margin: 1em 0;
}
.markdown-body strong { color: var(--text); }
.markdown-body em { font-style: italic; }
.markdown-body img { max-width: 100%; border-radius: var(--radius); }
.detail-deps { margin-top: 16px; }
.detail-deps h4 {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
margin-bottom: 6px;
}
.detail-dep-list {
list-style: none;
font-size: 13px;
}
.detail-dep-list li {
padding: 4px 0;
color: var(--todo);
font-family: "SF Mono", Monaco, Consolas, monospace;
}
/* === Activity Timeline === */
.detail-activity {
margin-top: 20px;
}
.detail-activity-list {
max-height: 260px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0;
}
.detail-activity-list::-webkit-scrollbar { width: 4px; }
.detail-activity-list::-webkit-scrollbar-track { background: transparent; }
.detail-activity-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.detail-log-entry {
padding: 8px 0 8px 14px;
border-left: 2px solid var(--border);
position: relative;
}
.detail-log-entry::before {
content: "";
position: absolute;
left: -4px;
top: 13px;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-dim);
}
.detail-log-entry:first-child::before {
background: var(--todo);
}
.detail-log-header {
display: flex;
flex-direction: column;
gap: 2px;
}
.detail-log-timestamp {
font-size: 11px;
color: var(--text-dim);
font-family: "SF Mono", Monaco, Consolas, monospace;
}
.detail-log-action {
font-size: 13px;
color: var(--text-muted);
line-height: 1.4;
}
.detail-log-outcome {
margin-top: 6px;
padding: 8px 12px;
background: var(--bg);
border-left: 3px solid var(--border);
border-radius: 0 var(--radius) var(--radius) 0;
font-size: 12px;
line-height: 1.5;
color: var(--text-muted);
white-space: pre-wrap;
word-break: break-word;
}
.detail-log-empty {
font-size: 13px;
color: var(--text-dim);
padding: 12px 0;
}
/* === Toasts === */
.toast-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 200;
display: flex;
flex-direction: column-reverse;
gap: 8px;
}
.toast {
padding: 10px 16px;
border-radius: var(--radius);
font-size: 13px;
color: #fff;
animation: toast-in 0.25s ease-out;
box-shadow: var(--shadow);
}
.toast-success { background: #238636; }
.toast-error { background: #da3633; }
.toast-info { background: #1f6feb; }
@keyframes toast-in {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
/* === Worktree Groups === */
.worktree-group {
background: var(--surface);
border-left: 3px solid var(--in-progress);
border-radius: var(--radius);
padding: 8px;
margin-bottom: 8px;
display: flex;
flex-direction: column;
gap: 6px;
}
.worktree-group-header {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
padding: 2px 4px;
}
.worktree-icon {
font-size: 12px;
line-height: 1;
}
.worktree-label {
font-family: "SF Mono", Monaco, Consolas, monospace;
}
/* Queued preview cards */
.card.queued {
opacity: 0.55;
border-style: dashed;
cursor: default;
}
.card.queued:hover {
cursor: default;
}
.card.queued:active {
cursor: default;
}
.queued-badge {
display: inline-flex;
align-items: center;
gap: 3px;
font-size: 11px;
color: var(--todo);
}
/* === Inline Create Card === */
.inline-create-card {
background: var(--card);
border: 1px solid var(--todo);
border-left: 3px solid var(--todo);
border-radius: var(--radius);
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.inline-create-input {
width: 100%;
padding: 6px 8px;
background: transparent;
border: none;
color: var(--text);
font-size: 13px;
font-family: inherit;
outline: none;
resize: none;
overflow: hidden;
line-height: 1.4;
}
.inline-create-input::placeholder {
color: var(--text-dim);
}
.inline-create-footer {
display: flex;
align-items: center;
gap: 8px;
}
.inline-create-hint {
font-size: 11px;
color: var(--text-dim);
margin-left: auto;
}
.dep-trigger-wrap {
position: relative;
}
.dep-trigger {
font-size: 12px;
padding: 3px 8px;
}
.dep-dropdown {
position: absolute;
top: 100%;
left: 0;
margin-top: 4px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
min-width: 220px;
max-height: 200px;
overflow-y: auto;
z-index: 50;
box-shadow: var(--shadow);
}
.dep-dropdown-empty {
padding: 10px 12px;
font-size: 12px;
color: var(--text-dim);
}
.dep-dropdown-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
font-size: 12px;
cursor: pointer;
transition: background 0.1s;
}
.dep-dropdown-item:hover {
background: var(--card-hover);
}
.dep-dropdown-item.selected {
background: rgba(88,166,255,0.15);
}
.dep-dropdown-id {
font-family: "SF Mono", Monaco, Consolas, monospace;
font-weight: 600;
color: var(--text-muted);
flex-shrink: 0;
}
.dep-dropdown-title {
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* === Empty state === */
.empty-column {
display: flex;
align-items: center;
justify-content: center;
height: 80px;
font-size: 12px;
color: var(--text-dim);
border: 1px dashed var(--border);
border-radius: var(--radius);
margin: 4px;
}
/* Auto-merge toggle */
.auto-merge-toggle {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
user-select: none;
margin-left: auto;
}
.auto-merge-toggle input {
display: none;
}
.toggle-slider {
position: relative;
width: 28px;
height: 16px;
background: var(--border);
border-radius: 8px;
transition: background 0.2s;
flex-shrink: 0;
}
.toggle-slider::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 12px;
height: 12px;
background: var(--card);
border-radius: 50%;
transition: transform 0.2s;
}
.auto-merge-toggle input:checked + .toggle-slider {
background: var(--in-review);
}
.auto-merge-toggle input:checked + .toggle-slider::after {
transform: translateX(12px);
}
.toggle-label {
font-size: 11px;
color: var(--text-muted);
white-space: nowrap;
}