Aller au contenu

« MediaWiki:Common.css » : différence entre les versions

aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 6 : Ligne 6 :


@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Cormorant+Garamond:ital@1&display=swap');
@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');


/* ===================================================
/* ===================================================
Ligne 242 : Ligne 250 :
.fiche-pnj-drakaon .bandeau-pnj {
.fiche-pnj-drakaon .bandeau-pnj {
     background: linear-gradient(to right, #F2D5D3, #D4E9F7, #D2EDDA, #E0D4EE);
     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;
}
/* === 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;
}
}