MediaWiki:Common.css

De wiki_pcwiki2
Version datée du 10 juin 2026 à 05:50 par Pchevalier (discussion | contributions) (Page créée avec « →Le CSS placé ici sera appliqué à tous les habillages. : /* ============================================================ PCStreet MediaWiki — Common.css Styl... »)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche

Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  •  Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* ============================================================
   PCStreet MediaWiki — Common.css
   Style documentation technique (inspiré du thème DOCX PCStreet)
   Couleurs : #1F4E79 (bleu foncé), #2E75B6 (bleu moyen)
   À coller dans : MediaWiki:Common.css
   ============================================================ */

/* ── Bannière de titre de page ─────────────────────────────── */
.pcstreet-title-banner {
    background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 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: #BDD7EE;
    font-size: 1em;
    font-style: italic;
}
.pcstreet-title-banner .pcstreet-meta {
    color: #BDD7EE;
    font-size: 0.85em;
    margin-top: 6px;
}

/* ── Titres de section H2 (== ==) ──────────────────────────── */
.mw-parser-output h2 {
    color: #1F4E79;
    font-family: Arial, sans-serif;
    font-size: 1.35em;
    font-weight: bold;
    border-bottom: 3px solid #2E75B6 !important;
    padding-bottom: 4px;
    margin-top: 28px;
}

/* ── Titres de section H3 (=== ===) ────────────────────────── */
.mw-parser-output h3 {
    color: #2E75B6;
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 1px solid #BDD7EE !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: #1F4E79 !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 #2E75B6;
    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: #2E75B6;
}

.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 #BDD7EE;
    border-left: 4px solid #2E75B6;
    padding: 12px 16px;
    font-family: "Courier New", monospace;
    font-size: 0.88em;
    color: #1F4E79;
    overflow-x: auto;
    border-radius: 0 4px 4px 0;
}

/* ── SyntaxHighlight (bash, python, cpp) ────────────────────── */
.mw-highlight {
    border-left: 4px solid #2E75B6 !important;
    border-radius: 0 4px 4px 0;
    font-size: 0.88em !important;
}

/* ── Infobox récapitulatif ──────────────────────────────────── */
.pcstreet-infobox {
    background-color: #D6E4F0;
    border: 1px solid #2E75B6;
    border-top: 4px solid #1F4E79;
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.92em;
}
.pcstreet-infobox-title {
    color: #1F4E79;
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 8px;
    border-bottom: 1px solid #2E75B6;
    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 #BDD7EE;
    border-top: 3px solid #1F4E79;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.92em;
}
#toc .toctitle h2 {
    color: #1F4E79 !important;
    font-size: 1.0em !important;
    border: none !important;
}

/* ── Pied de page de page PCStreet ─────────────────────────── */
.pcstreet-footer {
    border-top: 2px solid #2E75B6;
    margin-top: 32px;
    padding-top: 8px;
    color: #888888;
    font-size: 0.82em;
    font-family: Arial, sans-serif;
}