mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
- Database: add deleteThesis() and bulkDeleteTheses() methods with file cleanup - Database: add SORT_MAP + buildOrderBy() for safe column sorting - Database: getThesesList() now respects sort/dir filter params - New action: actions/delete.php (single + batch delete with CSRF) - Admin index: delete button per row with confirmation dialog - Admin index: batch 'Supprimer' button in bulk actions bar - Admin index: sortable column headers (ID, Titre, Année, Orientation, AP, Statut) - Admin index: sort state preserved in pagination links - CSS: admin-btn-delete (red muted), admin-sort-link styles
CSS Architecture
File Structure
- variables.css — all CSS custom properties (single source of truth for every color/token)
- common.css — reset, header/nav, search bar, accessibility utilities (loaded on all pages)
- main.css — home page
- search.css — search/directory page
- tfe.css — individual thesis page
- apropos.css — about + licence pages
- system.css — admin system dashboard
- admin.css — admin section (loaded alongside
common.csson every admin page) - modern-normalize.min.css — third-party reset (minified, do not edit)
Rules
- Every color value lives in
variables.cssas a CSS custom property. - No hardcoded hex, rgb(), or rgba() in any other file.
- All files
@import url("./variables.css")at the top. - Admin and public share the same token names — no separate admin theme.
- No dark-mode media query. System page uses the same light tokens as the rest of the admin section.