« Modèle:ButtonLink/styles.css » : différence entre les versions
De Nefald
Autres actions
m 60px Balise : Révoqué |
Aucun résumé des modifications Balise : Révocation manuelle |
||
| (3 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
.button-link-wrapper { | .button-link-wrapper { | ||
min-height: | min-height: 80px; | ||
border-radius: 12px; | border-radius: 12px; | ||
overflow: hidden; | overflow: hidden; | ||
| Ligne 57 : | Ligne 16 : | ||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | ||
} | } | ||
.button-link-content { | .button-link-content { | ||
width: 100%; | width: 100%; | ||
text-align: center; | |||
padding: 1rem; | |||
} | } | ||
.button-link-content a { | |||
color: white !important; | |||
text-decoration: none !important; | |||
.button-link- | |||
display: flex; | display: flex; | ||
flex-direction: column; | |||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
.button-link-content a:hover, | |||
.button-link- | .button-link-content a:visited { | ||
color: white !important; | |||
} | } | ||
.button-link- | /* CONTENEUR D'IMAGE DE TAILLE FIXE */ | ||
.button-link-content .mw-file-description { | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: | width: 200px; /* LARGEUR FIXE */ | ||
height: | height: 50px; /* HAUTEUR FIXE */ | ||
margin: 0 auto 0.5rem; | |||
overflow: hidden; /* Cache ce qui dépasse */ | |||
} | } | ||
.button-link- | /* IMAGE RESPONSIVE DANS LE CONTENEUR */ | ||
width: 100%; | .button-link-content img { | ||
height: 100%; | max-width: 100%; /* Ne dépasse pas le conteneur */ | ||
object-fit: | 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)); | |||
} | } | ||
/* Masquer l'icône de lien externe */ | |||
/* | .button-link-content a.external::after { | ||
display: none !important; | |||
. | |||
display: | |||
} | } | ||
/* ============================================ | /* ============================================ | ||
COULEURS PRÉDÉFINIES | |||
============================================ */ | ============================================ */ | ||
.button-link- | /* ========== COULEURS GÉNÉRIQUES ========== */ | ||
.button-link--danger { background: #dc3545; } /* Danger */ | |||
.button-link--dark { background: #343a40; } /* Dark */ | |||
.button-link--info { background: #17a2b8; } /* Info */ | |||
.button-link--light { background: #f8f9fa; color: #000 !important; } /* Light */ | |||
.button-link--primary { background: #007bff; } /* Primary */ | |||
.button-link--secondary { background: #6c757d; } /* Secondary */ | |||
.button-link--success { background: #28a745; } /* Success */ | |||
.button-link--warning { background: #ffc107; color: #000 !important; } /* Warning */ | |||
} | |||
/* | /* ========== RÉSEAUX SOCIAUX ========== */ | ||
.button-link-- | .button-link--bluesky { background: #0085ff; } /* Bluesky */ | ||
.button-link--discord { background: #5865f2; } /* Discord */ | |||
} | .button-link--facebook { background: #1877f2; } /* Facebook */ | ||
.button-link--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } /* Instagram */ | |||
.button-link--linkedin { background: #0077b5; } /* LinkedIn */ | |||
.button-link--mastodon { background: #6364ff; } /* Mastodon */ | |||
.button-link--reddit { background: #ff4500; } /* Reddit */ | |||
.button-link--snapchat { background: #fffc00; color: #000 !important; } /* Snapchat */ | |||
.button-link--threads { background: #000000; } /* Threads */ | |||
.button-link--tiktok { background: #000000; } /* TikTok */ | |||
.button-link--twitch { background: #9146ff; } /* Twitch */ | |||
.button-link--twitter { background: #1da1f2; } /* Twitter */ | |||
.button-link--youtube { background: #ff0000; } /* YouTube */ | |||
/* ========== HÉBERGEMENT DE CODE ========== */ | |||
.button-link--github { background: #24292e; } /* GitHub */ | |||
.button-link--gitlab { background: #fc6f23; } /* GitLab */ | |||
/* ==================== | |||
/* | /* ========== SERVICES DE DÉVELOPPEMENT ========== */ | ||
.button-link-- | .button-link--codepen { background: #ffffff; } /* CodePen */ | ||
.button-link-- | .button-link--docker { background: #2496ed; } /* Docker */ | ||
.button-link-- | .button-link--gradle { background: #02303a; } /* Gradle */ | ||
.button-link-- | .button-link--jenkins { background: #d24939; } /* Jenkins */ | ||
.button-link-- | .button-link--kubernetes { background: #326ce5; } /* Kubernetes */ | ||
.button-link-- | .button-link--maven { background: #c71a36; } /* Maven */ | ||
.button-link-- | .button-link--npm { background: #cb3837; } /* NPM */ | ||
.button-link-- | .button-link--stackoverflow { background: #f48024; } /* Stack Overflow */ | ||
/* | /* ========== MINECRAFT MODLOADERS ========== */ | ||
.button-link-- | .button-link--fabric { background: #dbd3c8; } /* Fabric */ | ||
.button-link-- | .button-link--forge { background: #1e2c42; } /* Forge */ | ||
.button-link-- | .button-link--minecraft { background: #62b47a; } /* Minecraft */ | ||
.button-link-- | .button-link--neoforge { background: #ff6b35; } /* NeoForge */ | ||
.button-link-- | .button-link--quilt { background: #8b5cf6; } /* Quilt */ | ||
/* | /* ========== PLATEFORMES DE PLUGINS ========== */ | ||
.button-link--curseforge { background: #f16436; } | .button-link--bukkit { background: #f7931e; } /* Bukkit */ | ||
.button-link-- | .button-link--curseforge { background: #f16436; } /* CurseForge */ | ||
.button-link--modrinth { background: #1bd96a; } | .button-link--github-releases { background: #238636; } /* GitHub Releases */ | ||
.button-link--spigot { background: #ed8106; } | .button-link--hangar { background: #0089ff; } /* Hangar */ | ||
.button-link--modrinth { background: #1bd96a; } /* Modrinth */ | |||
.button-link--paper { background: #1a8cff; } /* Paper */ | |||
.button-link--polymart { background: #2196f3; } /* Polymart */ | |||
.button-link--purpur { background: #a855f7; } /* Purpur */ | |||
.button-link--spigot { background: #ed8106; } /* Spigot */ | |||
/* FINANCEMENT */ | /* ========== PLATEFORMES DE FINANCEMENT ========== */ | ||
.button-link--buymeacoffee { background: #ffdd00; } | .button-link--buymeacoffee { background: #ffdd00; } /* Buy Me a Coffee */ | ||
.button-link-- | .button-link--helloasso { background: #4C40CF; } /* HelloAsso */ | ||
.button-link--helloasso { background: # | .button-link--helloasso:hover { background: #3d3fc7; } /* HelloAsso (hover) */ | ||
.button-link--kofi { background: #ff5e5b; } | .button-link--kofi { background: #ff5e5b; } /* Ko-fi */ | ||
.button-link--liberapay { background: #f6c915; } | .button-link--liberapay { background: #f6c915; } /* Liberapay */ | ||
.button-link-- | .button-link--opencollective { background: #7fadf2; } /* Open Collective */ | ||
.button-link-- | .button-link--patreon { background: #ff424d; } /* Patreon */ | ||
.button-link-- | .button-link--paypal { background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%); } /* PayPal */ | ||
.button-link--paypal { background: linear-gradient(135deg, # | .button-link--paypal:hover { background: linear-gradient(135deg, #005ea6 0%, #003087 100%); } /* PayPal (hover) */ | ||
.button-link--qonto { background: # | .button-link--qonto { background: #1d1d1dff; } /* Qonto */ | ||
.button-link--stripe { background: #635BFF; } | /*.button-link--qonto:hover { background: #8D8D8C; } Qonto */ | ||
.button-link--stripe { background: #635BFF; } /* Stripe */ | |||
/* ============================================ | /* ============================================ | ||
ALIGNEMENT | ALIGNEMENT + WIDTH FIXE | ||
============================================ */ | ============================================ */ | ||
/* Gauche */ | |||
.button-link--align-left { | .button-link--align-left { | ||
width: | width: 300px; | ||
margin-right: auto; | margin-right: auto; | ||
margin-left: 0; | margin-left: 0; | ||
} | } | ||
/* Centre */ | |||
.button-link--align-center { | .button-link--align-center { | ||
width: | width: 300px; | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
} | } | ||
/* Droite */ | |||
.button-link--align-right { | .button-link--align-right { | ||
width: | width: 300px; | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: 0; | margin-right: 0; | ||
} | } | ||
Dernière version du 16 janvier 2026 à 08:09
.button-link-wrapper {
min-height: 80px;
border-radius: 12px;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
position: relative;
background: #6c757d;
display: flex;
align-items: center;
justify-content: center;
}
.button-link-wrapper:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.button-link-content {
width: 100%;
text-align: center;
padding: 1rem;
}
.button-link-content a {
color: white !important;
text-decoration: none !important;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.button-link-content a:hover,
.button-link-content a:visited {
color: white !important;
}
/* CONTENEUR D'IMAGE DE TAILLE FIXE */
.button-link-content .mw-file-description {
display: flex;
align-items: center;
justify-content: center;
width: 200px; /* LARGEUR FIXE */
height: 50px; /* HAUTEUR FIXE */
margin: 0 auto 0.5rem;
overflow: hidden; /* Cache ce qui dépasse */
}
/* IMAGE RESPONSIVE DANS LE CONTENEUR */
.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));
}
/* Masquer l'icône de lien externe */
.button-link-content a.external::after {
display: none !important;
}
/* ============================================
COULEURS PRÉDÉFINIES
============================================ */
/* ========== COULEURS GÉNÉRIQUES ========== */
.button-link--danger { background: #dc3545; } /* Danger */
.button-link--dark { background: #343a40; } /* Dark */
.button-link--info { background: #17a2b8; } /* Info */
.button-link--light { background: #f8f9fa; color: #000 !important; } /* Light */
.button-link--primary { background: #007bff; } /* Primary */
.button-link--secondary { background: #6c757d; } /* Secondary */
.button-link--success { background: #28a745; } /* Success */
.button-link--warning { background: #ffc107; color: #000 !important; } /* Warning */
/* ========== RÉSEAUX SOCIAUX ========== */
.button-link--bluesky { background: #0085ff; } /* Bluesky */
.button-link--discord { background: #5865f2; } /* Discord */
.button-link--facebook { background: #1877f2; } /* Facebook */
.button-link--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } /* Instagram */
.button-link--linkedin { background: #0077b5; } /* LinkedIn */
.button-link--mastodon { background: #6364ff; } /* Mastodon */
.button-link--reddit { background: #ff4500; } /* Reddit */
.button-link--snapchat { background: #fffc00; color: #000 !important; } /* Snapchat */
.button-link--threads { background: #000000; } /* Threads */
.button-link--tiktok { background: #000000; } /* TikTok */
.button-link--twitch { background: #9146ff; } /* Twitch */
.button-link--twitter { background: #1da1f2; } /* Twitter */
.button-link--youtube { background: #ff0000; } /* YouTube */
/* ========== HÉBERGEMENT DE CODE ========== */
.button-link--github { background: #24292e; } /* GitHub */
.button-link--gitlab { background: #fc6f23; } /* GitLab */
/* ========== SERVICES DE DÉVELOPPEMENT ========== */
.button-link--codepen { background: #ffffff; } /* CodePen */
.button-link--docker { background: #2496ed; } /* Docker */
.button-link--gradle { background: #02303a; } /* Gradle */
.button-link--jenkins { background: #d24939; } /* Jenkins */
.button-link--kubernetes { background: #326ce5; } /* Kubernetes */
.button-link--maven { background: #c71a36; } /* Maven */
.button-link--npm { background: #cb3837; } /* NPM */
.button-link--stackoverflow { background: #f48024; } /* Stack Overflow */
/* ========== MINECRAFT MODLOADERS ========== */
.button-link--fabric { background: #dbd3c8; } /* Fabric */
.button-link--forge { background: #1e2c42; } /* Forge */
.button-link--minecraft { background: #62b47a; } /* Minecraft */
.button-link--neoforge { background: #ff6b35; } /* NeoForge */
.button-link--quilt { background: #8b5cf6; } /* Quilt */
/* ========== PLATEFORMES DE PLUGINS ========== */
.button-link--bukkit { background: #f7931e; } /* Bukkit */
.button-link--curseforge { background: #f16436; } /* CurseForge */
.button-link--github-releases { background: #238636; } /* GitHub Releases */
.button-link--hangar { background: #0089ff; } /* Hangar */
.button-link--modrinth { background: #1bd96a; } /* Modrinth */
.button-link--paper { background: #1a8cff; } /* Paper */
.button-link--polymart { background: #2196f3; } /* Polymart */
.button-link--purpur { background: #a855f7; } /* Purpur */
.button-link--spigot { background: #ed8106; } /* Spigot */
/* ========== PLATEFORMES DE FINANCEMENT ========== */
.button-link--buymeacoffee { background: #ffdd00; } /* Buy Me a Coffee */
.button-link--helloasso { background: #4C40CF; } /* HelloAsso */
.button-link--helloasso:hover { background: #3d3fc7; } /* HelloAsso (hover) */
.button-link--kofi { background: #ff5e5b; } /* Ko-fi */
.button-link--liberapay { background: #f6c915; } /* Liberapay */
.button-link--opencollective { background: #7fadf2; } /* Open Collective */
.button-link--patreon { background: #ff424d; } /* Patreon */
.button-link--paypal { background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%); } /* PayPal */
.button-link--paypal:hover { background: linear-gradient(135deg, #005ea6 0%, #003087 100%); } /* PayPal (hover) */
.button-link--qonto { background: #1d1d1dff; } /* Qonto */
/*.button-link--qonto:hover { background: #8D8D8C; } Qonto */
.button-link--stripe { background: #635BFF; } /* Stripe */
/* ============================================
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;
}