MediaWiki:Common.css
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).
- Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
- Opera : appuyez sur Ctrl + F5.
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* ===================================================
Police de caractère pour cadre MJonly
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Cormorant+Garamond:ital@1&display=swap');
/* ===================================================
Police de caractère pour le nouveau Accueil
=================================================== */
/* === Import Google Fonts (optionnel, à mettre tout en haut du fichier) === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;1,400&display=swap');
/* ===================================================
NEPHILIM — Points de règle (5 éditions)
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');
/* --- Structure commune --- */
.nephilim-regle {
margin: 1em 0;
border-radius: 8px;
overflow: hidden;
border: 2px solid #33302A;
box-shadow: 0 3px 16px rgba(30,27,22,0.2);
font-family: 'EB Garamond', Georgia, serif;
border-collapse: separate;
border-spacing: 0;
}
.nephilim-regle-header td {
padding: 0.7em 0.6em;
vertical-align: middle;
}
.nephilim-regle-icon {
width: 40px;
padding-right: 0 !important;
}
.nephilim-regle-icon img {
border: 1.5px solid rgba(255,255,255,0.3);
border-radius: 4px;
background: rgba(0,0,0,0.15);
padding: 4px;
}
.nephilim-regle-titre {
font-family: 'Cinzel', serif;
font-weight: 600;
font-size: 1.1em;
letter-spacing: 0.03em;
color: #F7F6F2;
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.nephilim-regle-edition {
font-family: 'Crimson Text', serif;
font-weight: 400;
font-size: 0.85em;
color: #F7F6F2;
opacity: 0.7;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.nephilim-regle-contenu {
padding: 1em 1.2em;
line-height: 1.7;
color: #2A2520;
border-top: 1px solid rgba(51,48,42,0.15);
font-weight: 500;
font-size: 15px;
}
/* --- N1 : 1ère édition (Brun chaud / Cuivre) --- */
.regle-n1 .nephilim-regle-header td { background: #6B5D4F; }
.regle-n1 .nephilim-regle-contenu { background: #E8E0D3; }
/* --- N2 : 2nde édition (Olive / Or) --- */
.regle-n2 .nephilim-regle-header td { background: #727a68; }
.regle-n2 .nephilim-regle-contenu { background: #E8E4D8; }
/* --- NR : 3ème édition Révélation (Bleu nuit / Argent) --- */
.regle-nr .nephilim-regle-header td { background: #4A5568; }
.regle-nr .nephilim-regle-contenu { background: #DDE2E8; }
/* --- N4 : 4ème édition Anniversaire (Bordeaux / Or rose) --- */
.regle-n4 .nephilim-regle-header td { background: #6B4548; }
.regle-n4 .nephilim-regle-contenu { background: #E8DDD8; }
/* --- N5 : 5ème édition Légende (Pourpre / Améthyste) --- */
.regle-nl .nephilim-regle-header td { background: #574B6B; }
.regle-nl .nephilim-regle-contenu { background: #E3DEE8; }
/* ============================================= */
/* FichePNJNL — Couleurs par type de PNJ */
/* ============================================= */
/* --- Structure commune --- */
.FichePNJNL .entete-pnj {
text-align: center;
}
.FichePNJNL .bandeau-pnj {
padding: .3em .8em;
font-weight: bold;
}
.FichePNJNL .sous-titre-pnj {
color: rgba(255,255,255,0.65);
}
/* --- Fallback / Autre créature (gris standard) --- */
.FichePNJNL .entete-pnj {
background-color: #8C8C8C;
color: #fff;
}
.FichePNJNL .bandeau-pnj {
background-color: #DCDCDC;
}
/* --- Pyrim / Effet-dragon Feu (rouge) --- */
.fiche-pnj-pyrim .entete-pnj {
background-color: #C0524E;
color: #fff;
}
.fiche-pnj-pyrim .bandeau-pnj {
background-color: #F2D5D3;
}
/* --- Éolim / Effet-dragon Air (bleu ciel) --- */
.fiche-pnj-eolim .entete-pnj {
background-color: #5BA4D9;
color: #fff;
}
.fiche-pnj-eolim .bandeau-pnj {
background-color: #D4E9F7;
}
/* --- Hydrim / Effet-dragon Eau (bleu outremer) --- */
.fiche-pnj-hydrim .entete-pnj {
background-color: #3B6FA0;
color: #fff;
}
.fiche-pnj-hydrim .bandeau-pnj {
background-color: #CEDDEF;
}
/* --- Faërim / Effet-dragon Terre (vert) --- */
.fiche-pnj-faerim .entete-pnj {
background-color: #4A9A6A;
color: #fff;
}
.fiche-pnj-faerim .bandeau-pnj {
background-color: #D2EDDA;
}
/* --- Onirim / Effet-dragon Lune (violet sombre) --- */
.fiche-pnj-onirim .entete-pnj {
background-color: #6B4E8A;
color: #fff;
}
.fiche-pnj-onirim .bandeau-pnj {
background-color: #E0D4EE;
}
/* --- Selenim / Effet-dragon Lune Noire (noir) --- */
.fiche-pnj-selenim .entete-pnj {
background-color: #3A3A3A;
color: #E8E8E8;
}
.fiche-pnj-selenim .bandeau-pnj {
background-color: #D2D2D2;
}
/* --- Saurien (violet sombre corrompu) --- */
.fiche-pnj-saurien .entete-pnj {
background-color: #352846;
color: #fff;
}
.fiche-pnj-saurien .bandeau-pnj {
background-color: #C0B8C8;
}
/* --- Humain lambda (jaune sable) --- */
.fiche-pnj-humain .entete-pnj {
background-color: #B8A878;
color: #fff;
}
.fiche-pnj-humain .bandeau-pnj {
background-color: #EAE2CE;
}
/* --- Humain initié (or solaire) --- */
.fiche-pnj-humain-initie .entete-pnj {
background-color: #D4A820;
color: #fff;
}
.fiche-pnj-humain-initie .bandeau-pnj {
background-color: #F5ECBA;
}
/* --- Ar-Kaïm (turquoise) --- */
.fiche-pnj-arkaim .entete-pnj {
background-color: #2E9E9E;
color: #fff;
}
.fiche-pnj-arkaim .bandeau-pnj {
background-color: #C8EAEA;
}
/* --- Bohémien (mauve clair) --- */
.fiche-pnj-bohemien .entete-pnj {
background-color: #A86CA8;
color: #fff;
}
.fiche-pnj-bohemien .bandeau-pnj {
background-color: #EDDCED;
}
/* --- Daïmon (gris métallique) --- */
.fiche-pnj-daimon .entete-pnj {
background-color: #6E7A85;
color: #fff;
}
.fiche-pnj-daimon .bandeau-pnj {
background-color: #D8DDE2;
}
/* --- Wowakan / Loa / Shen / Jukurrpa (marron terre) --- */
.fiche-pnj-cousin .entete-pnj {
background-color: #6B4832;
color: #fff;
}
.fiche-pnj-cousin .bandeau-pnj {
background-color: #E2D2C0;
}
/* --- Reflet akashique (soleil pur) --- */
.fiche-pnj-reflet .entete-pnj {
background-color: #E8C820;
color: #fff;
}
.fiche-pnj-reflet .bandeau-pnj {
background-color: #FBF2C0;
}
/* --- DraKaon (dégradé arc-en-ciel des 5 Ka) --- */
.fiche-pnj-drakaon .entete-pnj {
background: linear-gradient(135deg, #5BA4D9 0%, #3B6FA0 20%, #4A9A6A 40%, #C0524E 60%, #6B4E8A 80%, #5BA4D9 100%);
color: #fff;
}
.fiche-pnj-drakaon .bandeau-pnj {
background: linear-gradient(to right, #F2D5D3, #D4E9F7, #D2EDDA, #E0D4EE);
}
/* ============================================================
NEPHILIM WIKI - STYLES MODERNISÉS POUR LA PAGE D'ACCUEIL
À ajouter dans MediaWiki:Common.css
============================================================ */
/* --- Variables couleurs (via classes, MediaWiki ne supporte pas :root nativement partout) --- */
/* === BANNIERE HERO === */
.nph-hero {
background: #FBF7ED;
border-bottom: 2px solid #E8D5A3;
padding: 1.2rem 1.5rem 1rem;
text-align: center;
margin-bottom: 1.2rem;
border-radius: 0 0 10px 10px;
}
.nph-hero-title {
font-family: 'Cinzel', 'Georgia', serif;
color: #2D1B4E;
font-size: 1.6rem;
font-weight: 600;
letter-spacing: 0.04em;
margin-bottom: 0.1rem;
}
.nph-hero-title small {
font-size: 0.65em;
color: #8E7BA8;
font-weight: 400;
}
.nph-hero-subtitle {
font-family: 'Lora', 'Georgia', serif;
font-style: italic;
color: #7A6E5E;
font-size: 0.88rem;
margin-bottom: 0.6rem;
}
.nph-hero-nav {
margin-bottom: 0.4rem;
}
.nph-hero-nav a {
color: #6B4D8A !important;
text-decoration: none;
font-size: 0.8rem;
padding: 2px 8px;
border-radius: 4px;
transition: color 0.2s, background 0.2s;
}
.nph-hero-nav a:hover {
color: #2D1B4E !important;
background: rgba(196,154,42,0.15);
text-decoration: none;
}
.nph-hero-sep {
color: #E0D5C0;
margin: 0 1px;
}
.nph-hero-stats {
font-size: 0.78rem;
color: #7A6E5E;
}
.nph-hero-stats strong {
color: #4A2D6B;
}
/* === LAYOUT GRILLE PRINCIPALE === */
.nph-layout {
display: grid;
grid-template-columns: 1fr 340px;
gap: 1.2rem;
align-items: start;
max-width: 100%;
}
.nph-content { min-width: 0; }
.nph-sidebar { min-width: 0; }
@media (max-width: 900px) {
.nph-layout {
grid-template-columns: 1fr;
}
}
/* === CARTES CONTENU (colonne principale) === */
.nph-card {
background: #FFFFFF;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(45,27,78,0.06);
margin-bottom: 1.1rem;
overflow: hidden;
border: 1px solid #E0D5C0;
transition: box-shadow 0.2s;
}
.nph-card:hover {
box-shadow: 0 4px 12px rgba(45,27,78,0.08);
}
.nph-card-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.7rem 1rem;
border-bottom: 1px solid #E0D5C0;
background: linear-gradient(to right, #F5ECD7, #FFFFFF);
}
.nph-card-icon {
width: 22px;
text-align: center;
flex-shrink: 0;
}
.nph-card-header h2,
.nph-card-header .nph-card-title {
font-family: 'Cinzel', 'Georgia', serif;
font-size: 0.92rem;
font-weight: 600;
color: #2D1B4E;
letter-spacing: 0.02em;
margin: 0;
padding: 0;
border: none;
}
.nph-card-header .nph-edit {
margin-left: auto;
font-size: 0.72rem;
color: #7A6E5E;
opacity: 0;
transition: opacity 0.2s;
}
.nph-card:hover .nph-card-header .nph-edit {
opacity: 1;
}
.nph-card-body {
padding: 0.85rem 1rem;
font-size: 0.88rem;
line-height: 1.65;
}
/* === TABLEAUX DANS LES CARTES === */
.nph-card-body table.wikitable,
.nph-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
background: transparent;
border: none;
}
.nph-table th {
text-align: left;
padding: 0.45rem 0.7rem;
font-weight: 600;
color: #4A2D6B;
background: #F5ECD7;
border-bottom: 2px solid #E8D5A3;
font-family: 'Cinzel', 'Georgia', serif;
font-size: 0.8rem;
}
.nph-table td {
padding: 0.4rem 0.7rem;
border-bottom: 1px solid rgba(224,213,192,0.5);
vertical-align: top;
border-left: none;
border-right: none;
}
.nph-table tr:last-child td {
border-bottom: none;
}
.nph-table tr:hover td {
background: rgba(245,236,215,0.4);
}
.nph-table td:first-child {
font-weight: 600;
color: #4A2D6B;
white-space: nowrap;
width: 140px;
}
.nph-table a {
color: #6B4D8A;
}
.nph-table a:hover {
color: #4A2D6B;
}
/* === VARIANTE SANS EN-TÊTE (nph-table-flat) === */
.nph-table-flat {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
background: transparent;
border: none;
}
.nph-table-flat td {
padding: 0.4rem 0.7rem;
border-bottom: 1px solid rgba(224,213,192,0.5);
vertical-align: top;
border-left: none;
border-right: none;
}
.nph-table-flat tr:last-child td {
border-bottom: none;
}
.nph-table-flat tr:hover td {
background: rgba(245,236,215,0.4);
}
.nph-table-flat td:first-child {
font-weight: 600;
color: #4A2D6B;
white-space: nowrap;
width: 140px;
}
.nph-table-flat a {
color: #6B4D8A;
}
.nph-table-flat a:hover {
color: #4A2D6B;
}
/* === CARTES SIDEBAR === */
.nph-sidebar .nph-card-header {
background: linear-gradient(to right, #2D1B4E, #4A2D6B);
border-bottom: none;
}
.nph-sidebar .nph-card-header h2,
.nph-sidebar .nph-card-header .nph-card-title {
color: #E8D5A3;
}
.nph-sidebar .nph-card-header .nph-edit {
color: #8E7BA8;
}
.nph-sidebar .nph-card-body {
font-size: 0.82rem;
max-height: 420px;
overflow-y: auto;
}
/* === BLOCS NOUVEAUTÉS === */
.nph-news-item {
padding-bottom: 0.7rem;
margin-bottom: 0.7rem;
border-bottom: 1px solid rgba(224,213,192,0.4);
}
.nph-news-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.nph-news-date {
display: inline-block;
font-family: 'Cinzel', 'Georgia', serif;
font-size: 0.72rem;
font-weight: 700;
color: #8B6914;
background: #F5ECD7;
padding: 2px 8px;
border-radius: 3px;
margin-bottom: 0.3rem;
}
.nph-news-title {
font-weight: 600;
color: #2C2418;
margin-bottom: 0.15rem;
}
/* === INDEX TAGS === */
.nph-tags {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.nph-tag {
display: inline-block;
padding: 3px 10px;
border-radius: 4px;
font-size: 0.78rem;
font-weight: 500;
text-decoration: none !important;
transition: all 0.15s;
}
.nph-tag-primary {
background: #2D1B4E;
color: #E8D5A3 !important;
}
.nph-tag-primary:hover {
background: #4A2D6B;
}
.nph-tag-secondary {
background: #F5ECD7;
color: #4A2D6B !important;
border: 1px solid #E0D5C0;
}
.nph-tag-secondary:hover {
background: #E8D5A3;
}
/* === BOUTON PARTICIPER === */
.nph-btn {
display: inline-block;
padding: 6px 16px;
background: #4A2D6B;
color: #E8D5A3 !important;
text-decoration: none !important;
border-radius: 5px;
font-size: 0.82rem;
font-weight: 600;
transition: background 0.2s, transform 0.2s;
}
.nph-btn:hover {
background: #2D1B4E;
transform: translateY(-1px);
}
/* === ÉPHÉMÉRIDES === */
.nph-ephem-day {
font-family: 'Cinzel', 'Georgia', serif;
font-weight: 700;
color: #4A2D6B;
text-align: center;
margin-bottom: 0.5rem;
}
/* === Masquer le titre H1 sur la page d'accueil === */
body.page-Accueil #firstHeading {
display: none;
}