« Modèle:ButtonLink/styles.css » : différence entre les versions
De Nefald
Autres actions
mAucun résumé des modifications Balises : Modification par mobile Modification par le web mobile |
m paypal |
||
| (7 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 26 : | Ligne 26 : | ||
color: white !important; | color: white !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
display: | display: flex; | ||
flex-direction: column; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
| Ligne 34 : | Ligne 37 : | ||
} | } | ||
/* CONTENEUR D'IMAGE DE TAILLE FIXE */ | |||
.button-link-content .mw-file-description { | .button-link-content .mw-file-description { | ||
display: | display: flex; | ||
align-items: center; | |||
justify-content: center; | |||
width: 200px; /* LARGEUR FIXE */ | |||
height: 50px; /* HAUTEUR FIXE */ | |||
margin: 0 auto 0.5rem; | margin: 0 auto 0.5rem; | ||
overflow: hidden; /* Cache ce qui dépasse */ | |||
} | } | ||
/* IMAGE RESPONSIVE DANS LE CONTENEUR */ | |||
.button-link-content img { | .button-link-content img { | ||
max-width: 100%; /* Ne dépasse pas le conteneur */ | |||
max-height: 100%; /* Ne dépasse pas le conteneur */ | |||
width: auto !important; | |||
height: auto !important; | |||
object-fit: contain; /* Garde les proportions */ | |||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); | filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); | ||
} | } | ||
| Ligne 51 : | Ligne 64 : | ||
/* Couleurs prédéfinies */ | /* Couleurs prédéfinies */ | ||
/* Réseau sociaux */ | |||
.button-link--bluesky { background: #0085ff; } | |||
.button-link--discord { background: #5865f2; } | .button-link--discord { background: #5865f2; } | ||
.button-link--twitter { background: #1da1f2; } | .button-link--twitter { background: #1da1f2; } | ||
.button-link--youtube { background: #ff0000; } | .button-link--youtube { background: #ff0000; } | ||
.button-link--mastodon { background: #6364ff; } | |||
.button-link--twitch { background: #9146ff; } | .button-link--twitch { background: #9146ff; } | ||
.button-link--reddit { background: #ff4500; } | .button-link--reddit { background: #ff4500; } | ||
.button-link--linkedin { background: #0077b5; } | .button-link--linkedin { background: #0077b5; } | ||
.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--threads { background: #000000; } | |||
.button-link--tiktok { background: #000000; } | .button-link--tiktok { background: #000000; } | ||
.button-link--facebook { background: #1877f2; } | .button-link--facebook { background: #1877f2; } | ||
| Ligne 66 : | Ligne 80 : | ||
/* Plateformes de plugins */ | /* Plateformes de plugins */ | ||
.button-link--paper { background: #1a8cff; } | |||
.button-link--purpur { background: #a855f7; } | |||
.button-link--spigot { background: #ed8106; } | |||
.button-link--bukkit { background: #f7931e; } | |||
.button-link--spigot { background: #ed8106; } | .button-link--spigot { background: #ed8106; } | ||
.button-link--bukkit { background: #f7931e; } | .button-link--bukkit { background: #f7931e; } | ||
| Ligne 73 : | Ligne 91 : | ||
.button-link--github-releases { background: #238636; } | .button-link--github-releases { background: #238636; } | ||
.button-link--hangar { background: #0089ff; } | .button-link--hangar { background: #0089ff; } | ||
/* hébergement de code */ | |||
.button-link--gitlab { background: #fc6f23; } | |||
.button-link--github { background: #24292e; } | |||
/* Services de développement */ | /* Services de développement */ | ||
.button-link--stackoverflow { background: #252627; } | |||
.button-link--jenkins { background: #d24939; } | .button-link--jenkins { background: #d24939; } | ||
.button-link--docker { background: #2496ed; } | .button-link--docker { background: #2496ed; } | ||
.button-link--kubernetes { background: #326ce5; } | |||
.button-link--codepen { background: #ffffff; } | |||
.button-link--npm { background: #cb3837; } | .button-link--npm { background: #cb3837; } | ||
.button-link--maven { background: #c71a36; } | .button-link--maven { background: #c71a36; } | ||
.button-link--gradle { background: #02303a; } | .button-link--gradle { background: #02303a; } | ||
/* Minecraft Modloaders */ | |||
.button-link--minecraft { background: #62b47a; } | |||
.button-link--forge { background: #1e2c42; } | |||
.button-link--fabric { background: #dbd3c8; } | |||
.button-link--quilt { background: #8b5cf6; } | |||
.button-link--neoforge { background: #ff6b35; } | |||
/* Plateformes de financement */ | |||
.button-link--patreon { background: #ff424d; } | |||
.button-link--buymeacoffee { background: #ffdd00; } | |||
.button-link--kofi { background: #ff5e5b; } | |||
.button-link--liberapay { background: #f6c915; } | |||
.button-link--opencollective { background: #7fadf2; } | |||
.button-link--paypal {background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%);} | |||
.button-link--paypal:hover {background: linear-gradient(135deg, #005ea6 0%, #003087 100%);} | |||
.button-link--stackoverflow { background: #f48024; } | |||
.button-link--stripe { background: #635BFF; } | |||
/* Couleurs génériques */ | /* Couleurs génériques */ | ||
| Ligne 90 : | Ligne 133 : | ||
.button-link--light { background: #f8f9fa; color: #000 !important; } | .button-link--light { background: #f8f9fa; color: #000 !important; } | ||
.button-link--dark { background: #343a40; } | .button-link--dark { background: #343a40; } | ||
/* ============================================ | |||
ALIGNEMENT + WIDTH FIXE | |||
============================================ */ | |||
/* Gauche */ | |||
.button-link--align-left { | |||
width: 300px; | |||
margin-right: auto; | |||
margin-left: 0; | |||
} | |||
/* Centre */ | |||
.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; | |||
} | |||