« Modèle:Bandeau/styles.css » : différence entre les versions
De Nefald
Autres actions
Création |
mAucun résumé des modifications |
||
| Ligne 7 : | Ligne 7 : | ||
align-items: flex-start; | align-items: flex-start; | ||
gap: 14px; | gap: 14px; | ||
padding: 16px | padding: 14px 16px; | ||
border-radius: 6px; | |||
border-left: 4px solid; | |||
margin: 16px 0; | margin: 16px 0; | ||
transition: box-shadow 0.2s ease; | transition: box-shadow 0.2s ease; | ||
font-size: 0.95em; | |||
line-height: 1.5; | |||
} | } | ||
| Ligne 22 : | Ligne 21 : | ||
.bandeau-icon { | .bandeau-icon { | ||
font-size: | font-size: 24px; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
line-height: 1; | line-height: 1; | ||
margin-top: | margin-top: 1px; | ||
/* Supprimer tout background/border */ | |||
background: none !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
border-radius: 0 !important; | |||
} | } | ||
.bandeau-icon | /* Cibler directement le span FontAwesome */ | ||
display: | .bandeau-icon > span, | ||
.bandeau-icon > span > span { | |||
background: none !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
border-radius: 0 !important; | |||
display: inline !important; | |||
} | } | ||
| Ligne 61 : | Ligne 70 : | ||
.bandeau-info .bandeau-icon { | .bandeau-info .bandeau-icon { | ||
color: # | color: #1565c0; | ||
} | } | ||
[data-theme="dark"] .bandeau-info { | [data-theme="dark"] .bandeau-info { | ||
background-color: # | background-color: #1a2332; | ||
color: #90caf9; | color: #90caf9; | ||
border-left-color: #42a5f5; | border-left-color: #42a5f5; | ||
| Ligne 84 : | Ligne 93 : | ||
.bandeau-attention .bandeau-icon, | .bandeau-attention .bandeau-icon, | ||
.bandeau-warning .bandeau-icon { | .bandeau-warning .bandeau-icon { | ||
color: # | color: #ef6c00; | ||
} | } | ||
[data-theme="dark"] .bandeau-attention, | [data-theme="dark"] .bandeau-attention, | ||
[data-theme="dark"] .bandeau-warning { | [data-theme="dark"] .bandeau-warning { | ||
background-color: # | background-color: #332818; | ||
color: #ffb74d; | color: #ffb74d; | ||
border-left-color: #ff9800; | border-left-color: #ff9800; | ||
| Ligne 111 : | Ligne 120 : | ||
.bandeau-error .bandeau-icon, | .bandeau-error .bandeau-icon, | ||
.bandeau-danger .bandeau-icon { | .bandeau-danger .bandeau-icon { | ||
color: # | color: #c62828; | ||
} | } | ||
| Ligne 117 : | Ligne 126 : | ||
[data-theme="dark"] .bandeau-error, | [data-theme="dark"] .bandeau-error, | ||
[data-theme="dark"] .bandeau-danger { | [data-theme="dark"] .bandeau-danger { | ||
background-color: # | background-color: #2b1a1a; | ||
color: #ef5350; | color: #ef5350; | ||
border-left-color: # | border-left-color: #e57373; | ||
} | } | ||
| Ligne 138 : | Ligne 147 : | ||
.bandeau-succes .bandeau-icon, | .bandeau-succes .bandeau-icon, | ||
.bandeau-success .bandeau-icon { | .bandeau-success .bandeau-icon { | ||
color: # | color: #2e7d32; | ||
} | } | ||
[data-theme="dark"] .bandeau-succes, | [data-theme="dark"] .bandeau-succes, | ||
[data-theme="dark"] .bandeau-success { | [data-theme="dark"] .bandeau-success { | ||
background-color: # | background-color: #1a2e1a; | ||
color: # | color: #81c784; | ||
border-left-color: # | border-left-color: #66bb6a; | ||
} | } | ||
| Ligne 157 : | Ligne 166 : | ||
background-color: #f5f5f5; | background-color: #f5f5f5; | ||
border-left-color: #616161; | border-left-color: #616161; | ||
color: # | color: #424242; | ||
} | } | ||
.bandeau-note .bandeau-icon { | .bandeau-note .bandeau-icon { | ||
color: # | color: #757575; | ||
} | } | ||
[data-theme="dark"] .bandeau-note { | [data-theme="dark"] .bandeau-note { | ||
background-color: # | background-color: #2a2a2a; | ||
color: # | color: #bdbdbd; | ||
border-left-color: #9e9e9e; | border-left-color: #9e9e9e; | ||
} | } | ||
[data-theme="dark"] .bandeau-note .bandeau-icon { | [data-theme="dark"] .bandeau-note .bandeau-icon { | ||
color: # | color: #9e9e9e; | ||
} | } | ||
| Ligne 184 : | Ligne 193 : | ||
.bandeau-conseil .bandeau-icon, | .bandeau-conseil .bandeau-icon, | ||
.bandeau-tip .bandeau-icon { | .bandeau-tip .bandeau-icon { | ||
color: # | color: #6a1b9a; | ||
} | } | ||
[data-theme="dark"] .bandeau-conseil, | [data-theme="dark"] .bandeau-conseil, | ||
[data-theme="dark"] .bandeau-tip { | [data-theme="dark"] .bandeau-tip { | ||
background-color: # | background-color: #2a1a2e; | ||
color: #ba68c8; | color: #ba68c8; | ||
border-left-color: # | border-left-color: #ab47bc; | ||
} | } | ||
| Ligne 199 : | Ligne 208 : | ||
} | } | ||
/* CONSTRUCTION (jaune- | /* CONSTRUCTION (jaune-orange) */ | ||
.bandeau-construction { | .bandeau-construction { | ||
background-color: #fff8e1; | background-color: #fff8e1; | ||
| Ligne 207 : | Ligne 216 : | ||
.bandeau-construction .bandeau-icon { | .bandeau-construction .bandeau-icon { | ||
color: # | color: #f9a825; | ||
} | } | ||
[data-theme="dark"] .bandeau-construction { | [data-theme="dark"] .bandeau-construction { | ||
background-color: # | background-color: #332d1a; | ||
color: #ffd54f; | color: #ffd54f; | ||
border-left-color: #ffb300; | border-left-color: #ffb300; | ||
| Ligne 220 : | Ligne 229 : | ||
} | } | ||
/* IMPORTANT (rouge | /* IMPORTANT (rouge foncé) */ | ||
.bandeau-important { | .bandeau-important { | ||
background-color: # | background-color: #fce4ec; | ||
border-left-color: # | border-left-color: #c2185b; | ||
color: # | color: #880e4f; | ||
} | } | ||
.bandeau-important .bandeau-icon { | .bandeau-important .bandeau-icon { | ||
color: # | color: #ad1457; | ||
} | } | ||
[data-theme="dark"] .bandeau-important { | [data-theme="dark"] .bandeau-important { | ||
background-color: # | background-color: #2e1a24; | ||
color: # | color: #f48fb1; | ||
border-left-color: # | border-left-color: #ec407a; | ||
} | } | ||
[data-theme="dark"] .bandeau-important .bandeau-icon { | [data-theme="dark"] .bandeau-important .bandeau-icon { | ||
color: # | color: #f48fb1; | ||
} | } | ||
/* QUESTION ( | /* QUESTION (cyan) */ | ||
.bandeau-question { | .bandeau-question { | ||
background-color: # | background-color: #e0f7fa; | ||
border-left-color: # | border-left-color: #0097a7; | ||
color: # | color: #006064; | ||
} | } | ||
.bandeau-question .bandeau-icon { | .bandeau-question .bandeau-icon { | ||
color: # | color: #00838f; | ||
} | } | ||
[data-theme="dark"] .bandeau-question { | [data-theme="dark"] .bandeau-question { | ||
background-color: # | background-color: #1a2e30; | ||
color: # | color: #4dd0e1; | ||
border-left-color: # | border-left-color: #26c6da; | ||
} | } | ||
[data-theme="dark"] .bandeau-question .bandeau-icon { | [data-theme="dark"] .bandeau-question .bandeau-icon { | ||
color: # | color: #4dd0e1; | ||
} | } | ||
/* NOUVEAU ( | /* NOUVEAU / NEW (vert lime) */ | ||
.bandeau-nouveau, | .bandeau-nouveau, | ||
.bandeau-new { | .bandeau-new { | ||
background-color: # | background-color: #f1f8e9; | ||
border-left-color: # | border-left-color: #689f38; | ||
color: # | color: #33691e; | ||
} | } | ||
.bandeau-nouveau .bandeau-icon, | .bandeau-nouveau .bandeau-icon, | ||
.bandeau-new .bandeau-icon { | .bandeau-new .bandeau-icon { | ||
color: # | color: #558b2f; | ||
} | } | ||
[data-theme="dark"] .bandeau-nouveau, | [data-theme="dark"] .bandeau-nouveau, | ||
[data-theme="dark"] .bandeau-new { | [data-theme="dark"] .bandeau-new { | ||
background-color: # | background-color: #1f2e1a; | ||
color: # | color: #aed581; | ||
border-left-color: # | border-left-color: #9ccc65; | ||
} | } | ||
[data-theme="dark"] .bandeau-nouveau .bandeau-icon, | [data-theme="dark"] .bandeau-nouveau .bandeau-icon, | ||
[data-theme="dark"] .bandeau-new .bandeau-icon { | [data-theme="dark"] .bandeau-new .bandeau-icon { | ||
color: # | color: #aed581; | ||
} | } | ||
| Ligne 290 : | Ligne 299 : | ||
.bandeau-archive { | .bandeau-archive { | ||
background-color: #efebe9; | background-color: #efebe9; | ||
border-left-color: # | border-left-color: #5d4037; | ||
color: #3e2723; | color: #3e2723; | ||
} | } | ||
.bandeau-archive .bandeau-icon { | .bandeau-archive .bandeau-icon { | ||
color: # | color: #4e342e; | ||
} | } | ||
[data-theme="dark"] .bandeau-archive { | [data-theme="dark"] .bandeau-archive { | ||
background-color: # | background-color: #2a2422; | ||
color: #bcaaa4; | color: #bcaaa4; | ||
border-left-color: #8d6e63; | border-left-color: #8d6e63; | ||
| Ligne 311 : | Ligne 320 : | ||
RESPONSIVE | RESPONSIVE | ||
================================ */ | ================================ */ | ||
@media (max-width: | |||
@media (max-width: 600px) { | |||
.bandeau { | .bandeau { | ||
gap: 12px; | gap: 12px; | ||
padding: 12px 14px; | |||
font-size: 0.9em; | |||
} | } | ||
.bandeau-icon { | .bandeau-icon { | ||
font-size: 20px; | font-size: 20px; | ||
} | } | ||
.bandeau-titre { | .bandeau-titre { | ||
font-size: 1em; | font-size: 1em; | ||
} | } | ||
} | } | ||
Version du 28 octobre 2025 à 07:46
/* ================================
BANDEAUX - Citizen Skin + FontAwesome
================================ */
.bandeau {
display: flex;
align-items: flex-start;
gap: 14px;
padding: 14px 16px;
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: 24px;
flex-shrink: 0;
line-height: 1;
margin-top: 1px;
/* Supprimer tout background/border */
background: none !important;
border: none !important;
padding: 0 !important;
border-radius: 0 !important;
}
/* Cibler directement le span FontAwesome */
.bandeau-icon > span,
.bandeau-icon > span > span {
background: none !important;
border: none !important;
padding: 0 !important;
border-radius: 0 !important;
display: inline !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;
}
.bandeau-info .bandeau-icon {
color: #1565c0;
}
[data-theme="dark"] .bandeau-info {
background-color: #1a2332;
color: #90caf9;
border-left-color: #42a5f5;
}
[data-theme="dark"] .bandeau-info .bandeau-icon {
color: #64b5f6;
}
/* ATTENTION / WARNING (orange) */
.bandeau-attention,
.bandeau-warning {
background-color: #fff3e0;
border-left-color: #f57c00;
color: #e65100;
}
.bandeau-attention .bandeau-icon,
.bandeau-warning .bandeau-icon {
color: #ef6c00;
}
[data-theme="dark"] .bandeau-attention,
[data-theme="dark"] .bandeau-warning {
background-color: #332818;
color: #ffb74d;
border-left-color: #ff9800;
}
[data-theme="dark"] .bandeau-attention .bandeau-icon,
[data-theme="dark"] .bandeau-warning .bandeau-icon {
color: #ffa726;
}
/* ERREUR / DANGER (rouge) */
.bandeau-erreur,
.bandeau-error,
.bandeau-danger {
background-color: #ffebee;
border-left-color: #d32f2f;
color: #b71c1c;
}
.bandeau-erreur .bandeau-icon,
.bandeau-error .bandeau-icon,
.bandeau-danger .bandeau-icon {
color: #c62828;
}
[data-theme="dark"] .bandeau-erreur,
[data-theme="dark"] .bandeau-error,
[data-theme="dark"] .bandeau-danger {
background-color: #2b1a1a;
color: #ef5350;
border-left-color: #e57373;
}
[data-theme="dark"] .bandeau-erreur .bandeau-icon,
[data-theme="dark"] .bandeau-error .bandeau-icon,
[data-theme="dark"] .bandeau-danger .bandeau-icon {
color: #ef5350;
}
/* SUCCÈS (vert) */
.bandeau-succes,
.bandeau-success {
background-color: #e8f5e9;
border-left-color: #388e3c;
color: #1b5e20;
}
.bandeau-succes .bandeau-icon,
.bandeau-success .bandeau-icon {
color: #2e7d32;
}
[data-theme="dark"] .bandeau-succes,
[data-theme="dark"] .bandeau-success {
background-color: #1a2e1a;
color: #81c784;
border-left-color: #66bb6a;
}
[data-theme="dark"] .bandeau-succes .bandeau-icon,
[data-theme="dark"] .bandeau-success .bandeau-icon {
color: #66bb6a;
}
/* NOTE (gris) */
.bandeau-note {
background-color: #f5f5f5;
border-left-color: #616161;
color: #424242;
}
.bandeau-note .bandeau-icon {
color: #757575;
}
[data-theme="dark"] .bandeau-note {
background-color: #2a2a2a;
color: #bdbdbd;
border-left-color: #9e9e9e;
}
[data-theme="dark"] .bandeau-note .bandeau-icon {
color: #9e9e9e;
}
/* CONSEIL / TIP (violet) */
.bandeau-conseil,
.bandeau-tip {
background-color: #f3e5f5;
border-left-color: #7b1fa2;
color: #4a148c;
}
.bandeau-conseil .bandeau-icon,
.bandeau-tip .bandeau-icon {
color: #6a1b9a;
}
[data-theme="dark"] .bandeau-conseil,
[data-theme="dark"] .bandeau-tip {
background-color: #2a1a2e;
color: #ba68c8;
border-left-color: #ab47bc;
}
[data-theme="dark"] .bandeau-conseil .bandeau-icon,
[data-theme="dark"] .bandeau-tip .bandeau-icon {
color: #ba68c8;
}
/* CONSTRUCTION (jaune-orange) */
.bandeau-construction {
background-color: #fff8e1;
border-left-color: #f57f17;
color: #f57f17;
}
.bandeau-construction .bandeau-icon {
color: #f9a825;
}
[data-theme="dark"] .bandeau-construction {
background-color: #332d1a;
color: #ffd54f;
border-left-color: #ffb300;
}
[data-theme="dark"] .bandeau-construction .bandeau-icon {
color: #ffd54f;
}
/* IMPORTANT (rouge foncé) */
.bandeau-important {
background-color: #fce4ec;
border-left-color: #c2185b;
color: #880e4f;
}
.bandeau-important .bandeau-icon {
color: #ad1457;
}
[data-theme="dark"] .bandeau-important {
background-color: #2e1a24;
color: #f48fb1;
border-left-color: #ec407a;
}
[data-theme="dark"] .bandeau-important .bandeau-icon {
color: #f48fb1;
}
/* QUESTION (cyan) */
.bandeau-question {
background-color: #e0f7fa;
border-left-color: #0097a7;
color: #006064;
}
.bandeau-question .bandeau-icon {
color: #00838f;
}
[data-theme="dark"] .bandeau-question {
background-color: #1a2e30;
color: #4dd0e1;
border-left-color: #26c6da;
}
[data-theme="dark"] .bandeau-question .bandeau-icon {
color: #4dd0e1;
}
/* NOUVEAU / NEW (vert lime) */
.bandeau-nouveau,
.bandeau-new {
background-color: #f1f8e9;
border-left-color: #689f38;
color: #33691e;
}
.bandeau-nouveau .bandeau-icon,
.bandeau-new .bandeau-icon {
color: #558b2f;
}
[data-theme="dark"] .bandeau-nouveau,
[data-theme="dark"] .bandeau-new {
background-color: #1f2e1a;
color: #aed581;
border-left-color: #9ccc65;
}
[data-theme="dark"] .bandeau-nouveau .bandeau-icon,
[data-theme="dark"] .bandeau-new .bandeau-icon {
color: #aed581;
}
/* ARCHIVE (marron) */
.bandeau-archive {
background-color: #efebe9;
border-left-color: #5d4037;
color: #3e2723;
}
.bandeau-archive .bandeau-icon {
color: #4e342e;
}
[data-theme="dark"] .bandeau-archive {
background-color: #2a2422;
color: #bcaaa4;
border-left-color: #8d6e63;
}
[data-theme="dark"] .bandeau-archive .bandeau-icon {
color: #a1887f;
}
/* ================================
RESPONSIVE
================================ */
@media (max-width: 600px) {
.bandeau {
gap: 12px;
padding: 12px 14px;
font-size: 0.9em;
}
.bandeau-icon {
font-size: 20px;
}
.bandeau-titre {
font-size: 1em;
}
}