Files
xamxam/public/assets/css
Pontoporeia 9637114f6b Clean up flash key legacy code and extract import.php inline styles
App::consumeFlash() had 18-line legacy fallback chains reading from seven old
session keys (error, admin_error, edit_error, form_error, success,
admin_success, edit_success) that were written by no code in the codebase.
All action handlers have used App::flash() -> _flash_error / _flash_success
since the App class was introduced. Removed the dead fallbacks; consumeFlash()
is now 4 lines.

admin/import.php was the last admin template with inline style= attributes.
Extracted four of them to named CSS classes in admin.css:
- admin-error-list   — error <ul> spacing (was style="margin:.5rem 0 0;padding-left:1.2rem")
- admin-file-hint    — <small> display + margin (was style="margin-top:.5rem")
- admin-import-results        — results panel margin (was style="margin-top:2rem")
- admin-import-results__title — <h2> typography (was multi-property inline style)

Closes the 'unify flash message keys' item in todo/02-php-components.md and
the import.php inline style item in todo/01-css-semantic-refactor.md.
2026-04-06 15:33:08 +02:00
..
2026-04-06 15:32:34 +02:00

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