mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Refactor CSS architecture per css-methodology-spec.md
Split CSS into named layers: reset → colors → typography → base →
components → utilities. Each component has one unique root class in
its own file. No cross-component overrides.
New files:
- reset.css (modern-normalize base — matches project's prior reset)
- colors.css (all colour variables)
- typography.css (font faces, size/space scale, font-family vars)
- base.css (≤ 5 site-wide rules: layout, headings)
- utilities.css (sr-only, skip-link, reduced-motion)
- style.css (root @import file loading all layers)
- components/{links,focus,forms,tables,dialog,details,media,
buttons,badges,toasts,pagination,header,search}.css
Existing files:
- variables.css → backward-compat wrapper (imports colors + typography)
- common.css → backward-compat wrapper (imports style.css)
- Page files (admin, public, form, tfe, apropos, repertoire, system,
file-access) → removed redundant @import url(./variables.css)
- head.php → loads style.css instead of modern-normalize + common.css
- partage pages → load style.css
Fixes vs initial refactoring:
- reset.css: use modern-normalize base (not Tailwind Preflight) to
avoid border/list/heading regressions from aggressive defaults
- components/search.css: restore !important flags on input styles
(needed to override forms.css base input selectors)
- acces.php: add toast feedback on password copy button
Cleaned up duplicate status-badge/toast definitions from admin.css
(now live in components/badges.css and components/toast.css).
This commit is contained in:
16
TODO.md
16
TODO.md
@@ -46,6 +46,22 @@
|
||||
- [x] Add Créer button to jury supervisor autocomplete (removed guard in pill-search-fragment.php)
|
||||
- [x] Fix: UNIQUE constraint on authors.email — findOrCreateAuthor now checks for existing author by email before inserting; prevents crash when two authors share an email
|
||||
|
||||
# CSS Refactoring (css-methodology-spec.md)
|
||||
|
||||
- [x] Split variables.css into colors.css + typography.css
|
||||
- [x] Create reset.css (Tailwind Preflight)
|
||||
- [x] Create base.css (≤ 5 site-wide rules)
|
||||
- [x] Create utilities.css (sr-only, skip-link, reduced-motion)
|
||||
- [x] Create components/ (links, focus, forms, tables, dialog, details, media, buttons, badges, toasts, pagination, header, search)
|
||||
- [x] Create style.css root @import file
|
||||
- [x] Remove redundant @import url("./variables.css") from page files
|
||||
- [x] Clean up duplicate status-badge / toast definitions from admin.css (now in components/)
|
||||
- [x] Update head.php + partage pages to load style.css
|
||||
- [x] Common.css → backward-compat wrapper importing style.css
|
||||
- [x] Variables.css → backward-compat wrapper importing colors.css + typography.css
|
||||
- [x] Update comment references from common.css → component files
|
||||
- [ ] Verify no visual regressions
|
||||
|
||||
# Current tasks
|
||||
|
||||
- [x] Mandatory auto-generated passwords on share links (no custom passwords, regenerate-only in edit, rate limit on password gate)
|
||||
|
||||
Reference in New Issue
Block a user