MediaWiki:Common.css: Forskelle mellem versioner

Fra middelfarthistorier
Spring til navigation Spring til søgning
Ingen redigeringsopsummering
Tag: Manuel tilbagerulning
Ingen redigeringsopsummering
Linje 1: Linje 1:
/* Skjul MediaWiki's automatiske "Værktøjer" boks i sidebaren */
/* =========================================================
  Skjul MediaWiki's automatiske "Værktøjer" boks i sidebaren
  ========================================================= */
#p-tb {
#p-tb {
     display: none !important;
     display: none !important;
Linje 5: Linje 7:


/* =========================================================
/* =========================================================
   STANDARD BILLEDSSTIL – Middelfart Historier
   STANDARD BILLEDSTIL
  Gælder for alle billeder i artikler
   ========================================================= */
   ========================================================= */
/* Gør alle billeder responsive */
.mw-content-ltr img,
.mw-content-ltr img,
.mw-content-rtl img {
.mw-content-rtl img {
Linje 16: Linje 15:
     margin: 1em 0;
     margin: 1em 0;
}
}
/* Standard ramme for thumbnails */
 
.thumb {
.thumb {
     border: 1px solid #ddd;
     border: 1px solid #ddd;
Linje 24: Linje 23:
}
}


/* Styler selve billedet i thumbnail */
.thumb img {
.thumb img {
     border-radius: 2px;
     border-radius: 2px;
}
}


/* Billedtekster (captions) – mere elegante og letlæselige */
.thumb .thumbcaption {
.thumb .thumbcaption {
     font-size: 0.95em;
     font-size: 0.95em;
Linje 38: Linje 34:
}
}


/* Mere luft mellem tekst og billede i ikke-thumb billeder */
/* =========================================================
.mw-content-ltr img,
  SIDEBAR BOKSE (Navigation / Værktøjer)
.mw-content-rtl img {
  ========================================================= */
    margin: 1em 0;
#p-Navigation,
}
 
/* Justér rammer for store billeder (frameless) */
img[decoding="async"] {
    box-sizing: border-box;
 
}
 
/* Navigation – boks */
#p-Navigation {
    border: 1px solid #c8ccd1;
    background: #f8f9fa;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 2px;
}
 
/* Værktøjer – boks */
#p-Værktøjer,
#p-Værktøjer,
nav[id="p-Værktøjer"] {
nav[id="p-Værktøjer"] {
Linje 68: Linje 46:
     border-radius: 2px;
     border-radius: 2px;
}
}
/* Vis og style overskrifterne identisk i begge bokse */
 
#p-Navigation .vector-menu-heading,
#p-Navigation .vector-menu-heading,
#p-Værktøjer .vector-menu-heading,
#p-Værktøjer .vector-menu-heading,
nav[id="p-Værktøjer"] .vector-menu-heading {
nav[id="p-Værktøjer"] .vector-menu-heading {
     display: block !important;
     display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
     font-size: 1.25em !important;
     font-size: 1.25em !important;
     font-weight: bold !important;
     font-weight: bold !important;
Linje 82: Linje 57:
     padding-bottom: 4px !important;
     padding-bottom: 4px !important;
     border-bottom: 1px solid #c8ccd1 !important;
     border-bottom: 1px solid #c8ccd1 !important;
    width: 95% !important;
}
/* Sørg for at label-span arver typografien */
#p-Navigation .vector-menu-heading .vector-menu-heading-label,
#p-Værktøjer .vector-menu-heading .vector-menu-heading-label,
nav[id="p-Værktøjer"] .vector-menu-heading .vector-menu-heading-label {
    font: inherit !important;
    color: inherit !important;
}
}


/* =========================================================
  VENDSHERRED-HERO
  ========================================================= */
.vendsherred-bg {
.vendsherred-bg {
     padding: 25px;
     padding: 25px;
     color: black;
     color: black;
     min-height: 200px; /* GØR at billedet altid kan ses */
     min-height: 200px;
     background-image: url("https://middelfarthistorier.dk/images/6/61/Vends_Herred.jpg");
     background-image: url("https://middelfarthistorier.dk/images/6/61/Vends_Herred.jpg");
     background-size: cover;
     background-size: cover;
     background-position: center;
     background-position: center;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
    /* Lys overlay for at gøre teksten let at læse */
     background-color: rgba(255, 255, 255, 0.6);
     background-color: rgba(255, 255, 255, 0.6);
     background-blend-mode: lighten;
     background-blend-mode: lighten;
    font-size: 1.15em;
}
}


.vendsherred-bg h1,
.vendsherred-bg h1,
.vendsherred-bg .mw-heading {
.vendsherred-bg .mw-heading {
     font-size: 2.8em;   /* større overskrift */
     font-size: 2.8em;
}
}


.vendsherred-bg p {
.vendsherred-bg p {
     font-size: 1.15em; /* større brødtekst */
     font-size: 1.15em;
}
}


.vendsherred-bg .mw-headline {
.vendsherred-bg .mw-headline {
     font-size: 2.4em;   /* større overskrift */
     font-size: 2.4em;
     font-weight: bold;
     font-weight: bold;
}
}


.vendsherred-bg {
/* =========================================================
    font-size: 1.15em;  /* større brødtekst */
  KATEGORI BOKSE
}
  ========================================================= */
 
.category-box {
.category-box {
   background: #f5f7fa;
   background: #f5f7fa;
Linje 129: Linje 97:
   margin-bottom: 20px;
   margin-bottom: 20px;
   border-radius: 5px;
   border-radius: 5px;
}
/* Genskab standard-margin for Vector Legacy */
#content {
    margin-left: 11em !important;
}
}


/* =========================================================
/* =========================================================
   BREDERE SIDEBAR (Vector Legacy) + SMALERE INDHOLD
   STABILT VECTOR LEGACY LAYOUT
   ========================================================= */
   ========================================================= */


/* 1) Øg sidebar-bredden en smule (fra ca. 10.5–11em til 12.5em) */
/* 1) Bredere sidebar */
#mw-panel {
    width: 12.5em !important;  /* var ca. 11em */
}
 
/* 2) Flyt indholdet tilsvarende, så der ikke opstår overlap */
#content {
    margin-left: 13.8em !important;  /* sidebarbredde + ca. 1.3em luft */
}
 
/* 3) (Valgfrit) Giv lidt mere luft inde i selve link-listen i sidebaren */
#mw-panel .portal .body ul {
    padding-right: 0.4em;    /* så tekst ikke “rammer” kanten */
}
#mw-panel .portal .body li {
    margin: 0.2em 0;        /* lidt vertikal luft mellem links */
}
 
/* 4) Responsive finjusteringer:
      På smallere skærme skruer vi en anelse ned igen, så indholdet
      ikke bliver for smalt. Justér breakpoints efter behov. */
@media (max-width: 1200px) {
    #mw-panel { width: 12em !important; }
    #content  { margin-left: 13.2em !important; }
}
@media (max-width: 980px) {
    #mw-panel { width: 11.5em !important; }
    #content  { margin-left: 12.7em !important; }
}
 
/* =========================================================
  KOLDINGWIKI-INSPIREt SIDEBAR LAYOUT (Vector Legacy)
  ========================================================= */
 
/* 1) Bredere sidebar-kolonne */
#mw-panel {
    width: 15em !important;      /* ca. 240 px afhængigt af fontstørrelse */
    padding-right: 0.8em;
}
 
/* 2) Flyt indholdet tilsvarende længere mod højre */
#content {
    margin-left: 17.5em !important;  /* sidebarbredde + komfortluft */
    max-width: 1150px;               
}
 
/* 3) Skab en lys, “kasseagtig” sidebar-baggrund ala KoldingWiki */
#mw-panel {
#mw-panel {
    width: 14em !important;    /* ~ 225 px */
     background: #f7f8fa;
     background: #f7f8fa;
     border-right: 1px solid #dcdfe3;
     border-right: 1px solid #dcdfe3;
     padding-top: 1em;
     padding-top: 1em;
    box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}
}


/* 4) Gør menuoverskrifterne tydeligere */
/* 2) Indhold korrekt forskudt */
#mw-panel .portal .vector-menu-heading {
    font-size: 1.25em !important;
    font-weight: bold !important;
    color: #1a2c43 !important;
    margin-bottom: 0.5em !important;
}
 
/* 5) Links i siden: mere luft og moderne farve */
#mw-panel .portal .body li {
    margin: 0.45em 0;
}
 
#mw-panel .portal .body a {
    font-size: 1em;
    color: #164c8a !important;
    text-decoration: none;
}
 
#mw-panel .portal .body a:hover {
    text-decoration: underline;
}
 
/* 6) Giv selve indholdsfladen lidt luft og modernitet */
#content h1, #content h2, #content h3 {
    padding-top: 0.3em;
}
 
#content {
#content {
    margin-left: 17em !important;  /* sidebar + 3em luft */
    max-width: 1100px;
     padding: 1.2em 2em 2em 2em;
     padding: 1.2em 2em 2em 2em;
}
}


/* 7) (Valgfrit men anbefalet) Let skygge langs sidebar-kanten */
/* 3) FJERN højre spøgelseskolonne */
#mw-panel {
#content + div {
     box-shadow: 2px 0 4px rgba(0,0,0,0.04);
     display: none !important;
}
}


/* =========================================================
/* 4) Tabs øverst må ikke overlappe */
  Stabil bredere sidebar til Vector Legacy – uden ekstra kolonne
#mw-head-base,
  ========================================================= */
#mw-page-base {
 
/* 1) Bredere sidebar */
#mw-panel {
    width: 15em !important;      /* ~ 240 px */
}
 
/* 2) Flyt indholdet tilsvarende */
#content {
    margin-left: 17em !important;  /* sidebar + 2em luft */
    max-width: 1100px;              /* læsevenlig bredde (kan justeres) */
}
 
/* 3) Sikrer at højre kolonne ikke dukker op */
#mw-page-base,
#mw-head-base {
     margin-left: 17em !important;
     margin-left: 17em !important;
}
/* =========================================================
  STABIL SYMMETRISK LAYOUT JUSTERING
  - Bredere venstre sidebar
  - Fast højre kolonne
  - Indhold centreret mellem dem
  ========================================================= */
/* 1) VENSTRE SIDEBAR – giv den lidt mere plads */
#mw-panel {
    width: 14em !important;    /* lidt bredere end standard (~225 px) */
}
/* 2) HØJRE SIDEBAR / TOM KOLONNE – giv den en fast bredde */
#mw-navigation + #mw-head-base + #content + div,
#mw-panel + div {
    width: 14em !important;
    float: right !important;
}
/* 3) INDHOLDET – centrér mellem venstre og højre kolonne */
#content {
    margin-left: 16em !important;  /* sidebarbredde + 2em luft */
    margin-right: 16em !important;  /* højre kolonne + 2em luft */
}
/* ---------------------------------------------------------
  1) Flyt indholdet LIDT mere til højre (retter overlap)
  --------------------------------------------------------- */
#content {
    margin-left: 18em !important;  /* var 16 — nu lidt mere */
}
/* ---------------------------------------------------------
  2) Giv højre kolonne en FAST bredde
  --------------------------------------------------------- */
#content + div {
    width: 18em !important;        /* matcher venstre + luft */
    float: right !important;
}
}

Versionen fra 18. feb. 2026, 10:16

/* =========================================================
   Skjul MediaWiki's automatiske "Værktøjer" boks i sidebaren
   ========================================================= */
#p-tb {
    display: none !important;
}

/* =========================================================
   STANDARD BILLEDSTIL
   ========================================================= */
.mw-content-ltr img,
.mw-content-rtl img {
    max-width: 100% !important;
    height: auto !important;
    margin: 1em 0;
}

.thumb {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 6px;
    margin: 1.5em 0;
}

.thumb img {
    border-radius: 2px;
}

.thumb .thumbcaption {
    font-size: 0.95em;
    color: #555;
    padding: 0.4em 0 0;
    line-height: 1.45em;
}

/* =========================================================
   SIDEBAR BOKSE (Navigation / Værktøjer)
   ========================================================= */
#p-Navigation,
#p-Værktøjer,
nav[id="p-Værktøjer"] {
    border: 1px solid #c8ccd1;
    background: #f8f9fa;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 2px;
}

#p-Navigation .vector-menu-heading,
#p-Værktøjer .vector-menu-heading,
nav[id="p-Værktøjer"] .vector-menu-heading {
    display: block !important;
    font-size: 1.25em !important;
    font-weight: bold !important;
    color: #000 !important;
    margin: 0 0 8px 0 !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #c8ccd1 !important;
}

/* =========================================================
   VENDSHERRED-HERO
   ========================================================= */
.vendsherred-bg {
    padding: 25px;
    color: black;
    min-height: 200px;
    background-image: url("https://middelfarthistorier.dk/images/6/61/Vends_Herred.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.6);
    background-blend-mode: lighten;
    font-size: 1.15em;
}

.vendsherred-bg h1,
.vendsherred-bg .mw-heading {
    font-size: 2.8em;
}

.vendsherred-bg p {
    font-size: 1.15em;
}

.vendsherred-bg .mw-headline {
    font-size: 2.4em;
    font-weight: bold;
}

/* =========================================================
   KATEGORI BOKSE
   ========================================================= */
.category-box {
  background: #f5f7fa;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* =========================================================
   STABILT VECTOR LEGACY LAYOUT
   ========================================================= */

/* 1) Bredere sidebar */
#mw-panel {
    width: 14em !important;     /* ~ 225 px */
    background: #f7f8fa;
    border-right: 1px solid #dcdfe3;
    padding-top: 1em;
    box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}

/* 2) Indhold korrekt forskudt */
#content {
    margin-left: 17em !important;   /* sidebar + 3em luft */
    max-width: 1100px;
    padding: 1.2em 2em 2em 2em;
}

/* 3) FJERN højre spøgelseskolonne */
#content + div {
    display: none !important;
}

/* 4) Tabs øverst må ikke overlappe */
#mw-head-base,
#mw-page-base {
    margin-left: 17em !important;
}