« MediaWiki:Common.css » : différence entre les versions
De wiki_pcwiki2
Aller à la navigationAller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| (7 versions intermédiaires par 2 utilisateurs non affichées) | |||
| Ligne 7 : | Ligne 7 : | ||
À coller dans : MediaWiki:Common.css | À coller dans : MediaWiki:Common.css | ||
============================================================ */ | ============================================================ */ | ||
/* ── Bannière de titre de page ─────────────────────────────── */ | /* ── Bannière de titre de page ─────────────────────────────── */ | ||
.pcstreet-title-banner { | .pcstreet-title-banner { | ||
| Ligne 33 : | Ligne 33 : | ||
margin-top: 6px; | margin-top: 6px; | ||
} | } | ||
/* ── | /* ── Titre principal de page (généré par MediaWiki, ajouté 09/09/2026) ── | ||
#firstHeading n'était pas stylé → héritait de la taille du skin | |||
(souvent trop grosse). On l'aligne sur la charte PCStreet. */ | |||
#firstHeading { | |||
color: #0B1B2B; | |||
font-family: Arial, sans-serif; | |||
font-size: 1.5em; | |||
font-weight: bold; | |||
border-bottom: 3px solid #123252; | |||
padding-bottom: 6px; | |||
} | |||
.mw-parser-output h1 { | |||
color: #0B1B2B; | |||
font-family: Arial, sans-serif; | |||
font-size: 0.95em; /* légèrement sous le texte normal */ | |||
font-weight: bold; | |||
border-bottom: none !important; | |||
margin-top: 20px; | |||
} | |||
.mw-parser-output h2 { | .mw-parser-output h2 { | ||
color: #0B1B2B; | color: #0B1B2B; | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
font-size: 1. | font-size: 1.0em; /* = taille du texte normal */ | ||
font-weight: bold; | font-weight: bold; | ||
border-bottom: | border-bottom: 2px solid #123252 !important; | ||
padding-bottom: 4px; | padding-bottom: 4px; | ||
margin-top: | margin-top: 20px; | ||
} | } | ||
/* ── Titres de section H3 (=== ===) ────────────────────────── */ | /* ── Titres de section H3 (=== ===) ────────────────────────── */ | ||
.mw-parser-output h3 { | .mw-parser-output h3 { | ||
| Ligne 55 : | Ligne 74 : | ||
margin-top: 18px; | margin-top: 18px; | ||
} | } | ||
/* ── Titres de section H4 (==== ====) ──────────────────────── */ | /* ── Titres de section H4 (==== ====) ──────────────────────── */ | ||
.mw-parser-output h4 { | .mw-parser-output h4 { | ||
| Ligne 64 : | Ligne 83 : | ||
margin-top: 14px; | margin-top: 14px; | ||
} | } | ||
/* ── Tableaux wikitable PCStreet ────────────────────────────── */ | /* ── Tableaux wikitable PCStreet ────────────────────────────── */ | ||
.wikitable.pcstreet { | .wikitable.pcstreet { | ||
| Ligne 96 : | Ligne 115 : | ||
background-color: #EBF3FB; | background-color: #EBF3FB; | ||
} | } | ||
/* ── Boîtes remarque / avertissement PCStreet ───────────────── */ | /* ── Boîtes remarque / avertissement PCStreet ───────────────── */ | ||
.pcstreet-notice { | .pcstreet-notice { | ||
| Ligne 112 : | Ligne 131 : | ||
color: #123252; | color: #123252; | ||
} | } | ||
.pcstreet-warning { | .pcstreet-warning { | ||
background-color: #FFF3CD; | background-color: #FFF3CD; | ||
| Ligne 127 : | Ligne 146 : | ||
color: #F0A500; | color: #F0A500; | ||
} | } | ||
.pcstreet-danger { | .pcstreet-danger { | ||
background-color: #FDECEA; | background-color: #FDECEA; | ||
| Ligne 142 : | Ligne 161 : | ||
color: #C0392B; | color: #C0392B; | ||
} | } | ||
/* ── Blocs de code <pre> ────────────────────────────────────── */ | /* ── Blocs de code <pre> ────────────────────────────────────── */ | ||
.mw-parser-output pre { | .mw-parser-output pre { | ||
| Ligne 155 : | Ligne 174 : | ||
border-radius: 0 4px 4px 0; | border-radius: 0 4px 4px 0; | ||
} | } | ||
/* ── SyntaxHighlight (bash, python, cpp) ────────────────────── */ | /* ── SyntaxHighlight (bash, python, cpp) ────────────────────── */ | ||
.mw-highlight { | .mw-highlight { | ||
| Ligne 162 : | Ligne 181 : | ||
font-size: 0.88em !important; | font-size: 0.88em !important; | ||
} | } | ||
/* ── Infobox récapitulatif ──────────────────────────────────── */ | /* ── Infobox récapitulatif ──────────────────────────────────── */ | ||
.pcstreet-infobox { | .pcstreet-infobox { | ||
| Ligne 182 : | Ligne 201 : | ||
padding-bottom: 4px; | padding-bottom: 4px; | ||
} | } | ||
/* ── Badge de statut inline ─────────────────────────────────── */ | /* ── Badge de statut inline ─────────────────────────────────── */ | ||
.badge-ok { | .badge-ok { | ||
| Ligne 208 : | Ligne 227 : | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
/* ── TOC (table des matières) ───────────────────────────────── */ | /* ── TOC (table des matières) ───────────────────────────────── */ | ||
#toc { | #toc { | ||
| Ligne 223 : | Ligne 242 : | ||
border: none !important; | border: none !important; | ||
} | } | ||
/* ── Pied de page de page PCStreet ─────────────────────────── */ | /* ── Pied de page de page PCStreet ─────────────────────────── */ | ||
.pcstreet-footer { | .pcstreet-footer { | ||
| Ligne 232 : | Ligne 251 : | ||
font-size: 0.82em; | font-size: 0.82em; | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
} | |||
/* ── Texte principal en noir pur (16/08/2026, demande PC) ────── | |||
Le texte des articles doit être en noir pur (#000), pas en gris. | |||
⚠ Ne touche pas aux éléments volontairement grisés/colorés | |||
(footer, badges, bannière, liens) grâce à leur spécificité CSS | |||
plus élevée qui continue de l'emporter sur les règles ci-dessous. */ | |||
body, | |||
.mw-body, | |||
.mw-body-content, | |||
#mw-content-text, | |||
.mw-parser-output, | |||
.mw-parser-output p, | |||
.mw-parser-output li, | |||
.mw-parser-output dd, | |||
.mw-parser-output dt, | |||
.mw-parser-output td, | |||
.mw-parser-output th { | |||
color: #000000 !important; | |||
} | |||
/* ── Assombrir les tons gris de SyntaxHighlight (16/08/2026) ─── | |||
L'extension SyntaxHighlight/Pygments (thème "default") grise | |||
volontairement certains tokens : commentaires (#3D7B7B), | |||
opérateurs/nombres (#666), sortie générique (#717171). | |||
On les fonce pour améliorer le contraste, sans casser la | |||
distinction visuelle entre les types de tokens (mots-clés, | |||
chaînes, etc. restent colorés). */ | |||
.mw-highlight .c, | |||
.mw-highlight .ch, | |||
.mw-highlight .cm, | |||
.mw-highlight .cpf, | |||
.mw-highlight .c1, | |||
.mw-highlight .cs { | |||
color: #1F4747 !important; /* commentaires, plus sombre que #3D7B7B */ | |||
} | |||
.mw-highlight .o, | |||
.mw-highlight .m, | |||
.mw-highlight .mb, | |||
.mw-highlight .mf, | |||
.mw-highlight .mh, | |||
.mw-highlight .mi, | |||
.mw-highlight .mo, | |||
.mw-highlight .il { | |||
color: #333333 !important; /* opérateurs/nombres, plus sombre que #666 */ | |||
} | |||
.mw-highlight .go, | |||
.mw-highlight .ni { | |||
color: #333333 !important; /* sortie générique, plus sombre que #717171 */ | |||
} | |||
/* ── Texte normal des blocs de code en vrai noir (16/08/2026) ── | |||
La règle ".mw-parser-output pre { color: #0B1B2B; }" plus haut | |||
dans ce fichier cible directement <pre> et l'emporte sur | |||
l'héritage de couleur, même avec !important sur l'ancêtre. | |||
Le texte de code "normal" (sans classe Pygments : identifiants, | |||
ponctuation…) héritait donc de ce bleu marine au lieu du noir. | |||
On force ici le vrai noir sur <pre>, sans toucher aux tokens | |||
colorés (mots-clés, chaînes, commentaires assombris plus haut). */ | |||
.mw-parser-output pre, | |||
.mw-highlight pre { | |||
color: #000000 !important; | |||
} | } | ||
Dernière version du 9 septembre 2026 à 10:31
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* ============================================================
PCStreet MediaWiki — Common.css (10/06/2026)
Style documentation technique (inspiré du thème DOCX PCStreet)
Couleurs encore plus foncées : #0B1B2B (bleu nuit profond), #123252 (bleu marine)
À coller dans : MediaWiki:Common.css
============================================================ */
/* ── Bannière de titre de page ─────────────────────────────── */
.pcstreet-title-banner {
background: linear-gradient(135deg, #0B1B2B 0%, #123252 100%);
color: #ffffff;
padding: 18px 24px 14px 24px;
margin-bottom: 18px;
border-radius: 4px;
}
.pcstreet-title-banner h1 {
color: #ffffff !important;
font-size: 1.8em;
margin: 0 0 4px 0;
border: none !important;
font-family: Arial, sans-serif;
}
.pcstreet-title-banner .pcstreet-subtitle {
color: #6A8CAF;
font-size: 1em;
font-style: italic;
}
.pcstreet-title-banner .pcstreet-meta {
color: #6A8CAF;
font-size: 0.85em;
margin-top: 6px;
}
/* ── Titre principal de page (généré par MediaWiki, ajouté 09/09/2026) ──
#firstHeading n'était pas stylé → héritait de la taille du skin
(souvent trop grosse). On l'aligne sur la charte PCStreet. */
#firstHeading {
color: #0B1B2B;
font-family: Arial, sans-serif;
font-size: 1.5em;
font-weight: bold;
border-bottom: 3px solid #123252;
padding-bottom: 6px;
}
.mw-parser-output h1 {
color: #0B1B2B;
font-family: Arial, sans-serif;
font-size: 0.95em; /* légèrement sous le texte normal */
font-weight: bold;
border-bottom: none !important;
margin-top: 20px;
}
.mw-parser-output h2 {
color: #0B1B2B;
font-family: Arial, sans-serif;
font-size: 1.0em; /* = taille du texte normal */
font-weight: bold;
border-bottom: 2px solid #123252 !important;
padding-bottom: 4px;
margin-top: 20px;
}
/* ── Titres de section H3 (=== ===) ────────────────────────── */
.mw-parser-output h3 {
color: #123252;
font-family: Arial, sans-serif;
font-size: 1.1em;
font-weight: bold;
border-bottom: 1px solid #6A8CAF !important;
padding-bottom: 2px;
margin-top: 18px;
}
/* ── Titres de section H4 (==== ====) ──────────────────────── */
.mw-parser-output h4 {
color: #444444;
font-family: Arial, sans-serif;
font-size: 1.0em;
font-weight: bold;
margin-top: 14px;
}
/* ── Tableaux wikitable PCStreet ────────────────────────────── */
.wikitable.pcstreet {
border-collapse: collapse;
width: 100%;
font-family: Arial, sans-serif;
font-size: 0.9em;
margin: 12px 0 16px 0;
box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.wikitable.pcstreet th {
background-color: #0B1B2B !important;
color: #ffffff !important;
font-weight: bold;
padding: 8px 12px;
text-align: left;
border: 1px solid #aaaaaa;
}
.wikitable.pcstreet td {
padding: 6px 12px;
border: 1px solid #cccccc;
vertical-align: top;
}
.wikitable.pcstreet tr:nth-child(even) td {
background-color: #f2f2f2;
}
.wikitable.pcstreet tr:nth-child(odd) td {
background-color: #ffffff;
}
.wikitable.pcstreet tr:hover td {
background-color: #EBF3FB;
}
/* ── Boîtes remarque / avertissement PCStreet ───────────────── */
.pcstreet-notice {
background-color: #EBF3FB;
border-left: 4px solid #123252;
padding: 10px 14px;
margin: 12px 0;
font-size: 0.92em;
border-radius: 0 4px 4px 0;
font-family: Arial, sans-serif;
}
.pcstreet-notice::before {
content: "ℹ ";
font-weight: bold;
color: #123252;
}
.pcstreet-warning {
background-color: #FFF3CD;
border-left: 4px solid #F0A500;
padding: 10px 14px;
margin: 12px 0;
font-size: 0.92em;
border-radius: 0 4px 4px 0;
font-family: Arial, sans-serif;
}
.pcstreet-warning::before {
content: "⚠ ";
font-weight: bold;
color: #F0A500;
}
.pcstreet-danger {
background-color: #FDECEA;
border-left: 4px solid #C0392B;
padding: 10px 14px;
margin: 12px 0;
font-size: 0.92em;
border-radius: 0 4px 4px 0;
font-family: Arial, sans-serif;
}
.pcstreet-danger::before {
content: "✖ ";
font-weight: bold;
color: #C0392B;
}
/* ── Blocs de code <pre> ────────────────────────────────────── */
.mw-parser-output pre {
background-color: #F0F4F8;
border: 1px solid #6A8CAF;
border-left: 4px solid #123252;
padding: 12px 16px;
font-family: "Courier New", monospace;
font-size: 0.88em;
color: #0B1B2B;
overflow-x: auto;
border-radius: 0 4px 4px 0;
}
/* ── SyntaxHighlight (bash, python, cpp) ────────────────────── */
.mw-highlight {
border-left: 4px solid #123252 !important;
border-radius: 0 4px 4px 0;
font-size: 0.88em !important;
}
/* ── Infobox récapitulatif ──────────────────────────────────── */
.pcstreet-infobox {
background-color: #D6E4F0;
border: 1px solid #123252;
border-top: 4px solid #0B1B2B;
padding: 14px 18px;
margin: 16px 0;
border-radius: 4px;
font-family: Arial, sans-serif;
font-size: 0.92em;
}
.pcstreet-infobox-title {
color: #0B1B2B;
font-weight: bold;
font-size: 1.05em;
margin-bottom: 8px;
border-bottom: 1px solid #123252;
padding-bottom: 4px;
}
/* ── Badge de statut inline ─────────────────────────────────── */
.badge-ok {
background-color: #27AE60;
color: white;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.82em;
font-weight: bold;
}
.badge-warn {
background-color: #F0A500;
color: white;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.82em;
font-weight: bold;
}
.badge-ko {
background-color: #C0392B;
color: white;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.82em;
font-weight: bold;
}
/* ── TOC (table des matières) ───────────────────────────────── */
#toc {
background-color: #F0F4F8;
border: 1px solid #6A8CAF;
border-top: 3px solid #0B1B2B;
padding: 12px 16px;
border-radius: 4px;
font-size: 0.92em;
}
#toc .toctitle h2 {
color: #0B1B2B !important;
font-size: 1.0em !important;
border: none !important;
}
/* ── Pied de page de page PCStreet ─────────────────────────── */
.pcstreet-footer {
border-top: 2px solid #123252;
margin-top: 32px;
padding-top: 8px;
color: #888888;
font-size: 0.82em;
font-family: Arial, sans-serif;
}
/* ── Texte principal en noir pur (16/08/2026, demande PC) ──────
Le texte des articles doit être en noir pur (#000), pas en gris.
⚠ Ne touche pas aux éléments volontairement grisés/colorés
(footer, badges, bannière, liens) grâce à leur spécificité CSS
plus élevée qui continue de l'emporter sur les règles ci-dessous. */
body,
.mw-body,
.mw-body-content,
#mw-content-text,
.mw-parser-output,
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output dd,
.mw-parser-output dt,
.mw-parser-output td,
.mw-parser-output th {
color: #000000 !important;
}
/* ── Assombrir les tons gris de SyntaxHighlight (16/08/2026) ───
L'extension SyntaxHighlight/Pygments (thème "default") grise
volontairement certains tokens : commentaires (#3D7B7B),
opérateurs/nombres (#666), sortie générique (#717171).
On les fonce pour améliorer le contraste, sans casser la
distinction visuelle entre les types de tokens (mots-clés,
chaînes, etc. restent colorés). */
.mw-highlight .c,
.mw-highlight .ch,
.mw-highlight .cm,
.mw-highlight .cpf,
.mw-highlight .c1,
.mw-highlight .cs {
color: #1F4747 !important; /* commentaires, plus sombre que #3D7B7B */
}
.mw-highlight .o,
.mw-highlight .m,
.mw-highlight .mb,
.mw-highlight .mf,
.mw-highlight .mh,
.mw-highlight .mi,
.mw-highlight .mo,
.mw-highlight .il {
color: #333333 !important; /* opérateurs/nombres, plus sombre que #666 */
}
.mw-highlight .go,
.mw-highlight .ni {
color: #333333 !important; /* sortie générique, plus sombre que #717171 */
}
/* ── Texte normal des blocs de code en vrai noir (16/08/2026) ──
La règle ".mw-parser-output pre { color: #0B1B2B; }" plus haut
dans ce fichier cible directement <pre> et l'emporte sur
l'héritage de couleur, même avec !important sur l'ancêtre.
Le texte de code "normal" (sans classe Pygments : identifiants,
ponctuation…) héritait donc de ce bleu marine au lieu du noir.
On force ici le vrai noir sur <pre>, sans toucher aux tokens
colorés (mots-clés, chaînes, commentaires assombris plus haut). */
.mw-parser-output pre,
.mw-highlight pre {
color: #000000 !important;
}