MediaWiki:Common.css: Forskelle mellem versioner

Fra middelfarthistorier
Spring til navigation Spring til søgning
Ingen redigeringsopsummering
Ingen redigeringsopsummering
 
(55 mellemliggende versioner af den samme bruger vises ikke)
Linje 1: Linje 1:
/* Skjul MediaWiki's automatiske "Værktøjer" boks i sidebaren */
#p-tb {
    display: none !important;
}
/* =========================================================
/* =========================================================
   STANDARD BILLEDSSTIL – Middelfart Historier
   Standardbilledstil (beholdt pænt og ufarligt)
  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 {
     max-width: 100% !important;
     max-width: 100% !important;
     height: auto !important;
     height: auto !important;
    margin: 1em 0;
}
}


/* Standard ramme for thumbnails */
.thumb {
.thumb {
     border: 1px solid #ddd;
     border: 1px solid #ddd;
Linje 24: Linje 17:
}
}


/* Gør venstre sidebar bredere */
#mw-panel {
    width: 220px !important;  /* Standard er ca. 160px */
}
/* Flyt indholdet til højre så det ikke overlapper */
#content, #mw-head-base, #mw-page-base {
    margin-left: 220px !important;
}
/* Gør højre kolonne smallere (Vector legacy) */
#mw-panel .portal {
    width: 200px !important;
}
/* 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;
     color: #555;
     color: #555;
     padding: 0.4em 0 0;
     padding-top: 0.4em;
     line-height: 1.45em;
     line-height: 1.45em;
}
}


/* Mere luft mellem tekst og billede i ikke-thumb billeder */
/* =========================================================
.mw-content-ltr img,
  Sidebar-bokse (Navigation / Værktøjer)
.mw-content-rtl img {
  – disse var ikke problemet, så de er bevaret
    margin: 1em 0;
  ========================================================= */
}


/* Justér rammer for store billeder (frameless) */
#p-Navigation,
img[decoding="async"] {
#p-Værktøjer {
    box-sizing: border-box;
 
}
 
/* Navigation – boks */
#p-Navigation {
     border: 1px solid #c8ccd1;
     border: 1px solid #c8ccd1;
     background: #f8f9fa;
     background: #f8f9fa;
Linje 73: Linje 42:
}
}


/* Værktøjer – boks */
#p-Værktøjer,
nav[id="p-Værktøjer"] {
    border: 1px solid #c8ccd1;
    background: #f8f9fa;
    padding: 14px;
    margin-bottom: 15px;
    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 {
     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;
    color: #000 !important;
     margin-bottom: 8px !important;
     margin: 0 0 8px 0 !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,
  Vendsherred-header (beholdt)
#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-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;
}
}


.vendsherred-bg h1,
/* =========================================================
.vendsherred-bg .mw-heading {
  Kategori-bokse (beholdt)
    font-size: 2.8em;  /* større overskrift */
*/
}
 
 
/* ====== BREDERE SIDEBAR: stabil Vector Legacy ændring ====== */


.vendsherred-bg p {
/* Venstre sidebar bredde */
     font-size: 1.15em; /* større brødtekst */
#mw-panel {
     width: 15em !important;     /* ca. 240 px */
}
}


.vendsherred-bg .mw-headline {
/* Indhold forskydes tilsvarende */
     font-size: 2.4em;   /* større overskrift */
#content {
    font-weight: bold;
     margin-left: 17em !important; /* sidebar + 2em luft */
}
}


.vendsherred-bg {
/* Topfaner (Forside/Diskussion) flyttes med */
     font-size: 1.15em; /* større brødtekst */
#mw-head-base,
#mw-page-base {
     margin-left: 17em !important;
}
}


.category-box {
/* Skjul KUN MediaWikis toolbox i sidebaren */
  background: #f5f7fa;
#p-tb {
  padding: 15px;
    display: none !important;
  margin-bottom: 20px;
  border-radius: 5px;
}
}

Nuværende version fra 23. feb. 2026, 10:10

/* =========================================================
   Standardbilledstil (beholdt pænt og ufarligt)
   ========================================================= */

.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-top: 0.4em;
    line-height: 1.45em;
}

/* =========================================================
   Sidebar-bokse (Navigation / Værktøjer)
   – disse var ikke problemet, så de er bevaret
   ========================================================= */

#p-Navigation,
#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 {
    display: block !important;
    font-size: 1.25em !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #c8ccd1 !important;
}

/* =========================================================
   Vendsherred-header (beholdt)
   ========================================================= */

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

/* =========================================================
   Kategori-bokse (beholdt)
*/


/* ====== BREDERE SIDEBAR: stabil Vector Legacy ændring ====== */

/* Venstre sidebar bredde */
#mw-panel {
    width: 15em !important;      /* ca. 240 px */
}

/* Indhold forskydes tilsvarende */
#content {
    margin-left: 17em !important;  /* sidebar + 2em luft */
}

/* Topfaner (Forside/Diskussion) flyttes med */
#mw-head-base,
#mw-page-base {
    margin-left: 17em !important;
}

/* Skjul KUN MediaWikis toolbox i sidebaren */
#p-tb {
    display: none !important;
}