Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« Modèle:ButtonLink/styles.css » : différence entre les versions

De Nefald
Hiob (discussion | contributions)
m ajout de boutons (background)
Hiob (discussion | contributions)
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;
    flex-direction: column;
     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 {
.button-link-content a:visited {
     color: white !important;
     color: white !important;
}
}


/* CONTENEUR D'IMAGE DE TAILLE FIXE */
/* Styles des images */
.button-link-content .mw-file-description {
.button-link-content .image {
     display: flex;
    flex-shrink: 0;
     display: inline-flex;
     align-items: center;
     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 .image img {
.button-link-content img {
    filter: brightness(0) invert(1);
     max-width: 100%;       /* Ne dépasse pas le conteneur */
    vertical-align: middle;
     max-height: 100%;       /* Ne dépasse pas le conteneur */
}
     width: auto !important;
 
     height: auto !important;
/* ============================================
     object-fit: contain;   /* Garde les proportions */
  ALIGNEMENT + WIDTH FIXE
     filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  ============================================ */
 
/* 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%);
}
}


/* Masquer l'icône de lien externe */
.button-link--secondary {
.button-link-content a.external::after {
     background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
     display: none !important;
}
}


/* Couleurs prédéfinies */
.button-link--dark {
/* Réseau sociaux */
    background: linear-gradient(135deg, #363636 0%, #1a1a1a 100%);
.button-link--bluesky { background: #0085ff; }
}
.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--mastodon { background: #6364ff; }
.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--threads { background: #000000; }
.button-link--tiktok { background: #000000; }
.button-link--facebook { background: #1877f2; }
.button-link--snapchat { background: #fffc00; color: #000 !important; }


/* Plateformes de plugins */
.button-link--patreon {
.button-link--paper { background: #1a8cff; }
    background: linear-gradient(135deg, #f96854 0%, #ff424d 100%);
.button-link--purpur { background: #a855f7; }
}
.button-link--spigot { background: #ed8106; }
.button-link--bukkit { background: #f7931e; }
.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--gitlab {
.button-link--stackoverflow { background: #f48024; }
    background: linear-gradient(135deg, #fc6d26 0%, #e24329 100%);
.button-link--jenkins { background: #d24939; }
}
.button-link--docker { background: #2496ed; }
.button-link--kubernetes { background: #326ce5; }
.button-link--codepen { background: #000000; }
.button-link--npm { background: #cb3837; }
.button-link--maven { background: #c71a36; }
.button-link--gradle { background: #02303a; }


/* Minecraft Modloaders */
.button-link--github {
.button-link--minecraft { background: #62b47a; }
    background: linear-gradient(135deg, #24292e 0%, #0d1117 100%);
.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--buymeacoffee { background: #ffdd00; }
  RESPONSIVE
.button-link--kofi { background: #ff5e5b; }
  ============================================ */
.button-link--liberapay { background: #f6c915; }
.button-link--opencollective { background: #7fadf2; }
.button-link--stackoverflow { background: #f48024; }
.button-link--stackoverflow { background: #f48024; }


/* Couleurs génériques */
@media (max-width: 768px) {
.button-link--primary { background: #007bff; }
    .button-link--align-left,
.button-link--secondary { background: #6c757d; }
    .button-link--align-center,
.button-link--success { background: #28a745; }
    .button-link--align-right {
.button-link--danger { background: #dc3545; }
        width: 100%;
.button-link--warning { background: #ffc107; color: #000 !important; }
        margin-left: 0;
.button-link--info { background: #17a2b8; }
        margin-right: 0;
.button-link--light { background: #f8f9fa; color: #000 !important; }
    }
.button-link--dark { background: #343a40; }
   
    .button-link-content {
        padding: 0.75rem;
    }
   
    .button-link-content a {
        font-size: 0.9rem;
    }
}

Version du 6 novembre 2025 à 20:23

/* ============================================
   BUTTON LINK - Universal clickable buttons
   ============================================ */

/* Wrapper principal */
.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);
}

/* Contenu du bouton */
.button-link-content {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.button-link-content a {
    color: white !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
}

.button-link-content a:hover {
    color: white !important;
}

/* Styles des images */
.button-link-content .image {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.button-link-content .image img {
    filter: brightness(0) invert(1);
    vertical-align: middle;
}

/* ============================================
   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 {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.button-link--dark {
    background: linear-gradient(135deg, #363636 0%, #1a1a1a 100%);
}

.button-link--patreon {
    background: linear-gradient(135deg, #f96854 0%, #ff424d 100%);
}

.button-link--gitlab {
    background: linear-gradient(135deg, #fc6d26 0%, #e24329 100%);
}

.button-link--github {
    background: linear-gradient(135deg, #24292e 0%, #0d1117 100%);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .button-link--align-left,
    .button-link--align-center,
    .button-link--align-right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .button-link-content {
        padding: 0.75rem;
    }
    
    .button-link-content a {
        font-size: 0.9rem;
    }
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.