« Modèle:Button/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications Balise : Révoqué |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 115 : | Ligne 115 : | ||
justify-content: center; | justify-content: center; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
width: 200px; /* Largeur fixe généreuse */ | |||
height: 60px; /* Hauteur fixe augmentée */ | |||
margin-right: 1rem; | margin-right: 1rem; | ||
overflow: hidden; | overflow: hidden; | ||
background: transparent; | |||
} | } | ||
/* Image à droite : inverser les marges */ | /* Image à droite : inverser les marges */ | ||
.button-link-- | .button-link--imagepos-right .button-link-image-container { | ||
margin-right: 0; | margin-right: 0; | ||
margin-left: 1rem; | margin-left: 1rem; | ||
| Ligne 135 : | Ligne 132 : | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 100%; | |||
height: 100%; | height: 100%; | ||
} | } | ||
.button-link-image-container img { | .button-link-image-container img { | ||
max-width: 100%; | max-width: 100%; | ||
max-height: 100%; | |||
width: auto !important; | |||
height: auto !important; | |||
object-fit: contain; | object-fit: contain; | ||
display: block; | display: block; | ||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); | |||
} | } | ||
/* IMAGE CENTRÉE (sans texte) : plus grande */ | |||
.button-link--imagepos-center .button-link-image-container { | |||
width: 250px; | |||
height: 70px; | |||
margin: 0 auto; | |||
} | |||