Naar inhoud springen

MediaWiki:Common.css: verschil tussen versies

Uit CostaSano-Wiki
Better print style
 
Geen bewerkingssamenvatting
 
(12 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);
}


/* Print stylesheet for clean PDF output */
/* Infobox header */
@media print {
.infobox .infobox-title {
  /* Hide navigation, sidebar, and footer clutter */
    font-weight: bold;
  #mw-panel, #footer, .mw-editsection, .noprint {
    font-size: 110%;
     display: none !important;
    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);
}


  /* Page margins */
/* Infobox rows */
  body {
.infobox .infobox-row {
     margin: 2cm;
     padding: 0.3em 0.5em;
     font-family: "Liberation Serif", Georgia, serif;
     border-bottom: 1px solid var(--infobox-border, #ccc);
    line-height: 1.4;
}
     font-size: 12pt;
.infobox .infobox-row:last-child {
    color: #000;
     border-bottom: none;
  }
}


  /* Headings */
/* Dark mode adjustments */
  h1, h2, h3 {
@media (prefers-color-scheme: dark) {
     color: #003366;
     .infobox {
     border-bottom: 1px solid #ccc;
        --infobox-bg: #1e1e1e;
    padding-bottom: 0.2em;
        --infobox-text: #e0e0e0;
  }
        --infobox-border: #444;
     }
    .infobox .infobox-title {
        --infobox-header-bg: #333;
        --infobox-header-text: #fff;
    }
}


  /* References formatting */
/* Adapting banners to dark and light page mode  */
  .references {
    font-size: 10pt;
    line-height: 1.2;
  }


  /* Add page numbers in footer */
/* Light mode defaults */
  @page {
:root {
    margin: 2cm;
  --banner-bg: #eeeeee;
    @bottom-center {
  --banner-fg: #000000;
      content: "Page " counter(page);
}
      font-size: 10pt;
    }
  }


  /* Optional: club logo in header */
/* Dark mode overrides */
  @page {
@media (prefers-color-scheme: dark) {
    @top-left {
  :root {
      content: url("/images/club_logo.png");
     --banner-bg: #222222;
     }
    --banner-fg: #ffffff;
    @top-right {
      content: "Historical Research Club";
      font-size: 10pt;
    }
   }
   }
}
}

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;
  }
}