The Master Deliverables List section was a long prose block ("To edit
the MDL: 1. open the archive, 2. click into a party folder, 3. click
mdl…") followed by a bullet list of party links — visually
inconsistent with the four stage cards above it.
Replaced by a fifth card in the .stages grid styled like the others:
heading + short description + an inline select + Open button. The
select populates from the same fetchParties() helper that backed the
old <ul.party-list>; selecting a party + clicking Open navigates to
/<project>/archive/<party>/mdl/.
Empty/error states:
- No parties yet: select shows "(no party folders yet)"; hint copy
expands to explain the URL-based fallback (zddc-server still
auto-renders archive/<party>/mdl/ even when the folder is missing).
- Network error: select shows "(could not enumerate parties)"; user
can navigate via the URL bar.
Updated landing.spec.js — the old "lists existing parties as direct
MDL links" test now asserts on #mdlPartySelect contents + click-to-nav.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
565 lines
12 KiB
CSS
565 lines
12 KiB
CSS
/* Landing page layout */
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font);
|
|
font-size: 14px;
|
|
background: var(--bg-secondary);
|
|
color: var(--text);
|
|
}
|
|
|
|
.landing-main {
|
|
max-width: 880px;
|
|
margin: 32px auto;
|
|
padding: 0 16px 64px;
|
|
}
|
|
|
|
/* Standalone-tool strip. Sits above the hero on the picker view. Each
|
|
link is a small card with the tool name (display serif) and a short
|
|
one-line hint (sans, muted). Hover lifts the card slightly to signal
|
|
it's clickable; the strip wraps onto multiple lines on narrow widths
|
|
rather than scrolling horizontally. */
|
|
.tool-strip {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin: 0 0 24px;
|
|
padding: 0 4px;
|
|
}
|
|
.tool-strip__link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 2px;
|
|
padding: 0.5rem 0.85rem;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
|
|
min-width: 110px;
|
|
}
|
|
.tool-strip__link:hover {
|
|
border-color: var(--primary);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
|
|
text-decoration: none;
|
|
}
|
|
.tool-strip__name {
|
|
font-family: var(--font-display);
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
line-height: 1.15;
|
|
color: var(--text);
|
|
}
|
|
.tool-strip__hint {
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* Welcome / hero */
|
|
.landing-hero {
|
|
margin: 0 0 24px;
|
|
padding: 0 4px;
|
|
}
|
|
.landing-hero h1 {
|
|
margin: 0 0 8px;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.landing-hero-sub {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
max-width: 60ch;
|
|
}
|
|
|
|
/* Access warning banner */
|
|
.access-warning-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 16px;
|
|
background: #fff3cd;
|
|
border: 1px solid #ffc107;
|
|
border-radius: var(--radius);
|
|
color: #664d03;
|
|
font-size: 0.875rem;
|
|
margin-bottom: 16px;
|
|
gap: 12px;
|
|
}
|
|
.access-warning-banner.hidden { display: none; }
|
|
.warning-dismiss-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: #664d03;
|
|
font-size: 1rem;
|
|
padding: 0 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Cards (groups + projects) */
|
|
.landing-card {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: visible;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
|
|
margin-bottom: 16px;
|
|
}
|
|
.landing-card:last-child { margin-bottom: 0; }
|
|
|
|
.landing-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.landing-card-title {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
.landing-card-header h2 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.landing-count {
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.landing-header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ── Groups card ─────────────────────────────────────────────────────────── */
|
|
.groups-container { min-height: 0; }
|
|
.groups-empty {
|
|
padding: 16px 24px;
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
}
|
|
.groups-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
.groups-row {
|
|
cursor: pointer;
|
|
transition: background 0.08s;
|
|
}
|
|
.groups-row:hover { background: var(--bg-hover); }
|
|
.groups-row td {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
}
|
|
.groups-row:last-child td { border-bottom: none; }
|
|
.groups-row-name {
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
}
|
|
.groups-row-count {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
width: 8em;
|
|
white-space: nowrap;
|
|
}
|
|
.groups-row-actions {
|
|
width: 4.5em;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
.groups-btn-edit, .groups-btn-delete {
|
|
background: none;
|
|
border: 1px solid transparent;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 0.95rem;
|
|
padding: 2px 6px;
|
|
line-height: 1;
|
|
}
|
|
.groups-btn-edit:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text);
|
|
}
|
|
.groups-btn-delete:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--danger, #c0392b);
|
|
}
|
|
|
|
/* ── Select-mode action bar ──────────────────────────────────────────────── */
|
|
.select-action-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
.select-action-bar.hidden { display: none; }
|
|
.select-action-bar__label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 1 1 240px;
|
|
min-width: 0;
|
|
}
|
|
.select-action-bar__label > span {
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
flex-shrink: 0;
|
|
}
|
|
.group-name-input {
|
|
flex: 1 1 0;
|
|
min-width: 120px;
|
|
padding: 5px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
font-size: 0.875rem;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
.group-name-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
.select-action-bar__buttons {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ── Projects card ───────────────────────────────────────────────────────── */
|
|
.project-list-container {
|
|
min-height: 80px;
|
|
}
|
|
|
|
/* Empty / error states */
|
|
.project-list-empty {
|
|
padding: 32px 24px;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
}
|
|
.project-list-empty h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.project-list-empty p {
|
|
margin: 4px 0;
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
}
|
|
.landing-empty-help {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem !important;
|
|
margin-top: 12px !important;
|
|
max-width: 50ch;
|
|
margin-left: auto !important;
|
|
margin-right: auto !important;
|
|
}
|
|
|
|
/* Loading state */
|
|
.project-list-loading {
|
|
padding: 32px 16px;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Project table */
|
|
.project-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
.project-table thead {
|
|
background: var(--bg-secondary);
|
|
}
|
|
.project-table-headers th {
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
border-bottom: 1px solid var(--border);
|
|
user-select: none;
|
|
}
|
|
.project-table-headers th[data-sort] {
|
|
cursor: pointer;
|
|
}
|
|
.project-table-headers th[data-sort]:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.project-table-checkbox-col {
|
|
width: 32px;
|
|
padding: 8px 12px;
|
|
text-align: center;
|
|
}
|
|
.project-table-checkbox-col input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
accent-color: var(--primary);
|
|
margin: 0;
|
|
vertical-align: middle;
|
|
}
|
|
.project-table-name-col {
|
|
min-width: 140px;
|
|
}
|
|
.project-table-title-col {
|
|
width: 100%;
|
|
}
|
|
.sort-indicator {
|
|
color: var(--text-muted);
|
|
margin-left: 4px;
|
|
font-size: 0.75rem;
|
|
}
|
|
.sort-indicator.active {
|
|
color: var(--text);
|
|
}
|
|
|
|
.project-table-filters th {
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg);
|
|
}
|
|
.project-table-filters .column-filter {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
font-size: 0.85rem;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
.project-table-filters .column-filter:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
.project-table-filters .column-filter.filter-active {
|
|
background: var(--bg-secondary);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.project-table-row {
|
|
cursor: pointer;
|
|
transition: background 0.08s;
|
|
}
|
|
.project-table-row:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.project-table-row.is-selected {
|
|
background: var(--bg-selected, rgba(0, 105, 217, 0.08));
|
|
}
|
|
.project-table-row.is-selected:hover {
|
|
background: var(--bg-selected-hover, rgba(0, 105, 217, 0.15));
|
|
}
|
|
.project-table-row td {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
}
|
|
.project-table-no-title {
|
|
color: var(--text-muted);
|
|
}
|
|
.project-table-no-match {
|
|
padding: 24px 16px !important;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ── Project mode ──────────────────────────────────────────────────────── */
|
|
/* Activated when location.pathname is a single project segment (e.g.
|
|
/Project-1). Picker UI is hidden; this block surfaces the four
|
|
lifecycle-stage cards and MDL editing instructions. */
|
|
|
|
.project-title {
|
|
font-size: 1.6rem;
|
|
margin: 0 0 0.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.project-title__subtle {
|
|
color: var(--text-muted);
|
|
font-weight: normal;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.lead {
|
|
color: var(--text-muted);
|
|
margin: 0.25rem 0 1.5rem;
|
|
}
|
|
|
|
.stages {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 0.85rem;
|
|
margin: 1rem 0 1.5rem;
|
|
}
|
|
|
|
.stage-card {
|
|
display: block;
|
|
padding: 1rem 1.1rem;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.stage-card:hover {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.stage-card:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.stage-card h3 {
|
|
margin: 0 0 0.3rem;
|
|
font-size: 1rem;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stage-card p {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* MDL card variant: same outer styling as a stage card but contains
|
|
an interactive control (party <select> + Open button) instead of
|
|
navigating on click of the whole card. The :hover lift applies
|
|
regardless. */
|
|
.stage-card--mdl {
|
|
cursor: default;
|
|
}
|
|
.stage-card--mdl:active {
|
|
transform: none;
|
|
}
|
|
.stage-card__action {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
margin-top: 0.65rem;
|
|
}
|
|
.mdl-party-select {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
padding: 0.3rem 0.5rem;
|
|
font-family: var(--font);
|
|
font-size: 0.9rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-secondary);
|
|
color: var(--text);
|
|
}
|
|
.mdl-party-select:focus {
|
|
border-color: var(--primary);
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px rgba(95, 168, 224, 0.25);
|
|
}
|
|
.mdl-party-select:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
.stage-card__hint {
|
|
margin: 0.65rem 0 0 !important;
|
|
font-size: 0.78rem !important;
|
|
color: var(--text-muted) !important;
|
|
line-height: 1.4;
|
|
}
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.browse-link {
|
|
display: inline-block;
|
|
margin-top: 0.25rem;
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.browse-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#projectView ol {
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
#projectView ol li {
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
#projectView code {
|
|
font-family: var(--font-mono);
|
|
background: var(--bg-secondary);
|
|
padding: 0.1em 0.35em;
|
|
border-radius: 3px;
|
|
font-size: 0.86em;
|
|
}
|
|
|
|
#projectView h2 {
|
|
font-size: 1.1rem;
|
|
margin: 2.25rem 0 0.5rem;
|
|
padding-bottom: 0.3rem;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.party-list {
|
|
padding-left: 1.5rem;
|
|
margin: 0.4rem 0 1rem;
|
|
}
|
|
|
|
.party-list li {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.party-list a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.party-list a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.party-list-none-yet {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|