« 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 |
mAucun résumé des modifications |
||
| 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 50 : | Ligne 63 : | ||
} | } | ||
/* Couleurs prédéfinies */ | /* Couleurs prédéfinies... (reste inchangé) */ | ||
.button-link--discord { background: #5865f2; } | .button-link--discord { background: #5865f2; } | ||
.button-link--patreon { background: #ff424d; } | .button-link--patreon { background: #ff424d; } | ||
Version du 5 novembre 2025 à 20:22
.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... (reste inchangé) */
.button-link--discord { background: #5865f2; }
.button-link--patreon { background: #ff424d; }
.button-link--gitlab { background: #fc6f23; }
.button-link--github { background: #24292e; }
.button-link--twitter { background: #1da1f2; }
.button-link--youtube { background: #ff0000; }
.button-link--twitch { background: #9146ff; }
.button-link--reddit { background: #ff4500; }
.button-link--linkedin { background: #0077b5; }
.button-link--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.button-link--tiktok { background: #000000; }
.button-link--facebook { background: #1877f2; }
.button-link--snapchat { background: #fffc00; color: #000 !important; }
/* Plateformes de plugins */
.button-link--spigot { background: #ed8106; }
.button-link--bukkit { background: #f7931e; }
.button-link--modrinth { background: #1bd96a; }
.button-link--curseforge { background: #f16436; }
.button-link--polymart { background: #2196f3; }
.button-link--github-releases { background: #238636; }
.button-link--hangar { background: #0089ff; }
/* Services de développement */
.button-link--jenkins { background: #d24939; }
.button-link--docker { background: #2496ed; }
.button-link--npm { background: #cb3837; }
.button-link--maven { background: #c71a36; }
.button-link--gradle { background: #02303a; }
/* Couleurs génériques */
.button-link--primary { background: #007bff; }
.button-link--secondary { background: #6c757d; }
.button-link--success { background: #28a745; }
.button-link--danger { background: #dc3545; }
.button-link--warning { background: #ffc107; color: #000 !important; }
.button-link--info { background: #17a2b8; }
.button-link--light { background: #f8f9fa; color: #000 !important; }
.button-link--dark { background: #343a40; }