Files
flowdeck/static/css/app.css
T
bruno ae41937b03
CI / test (push) Failing after 4s
CI / lint (push) Failing after 4s
feat: multi-label selection + double-click column to create issue
- Labels now rendered as checkboxes (not single-select dropdown)
  in both create modal and edit form
- ALL_LABELS and ALL_MILESTONES passed as JSON to JS
- Double-click on empty column area opens create modal
  (pre-fills with that column name in title placeholder context)
- '+ Issue' button also opens the same modal
- Removed old inline new-issue-form (Alpine x-show), replaced with modal
- Create modal: title, body, multi-label checkboxes, milestone, assignee
- Edit form: title, body, multi-label checkboxes, assignee
- CSS: .label-checkboxes + .label-cb styles
2026-07-08 10:47:54 -04:00

264 lines
12 KiB
CSS

/* ── FlowDeck CSS ──────────────────────────────────────── */
:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-hover: #21262d;
--border: #30363d;
--text: #c9d1d9;
--text-dim: #8b949e;
--accent: #58a6ff;
--green: #3fb950;
--orange: #d2991d;
--red: #f85149;
--purple: #a371f7;
--col-backlog: #30363d;
--col-todo: #1f6feb;
--col-progress: #d2991d;
--col-review: #a371f7;
--col-done: #3fb950;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: var(--text);
background: var(--bg);
}
[data-theme="light"] {
--bg: #ffffff;
--bg-card: #f6f8fa;
--bg-hover: #eaeef2;
--border: #d0d7de;
--text: #24292f;
--text-dim: #656d76;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; }
/* ── Header ── */
.app-header {
display: flex; align-items: center; justify-content: space-between;
padding: 0 16px; min-height: 48px; border-bottom: 1px solid var(--border);
background: var(--bg-card); gap: 12px; flex-shrink: 0;
}
.header-left { display: flex; align-items: center; flex-shrink: 0; }
.header-right {
display: flex; align-items: center; gap: 10px; flex-shrink: 0;
flex-wrap: nowrap;
}
#user-info {
display: flex; align-items: center; gap: 6px; font-size: 13px;
color: var(--text-dim); white-space: nowrap;
}
#user-info .avatar { width: 20px; height: 20px; border-radius: 50%; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 22px; color: var(--accent); }
.logo-text { font-size: 16px; font-weight: 700; color: var(--text); }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 6px;
padding: 4px 8px; cursor: pointer; font-size: 16px; flex-shrink: 0; }
/* ── Dashboard ── */
.dashboard { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between;
margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.dashboard-header h1 { font-size: 24px; }
.dashboard-controls { display: flex; gap: 12px; align-items: center; }
.search-input {
background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
padding: 6px 12px; color: var(--text); font-size: 14px; width: 240px;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.toggle-label { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-dim); }
.stats-bar { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.project-list { display: flex; flex-direction: column; gap: 8px; }
.project-card {
display: block; padding: 12px 16px; background: var(--bg-card);
border: 1px solid var(--border); border-radius: 8px; text-decoration: none;
transition: border-color 0.15s;
}
.project-card:hover { border-color: var(--accent); }
.project-card-header { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.project-org { font-size: 11px; color: var(--text-dim); text-transform: uppercase; }
.project-name { font-size: 15px; font-weight: 600; color: var(--accent); }
.project-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.project-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); }
.badge { font-size: 10px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--border); }
.badge.archived { color: var(--orange); }
.badge.private { color: var(--red); }
.empty { color: var(--text-dim); font-size: 14px; padding: 24px 0; }
/* ── Board ── */
.board { height: calc(100vh - 48px); display: flex; flex-direction: column; }
.board-header {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 16px; border-bottom: 1px solid var(--border);
background: var(--bg-card); flex-shrink: 0;
}
.board-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.back-link { color: var(--accent); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.separator { color: var(--text-dim); }
.board-actions { display: flex; gap: 8px; }
.board-filters { display: flex; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.filter-select {
background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
padding: 4px 8px; color: var(--text); font-size: 13px;
}
/* ── Columns ── */
.board-columns {
flex: 1; overflow-x: auto; display: flex; gap: 8px;
padding: 12px; min-height: 0;
}
.board-column {
min-width: 280px; max-width: 340px; flex-shrink: 0;
background: var(--bg-card); border: 1px solid var(--border);
border-radius: 8px; display: flex; flex-direction: column;
}
.column-header {
padding: 10px 12px; display: flex; justify-content: space-between; align-items: center;
border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.column-title { font-size: 13px; font-weight: 600; }
.column-count {
background: var(--border); border-radius: 10px; padding: 1px 8px;
font-size: 11px; color: var(--text-dim);
}
.column-cards { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
/* ── Cards ── */
.card {
background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
padding: 10px; cursor: grab; transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.card:active { cursor: grabbing; }
.card-ghost { opacity: 0.4; }
.card-labels { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.card-label { font-size: 10px; padding: 1px 5px; border-radius: 8px; font-weight: 500; }
.card-title { font-size: 13px; margin-bottom: 6px; line-height: 1.4; }
.card-title a { color: var(--text-dim); text-decoration: none; font-size: 11px; margin-right: 4px; }
.card-meta { display: flex; gap: 8px; font-size: 11px; color: var(--text-dim); align-items: center; }
.avatar { border-radius: 50%; vertical-align: middle; }
.card-priority { font-size: 10px; margin-top: 6px; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.priority-high { background: var(--red); color: white; }
.priority-urgent { background: var(--red); color: white; font-weight: bold; }
.priority-medium { background: var(--orange); color: black; }
.priority-low { background: var(--border); color: var(--text-dim); }
.card-due { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.card-due.overdue { color: var(--red); }
/* ── Notes ── */
.notes-page { max-width: 800px; margin: 0 auto; padding: 24px 16px; }
.notes-textarea {
width: 100%; min-height: 300px; background: var(--bg-card);
border: 1px solid var(--border); border-radius: 8px; padding: 12px;
color: var(--text); font-family: monospace; font-size: 14px; resize: vertical;
margin-bottom: 12px;
}
.notes-textarea:focus { outline: none; border-color: var(--accent); }
.notes-preview { margin-top: 24px; padding: 16px; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); }
.notes-preview h3 { font-size: 14px; margin-bottom: 12px; color: var(--text-dim); }
/* ── Buttons ── */
.btn { padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
cursor: pointer; border: 1px solid var(--border); background: var(--bg-card);
color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn:hover { background: var(--bg-hover); }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { opacity: 0.9; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
/* ── Modal ── */
.modal-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.6);
display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-container {
background: var(--bg-card); border: 1px solid var(--border);
border-radius: 12px; width: 90%; max-width: 640px; max-height: 80vh;
display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
display: flex; justify-content: space-between; align-items: center;
padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 15px; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }
.modal-body { padding: 16px; overflow-y: auto; flex: 1; }
/* ── Forms ── */
.new-issue-form {
padding: 12px 16px; border-bottom: 1px solid var(--border);
background: var(--bg-card);
}
.new-issue-form h4 { font-size: 14px; margin-bottom: 8px; }
.form-input, .form-select {
width: 100%; background: var(--bg); border: 1px solid var(--border);
border-radius: 6px; padding: 8px 12px; color: var(--text); font-size: 13px;
margin-bottom: 8px;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--accent); }
.form-label { font-size: 12px; color: var(--text-dim); display: block; margin: 8px 0 4px 0; }
.label-checkboxes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.label-cb { display: flex; align-items: center; gap: 3px; font-size: 12px; cursor: pointer; }
.label-cb input[type="checkbox"] { cursor: pointer; }
.form-input-sm { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 4px 6px; color: var(--text); font-size: 12px; }
.form-select-sm { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 2px 4px; color: var(--text); font-size: 12px; }
.form-row { display: flex; gap: 8px; }
.form-actions { display: flex; gap: 8px; margin-top: 4px; }
.filter-input {
background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
padding: 4px 8px; color: var(--text); font-size: 13px; width: 140px;
}
/* ── Card Detail ── */
.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.detail-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; flex-wrap: wrap; }
.detail-editable { display: flex; gap: 12px; margin-bottom: 12px; font-size: 12px; align-items: center; }
.detail-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.detail-state { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.detail-state.open { background: var(--green); color: white; }
.detail-state.closed { background: var(--red); color: white; }
/* ── Comments ── */
.comment {
padding: 8px 0; border-bottom: 1px solid var(--border);
display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start;
}
.comment-date { font-size: 11px; color: var(--text-dim); }
.comment-body { width: 100%; font-size: 13px; padding: 4px 0; }
/* ── Checklists ── */
.checklist { margin-bottom: 12px; }
.checklist-items { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.checklist-items li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.checklist-check { cursor: pointer; }
.checklist-items .checked { text-decoration: line-through; color: var(--text-dim); }
.btn-del { background: none; border: none; color: var(--red); cursor: pointer; font-size: 16px; }
.add-item { display: flex; gap: 4px; margin-top: 4px; }
/* ── PRs section ── */
.prs-section { padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.prs-section h3 { font-size: 14px; margin-bottom: 8px; }
.prs-list { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; }
.pr-card { padding: 6px 0; font-size: 13px; }
.pr-title { color: var(--accent); text-decoration: none; }
.pr-meta { font-size: 11px; color: var(--text-dim); display: flex; gap: 8px; }
/* ── Markdown body ── */
.markdown-body { font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
/* ── Loading ── */
.loading { text-align: center; padding: 24px; color: var(--text-dim); }
/* ── Responsive ── */
@media (max-width: 768px) {
.board-columns { flex-direction: column; }
.board-column { max-width: 100%; min-height: 200px; }
.dashboard-header { flex-direction: column; align-items: flex-start; }
.search-input { width: 100%; }
.modal-container { width: 95%; max-height: 90vh; }
}