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:Badge/styles.css » : différence entre les versions

De Nefald
Hiob (discussion | contributions)
Page créée avec « ============================================ BADGE SYSTEM - Système modulaire et adaptable ============================================ : === Base du badge === : .badge { display: inline-block; font-size: 0.5em; font-weight: 700; padding: 0.4em 0.8em; border-radius: 6px; margin-left: 0.5em; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; white-space: now... »
 
Hiob (discussion | contributions)
flat
Ligne 1 : Ligne 1 :
/* ============================================
/* ============================================
   BADGE SYSTEM - Système modulaire et adaptable
   BADGE SYSTEM - Design FLAT moderne
   ============================================ */
   ============================================ */


Ligne 8 : Ligne 8 :
font-size: 0.5em;
font-size: 0.5em;
font-weight: 700;
font-weight: 700;
padding: 0.4em 0.8em;
padding: 0.45em 0.85em;
border-radius: 6px;
border-radius: 8px;
margin-left: 0.5em;
margin-left: 0.5em;
vertical-align: middle;
vertical-align: middle;
text-transform: uppercase;
text-transform: uppercase;
letter-spacing: 0.8px;
letter-spacing: 0.8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
transition: all 0.2s ease;
transition: all 0.3s ease;
white-space: nowrap;
white-space: nowrap;
line-height: 1.2;
line-height: 1.2;
border: none;
box-shadow: none;
}
}


.badge:hover {
.badge:hover {
filter: brightness(1.1);
transform: translateY(-1px);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
}


/* === Présets de couleurs (modifiables) === */
/* === Présets FLAT === */


/* Default (gris neutre) */
/* Default (gris neutre) */
.badge-default {
.badge-default {
background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
background: #6b7280;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Beta (violet) */
/* Beta (violet) */
.badge-beta {
.badge-beta {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background: #7c3aed;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Alpha (orange) */
/* Alpha (orange) */
.badge-alpha {
.badge-alpha {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
background: #f97316;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* New (vert) */
/* New (vert menthe) */
.badge-new {
.badge-new {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
background: #10b981;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Stable (bleu) */
/* Stable (bleu) */
.badge-stable {
.badge-stable {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
background: #3b82f6;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Deprecated (rouge) */
/* Deprecated (rouge) */
.badge-deprecated {
.badge-deprecated {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
background: #ef4444;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* WIP (violet foncé) */
/* WIP (violet foncé) */
.badge-wip {
.badge-wip {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
background: #8b5cf6;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Experimental (rose) */
/* Experimental (rose/magenta) */
.badge-experimental {
.badge-experimental {
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
background: #ec4899;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Info (cyan) */
/* Info (cyan) */
.badge-info {
.badge-info {
background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
background: #06b6d4;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
}
}


/* Warning (jaune) */
/* Warning (orange vif) */
.badge-warning {
.badge-warning {
background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
background: #f59e0b;
color: #1f2937;
color: #1f2937;
border: 1px solid rgba(0, 0, 0, 0.1);
}
}


/* Success (vert clair) */
/* Success (vert clair) */
.badge-success {
.badge-success {
background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
background: #22c55e;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Danger (rouge vif) */
/* Danger (rouge vif) */
.badge-danger {
.badge-danger {
background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
background: #f43f5e;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.15);
}
}


/* Premium (or) */
/* Premium (or) */
.badge-premium {
.badge-premium {
background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%, #d97706 100%);
background: #f59e0b;
color: #1f2937;
color: #1f2937;
border: 1px solid rgba(251, 191, 36, 0.5);
box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}
}


/* Dark (noir) */
/* Dark (noir) */
.badge-dark {
.badge-dark {
background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
background: #1f2937;
color: white;
color: white;
border: 1px solid rgba(255, 255, 255, 0.1);
}
}


/* Light (blanc) */
/* Light (gris clair) */
.badge-light {
.badge-light {
background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
background: #e5e7eb;
color: #1f2937;
color: #1f2937;
border: 1px solid rgba(0, 0, 0, 0.1);
}
 
/* Discord (bleu Discord) */
.badge-discord {
background: #5865F2;
color: white;
}
 
/* Twitter/X (noir) */
.badge-twitter {
background: #14171A;
color: white;
}
 
/* Instagram (gradient flat) */
.badge-instagram {
background: #E1306C;
color: white;
}
}


Ligne 139 : Ligne 142 :
.badge .fa-brands {
.badge .fa-brands {
margin-right: 0.4em;
margin-right: 0.4em;
font-size: 1.1em;
font-size: 1.05em;
vertical-align: middle;
vertical-align: middle;
}
}


/* Icône seule (sans texte) */
/* Icône seule */
.badge .fa-solid:last-child,
.badge .fa-solid:only-child,
.badge .fa-regular:last-child,
.badge .fa-regular:only-child,
.badge .fa-brands:last-child {
.badge .fa-brands:only-child {
margin-right: 0;
margin-right: 0;
}
}
Ligne 154 : Ligne 157 :
.badge-sm {
.badge-sm {
font-size: 0.4em;
font-size: 0.4em;
padding: 0.3em 0.6em;
padding: 0.35em 0.7em;
border-radius: 6px;
}
}


Ligne 160 : Ligne 164 :
font-size: 0.6em;
font-size: 0.6em;
padding: 0.5em 1em;
padding: 0.5em 1em;
border-radius: 10px;
}
}


Ligne 165 : Ligne 170 :
font-size: 0.7em;
font-size: 0.7em;
padding: 0.6em 1.2em;
padding: 0.6em 1.2em;
border-radius: 12px;
}
}


/* === Variantes de style === */
/* === Variantes de style === */
/* Badge plat (sans gradient) */
.badge-flat {
background: currentColor !important;
box-shadow: none;
}


/* Badge outline */
/* Badge outline */
Ligne 179 : Ligne 179 :
background: transparent !important;
background: transparent !important;
border: 2px solid currentColor;
border: 2px solid currentColor;
box-shadow: none;
font-weight: 600;
}
}


/* Badge pill (arrondi complet) */
.badge-outline.badge-beta {
.badge-pill {
color: #7c3aed;
border-radius: 50px;
border-color: #7c3aed;
}
}


/* === Animations optionnelles === */
.badge-outline.badge-alpha {
color: #f97316;
border-color: #f97316;
}


.badge-pulse {
.badge-outline.badge-new {
animation: badge-pulse 2s ease-in-out infinite;
color: #10b981;
border-color: #10b981;
}
}


@keyframes badge-pulse {
.badge-outline.badge-info {
0%, 100% {
color: #06b6d4;
opacity: 1;  
border-color: #06b6d4;
transform: scale(1);
}
}
50% {
 
opacity: 0.85;
/* Badge pill (arrondi complet) */
transform: scale(1.03);
.badge-pill {
border-radius: 50px;
}
}
/* Badge carré */
.badge-square {
border-radius: 4px;
}
}


.badge-glow {
/* === Effets hover spéciaux === */
animation: badge-glow 2s ease-in-out infinite alternate;
}


@keyframes badge-glow {
.badge-glow:hover {
from {
box-shadow: 0 0 20px currentColor;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
to {
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}
}
}


Ligne 222 : Ligne 223 :
.badge {
.badge {
font-size: 0.45em;
font-size: 0.45em;
padding: 0.35em 0.7em;
padding: 0.4em 0.75em;
margin-left: 0.3em;
margin-left: 0.3em;
letter-spacing: 0.5px;
letter-spacing: 0.6px;
}
}


.badge-sm {
.badge-sm {
font-size: 0.35em;
font-size: 0.35em;
padding: 0.3em 0.6em;
}
}


.badge-lg {
.badge-lg {
font-size: 0.5em;
font-size: 0.5em;
padding: 0.45em 0.9em;
}
}
}
}


/* === Accessibilité === */
/* === Classes utilitaires === */
 
/* Pas de majuscules */
.badge-no-uppercase {
text-transform: none;
}


.badge:focus {
/* Pas d'effet hover */
outline: 2px solid currentColor;
.badge-no-hover:hover {
outline-offset: 2px;
filter: none;
transform: none;
}
}


/* Support du mode sombre (optionnel) */
/* Texte en gras normal */
@media (prefers-color-scheme: dark) {
.badge-normal {
.badge {
font-weight: 500;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
}


/* === Support mode sombre === */
@media (prefers-color-scheme: dark) {
.badge-light {
.badge-light {
background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
background: #4b5563;
color: #f9fafb;
color: #f9fafb;
border: 1px solid rgba(255, 255, 255, 0.1);
}
 
.badge-warning {
color: #1f2937;
}
 
.badge-premium {
color: #1f2937;
}
}
}
}


/* === Classes utilitaires === */
/* === Accessibilité === */
/*
.badge:focus-visible {
outline: 3px solid currentColor;
outline-offset: 2px;
}*/


/* Désactiver la transformation majuscule */
/* Réduction de mouvement */
.badge-no-uppercase {
@media (prefers-reduced-motion: reduce) {
text-transform: none;
.badge {
transition: none;
}
}


/* Désactiver l'effet hover */
.badge:hover {
.badge-no-hover:hover {
transform: none;
transform: none;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
}
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.