« Modèle:Bandeau/styles.css » : différence entre les versions
De Nefald
Autres actions
mAucun résumé des modifications |
m icone centrée et agrandie |
||
| (Une version intermédiaire par le même utilisateur non affichée) | |||
| Ligne 5 : | Ligne 5 : | ||
.bandeau { | .bandeau { | ||
display: flex; | display: flex; | ||
align-items: | align-items: center; /* Centrage vertical */ | ||
gap: | gap: 16px; | ||
padding: | padding: 16px 20px; | ||
border-radius: 6px; | border-radius: 6px; | ||
border-left: 4px solid; | border-left: 4px solid; | ||
| Ligne 21 : | Ligne 21 : | ||
.bandeau-icon { | .bandeau-icon { | ||
font-size: | font-size: 28px; /* Icône plus grande */ | ||
font-weight: 700; | |||
flex-shrink: 0; | flex-shrink: 0; | ||
line-height: 1; | line-height: 1; | ||
/* Supprimer TOUT style de boîte */ | |||
/* Supprimer | |||
background: none !important; | background: none !important; | ||
border: none !important; | border: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border-radius: 0 !important; | border-radius: 0 !important; | ||
box-shadow: none !important; | |||
} | } | ||
/* Cibler | /* Cibler tous les éléments enfants possibles de FontAwesome */ | ||
.bandeau-icon *, | |||
.bandeau-icon span, | |||
.bandeau-icon > span, | .bandeau-icon > span, | ||
.bandeau-icon > span > span { | .bandeau-icon > span > span, | ||
.bandeau-icon svg, | |||
.bandeau-icon i { | |||
background: none !important; | background: none !important; | ||
border: none !important; | border: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border-radius: 0 !important; | border-radius: 0 !important; | ||
box-shadow: none !important; | |||
display: inline !important; | display: inline !important; | ||
color: inherit !important; | |||
} | } | ||
| Ligne 67 : | Ligne 74 : | ||
border-left-color: #1976d2; | border-left-color: #1976d2; | ||
color: #0d47a1; | color: #0d47a1; | ||
} | } | ||
| Ligne 77 : | Ligne 80 : | ||
color: #90caf9; | color: #90caf9; | ||
border-left-color: #42a5f5; | border-left-color: #42a5f5; | ||
} | } | ||
| Ligne 89 : | Ligne 88 : | ||
border-left-color: #f57c00; | border-left-color: #f57c00; | ||
color: #e65100; | color: #e65100; | ||
} | } | ||
| Ligne 101 : | Ligne 95 : | ||
color: #ffb74d; | color: #ffb74d; | ||
border-left-color: #ff9800; | border-left-color: #ff9800; | ||
} | } | ||
| Ligne 115 : | Ligne 104 : | ||
border-left-color: #d32f2f; | border-left-color: #d32f2f; | ||
color: #b71c1c; | color: #b71c1c; | ||
} | } | ||
| Ligne 129 : | Ligne 112 : | ||
color: #ef5350; | color: #ef5350; | ||
border-left-color: #e57373; | border-left-color: #e57373; | ||
} | } | ||
| Ligne 143 : | Ligne 120 : | ||
border-left-color: #388e3c; | border-left-color: #388e3c; | ||
color: #1b5e20; | color: #1b5e20; | ||
} | } | ||
| Ligne 155 : | Ligne 127 : | ||
color: #81c784; | color: #81c784; | ||
border-left-color: #66bb6a; | border-left-color: #66bb6a; | ||
} | } | ||
| Ligne 167 : | Ligne 134 : | ||
border-left-color: #616161; | border-left-color: #616161; | ||
color: #424242; | color: #424242; | ||
} | } | ||
| Ligne 177 : | Ligne 140 : | ||
color: #bdbdbd; | color: #bdbdbd; | ||
border-left-color: #9e9e9e; | border-left-color: #9e9e9e; | ||
} | } | ||
| Ligne 189 : | Ligne 148 : | ||
border-left-color: #7b1fa2; | border-left-color: #7b1fa2; | ||
color: #4a148c; | color: #4a148c; | ||
} | } | ||
| Ligne 201 : | Ligne 155 : | ||
color: #ba68c8; | color: #ba68c8; | ||
border-left-color: #ab47bc; | border-left-color: #ab47bc; | ||
} | } | ||
| Ligne 213 : | Ligne 162 : | ||
border-left-color: #f57f17; | border-left-color: #f57f17; | ||
color: #f57f17; | color: #f57f17; | ||
} | } | ||
| Ligne 223 : | Ligne 168 : | ||
color: #ffd54f; | color: #ffd54f; | ||
border-left-color: #ffb300; | border-left-color: #ffb300; | ||
} | } | ||
| Ligne 234 : | Ligne 175 : | ||
border-left-color: #c2185b; | border-left-color: #c2185b; | ||
color: #880e4f; | color: #880e4f; | ||
} | } | ||
| Ligne 244 : | Ligne 181 : | ||
color: #f48fb1; | color: #f48fb1; | ||
border-left-color: #ec407a; | border-left-color: #ec407a; | ||
} | } | ||
| Ligne 255 : | Ligne 188 : | ||
border-left-color: #0097a7; | border-left-color: #0097a7; | ||
color: #006064; | color: #006064; | ||
} | } | ||
| Ligne 265 : | Ligne 194 : | ||
color: #4dd0e1; | color: #4dd0e1; | ||
border-left-color: #26c6da; | border-left-color: #26c6da; | ||
} | } | ||
| Ligne 277 : | Ligne 202 : | ||
border-left-color: #689f38; | border-left-color: #689f38; | ||
color: #33691e; | color: #33691e; | ||
} | } | ||
| Ligne 289 : | Ligne 209 : | ||
color: #aed581; | color: #aed581; | ||
border-left-color: #9ccc65; | border-left-color: #9ccc65; | ||
} | } | ||
| Ligne 301 : | Ligne 216 : | ||
border-left-color: #5d4037; | border-left-color: #5d4037; | ||
color: #3e2723; | color: #3e2723; | ||
} | } | ||
| Ligne 311 : | Ligne 222 : | ||
color: #bcaaa4; | color: #bcaaa4; | ||
border-left-color: #8d6e63; | border-left-color: #8d6e63; | ||
} | } | ||
| Ligne 324 : | Ligne 231 : | ||
.bandeau { | .bandeau { | ||
gap: 12px; | gap: 12px; | ||
padding: | padding: 14px 16px; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
} | } | ||
.bandeau-icon { | .bandeau-icon { | ||
font-size: | font-size: 24px; | ||
} | } | ||
Dernière version du 28 octobre 2025 à 07:55
/* ================================
BANDEAUX - Citizen Skin + FontAwesome
================================ */
.bandeau {
display: flex;
align-items: center; /* Centrage vertical */
gap: 16px;
padding: 16px 20px;
border-radius: 6px;
border-left: 4px solid;
margin: 16px 0;
transition: box-shadow 0.2s ease;
font-size: 0.95em;
line-height: 1.5;
}
.bandeau:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.bandeau-icon {
font-size: 28px; /* Icône plus grande */
font-weight: 700;
flex-shrink: 0;
line-height: 1;
/* Supprimer TOUT style de boîte */
background: none !important;
border: none !important;
padding: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
/* Cibler tous les éléments enfants possibles de FontAwesome */
.bandeau-icon *,
.bandeau-icon span,
.bandeau-icon > span,
.bandeau-icon > span > span,
.bandeau-icon svg,
.bandeau-icon i {
background: none !important;
border: none !important;
padding: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
display: inline !important;
color: inherit !important;
}
.bandeau-content {
flex: 1;
min-width: 0;
}
.bandeau-titre {
font-weight: 700;
font-size: 1.05em;
margin-bottom: 6px;
letter-spacing: 0.01em;
}
.bandeau-texte {
margin: 0;
}
/* ================================
TYPES DE BANDEAUX
================================ */
/* INFO (bleu) */
.bandeau-info {
background-color: #e3f2fd;
border-left-color: #1976d2;
color: #0d47a1;
}
[data-theme="dark"] .bandeau-info {
background-color: #1a2332;
color: #90caf9;
border-left-color: #42a5f5;
}
/* ATTENTION / WARNING (orange) */
.bandeau-attention,
.bandeau-warning {
background-color: #fff3e0;
border-left-color: #f57c00;
color: #e65100;
}
[data-theme="dark"] .bandeau-attention,
[data-theme="dark"] .bandeau-warning {
background-color: #332818;
color: #ffb74d;
border-left-color: #ff9800;
}
/* ERREUR / DANGER (rouge) */
.bandeau-erreur,
.bandeau-error,
.bandeau-danger {
background-color: #ffebee;
border-left-color: #d32f2f;
color: #b71c1c;
}
[data-theme="dark"] .bandeau-erreur,
[data-theme="dark"] .bandeau-error,
[data-theme="dark"] .bandeau-danger {
background-color: #2b1a1a;
color: #ef5350;
border-left-color: #e57373;
}
/* SUCCÈS (vert) */
.bandeau-succes,
.bandeau-success {
background-color: #e8f5e9;
border-left-color: #388e3c;
color: #1b5e20;
}
[data-theme="dark"] .bandeau-succes,
[data-theme="dark"] .bandeau-success {
background-color: #1a2e1a;
color: #81c784;
border-left-color: #66bb6a;
}
/* NOTE (gris) */
.bandeau-note {
background-color: #f5f5f5;
border-left-color: #616161;
color: #424242;
}
[data-theme="dark"] .bandeau-note {
background-color: #2a2a2a;
color: #bdbdbd;
border-left-color: #9e9e9e;
}
/* CONSEIL / TIP (violet) */
.bandeau-conseil,
.bandeau-tip {
background-color: #f3e5f5;
border-left-color: #7b1fa2;
color: #4a148c;
}
[data-theme="dark"] .bandeau-conseil,
[data-theme="dark"] .bandeau-tip {
background-color: #2a1a2e;
color: #ba68c8;
border-left-color: #ab47bc;
}
/* CONSTRUCTION (jaune-orange) */
.bandeau-construction {
background-color: #fff8e1;
border-left-color: #f57f17;
color: #f57f17;
}
[data-theme="dark"] .bandeau-construction {
background-color: #332d1a;
color: #ffd54f;
border-left-color: #ffb300;
}
/* IMPORTANT (rouge foncé) */
.bandeau-important {
background-color: #fce4ec;
border-left-color: #c2185b;
color: #880e4f;
}
[data-theme="dark"] .bandeau-important {
background-color: #2e1a24;
color: #f48fb1;
border-left-color: #ec407a;
}
/* QUESTION (cyan) */
.bandeau-question {
background-color: #e0f7fa;
border-left-color: #0097a7;
color: #006064;
}
[data-theme="dark"] .bandeau-question {
background-color: #1a2e30;
color: #4dd0e1;
border-left-color: #26c6da;
}
/* NOUVEAU / NEW (vert lime) */
.bandeau-nouveau,
.bandeau-new {
background-color: #f1f8e9;
border-left-color: #689f38;
color: #33691e;
}
[data-theme="dark"] .bandeau-nouveau,
[data-theme="dark"] .bandeau-new {
background-color: #1f2e1a;
color: #aed581;
border-left-color: #9ccc65;
}
/* ARCHIVE (marron) */
.bandeau-archive {
background-color: #efebe9;
border-left-color: #5d4037;
color: #3e2723;
}
[data-theme="dark"] .bandeau-archive {
background-color: #2a2422;
color: #bcaaa4;
border-left-color: #8d6e63;
}
/* ================================
RESPONSIVE
================================ */
@media (max-width: 600px) {
.bandeau {
gap: 12px;
padding: 14px 16px;
font-size: 0.9em;
}
.bandeau-icon {
font-size: 24px;
}
.bandeau-titre {
font-size: 1em;
}
}