« Modèle:IconButton/styles.css » : différence entre les versions
De Nefald
Autres actions
m text mode |
mAucun résumé des modifications Balise : Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* ============================================ | /* ============================================ | ||
BASE STYLES | |||
============================================ */ | ============================================ */ | ||
.icon-button { | .icon-button { | ||
width: | display: inline-block; | ||
height: | width: 80px; | ||
border-radius: | height: 80px; | ||
border-radius: 12px; | |||
transition: all 0.3s ease; | |||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |||
overflow: hidden; | overflow: hidden; | ||
position: relative; | position: relative; | ||
} | } | ||
.icon-button:hover { | .icon-button:hover { | ||
transform: translateY(-2px | transform: translateY(-2px); | ||
box-shadow: 0 | box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); | ||
} | } | ||
.icon-button a { | .icon-button a { | ||
display: flex | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
color: transparent !important; | color: transparent !important; | ||
text-decoration: none | text-decoration: none; | ||
} | } | ||
.icon-button img { | .icon-button img { | ||
max-width: | max-width: 90%; | ||
max-height: | max-height: 90%; | ||
object-fit: contain; | |||
object-fit: contain | |||
} | } | ||
/* ============================================ | /* ============================================ | ||
| Ligne 75 : | Ligne 42 : | ||
padding: 8px 16px !important; | padding: 8px 16px !important; | ||
width: auto !important; | width: auto !important; | ||
min-width: 80px; | min-width: 80px !important; | ||
height: auto !important; | |||
} | } | ||
/* | /* FORCE l'affichage du texte en blanc */ | ||
.icon-button--text-mode a { | .icon-button--text-mode a.external { | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
| Ligne 86 : | Ligne 53 : | ||
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; | text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; | ||
white-space: nowrap !important; | white-space: nowrap !important; | ||
} | } | ||
.icon-button--text-mode a:visited { | .icon-button--text-mode a.external:hover, | ||
.icon-button--text-mode a.external:visited, | |||
.icon-button--text-mode a.external:active { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
| Ligne 105 : | Ligne 67 : | ||
} | } | ||
/* Masquer l'icône de lien externe | /* Masquer l'icône de lien externe */ | ||
.icon-button--text-mode a.external::after { | .icon-button--text-mode a.external::after { | ||
display: none !important; | display: none !important; | ||
} | } | ||
| Ligne 125 : | Ligne 77 : | ||
/* ========== RÉSEAUX SOCIAUX ========== */ | /* ========== RÉSEAUX SOCIAUX ========== */ | ||
.icon-button-- | |||
.icon-button-- | .icon-button--discord { background: linear-gradient(135deg, #5865F2 0%, #404EED 100%); } | ||
.icon-button--twitter { background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%); } | |||
.icon-button--instagram { background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%); } | |||
.icon-button--tiktok { background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); } | |||
.icon-button--facebook { background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%); } | |||
.icon-button--twitch { background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%); } | |||
.icon-button--gitlab { background: linear-gradient(135deg, #FC6D26 0%, #E24329 100%); } | |||
.icon-button--helloasso { background: linear-gradient(135deg, #4C40CF 0%, #3B32A8 100%); } | |||
.icon-button--facebook { background: #1877f2; } /* Facebook */ | .icon-button--facebook { background: #1877f2; } /* Facebook */ | ||
.icon-button--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } /* Instagram */ | .icon-button--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } /* Instagram */ | ||
| Ligne 136 : | Ligne 95 : | ||
.icon-button--tiktok { background: #000000; } /* TikTok */ | .icon-button--tiktok { background: #000000; } /* TikTok */ | ||
.icon-button--twitch { background: #9146ff; } /* Twitch */ | .icon-button--twitch { background: #9146ff; } /* Twitch */ | ||
.icon-button--youtube { background: #ff0000; } /* YouTube */ | .icon-button--youtube { background: #ff0000; } /* YouTube */ | ||
Version du 7 février 2026 à 09:03
/* ============================================
BASE STYLES
============================================ */
.icon-button {
display: inline-block;
width: 80px;
height: 80px;
border-radius: 12px;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
position: relative;
}
.icon-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.icon-button a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: transparent !important;
text-decoration: none;
}
.icon-button img {
max-width: 90%;
max-height: 90%;
object-fit: contain;
}
/* ============================================
TEXT MODE - Affichage texte au lieu d'icône
============================================ */
.icon-button--text-mode {
padding: 8px 16px !important;
width: auto !important;
min-width: 80px !important;
height: auto !important;
}
/* FORCE l'affichage du texte en blanc */
.icon-button--text-mode a.external {
color: #ffffff !important;
font-weight: 700 !important;
font-size: 14px !important;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
white-space: nowrap !important;
}
.icon-button--text-mode a.external:hover,
.icon-button--text-mode a.external:visited,
.icon-button--text-mode a.external:active {
color: #ffffff !important;
}
/* Masquer l'icône en mode texte */
.icon-button--text-mode img,
.icon-button--text-mode .mw-file-description {
display: none !important;
}
/* Masquer l'icône de lien externe */
.icon-button--text-mode a.external::after {
display: none !important;
}
/* ========== COULEURS PRÉDÉFINIES ========== */
/* ========== RÉSEAUX SOCIAUX ========== */
.icon-button--discord { background: linear-gradient(135deg, #5865F2 0%, #404EED 100%); }
.icon-button--twitter { background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%); }
.icon-button--instagram { background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%); }
.icon-button--tiktok { background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); }
.icon-button--facebook { background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%); }
.icon-button--twitch { background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%); }
.icon-button--gitlab { background: linear-gradient(135deg, #FC6D26 0%, #E24329 100%); }
.icon-button--helloasso { background: linear-gradient(135deg, #4C40CF 0%, #3B32A8 100%); }
.icon-button--facebook { background: #1877f2; } /* Facebook */
.icon-button--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } /* Instagram */
.icon-button--linkedin { background: #0077b5; } /* LinkedIn */
.icon-button--mastodon { background: #6364ff; } /* Mastodon */
.icon-button--reddit { background: #ff4500; } /* Reddit */
.icon-button--snapchat { background: #fffc00; color: #000 !important; } /* Snapchat */
.icon-button--threads { background: #000000; } /* Threads */
.icon-button--tiktok { background: #000000; } /* TikTok */
.icon-button--twitch { background: #9146ff; } /* Twitch */
.icon-button--youtube { background: #ff0000; } /* YouTube */
/* ========== HÉBERGEMENT DE CODE ========== */
.icon-button--github { background: #24292e; } /* GitHub */
.icon-button--gitlab { background: #fc6f23; } /* GitLab */
/* ========== SERVICES DE DÉVELOPPEMENT ========== */
.icon-button--codepen { background: #ffffff; } /* CodePen */
.icon-button--docker { background: #2496ed; } /* Docker */
.icon-button--gradle { background: #02303a; } /* Gradle */
.icon-button--jenkins { background: #d24939; } /* Jenkins */
.icon-button--kubernetes { background: #326ce5; } /* Kubernetes */
.icon-button--maven { background: #c71a36; } /* Maven */
.icon-button--npm { background: #cb3837; } /* NPM */
.icon-button--stackoverflow { background: #f48024; } /* Stack Overflow */
/* ========== MINECRAFT MODLOADERS ========== */
.icon-button--fabric { background: #dbd3c8; } /* Fabric */
.icon-button--forge { background: #1e2c42; } /* Forge */
.icon-button--minecraft { background: #62b47a; } /* Minecraft */
.icon-button--neoforge { background: #ff6b35; } /* NeoForge */
.icon-button--quilt { background: #8b5cf6; } /* Quilt */
/* ========== PLATEFORMES DE PLUGINS ========== */
.icon-button--bukkit { background: #f7931e; } /* Bukkit */
.icon-button--curseforge { background: #f16436; } /* CurseForge */
.icon-button--github-releases { background: #238636; } /* GitHub Releases */
.icon-button--hangar { background: #0089ff; } /* Hangar */
.icon-button--modrinth { background: #1bd96a; } /* Modrinth */
.icon-button--paper { background: #1a8cff; } /* Paper */
.icon-button--polymart { background: #2196f3; } /* Polymart */
.icon-button--purpur { background: #a855f7; } /* Purpur */
.icon-button--spigot { background: #ed8106; } /* Spigot */
/* ========== PLATEFORMES DE FINANCEMENT ========== */
.icon-button--buymeacoffee { background: #ffdd00; } /* Buy Me a Coffee */
.icon-button--helloasso { background: #4C40CF; } /* HelloAsso */
.icon-button--helloasso:hover { background: #3d3fc7; } /* HelloAsso (hover) */
.icon-button--kofi { background: #ff5e5b; } /* Ko-fi */
.icon-button--liberapay { background: #f6c915; } /* Liberapay */
.icon-button--opencollective { background: #7fadf2; } /* Open Collective */
.icon-button--patreon { background: #ff424d; } /* Patreon */
.icon-button--paypal { background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%); } /* PayPal */
.icon-button--paypal:hover { background: linear-gradient(135deg, #005ea6 0%, #003087 100%); } /* PayPal (hover) */
.icon-button--qonto { background: #1d1d1dff; } /* Qonto */
/*.icon-button--qonto:hover { background: #8D8D8C; } Qonto */
.icon-button--stripe { background: #635BFF; } /* Stripe */
/* COULEURS STANDARDS */
.icon-button--primary, .icon-button--blue { background: #3366cc; }
.icon-button--secondary, .icon-button--gray, .icon-button--grey { background: #72777d; }
.icon-button--success, .icon-button--green { background: #14866d; }
.icon-button--danger, .icon-button--red { background: #d73333; }
.icon-button--warning, .icon-button--yellow { background: #fc3; }
.icon-button--info, .icon-button--cyan { background: #00b8d4; }
.icon-button--purple, .icon-button--violet { background: #6f42c1; }
.icon-button--pink { background: #d63384; }
.icon-button--orange { background: #fd7e14; }
.icon-button--teal { background: #20c997; }
.icon-button--indigo { background: #6610f2; }
.icon-button--black { background: #000; }
.icon-button--white { background: #fff; }
.icon-button--light { background: #f8f9fa; }
.icon-button--dark { background: #343a40; }