mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
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.
CSS Architecture
File Structure
- variables.css - CSS custom properties (variables) for colors and theme values
- colors.css - Reference documentation of all color values used in the project
- common.css - Shared styles: reset, header/nav, search bar, accessibility utilities
- main.css - Home page styles
- admin.css - Admin section styles
- system.css - System page styles
- search.css - Search/Directory page styles
- apropos.css - About page styles
- tfe.css - Individual thesis page styles
- easymde.min.css - EasyMDE editor styles (minified, third-party)
- modern-normalize.min.css - Modern normalize reset (minified, third-party)
Imports
All CSS files automatically import variables.css to access CSS custom properties.
Variables
Shared Variables (public pages)
--purple,--purple-dark,--purple-light- Purple palette--black,--white- Base colors--grey-light- Light grey background--border-color- Border color--text-muted- Muted text color
Admin Variables
--admin-bg,--admin-bg-alt- Background colors--admin-border- Border color--admin-text,--admin-text-muted- Text colors--admin-purple- Accent color--admin-input-bg- Input background