MediaWiki:Common.css: Forskelle mellem versioner
Spring til navigation
Spring til søgning
Admin (diskussion | bidrag) Ingen redigeringsopsummering |
Admin (diskussion | bidrag) Ingen redigeringsopsummering |
||
| Linje 126: | Linje 126: | ||
} | } | ||
`` | `` | ||
/* ======== NØD-RESET TIL VECTOR LEGACY LAYOUT ======== */ | |||
/* 1) Sørg for at sidebaren findes og er synlig til venstre */ | |||
#mw-panel { | |||
display: block !important; | |||
visibility: visible !important; | |||
position: static !important; | |||
float: left !important; | |||
clear: left !important; | |||
width: 11em !important; /* Standardbredde i Vector legacy */ | |||
background: none !important; /* fjern evt. eksperimenter */ | |||
border: 0 !important; | |||
box-shadow: none !important; | |||
z-index: 2 !important; | |||
} | |||
/* 2) Indholdet starter til højre for sidebaren (ingen overlap) */ | |||
#content { | |||
margin: 0 !important; /* nulstil alt tidligere */ | |||
margin-left: 12.5em !important; /* sidebar 11em + ~1.5em luft */ | |||
padding: 0 !important; /* undgå at padding skubber */ | |||
position: relative !important; | |||
z-index: 1 !important; | |||
max-width: none !important; /* lad siden fylde naturligt igen */ | |||
} | |||
/* 3) Topbaser (tabs/skins) følger samme offset som indholdet */ | |||
#mw-head-base, | |||
#mw-page-base { | |||
margin: 0 !important; | |||
margin-left: 12.5em !important; | |||
} | |||
/* 4) Fjern “spøgelses”-højre kolonne */ | |||
#content + div { | |||
display: none !important; | |||
} | |||
/* 5) Nulstil eventuelle regler der gemmer portaler i sidebaren */ | |||
#mw-panel .portal, | |||
#p-Navigation, | |||
#p-Værktøjer, | |||
#p-tb { | |||
display: block !important; | |||
visibility: visible !important; | |||
opacity: 1 !important; | |||
} | |||
/* ======== SLUT PÅ NØD-RESET ======== */ | |||
Versionen fra 18. feb. 2026, 10:25
/* =========================================================
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-top: 0.4em;
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 {
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 HEADER
========================================================= */
.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 {
font-size: 2.8em;
}
.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 (ren, enkel, korrekt!)
========================================================= */
/* 1) Sidebar – ENDELIG korrekt bredde uden konflikt */
#mw-panel {
width: 14em !important; /* ca. 225px */
background: #f7f8fa;
border-right: 1px solid #dcdfe3;
padding-top: 1em;
box-shadow: 2px 0 4px rgba(0,0,0,0.04);
position: relative;
z-index: 3; /* så den aldrig forsvinder */
}
/* 2) Indhold skal starte TIL HØJRE for sidebar – kun denne regel! */
#content {
margin-left: 17em !important; /* sidebar + 3em luft */
max-width: 1100px;
padding: 1.2em 2em 2em 2em;
}
/* 3) Sikrer at tabs øverst IKKE dækkes af sidebar */
#mw-head-base,
#mw-page-base {
margin-left: 17em !important;
}
/* 4) Fjern den “falske højre kolonne” som skabte kaos */
#content + div {
display: none !important;
}
``
/* ======== NØD-RESET TIL VECTOR LEGACY LAYOUT ======== */
/* 1) Sørg for at sidebaren findes og er synlig til venstre */
#mw-panel {
display: block !important;
visibility: visible !important;
position: static !important;
float: left !important;
clear: left !important;
width: 11em !important; /* Standardbredde i Vector legacy */
background: none !important; /* fjern evt. eksperimenter */
border: 0 !important;
box-shadow: none !important;
z-index: 2 !important;
}
/* 2) Indholdet starter til højre for sidebaren (ingen overlap) */
#content {
margin: 0 !important; /* nulstil alt tidligere */
margin-left: 12.5em !important; /* sidebar 11em + ~1.5em luft */
padding: 0 !important; /* undgå at padding skubber */
position: relative !important;
z-index: 1 !important;
max-width: none !important; /* lad siden fylde naturligt igen */
}
/* 3) Topbaser (tabs/skins) følger samme offset som indholdet */
#mw-head-base,
#mw-page-base {
margin: 0 !important;
margin-left: 12.5em !important;
}
/* 4) Fjern “spøgelses”-højre kolonne */
#content + div {
display: none !important;
}
/* 5) Nulstil eventuelle regler der gemmer portaler i sidebaren */
#mw-panel .portal,
#p-Navigation,
#p-Værktøjer,
#p-tb {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
}
/* ======== SLUT PÅ NØD-RESET ======== */