« Modèle:Button/styles.css » : différence entre les versions
De Nefald
Autres actions
m ajout de boutons (background) |
m align |
||
| Ligne 1 : | Ligne 1 : | ||
/* ============================================ | |||
BUTTON LINK - Universal clickable buttons | |||
============================================ */ | |||
/* Wrapper principal */ | |||
.button-link-wrapper { | .button-link-wrapper { | ||
min-height: 80px; | min-height: 80px; | ||
| Ligne 17 : | Ligne 22 : | ||
} | } | ||
/* Contenu du bouton */ | |||
.button-link-content { | .button-link-content { | ||
width: 100%; | width: 100%; | ||
| Ligne 27 : | Ligne 33 : | ||
text-decoration: none !important; | text-decoration: none !important; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
gap: 0.75rem; | |||
font-weight: 500; | |||
} | } | ||
.button-link-content a:hover | .button-link-content a:hover { | ||
color: white !important; | color: white !important; | ||
} | } | ||
/* | /* Styles des images */ | ||
.button-link-content . | .button-link-content .image { | ||
display: flex; | flex-shrink: 0; | ||
display: inline-flex; | |||
align-items: center; | align-items: center; | ||
} | } | ||
/* | .button-link-content .image img { | ||
.button-link- | filter: brightness(0) invert(1); | ||
vertical-align: middle; | |||
} | |||
width: | |||
/* ============================================ | |||
ALIGNEMENT + WIDTH FIXE | |||
============================================ */ | |||
/* Gauche */ | |||
.button-link--align-left { | |||
width: 300px; | |||
margin-right: auto; | |||
margin-left: 0; | |||
} | |||
/* Centre (par défaut si pas d'align) */ | |||
.button-link--align-center { | |||
width: 300px; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
/* Droite */ | |||
.button-link--align-right { | |||
width: 300px; | |||
margin-left: auto; | |||
margin-right: 0; | |||
} | |||
/* ============================================ | |||
COULEURS PRÉDÉFINIES | |||
============================================ */ | |||
.button-link--primary { | |||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |||
} | |||
.button-link--success { | |||
background: linear-gradient(135deg, #48c774 0%, #23d160 100%); | |||
} | |||
.button-link--danger { | |||
background: linear-gradient(135deg, #f14668 0%, #ff3860 100%); | |||
} | |||
.button-link--warning { | |||
background: linear-gradient(135deg, #ffdd57 0%, #ffa500 100%); | |||
} | |||
.button-link--info { | |||
background: linear-gradient(135deg, #3298dc 0%, #209cee 100%); | |||
} | } | ||
.button-link--secondary { | |||
.button-link- | background: linear-gradient(135deg, #6c757d 0%, #495057 100%); | ||
} | } | ||
.button-link--dark { | |||
background: linear-gradient(135deg, #363636 0%, #1a1a1a 100%); | |||
} | |||
.button-link-- | |||
.button-link--patreon { | |||
background: linear-gradient(135deg, #f96854 0%, #ff424d 100%); | |||
} | |||
.button-link-- | |||
.button-link--gitlab { | |||
.button-link-- | background: linear-gradient(135deg, #fc6d26 0%, #e24329 100%); | ||
} | |||
.button-link--github { | |||
.button-link-- | background: linear-gradient(135deg, #24292e 0%, #0d1117 100%); | ||
} | |||
/* | /* ============================================ | ||
RESPONSIVE | |||
============================================ */ | |||
@media (max-width: 768px) { | |||
.button-link-- | .button-link--align-left, | ||
.button-link-- | .button-link--align-center, | ||
.button-link-- | .button-link--align-right { | ||
width: 100%; | |||
margin-left: 0; | |||
.button-link- | margin-right: 0; | ||
.button-link-- | } | ||
.button-link-content { | |||
padding: 0.75rem; | |||
} | |||
.button-link-content a { | |||
font-size: 0.9rem; | |||
} | |||
} | |||