Extract last inline style from header.php into admin.css

The SVG icon in the admin nav's public-site link had two inline styles:
  style="vertical-align:middle;margin-right:0.4em"

Moved to a new CSS rule:
  .admin-body header nav > a svg { vertical-align: middle; margin-right: 0.4em; }

templates/header.php now contains zero style= attributes.
The only remaining inline styles project-wide are:
  - dynamic gradient (hsl computed from $item['id']) in public/index.php — legitimately dynamic
  - --disk-pct/--disk-color custom properties in system.php — carry PHP runtime values
This commit is contained in:
Pontoporeia
2026-04-06 15:09:47 +02:00
parent a60e742d1a
commit d51cd62088
3 changed files with 9 additions and 1 deletions

View File

@@ -18,6 +18,12 @@
opacity: 1;
}
/* Public-site link icon in admin nav */
.admin-body header nav > a svg {
vertical-align: middle;
margin-right: 0.4em;
}
/* Active nav link — non-colour indicator required by WCAG 1.4.1 */
.admin-body header nav ul a[aria-current="page"] {
border-bottom: 2px solid currentColor;