mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user