Files
malio-layer-ui/app/assets/css/malio.css
T
tristan 39eb6e6068 feat(ui): token w-m-btn-action partagé + fix alignement pagination DataTable
- Nouveau token de largeur partagé `w-m-btn-action` (150px) exposé via
  tailwind.config.ts + CSS var `--m-btn-action-width` dans malio.css.
  Themable côté consommateur en redéfinissant la CSS var dans son :root.
- DataTable : pagination réalignée verticalement après l'introduction du
  `min-h-[1rem]` sur MalioSelect — la barre passe en `items-center` et le
  MalioSelect du sélecteur perPage est encapsulé dans un wrapper `h-12`
  qui borne sa taille flex à la hauteur du field. Span « Lignes : » et
  boutons Prev/Page/Next désormais centrés exactement sur le field.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 09:17:58 +02:00

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;
}
}