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)
flat
Hiob (discussion | contributions)
mAucun résumé des modifications
 
(5 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/* ============================================
/* ============================================
   BADGE SYSTEM - Design FLAT moderne
   BADGE SYSTEM - Design FLAT lisible
   ============================================ */
   ============================================ */


Ligne 6 : Ligne 6 :
.badge {
.badge {
display: inline-block;
display: inline-block;
font-size: 0.5em;
font-size: 0.65em;
font-weight: 700;
font-weight: 600;
padding: 0.45em 0.85em;
padding: 0.5em 0.9em;
border-radius: 8px;
border-radius: 3px;
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: 1px;
transition: all 0.2s ease;
transition: all 0.2s ease;
white-space: nowrap;
white-space: nowrap;
line-height: 1.2;
line-height: 1.4;
border: none;
border: none;
box-shadow: none;
box-shadow: none;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
}


.badge:hover {
.badge:hover {
filter: brightness(1.1);
filter: brightness(1.15);
transform: translateY(-1px);
transform: translateY(-1px);
}
}
Ligne 64 : Ligne 65 :
}
}


/* WIP (violet foncé) */
/* WIP (violet clair) */
.badge-wip {
.badge-wip {
background: #8b5cf6;
background: #8b5cf6;
Ligne 86 : Ligne 87 :
background: #f59e0b;
background: #f59e0b;
color: #1f2937;
color: #1f2937;
font-weight: 700;
}
}


Ligne 104 : Ligne 106 :
background: #f59e0b;
background: #f59e0b;
color: #1f2937;
color: #1f2937;
font-weight: 700;
}
}


Ligne 116 : Ligne 119 :
background: #e5e7eb;
background: #e5e7eb;
color: #1f2937;
color: #1f2937;
font-weight: 700;
}
}


Ligne 130 : Ligne 134 :
}
}


/* Instagram (gradient flat) */
/* Instagram */
.badge-instagram {
.badge-instagram {
background: #E1306C;
background: #E1306C;
Ligne 136 : Ligne 140 :
}
}


/* === Icônes FontAwesome === */
/* === Icônes === */
 
/* Icône AVANT le texte */
.badge > span:first-child,
.badge > i:first-child {
margin-right: 0;
margin-left: 0.6em;
}
 
/* Icône APRÈS le texte */
.badge > span:last-child:not(:first-child),
.badge > i:last-child:not(:first-child) {
margin-left: 0;
margin-right: 0.6em;
}


.badge .fa-solid,
/* Alignement vertical des icônes FontAwesome */
.badge .fa-regular,
.badge .fa,
.badge .fa-brands {
.badge .fas,
margin-right: 0.4em;
.badge .far,
font-size: 1.05em;
.badge .fab {
font-size: 0.6em;
vertical-align: middle;
vertical-align: middle;
line-height: 1;
display: inline-block;
}
}


/* Icône seule */
/* Correction pour l'extension FontAwesome qui génère des <span> */
.badge .fa-solid:only-child,
.badge span[class*="fa-"] {
.badge .fa-regular:only-child,
margin-left: 0.6em;
.badge .fa-brands:only-child {
margin-right: 0;
margin-right: 0;
}
}
.badge span[class*="fa-"]:first-child {
margin-left: 0;
margin-right: 0.6em;
}


/* === Variantes de taille === */
/* === Variantes de taille === */


.badge-sm {
.badge-sm {
font-size: 0.4em;
font-size: 0.55em;
padding: 0.35em 0.7em;
padding: 0.4em 0.75em;
border-radius: 6px;
}
}


.badge-lg {
.badge-lg {
font-size: 0.6em;
font-size: 0.75em;
padding: 0.5em 1em;
padding: 0.6em 1.1em;
border-radius: 10px;
}
}


.badge-xl {
.badge-xl {
font-size: 0.7em;
font-size: 0.85em;
padding: 0.6em 1.2em;
padding: 0.7em 1.3em;
border-radius: 12px;
}
}


Ligne 177 : Ligne 200 :
/* Badge outline */
/* Badge outline */
.badge-outline {
.badge-outline {
background: transparent !important;
background: transparent;
border: 2px solid currentColor;
border: 2px solid currentColor;
font-weight: 600;
font-weight: 700;
}
}


Ligne 200 : Ligne 223 :
color: #06b6d4;
color: #06b6d4;
border-color: #06b6d4;
border-color: #06b6d4;
}
.badge-outline.badge-stable {
color: #3b82f6;
border-color: #3b82f6;
}
}


Ligne 209 : Ligne 237 :
/* Badge carré */
/* Badge carré */
.badge-square {
.badge-square {
border-radius: 4px;
border-radius: 0;
}
}


Ligne 215 : Ligne 243 :


.badge-glow:hover {
.badge-glow:hover {
box-shadow: 0 0 20px currentColor;
box-shadow: 0 0 15px currentColor;
}
 
/* === Responsive === */
 
@media (max-width: 768px) {
.badge {
font-size: 0.45em;
padding: 0.4em 0.75em;
margin-left: 0.3em;
letter-spacing: 0.6px;
}
 
.badge-sm {
font-size: 0.35em;
padding: 0.3em 0.6em;
}
 
.badge-lg {
font-size: 0.5em;
padding: 0.45em 0.9em;
}
}
}


Ligne 257 : Ligne 264 :
}
}


/* === Support mode sombre === */
/* === Icônes FontAwesome === */


@media (prefers-color-scheme: dark) {
.badge .fa-solid,
.badge-light {
.badge .fa-regular,
background: #4b5563;
.badge .fa-brands {
color: #f9fafb;
margin-right: 0.45em;
font-size: 1.1em;
vertical-align: middle;
}
}


.badge-warning {
/* Icône seule - version simplifiée */
color: #1f2937;
.badge-icon-only .fa-solid,
}
.badge-icon-only .fa-regular,
 
.badge-icon-only .fa-brands {
.badge-premium {
margin-right: 0;
color: #1f2937;
}
}
 
/* === Accessibilité === */
/*
.badge:focus-visible {
outline: 3px solid currentColor;
outline-offset: 2px;
}*/
 
/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
.badge {
transition: none;
}
 
.badge:hover {
transform: none;
}
}
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.