system.css: use only variables.css tokens, remove undefined custom properties

Replace the two undefined variables that had crept in:
- var(--admin-border) → #555  (in .log-output border)
- var(--admin-text-muted) → #969696  (inline style on log toolbar label,
  in both system.php and system-fragment.php)

Revert the incorrect intermediate attempt that mapped dark-UI hex values
to light-theme tokens (--bg-primary: #fff, --border-primary: #ddd, etc.)
and also revert the .admin-body override block that was added to
variables.css — variables.css is shared and must not have per-component
overrides.

All remaining var() calls in system.css now reference tokens that exist
in variables.css:
  --accent-primary, --accent-green, --error, --warning, --success,
  --text-tertiary
The dark surface colours (#1a1a1a, #242424, #0d0d0d, #555, #969696, etc.)
stay as literal hex values, consistent with how admin.css handles them.
This commit is contained in:
Pontoporeia
2026-04-02 18:45:40 +02:00
parent b981223ff4
commit 871e919efa
3 changed files with 11 additions and 11 deletions

View File

@@ -173,7 +173,7 @@ if ($tab === 'nginx_config') {
} }
?> ?>
<div class="log-toolbar"> <div class="log-toolbar">
<label for="lines-select" style="font-size:.84rem;color:var(--admin-text-muted);">Afficher</label> <label for="lines-select" style="font-size:.84rem;color:var(--text-secondary);">Afficher</label>
<select id="lines-select" aria-label="Nombre de lignes"> <select id="lines-select" aria-label="Nombre de lignes">
<?php foreach (ALLOWED_LINES_FRAG as $opt): ?> <?php foreach (ALLOWED_LINES_FRAG as $opt): ?>
<option value="<?= $opt ?>" <?= $opt === $n ? 'selected' : '' ?>><?= $opt ?> dernières lignes</option> <option value="<?= $opt ?>" <?= $opt === $n ? 'selected' : '' ?>><?= $opt ?> dernières lignes</option>

View File

@@ -669,7 +669,7 @@ require_once APP_ROOT . '/templates/head.php';
<!-- Lines selector (submits via JS on change; no button needed) --> <!-- Lines selector (submits via JS on change; no button needed) -->
<div class="log-toolbar"> <div class="log-toolbar">
<label for="lines-select" style="font-size:.84rem;color:var(--admin-text-muted);"> <label for="lines-select" style="font-size:.84rem;color:var(--text-secondary);">
Afficher Afficher
</label> </label>
<select id="lines-select" aria-label="Nombre de lignes"> <select id="lines-select" aria-label="Nombre de lignes">

View File

@@ -157,9 +157,9 @@
.disk-bar { .disk-bar {
height: 100%; height: 100%;
border-radius: 3px; border-radius: 3px;
/* width and background-color are set via inline style using --disk-pct and --disk-color */ /* width and color driven by PHP via --disk-pct and --disk-color inline vars */
width: var(--disk-pct, 0%); width: var(--disk-pct, 0%);
background: var(--disk-color, #4caf50); background: var(--disk-color, var(--accent-green));
transition: width .3s; transition: width .3s;
} }
.disk-stats { .disk-stats {
@@ -170,7 +170,7 @@
margin-top: .25rem; margin-top: .25rem;
} }
/* ── Tab panel loading state ──────────────────────────────────────────────── */ /* ── Tab panel loading state ───────────────────────────────────────────── */
#sys-tab-panel { #sys-tab-panel {
min-height: 8rem; /* prevent layout jump while fetching */ min-height: 8rem; /* prevent layout jump while fetching */
position: relative; position: relative;
@@ -256,7 +256,7 @@
} }
.log-output { .log-output {
background: #0d0d0d; background: #0d0d0d;
border: 1px solid var(--admin-border); border: 1px solid #555;
border-radius: 4px; border-radius: 4px;
padding: 1rem; padding: 1rem;
overflow-x: auto; overflow-x: auto;
@@ -276,7 +276,7 @@
} }
.log-line + .log-line { border-top: 1px solid rgba(255,255,255,.03); } .log-line + .log-line { border-top: 1px solid rgba(255,255,255,.03); }
.log-crit { color: #ff7070; background: rgba(242, 90, 90, 0.12); } .log-crit { color: #ff7070; background: rgba(242, 90, 90, 0.12); }
.log-error { color: #f08080; } .log-error { color: var(--error); }
.log-warn { color: var(--warning); } .log-warn { color: var(--warning); }
.log-notice { color: #a0c8ff; } .log-notice { color: #a0c8ff; }
.log-line::before { .log-line::before {
@@ -332,7 +332,7 @@
} }
.sys-refresh-note a:hover { text-decoration: underline; } .sys-refresh-note a:hover { text-decoration: underline; }
/* ── Cache freshness badges ──────────────────────────────────────────────── */ /* ── Cache freshness badges ────────────────────────────────────────────── */
.sys-cache-badge { .sys-cache-badge {
display: inline-block; display: inline-block;
font-size: .68rem; font-size: .68rem;