b55050b2ad
Release / release (push) Successful in 1m36s
## Description Deux changements regroupés : ### 1. Nouveau token Tailwind partagé `w-m-btn-action` (150px) Exposé via `tailwind.config.ts` du layer + CSS var `--m-btn-action-width` dans `malio.css`. Utilisable côté projet consommateur pour les boutons d'action (`<MalioButton button-class="w-m-btn-action" />`), et themable en redéfinissant la CSS var dans son propre `:root`. Convention alignée sur les couleurs `m-btn-primary` / `m-btn-secondary` / `m-btn-danger` (préfixe `m-btn-`). ### 2. Fix alignement pagination DataTable Régression visuelle après l'introduction du `min-h-[1rem]` sur la zone message du MalioSelect (qui ajoute ~20px sous le field). La barre pagination du DataTable embarquait un MalioSelect pour le `perPage` à côté d'éléments centrés (span « Lignes : » + nav boutons Prev/Page/Next), faisant dériver l'alignement vertical. **Fix** : - La barre pagination passe en `items-center` - Le MalioSelect du sélecteur perPage est encapsulé dans un wrapper `h-12` qui borne sa taille flex à la hauteur du field — le slot vide déborde invisiblement en dessous - Tous les centres alignés exactement sur le field (y=24) ## Check list - [x] Pas de régression - [x] TU/TI/TF rédigée (34/34 tests DataTable OK) - [x] TU/TI/TF OK - [x] CHANGELOG modifié 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: THOLOT DECHENE Matthieu <matthieu@yuno.malio.fr> Co-authored-by: matthieu <matthieu@yuno.malio.fr> Reviewed-on: #59 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
45 lines
1.8 KiB
CSS
45 lines
1.8 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
:root {
|
|
/* ── Globales ── */
|
|
--m-primary: 34 39 131; /* #222783 - Bleu Malio */
|
|
--m-primary-light: 239 239 253; /* #EFEFFD - Teinte claire du primary (fonds doux) */
|
|
--m-bg: 243 244 248; /* #F3F4F8 - Fond de page */
|
|
--m-surface: 243 244 248; /* #F3F4F8 - Fond hover/cartes */
|
|
--m-text: 15 23 42; /* #0F172A */
|
|
--m-muted: 100 116 139; /* #64748B */
|
|
--m-border: 203 213 225; /* #CBD5E1 */
|
|
--m-disabled: 204 204 223; /* #CCCCDF - Partagé entre toutes les familles bouton */
|
|
--m-danger: 242 105 107; /* #F2696B - Erreurs et boutons danger */
|
|
--m-success: 15 149 70; /* #0F9546 */
|
|
|
|
/* ── Boutons Primary ── */
|
|
--m-btn-primary: 34 39 131; /* #222783 */
|
|
--m-btn-primary-hover: 18 28 219; /* #121CDB */
|
|
--m-btn-primary-active: 33 37 103; /* #212567 */
|
|
|
|
/* ── Boutons Secondary ── */
|
|
--m-btn-secondary: 75 77 237; /* #4B4DED */
|
|
--m-btn-secondary-hover: 137 123 241; /* #897BF1 */
|
|
--m-btn-secondary-active: 18 28 219; /* #121CDB */
|
|
|
|
/* ── Boutons Danger ── */
|
|
--m-btn-danger: 242 105 107; /* #F2696B */
|
|
--m-btn-danger-hover: 234 151 151; /* #EA9797 */
|
|
--m-btn-danger-active: 255 83 86; /* #FF5356 */
|
|
|
|
/* ── Largeurs Boutons ── */
|
|
--m-btn-action-width: 150px; /* Boutons d'action (liste, ligne tableau, footer dense…) */
|
|
|
|
/* ── Couleurs de site (usage ponctuel) ── */
|
|
--m-site-blue: 5 108 242; /* #056CF2 - Bleu Châtellerault */
|
|
--m-site-yellow: 243 203 0; /* #F3CB00 - Jaune Saint-Jean */
|
|
--m-site-green: 116 191 4; /* #74BF04 - Vert Pommevic */
|
|
|
|
--m-radius: 6px;
|
|
}
|
|
}
|