fix serve recipe: filter output to Development Server start + [200] requests only

refactor: unify CSS color variables across public and admin

- Replace old variable structure with new standardized naming:
  - Background: --bg-primary, --bg-secondary, --bg-tertiary, --bg-active
  - Text: --text-primary, --text-secondary, --text-tertiary
  - Border: --border-primary, --border-secondary
  - Status: --success, --error, --warning
  - Accent: --accent-primary, --accent-secondary, --accent-foreground, --accent-muted
- Remove admin-specific color variables (--admin-*)
- Update all CSS files to use shared variables:
  - variables.css, common.css, main.css, admin.css
  - tfe.css, search.css, apropos.css, system.css, colors.css
This commit is contained in:
Pontoporeia
2026-04-02 14:11:11 +02:00
parent ba7814c6dc
commit bf2594112b
15 changed files with 536 additions and 1656 deletions

View File

@@ -2,22 +2,14 @@
ADMIN SECTION
============================================================ */
:root {
--admin-bg: #1a1a1a;
--admin-bg-alt: #242424;
--admin-border: #555;
--admin-text: #e8e8e8;
--admin-text-muted: #969696;
--admin-purple: #9557b5;
--admin-input-bg: transparent;
}
@import url("./variables.css");
.admin-body {
display: flex;
flex-direction: column;
min-height: 100vh;
/* background: var(--admin-bg); */
/* color: var(--admin-text); */
background: var(--bg-primary);
color: var(--text-primary);
/* font-family inherited from common.css body */
}
@@ -99,7 +91,7 @@
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--admin-text);
color: var(--text-primary);
margin: 0 0 2.5rem 0;
}
@@ -114,33 +106,36 @@
display: grid;
grid-template-columns: 260px 1fr;
align-items: start;
border-top: 1px solid var(--admin-border);
border-top: 1px solid var(--border-secondary);
padding: 0.75rem 0;
gap: 1rem;
}
.admin-form > div:not(.admin-submit-wrap):last-of-type {
border-bottom: 1px solid var(--admin-border);
border-bottom: 1px solid var(--border-secondary);
}
.admin-form > div:not(.admin-submit-wrap) > label {
font-size: 0.92rem;
color: var(--admin-text);
color: var(--text-primary);
padding-top: 0.5rem;
font-weight: 400;
}
.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]),
.admin-form
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
[type="hidden"]
):not([type="submit"]),
.admin-form select,
.admin-form textarea,
.admin-inline-form input[type="text"],
.admin-inline-form input[type="number"],
.admin-inline-form select {
width: 100%;
background: var(--admin-input-bg);
background: var(--bg-primary);
border: none;
border-bottom: 1px solid var(--admin-border);
color: var(--admin-text);
border-bottom: 1px solid var(--border-secondary);
color: var(--text-primary);
font-size: 0.92rem;
font-family: inherit;
padding: 0.4rem 0;
@@ -150,17 +145,20 @@
appearance: none;
}
.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):focus,
.admin-form
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
[type="hidden"]
):not([type="submit"]):focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus {
border-bottom-color: var(--admin-purple);
border-bottom-color: var(--accent-primary);
}
.admin-form input::placeholder,
.admin-form textarea::placeholder {
color: var(--admin-text-muted);
color: var(--text-secondary);
font-size: 0.88rem;
}
@@ -182,8 +180,8 @@
.admin-form select option,
.admin-inline-form select option {
background: var(--admin-bg);
color: var(--admin-text);
background: var(--bg-primary);
color: var(--text-primary);
}
/* File inputs */
@@ -195,9 +193,9 @@
.admin-file-input input[type="file"] {
font-size: 0.85rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
background: transparent;
border: 1px dashed var(--admin-border);
border: 1px dashed var(--border-secondary);
padding: 0.4rem 0.6rem;
border-radius: 3px;
cursor: pointer;
@@ -205,12 +203,12 @@
}
.admin-file-input input[type="file"]:hover {
border-color: var(--admin-purple);
border-color: var(--accent-primary);
}
.admin-body form small {
font-size: 0.78rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
margin-top: 0.15rem;
display: block;
}
@@ -228,12 +226,12 @@
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: var(--admin-text);
color: var(--text-primary);
cursor: pointer;
}
.admin-checkbox-label input[type="checkbox"] {
accent-color: var(--admin-purple);
accent-color: var(--accent-primary);
width: 14px;
height: 14px;
cursor: pointer;
@@ -247,8 +245,8 @@
.admin-btn {
padding: 0.65rem 2.5rem;
background: var(--admin-purple);
color: #fff;
background: var(--accent-primary);
color: var(--accent-foreground);
border: none;
border-radius: 3px;
font-size: 0.92rem;
@@ -259,14 +257,14 @@
}
.admin-btn:hover {
background: #7b3fa0;
background: var(--accent-secondary);
}
.admin-btn-secondary {
padding: 0.5rem 1.5rem;
background: transparent;
color: var(--admin-text-muted);
border: 1px solid var(--admin-border);
color: var(--text-secondary);
border: 1px solid var(--border-secondary);
border-radius: 3px;
font-size: 0.88rem;
font-family: inherit;
@@ -278,8 +276,8 @@
}
.admin-btn-secondary:hover {
border-color: var(--admin-text-muted);
color: var(--admin-text);
border-color: var(--text-secondary);
color: var(--text-primary);
}
/* ---- Alert Messages ---- */
@@ -313,8 +311,8 @@
}
.admin-stat {
background: var(--admin-bg-alt);
border: 1px solid var(--admin-border);
background: var(--bg-active);
border: 1px solid var(--border-secondary);
border-radius: 4px;
padding: 1rem 1.5rem;
min-width: 140px;
@@ -325,17 +323,17 @@
.admin-stat__number {
font-size: 2rem;
font-weight: 700;
color: var(--admin-purple);
color: var(--accent-primary);
line-height: 1;
order: 1; /* visually first despite dt/dd semantic order */
order: 1; /* visually first despite dt/dd semantic order */
margin: 0;
}
.admin-stat__label {
font-size: 0.82rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
margin-top: 0.25rem;
order: 2; /* visually second */
order: 2; /* visually second */
}
/* ---- Filters bar ---- */
@@ -349,10 +347,10 @@
.admin-filters input[type="text"],
.admin-filters select {
background: var(--admin-bg-alt);
border: 1px solid var(--admin-border);
background: var(--bg-active);
border: 1px solid var(--border-secondary);
border-radius: 3px;
color: var(--admin-text);
color: var(--text-primary);
font-size: 0.88rem;
font-family: inherit;
padding: 0.45rem 0.75rem;
@@ -361,13 +359,13 @@
.admin-filters input[type="text"]:focus,
.admin-filters select:focus {
border-color: var(--admin-purple);
border-color: var(--accent-primary);
}
.admin-filters-btn {
padding: 0.45rem 1rem;
background: var(--admin-purple);
color: #fff;
background: var(--accent-primary);
color: var(--accent-foreground);
border: none;
border-radius: 3px;
font-size: 0.88rem;
@@ -377,7 +375,7 @@
.admin-filters-reset {
font-size: 0.88rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
text-decoration: underline;
cursor: pointer;
}
@@ -399,32 +397,32 @@
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--admin-text-muted);
color: var(--text-secondary);
padding: 0.5rem 0.75rem;
border-bottom: 1px solid var(--admin-border);
border-bottom: 1px solid var(--border-secondary);
font-weight: 400;
white-space: nowrap;
}
.admin-body table td {
padding: 0.65rem 0.75rem;
border-bottom: 1px solid var(--admin-border);
color: var(--admin-text);
border-bottom: 1px solid var(--border-secondary);
color: var(--text-primary);
vertical-align: top;
}
.admin-body table tr:hover td {
background: var(--admin-bg-alt);
background: var(--bg-active);
}
.admin-body table .thesis-title {
font-weight: 500;
color: var(--admin-text);
color: var(--text-primary);
}
.admin-body table .thesis-subtitle {
font-size: 0.82rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
font-style: italic;
}
@@ -521,8 +519,8 @@
align-items: center;
gap: 1rem;
padding: 0.6rem 1rem;
background: var(--admin-bg-alt);
border: 1px solid var(--admin-border);
background: var(--bg-active);
border: 1px solid var(--border-secondary);
border-radius: 4px;
margin-bottom: 1rem;
font-size: 0.88rem;
@@ -535,7 +533,7 @@
/* Thesis info sections (thanks page) */
.admin-body main > section {
border: 1px solid var(--admin-border);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 1.5rem;
margin-bottom: 1.5rem;
@@ -544,7 +542,7 @@
.admin-body main > section h2 {
margin: 0 0 1rem;
font-size: 1.2rem;
border-bottom: 1px solid var(--admin-border);
border-bottom: 1px solid var(--border-secondary);
padding-bottom: 0.5rem;
}
@@ -557,7 +555,7 @@
.admin-body main > section dt {
font-weight: 600;
font-size: 0.88rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
}
.admin-body main > section dd {
@@ -567,8 +565,8 @@
/* Info/error messages */
.info-message {
background: var(--admin-bg-alt);
border: 1px solid var(--admin-border);
background: var(--bg-active);
border: 1px solid var(--border-secondary);
border-radius: 4px;
padding: 1rem;
font-size: 0.9rem;
@@ -590,8 +588,8 @@
}
.admin-login-box {
background: var(--admin-bg-alt);
border: 1px solid var(--admin-border);
background: var(--bg-active);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 2rem;
width: 100%;
@@ -613,7 +611,7 @@
.admin-login-box .admin-form > div:not(.admin-submit-wrap) > label {
font-size: 0.82rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
padding: 0;
margin-bottom: 0.2rem;
}
@@ -648,7 +646,7 @@
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--admin-text-muted);
color: var(--text-secondary);
padding: 0 0.5rem;
}
@@ -678,8 +676,8 @@
.admin-btn-remove {
background: none;
border: 1px solid #555;
color: var(--admin-text-muted);
border: 1px solid var(--border-secondary);
color: var(--text-secondary);
border-radius: 3px;
padding: 0.2rem 0.45rem;
font-size: 0.8rem;
@@ -687,8 +685,8 @@
line-height: 1;
}
.admin-btn-remove:hover {
border-color: #e55;
color: #e55;
border-color: var(--error);
color: var(--error);
}
/* Inline form actions (tags page) */
@@ -738,19 +736,19 @@
align-items: center;
justify-content: space-between;
gap: 1rem;
background: #1a1a2e;
border: 1px solid #333;
background: var(--bg-tertiary);
border: 1px solid var(--border-secondary);
border-radius: 4px;
padding: 0.65rem 1rem;
margin-bottom: 1.5rem;
font-size: 0.88rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
}
.admin-maintenance-bar--active {
background: #2a1a00;
border-color: #7a5400;
color: #e0a030;
background: var(--accent-muted);
border-color: var(--accent-secondary);
color: var(--warning);
}
/* Visibility / access badges */
@@ -788,8 +786,8 @@
/* ---- Account page ---- */
.admin-account-status {
background: var(--admin-bg-alt);
border: 1px solid var(--admin-border);
background: var(--bg-active);
border: 1px solid var(--border-secondary);
border-radius: 4px;
padding: 1.25rem 1.5rem;
margin-bottom: 2.5rem;
@@ -806,18 +804,18 @@
}
.admin-account-status__label {
color: var(--admin-text-muted);
color: var(--text-secondary);
min-width: 220px;
}
.admin-account-status__code {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 0.82rem;
background: var(--admin-bg);
border: 1px solid var(--admin-border);
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
border-radius: 3px;
padding: 0.1rem 0.4rem;
color: var(--admin-text-muted);
color: var(--text-secondary);
}
.admin-account-status__note {
@@ -831,17 +829,17 @@
font-weight: 600;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--admin-text-muted);
color: var(--text-secondary);
margin: 0 0 1.25rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--admin-border);
border-bottom: 1px solid var(--border-secondary);
}
/* .admin-field-hint replaced by .admin-body form small */
.admin-danger-zone {
background: rgba(180, 0, 0, 0.07);
border: 1px solid rgba(200, 60, 60, 0.3);
background: rgba(242, 90, 90, 0.07);
border: 1px solid rgba(242, 90, 90, 0.3);
border-radius: 4px;
padding: 1.25rem 1.5rem;
display: flex;
@@ -857,7 +855,7 @@
}
.admin-danger-zone__description small {
color: var(--admin-text-muted);
color: var(--text-secondary);
font-size: 0.9rem;
}
@@ -874,7 +872,7 @@
max-width: 320px;
max-height: 100px;
object-fit: cover;
border: 1px solid #444;
border: 1px solid var(--border-secondary);
display: block;
}
@@ -899,5 +897,5 @@
/* Admin-specific focus outline colour override */
:focus-visible {
outline-color: var(--admin-purple);
outline-color: var(--accent-primary);
}