Naar inhoud springen

MediaWiki:Common.css: verschil tussen versies

Uit CostaSano-Wiki
Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
 
(10 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
/** CSS die hier wordt geplaatst heeft invloed op alle vormgevingen */
/* Base infobox styling */
.infobox {
    border: 1px solid var(--infobox-border, #ccc);
    border-radius: 6px;
    padding: 0.5em;
    margin: 1em 0;
    font-size: 90%;
    width: 300px;
    background-color: var(--infobox-bg, #f9f9f9);
    color: var(--infobox-text, #000);
}
 
/* Infobox header */
.infobox .infobox-title {
    font-weight: bold;
    font-size: 110%;
    padding: 0.4em;
    text-align: center;
    background-color: var(--infobox-header-bg, #e0e0e0);
    color: var(--infobox-header-text, #000);
    border-bottom: 1px solid var(--infobox-border, #ccc);
}


/* ===== Print stylesheet for PDF export ===== */
/* Infobox rows */
@media print {
.infobox .infobox-row {
  /* Page box margins (browser respects @page, not body margin) */
     padding: 0.3em 0.5em;
  @page {
     border-bottom: 1px solid var(--infobox-border, #ccc);
     margin-top: 2cm;
}
     margin-bottom: 2cm;
.infobox .infobox-row:last-child {
    margin-left: 1.5cm;
     border-bottom: none;
     margin-right: 1.5cm;
}


    /* Header and footer content */
/* Dark mode adjustments */
    @top-left {
@media (prefers-color-scheme: dark) {
      content: url("/images/club_logo.png");
    .infobox {
        --infobox-bg: #1e1e1e;
        --infobox-text: #e0e0e0;
        --infobox-border: #444;
     }
     }
     @top-right {
     .infobox .infobox-title {
      content: "Historical Research Club";
        --infobox-header-bg: #333;
      font-size: 10pt;
        --infobox-header-text: #fff;
     }
     }
    @bottom-center {
}
      content: "Page " counter(page);
      font-size: 10pt;
    }
  }


  /* Reset body margin so @page takes effect */
/* Adapting banners to dark and light page mode  */
  body {
    margin: 0;
    font-family: "Liberation Serif", Georgia, serif;
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }


  /* Hide navigation, sidebar, edit links, and footer clutter */
/* Light mode defaults */
   #mw-panel, #footer, .mw-editsection, .noprint {
:root {
    display: none !important;
   --banner-bg: #eeeeee;
  }
  --banner-fg: #000000;
 
}
  /* Headings styling */
  h1, h2, h3 {
    color: #003366;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.2em;
  }
 
  /* References formatting */
  .references {
    font-size: 10pt;
    line-height: 1.2;
  }


  /* Optional: force page breaks before major sections */
/* Dark mode overrides */
   h1 {
@media (prefers-color-scheme: dark) {
     page-break-before: always;
   :root {
     --banner-bg: #222222;
    --banner-fg: #ffffff;
   }
   }
}
}
/* ===== End print stylesheet ===== */

Huidige versie van 16 dec 2025 15:35

/* Base infobox styling */
.infobox {
    border: 1px solid var(--infobox-border, #ccc);
    border-radius: 6px;
    padding: 0.5em;
    margin: 1em 0;
    font-size: 90%;
    width: 300px;
    background-color: var(--infobox-bg, #f9f9f9);
    color: var(--infobox-text, #000);
}

/* Infobox header */
.infobox .infobox-title {
    font-weight: bold;
    font-size: 110%;
    padding: 0.4em;
    text-align: center;
    background-color: var(--infobox-header-bg, #e0e0e0);
    color: var(--infobox-header-text, #000);
    border-bottom: 1px solid var(--infobox-border, #ccc);
}

/* Infobox rows */
.infobox .infobox-row {
    padding: 0.3em 0.5em;
    border-bottom: 1px solid var(--infobox-border, #ccc);
}
.infobox .infobox-row:last-child {
    border-bottom: none;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .infobox {
        --infobox-bg: #1e1e1e;
        --infobox-text: #e0e0e0;
        --infobox-border: #444;
    }
    .infobox .infobox-title {
        --infobox-header-bg: #333;
        --infobox-header-text: #fff;
    }
}

/* Adapting banners to dark and light page mode  */

/* Light mode defaults */
:root {
  --banner-bg: #eeeeee;
  --banner-fg: #000000;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --banner-bg: #222222;
    --banner-fg: #ffffff;
  }
}