« Modèle:ButtonGrid/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications Balise : Révoqué |
Annulation des modifications 4243 de Agrado (discussion) Balises : Annulation Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* ========================================================= | /* ========================================================= | ||
MiniCardv2/styles.css | MiniCardv2/styles.css — version compatible TemplateStyles | ||
- Grille harmonisée responsive | |||
- | - Hauteur uniforme réglable | ||
- | |||
========================================================= */ | ========================================================= */ | ||
/* Conteneur : grille responsive */ | |||
.minicardv2-container{ | .minicardv2-container{ | ||
display: | display:grid; | ||
gap:.9rem; | gap:.9rem; | ||
| Ligne 15 : | Ligne 13 : | ||
padding:.4rem 0; | padding:.4rem 0; | ||
box-sizing:border-box; | box-sizing:border-box; | ||
/* Colonnes harmonisées, responsive */ | |||
grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); | |||
align-items:stretch; | |||
background:transparent; | |||
border:0; | |||
} | } | ||
/* | /* ✅ Réglage hauteur : modifie ici */ | ||
.minicardv2-container > .button-link{ | .minicardv2-container > .button-link{ | ||
width:100% !important; | |||
height:56px !important; | height:56px !important; /* <- change 56 -> 72 / 80 */ | ||
min-height:56px !important; | min-height:56px !important; | ||
box-sizing:border-box; | box-sizing:border-box !important; | ||
} | } | ||
/* | /* Le lien interne remplit la tuile et se centre */ | ||
.minicardv2-container > .button-link > .button-link__link{ | .minicardv2-container > .button-link > .button-link__link{ | ||
height:100% !important; | height:100% !important; | ||
min-height:100% !important; | |||
display:flex !important; | display:flex !important; | ||
| Ligne 36 : | Ligne 41 : | ||
justify-content:center !important; | justify-content:center !important; | ||
/* Si ButtonLink ajoute du padding, ça empêche de réduire la hauteur */ | |||
padding-top:0 !important; | padding-top:0 !important; | ||
padding-bottom:0 !important; | padding-bottom:0 !important; | ||
box-sizing:border-box; | box-sizing:border-box !important; | ||
} | } | ||
/* Texte */ | /* Texte : évite que line-height/marges forcent la hauteur */ | ||
.minicardv2-container .button-link__text{ | .minicardv2-container > .button-link > .button-link__link .button-link__text{ | ||
margin:0 !important; | margin:0 !important; | ||
line-height:1.1 !important; | line-height:1.1 !important; | ||
} | } | ||
/* Icône */ | /* Icône : évite qu’une image trop grande force la hauteur */ | ||
.minicardv2-container img{ | .minicardv2-container > .button-link > .button-link__link img{ | ||
max-height:70% !important; | max-height:70% !important; | ||
width:auto !important; | width:auto !important; | ||
} | } | ||