Bundles a stretch of in-progress work across the SPA tools so the
tree returns to a coherent shippable state ahead of cutting a new
zddc-server stable image:
- landing: substantial rework of the project picker (sortable/filterable
table, presets refactor, ?projects= filter, ?v= channel propagation,
loading/error states)
- archive: presets cleanup, source.js refactor, filtering/url-state
alignment with the landing page
- mdedit: file-system module split, resizer, file-tree improvements,
base/toc styling tweaks
- transmittal/classifier: small template touch-ups for shared chrome
- shared: build-lib.sh helpers, new favicon.svg
- bootstrap, build.sh: pick up the channel-aware install/track zip
generation
- tests: new landing.spec.js, expanded archive/mdedit/build-label specs
- docs: CLAUDE.md picks up the zddc-server section and freshens the
alpha-build exception note
- regenerated artifacts: install.zip, track-{alpha,beta,stable}.zip,
*_alpha.html — these are produced by `sh build.sh` and per project
convention are committed alongside the source changes
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
380 lines
8 KiB
CSS
380 lines
8 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;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* Main card */
|
|
.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);
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Project list container */
|
|
.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);
|
|
}
|
|
|
|
/* Footer */
|
|
.landing-card-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border-top: 1px solid var(--border);
|
|
gap: 8px;
|
|
}
|
|
.landing-selection-summary {
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Open Archive split button (footer): primary action + preset dropdown caret */
|
|
.open-archive-split {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: stretch;
|
|
}
|
|
.open-archive-main {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
.open-archive-caret {
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-left: 1px solid rgba(255,255,255,0.25);
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
.open-archive-main:disabled + .open-archive-caret {
|
|
/* Caret stays usable even when no projects are checked, so the user can
|
|
still open the menu to load a preset. */
|
|
}
|
|
.open-archive-menu {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
right: 0;
|
|
margin-bottom: 4px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.12);
|
|
min-width: 280px;
|
|
z-index: 100;
|
|
padding: 4px 0;
|
|
}
|
|
.open-archive-menu.hidden { display: none; }
|
|
.preset-menu-header {
|
|
padding: 8px 12px 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.preset-menu-list {
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
}
|
|
.preset-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
gap: 8px;
|
|
}
|
|
.preset-menu-item:hover { background: var(--bg-hover); }
|
|
.preset-menu-item-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.preset-load-btn {
|
|
background: none;
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 0.75rem;
|
|
padding: 2px 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
.preset-load-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text);
|
|
border-color: var(--border-dark);
|
|
}
|
|
.preset-delete-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
padding: 0 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
.preset-delete-btn:hover { color: var(--danger); }
|
|
.preset-menu-empty {
|
|
padding: 8px 12px;
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
.preset-menu-divider {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 4px 0;
|
|
}
|
|
.preset-menu-actions {
|
|
padding: 6px 12px 8px;
|
|
display: flex;
|
|
justify-content: stretch;
|
|
}
|
|
.preset-menu-actions .btn {
|
|
width: 100%;
|
|
}
|
|
.preset-menu-saving {
|
|
padding: 6px 12px 8px;
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.preset-name-input {
|
|
flex: 1 1 100%;
|
|
padding: 5px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
font-size: 0.875rem;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
.preset-name-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|