« Modèle:Button/styles.css » : différence entre les versions
De Nefald
Autres actions
mAucun résumé des modifications |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* ============================================ | |||
BASE DU BOUTON | |||
============================================ */ | |||
.button-link-wrapper { | .button-link-wrapper { | ||
width: 300px; | |||
max-width: 100%; | |||
min-height: 80px; | min-height: 80px; | ||
border-radius: 12px; | border-radius: 12px; | ||
| Ligne 8 : | Ligne 14 : | ||
background: #6c757d; | background: #6c757d; | ||
display: flex; | display: flex; | ||
align-items: | align-items: stretch; | ||
} | } | ||
| Ligne 18 : | Ligne 23 : | ||
.button-link-content { | .button-link-content { | ||
flex: 1; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 1rem; | padding: 1rem; | ||
} | } | ||
| Ligne 29 : | Ligne 36 : | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
gap: 0.5rem; | |||
width: 100%; | |||
} | } | ||
| Ligne 37 : | Ligne 45 : | ||
} | } | ||
/* | .button-link-content a.external::after { | ||
.button-link- | display: none !important; | ||
} | |||
/* ============================================ | |||
IMAGE CLASSIQUE (MODE NORMAL) | |||
============================================ */ | |||
.button-link-image { | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
/* | .button-link-text { | ||
.button-link- | text-align: center; | ||
line-height: 1.4; | |||
} | |||
width: | |||
/* ============================================ | |||
MODE QR CODE | |||
============================================ */ | |||
.button-link--qrcode { | |||
width: 450px; | |||
flex-direction: row; | |||
} | |||
.button-link-qrcode-zone { | |||
flex-shrink: 0; | |||
width: 150px; | |||
background: rgba(255, 255, 255, 0.95); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 1rem; | |||
} | |||
.button-link-qrcode-img { | |||
display: block; | |||
width: 100% !important; | |||
height: auto !important; | height: auto !important; | ||
max-width: 120px; | |||
} | |||
/* QR Code à GAUCHE (défaut) */ | |||
.button-link--qrcode-gauche { | |||
flex-direction: row; | |||
} | |||
/* QR Code à DROITE */ | |||
.button-link--qrcode-droite { | |||
flex-direction: row-reverse; | |||
} | |||
.button-link--qrcode .button-link-content { | |||
text-align: center; | |||
} | |||
.button-link--qrcode .button-link-text { | |||
font-size: 1.1rem; | |||
} | } | ||
/* | /* ============================================ | ||
.button-link- | RESPONSIVE MOBILE | ||
============================================ */ | |||
@media (max-width: 480px) { | |||
.button-link--qrcode { | |||
flex-direction: column; | |||
width: 100%; | |||
} | |||
.button-link-qrcode-zone { | |||
width: 100%; | |||
padding: 1.5rem; | |||
} | |||
.button-link--qrcode-droite { | |||
flex-direction: column; | |||
} | |||
} | } | ||
| Ligne 67 : | Ligne 132 : | ||
============================================ */ | ============================================ */ | ||
.button-link--danger { background: #dc3545; } | |||
.button-link--danger { background: #dc3545; } | .button-link--dark { background: #343a40; } | ||
.button-link--dark { background: #343a40; } | .button-link--info { background: #17a2b8; } | ||
.button-link--info { background: #17a2b8; } | .button-link--light { background: #f8f9fa; } | ||
.button-link--light { background: #f8f9fa; color: #000 !important; } | .button-link--light .button-link-content a { color: #000 !important; } | ||
.button-link--primary { background: #007bff; } | .button-link--primary { background: #007bff; } | ||
.button-link--secondary { background: #6c757d; } | .button-link--secondary { background: #6c757d; } | ||
.button-link--success { background: #28a745; } | .button-link--success { background: #28a745; } | ||
.button-link--warning { background: #ffc107; color: #000 !important; } | .button-link--warning { background: #ffc107; } | ||
.button-link--warning .button-link-content a { color: #000 !important; } | |||
/* | /* RÉSEAUX SOCIAUX */ | ||
.button-link--bluesky { background: #0085ff; } | .button-link--bluesky { background: #0085ff; } | ||
.button-link--discord { background: #5865f2; } | .button-link--discord { background: #5865f2; } | ||
.button-link--facebook { background: #1877f2; } | .button-link--facebook { background: #1877f2; } | ||
.button-link--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } | .button-link--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } | ||
.button-link--linkedin { background: #0077b5; } | .button-link--linkedin { background: #0077b5; } | ||
.button-link--mastodon { background: #6364ff; } | .button-link--mastodon { background: #6364ff; } | ||
.button-link--reddit { background: #ff4500; } | .button-link--reddit { background: #ff4500; } | ||
.button-link--snapchat { background: #fffc00; color: #000 !important; } | .button-link--snapchat { background: #fffc00; } | ||
.button-link--threads { background: #000000; } | .button-link--snapchat .button-link-content a { color: #000 !important; } | ||
.button-link--tiktok { background: #000000; } | .button-link--threads { background: #000000; } | ||
.button-link--twitch { background: #9146ff; } | .button-link--tiktok { background: #000000; } | ||
.button-link--twitter { background: #1da1f2; } | .button-link--twitch { background: #9146ff; } | ||
.button-link--youtube { background: #ff0000; } | .button-link--twitter { background: #1da1f2; } | ||
.button-link--youtube { background: #ff0000; } | |||
/* | /* HÉBERGEMENT CODE */ | ||
.button-link--github { background: #24292e; } | .button-link--github { background: #24292e; } | ||
.button-link--gitlab { background: #fc6f23; } | .button-link--gitlab { background: #fc6f23; } | ||
/* | /* DEV TOOLS */ | ||
.button-link--codepen { background: # | .button-link--codepen { background: #1e1f26; } | ||
.button-link--docker { background: #2496ed; } | .button-link--docker { background: #2496ed; } | ||
.button-link--gradle { background: #02303a; } | .button-link--gradle { background: #02303a; } | ||
.button-link--jenkins { background: #d24939; } | .button-link--jenkins { background: #d24939; } | ||
.button-link--kubernetes { background: #326ce5; } | .button-link--kubernetes { background: #326ce5; } | ||
.button-link--maven { background: #c71a36; } | .button-link--maven { background: #c71a36; } | ||
.button-link--npm { background: #cb3837; } | .button-link--npm { background: #cb3837; } | ||
.button-link--stackoverflow { background: #f48024; } | .button-link--stackoverflow { background: #f48024; } | ||
/* | /* MINECRAFT */ | ||
.button-link--fabric { background: #dbd3c8; } | .button-link--fabric { background: #dbd3c8; } | ||
.button-link--forge { background: #1e2c42; } | .button-link--fabric .button-link-content a { color: #000 !important; } | ||
.button-link--minecraft { background: #62b47a; } | .button-link--forge { background: #1e2c42; } | ||
.button-link--neoforge { background: #ff6b35; } | .button-link--minecraft { background: #62b47a; } | ||
.button-link--quilt { background: #8b5cf6; } | .button-link--neoforge { background: #ff6b35; } | ||
.button-link--quilt { background: #8b5cf6; } | |||
/* | /* PLUGINS */ | ||
.button-link--bukkit { background: #f7931e; } | .button-link--bukkit { background: #f7931e; } | ||
.button-link--curseforge { background: #f16436; } | .button-link--curseforge { background: #f16436; } | ||
.button-link--github-releases { background: #238636; } | .button-link--github-releases { background: #238636; } | ||
.button-link--hangar { background: #0089ff; } | .button-link--hangar { background: #0089ff; } | ||
.button-link--modrinth { background: #1bd96a; } | .button-link--modrinth { background: #1bd96a; } | ||
.button-link--paper { background: #1a8cff; } | .button-link--paper { background: #1a8cff; } | ||
.button-link--polymart { background: #2196f3; } | .button-link--polymart { background: #2196f3; } | ||
.button-link--purpur { background: #a855f7; } | .button-link--purpur { background: #a855f7; } | ||
.button-link--spigot { background: #ed8106; } | .button-link--spigot { background: #ed8106; } | ||
/* | /* FINANCEMENT */ | ||
.button-link--buymeacoffee { background: #ffdd00; } | .button-link--buymeacoffee { background: #ffdd00; } | ||
.button-link-- | .button-link--buymeacoffee .button-link-content a { color: #000 !important; } | ||
.button-link--helloasso | .button-link--helloasso { background: #4C40CF; } | ||
.button-link--kofi { background: #ff5e5b; } | .button-link--kofi { background: #ff5e5b; } | ||
.button-link--liberapay { background: #f6c915; } | .button-link--liberapay { background: #f6c915; } | ||
.button-link-- | .button-link--liberapay .button-link-content a { color: #000 !important; } | ||
.button-link-- | .button-link--opencollective { background: #7fadf2; } | ||
.button-link-- | .button-link--patreon { background: #ff424d; } | ||
.button-link--paypal | .button-link--paypal { background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%); } | ||
.button-link--qonto { background: #1d1d1d; } | |||
.button-link--stripe { background: #635BFF; } | |||
.button-link--stripe { background: #635BFF; } | |||
/* ============================================ | /* ============================================ | ||
ALIGNEMENT | ALIGNEMENT | ||
============================================ */ | ============================================ */ | ||
.button-link--align-left { | .button-link--align-left { | ||
margin-right: auto; | margin-right: auto; | ||
margin-left: 0; | margin-left: 0; | ||
} | } | ||
.button-link--align-center { | .button-link--align-center { | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
} | } | ||
.button-link--align-right { | .button-link--align-right { | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: 0; | margin-right: 0; | ||
} | } | ||