MediaWiki:Common.css: Unterschied zwischen den Versionen
Erscheinungsbild
L (Diskussion | Beiträge) Werbung: Hochkant-Banner nur noch in der linken Seitenleiste, nicht mehr über oder unter dem Text |
L (Diskussion | Beiträge) Block „Impressum“ (Klassen imp-*) für die Neugestaltung von ADHSpedia:Impressum angehängt |
||
| (9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 172: | Zeile 172: | ||
Gilt für Listen in <div class="spaltenliste"> … </div> (z. B. „Siehe auch“) | Gilt für Listen in <div class="spaltenliste"> … </div> (z. B. „Siehe auch“) | ||
und für die Listen unter „Weitere interessante Artikel“ (div.references-medium). | und für die Listen unter „Weitere interessante Artikel“ (div.references-medium). | ||
Alle Spalten | Die Einträge laufen spaltenweise von oben nach unten (CSS-Spalten statt Raster). | ||
Dadurch bleibt unter einem kurzen Eintrag keine Lücke, wenn der Eintrag daneben | |||
Ab 4 Einträgen | zweizeilig ist, und kein Eintrag wird auf zwei Spalten verteilt. | ||
Alle Spalten sind 240px breit und beginnen links, dadurch stehen die Spalten in | |||
allen Abschnitten exakt untereinander. Wie viele Spalten passen, misst eine | |||
Container-Abfrage am tatsächlich freien Platz (also neben dem Bild). | |||
Ab 4 Einträgen bis zu drei Spalten (bei genau 4 Einträgen zwei Spalten); | |||
Listen mit bis zu 3 Einträgen und Listen auf schmalen Bildschirmen bleiben einspaltig. */ | |||
.references-medium:has(> ul, > #RandomPages > ul) { | .references-medium:has(> ul, > #RandomPages > ul) { | ||
-moz-column-count: auto !important; | -moz-column-count: auto !important; | ||
column-count: auto !important; | column-count: auto !important; | ||
} | } | ||
.spaltenliste | .spaltenliste:has(> ul > li:nth-child(4)), | ||
.references-medium | .references-medium:has(> ul > li:nth-child(4), > #RandomPages > ul > li:nth-child(4)) { | ||
container: linkliste / inline-size; | |||
} | } | ||
.spaltenliste > ul:has(> li | .spaltenliste > ul > li, | ||
.references-medium > ul:has(> li | .references-medium > ul > li, | ||
.references-medium > #RandomPages > ul:has(> li | .references-medium > #RandomPages > ul > li { | ||
break-inside: avoid; | |||
} | |||
@container linkliste (min-width: 545px) { | |||
.spaltenliste > ul, | |||
.references-medium > ul, | |||
.references-medium > #RandomPages > ul { | |||
columns: 2; | |||
column-gap: 28px; | |||
width: 509px; /* 2 × 240px + 28px */ | |||
} | |||
} | |||
@container linkliste (min-width: 820px) { | |||
.spaltenliste > ul:has(> li:nth-child(5)), | |||
.references-medium > ul:has(> li:nth-child(5)), | |||
.references-medium > #RandomPages > ul:has(> li:nth-child(5)) { | |||
columns: 3; | |||
width: 777px; /* 3 × 240px + 2 × 28px */ | |||
} | |||
} | } | ||
| Zeile 260: | Zeile 276: | ||
.client-js.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-clientpref-0 .vector-column-start { | .client-js.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-clientpref-0 .vector-column-start { | ||
display: none; | display: none; | ||
} | |||
/* ===== Hauptseite: Seitentitel wie auf der Wikipedia-Hauptseite ausblenden ===== */ | |||
/* Der Titel „Hauptseite“ bleibt als h1 für Screenreader und Suchmaschinen im Quelltext. */ | |||
.page-Hauptseite.action-view .vector-page-titlebar .firstHeading { | |||
position: absolute; | |||
width: 1px; | |||
height: 1px; | |||
margin: -1px; | |||
overflow: hidden; | |||
clip-path: inset(50%); | |||
white-space: nowrap; | |||
} | |||
.page-Hauptseite.action-view .vector-page-titlebar::after { content: none; } | |||
/* ===== Hauptseite, Fassung „Portal“ (November 2026, Klassen hpa-*) ===== */ | |||
.hpa { | |||
--hp-serif: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif; | |||
--hp-marine: #1e5088; | |||
--hp-linie: var(--border-color-subtle, #c8ccd1); | |||
--hp-linie-zart: var(--background-color-neutral, #eaecf0); | |||
--hp-flaeche: var(--background-color-neutral-subtle, #f8f9fa); | |||
--hp-flaeche-aktiv: var(--background-color-progressive-subtle, #f1f4fd); | |||
--hp-neben: var(--color-subtle, #54595d); | |||
container: hpa / inline-size; | |||
display: flex; | |||
flex-direction: column; | |||
gap: 20px; | |||
margin-top: 4px; | |||
} | |||
.hpa ul { list-style: none; margin: 0; padding: 0; } | |||
.hpa li { margin: 0; } | |||
.hpa p { margin: 0; } | |||
.hpa .mw-heading { margin: 0; padding: 0; border: 0; } | |||
.hpa h2, .hpa h3 { margin: 0; padding: 0; border: 0; overflow-wrap: break-word; hyphens: auto; } | |||
.hpa a:focus-visible, .hpa-toggle:focus-visible { outline: 2px solid var(--color-progressive, #36c); outline-offset: 1px; } | |||
/* Kopf */ | |||
.hpa-kopf { | |||
padding: 20px 16px; | |||
border: 1px solid var(--hp-linie); | |||
border-top: 3px solid var(--hp-marine); | |||
border-radius: 2px; | |||
background: var(--hp-flaeche); | |||
} | |||
.hpa-satz { | |||
max-width: 23em; | |||
font-family: var(--hp-serif); | |||
font-size: clamp(1.45em, 1.1em + 1.6cqi, 1.85em); | |||
line-height: 1.25; | |||
color: var(--color-emphasized, #101418); | |||
text-wrap: balance; | |||
} | |||
.hpa .hpa-lead { max-width: 34em; margin-top: 10px; line-height: 1.6; } | |||
.hpa-kopf-fakten { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hp-linie); } | |||
.hpa-zahl { color: var(--hp-neben); } | |||
.hpa-zahl-ziffer { margin-right: 2px; font-family: var(--hp-serif); font-size: 2.3em; line-height: 1; color: var(--color-emphasized, #101418); } | |||
.hpa-meilenstein { margin: 10px 0 12px; padding: 12px 0 0; border-top: 1px solid var(--hp-linie); } | |||
.hpa-kopf-fakten ul { display: flex; flex-wrap: wrap; gap: 0 20px; padding-top: 5px; border-top: 1px solid var(--hp-linie); } | |||
.hpa-kopf-fakten li { padding: 2px 0; } | |||
.hpa-kopf-fakten li a { display: inline-block; padding: 3px 0; } | |||
/* Raster: schmal untereinander, breit Hauptspalte und Randspalte */ | |||
.hpa-reihe { display: flex; flex-direction: column; gap: 20px; } | |||
.hpa-haupt, .hpa-rand { display: contents; } | |||
.hpa-fragen { order: 1; } | |||
.hpa-einstieg { order: 2; } | |||
.hpa-neu { order: 3; } | |||
.hpa-genetik { order: 4; } | |||
.hpa-personen { order: 5; } | |||
/* Kasten */ | |||
.hpa-box { | |||
container: hpabox / inline-size; | |||
display: flex; | |||
flex-direction: column; | |||
border: 1px solid var(--hp-linie); | |||
border-radius: 2px; | |||
background: var(--background-color-base, #fff); | |||
} | |||
.hpa-box > .mw-heading2 { padding: 9px 16px 8px; border-bottom: 1px solid var(--hp-linie); background: var(--hp-flaeche); font-size: 1.4em; line-height: 1.3; } | |||
/* Fragen */ | |||
.hpa-fragen > ul { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; } | |||
.hpa-fragen li { margin: -1px 0 0 -1px; border-top: 1px solid var(--hp-linie-zart); border-left: 1px solid var(--hp-linie-zart); } | |||
.hpa-fragen a { display: block; height: 100%; box-sizing: border-box; padding: 12px 16px 13px; } | |||
.hpa-fragen a:hover, .hpa-fragen a:focus-visible { background: var(--hp-flaeche-aktiv); text-decoration: none; } | |||
.hpa-fragen a:hover .hpa-frage { text-decoration: underline; } | |||
.hpa-fragen a:focus-visible { outline-offset: -2px; } | |||
.hpa-frage { display: block; font-size: 1.15em; line-height: 1.35; } | |||
.hpa-ziel { display: block; margin-top: 2px; font-size: 0.9em; color: var(--hp-neben); } | |||
/* Artikel zum Einstieg. Die Zahlen („15 Artikel“, „7 weitere Artikel“) zählt das CSS selbst. */ | |||
.hpa-gruppen { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; } | |||
.hpa-gruppe { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr); | |||
align-content: start; | |||
margin: -1px 0 0 -1px; | |||
padding: 14px 16px 8px; | |||
border-top: 1px solid var(--hp-linie-zart); | |||
border-left: 1px solid var(--hp-linie-zart); | |||
counter-reset: hpa-alle hpa-rest; | |||
} | |||
.hpa-gruppe > .mw-heading3 { grid-row: 1; font-size: 1em; line-height: 1.4; } | |||
.hpa-gruppe::after { grid-row: 2; content: counter(hpa-alle) " Artikel"; margin: 2px 0 8px; font-size: 0.9em; color: var(--hp-neben); } | |||
.hpa-gruppe > .hpa-liste { grid-row: 3; } | |||
/* Der aufklappbare Rest: Liste und Schalter liegen im selben Raster wie der Anfang der Gruppe */ | |||
.hpa-rest { display: contents; } | |||
.hpa-rest > .hpa-liste { grid-row: 4; } | |||
.hpa-rest > .hpa-toggle { grid-row: 5; } | |||
.hpa-gruppe li { counter-increment: hpa-alle; } | |||
.hpa-rest li { counter-increment: hpa-alle hpa-rest; } | |||
.hpa-rest .hpa-auf::before { content: counter(hpa-rest) " "; } | |||
/* Die eingeklappte Liste bleibt im Zählfluss: unsichtbar und ohne Höhe statt display:none */ | |||
.client-js .hpa-rest.mw-collapsed > .hpa-liste { display: block !important; visibility: hidden; height: 0; overflow: hidden; } | |||
.client-nojs .hpa-rest > .hpa-toggle { display: none; } | |||
.hpa-liste a { display: block; padding: 4px 0; line-height: 1.4; overflow-wrap: break-word; hyphens: auto; } | |||
.hpa-gruppe .hpa-liste ul { column-count: 2; column-gap: 16px; } | |||
.hpa-gruppe .hpa-liste li { break-inside: avoid; } | |||
.hpa-rest > .hpa-toggle { | |||
float: none; | |||
justify-self: start; | |||
margin: 4px 0 0 -8px; | |||
padding: 6px 8px; | |||
border-radius: 2px; | |||
color: var(--color-progressive, #36c); | |||
font-weight: bold; | |||
cursor: pointer; | |||
} | |||
.hpa-toggle:hover { background: var(--hp-flaeche-aktiv); color: var(--color-progressive--hover, #3056a9); } | |||
.hpa-toggle:active { color: var(--color-progressive--active, #233566); } | |||
.hpa-rest.mw-collapsed > .hpa-toggle .hpa-zu, | |||
.hpa-rest:not(.mw-collapsed) > .hpa-toggle .hpa-auf { display: none; } | |||
/* Offene Liste, aufklappbarer Rest und Schalter stehen gemeinsam im Block „hpa-inhalt“, also in einer Zelle des Rasters. | |||
So schließen aufgeklappte Einträge direkt an die offenen an, auch wenn die offene Liste einer Nachbarspalte höher ist. | |||
Zugeklappt stehen alle Schalter unten auf einer Linie. Ist eine Gruppe aufgeklappt, folgt jeder Schalter direkt seiner Liste. | |||
Die Regeln für die Zeilen 3 bis 5 oben gelten nur noch für Gruppen ohne diesen Block. */ | |||
.hpa-gruppe > .hpa-inhalt { grid-row: 3; display: flex; flex-direction: column; min-width: 0; } | |||
.hpa-inhalt .hpa-rest > .hpa-liste { padding-bottom: 4px; } | |||
.hpa-inhalt .hpa-rest > .hpa-toggle { align-self: flex-start; margin-top: auto; } | |||
.hpa-gruppen:has(.hpa-rest:not(.mw-collapsed)) .hpa-inhalt .hpa-rest > .hpa-toggle { margin-top: 0; } | |||
/* Neuigkeiten: fester Hinweis, darunter automatisch die neuesten Artikel (eingebundene Spezialseite „Neue Seiten“). | |||
Von jedem Eintrag bleibt nur der Titel sichtbar, Uhrzeit, Versionen, Größe, Benutzer und Kommentar sind ausgeblendet. */ | |||
.hpa-hinweis { padding: 12px 16px 13px; border-bottom: 1px solid var(--hp-linie-zart); line-height: 1.5; } | |||
.hpa-neu-auto h4 { margin: 0; padding: 12px 16px 6px; font-size: 0.9em; font-weight: normal; line-height: 1.4; color: var(--hp-neben); } | |||
.hpa-neu-auto h4::before { content: "Neu am "; } | |||
.hpa-neu-auto ul { border-top: 1px solid var(--hp-linie-zart); } | |||
.hpa-neu-auto li { border-bottom: 1px solid var(--hp-linie-zart); font-size: 0; } | |||
.hpa-neu-auto li > :not(bdi), .hpa-neu-auto .mw-newpages-time { display: none; } | |||
.hpa-neu-auto li > bdi { display: block; font-size: var(--font-size-medium, 0.875rem); } | |||
.hpa-neu-auto .mw-newpages-pagename { display: block; padding: 7px 16px; line-height: 1.4; overflow-wrap: break-word; hyphens: auto; } | |||
.hpa-neu-auto .mw-newpages-pagename:hover, .hpa-neu-auto .mw-newpages-pagename:focus-visible { background: var(--hp-flaeche-aktiv); } | |||
.hpa-neu-auto .mw-newpages-pagename:focus-visible { outline-offset: -2px; } | |||
.hpa-neu-auto p { padding: 10px 16px; } | |||
/* Darunter die feste Liste früherer Einträge (aufklappbar) und der Link zur vollständigen Liste. | |||
Der Zähler beginnt am Block selbst: Der Kasten ist ein Container (container-type) und kapselt Zähler ein. */ | |||
.hpa-neu .hpa-rest { display: block; counter-reset: hpa-alle hpa-rest; } | |||
.hpa-neu-kopf { padding: 12px 16px 6px; border-bottom: 1px solid var(--hp-linie-zart); font-size: 0.9em; line-height: 1.4; color: var(--hp-neben); } | |||
.hpa-neu .hpa-rest li { border-bottom: 1px solid var(--hp-linie-zart); } | |||
.hpa-neu .hpa-rest .hpa-liste a { padding: 7px 16px; } | |||
.hpa-neu .hpa-rest .hpa-liste a:hover, .hpa-neu .hpa-rest .hpa-liste a:focus-visible { background: var(--hp-flaeche-aktiv); } | |||
.hpa-neu .hpa-rest .hpa-liste a:focus-visible { outline-offset: -2px; } | |||
.hpa-neu .hpa-rest > .hpa-toggle { display: inline-block; margin: 4px 8px; } | |||
.hpa-neu > .hpa-mehr { padding: 6px 16px 8px; border-top: 1px solid var(--hp-linie-zart); } | |||
.hpa-neu > .hpa-mehr a { display: inline-block; padding: 4px 0; } | |||
/* Molekulargenetik */ | |||
.hpa-genfrage { padding: 11px 16px 0; font-size: 1.15em; line-height: 1.35; } | |||
.hpa-genfrage a { display: inline-block; padding: 3px 0; } | |||
.hpa-sub { padding: 0 16px; font-size: 0.9em; color: var(--hp-neben); } | |||
.hpa-sub a { display: inline-block; padding: 3px 0; } | |||
.hpa-gene { display: block; margin: 14px 16px 10px; border-collapse: collapse; } | |||
.hpa-gene caption, .hpa-gene tbody, .hpa-gene tr, .hpa-gene th, .hpa-gene td { display: block; text-align: left; } | |||
.hpa-gene caption { padding-bottom: 6px; font-weight: bold; } | |||
.hpa-gene tr { padding: 7px 0 6px; border-top: 1px solid var(--hp-linie-zart); } | |||
.hpa-gene th { font-size: 0.9em; font-weight: normal; color: var(--hp-neben); } | |||
.hpa-gene td a { display: inline-block; margin-right: 14px; padding: 1px 0; font-style: italic; } | |||
/* Menschen: eine durchgehende Liste in Spalten. Die hinteren Namen stehen am Ende derselben Liste im Block „hpa-weitere“. | |||
Zugeklappt ist der Block unsichtbar und ohne Höhe, so zählt der Schalter die verborgenen Namen selbst. | |||
Aufgeklappt laufen die Namen in denselben Spalten weiter, ohne Lücke und ohne neuen Spaltenanfang. */ | |||
.hpa-namensliste { padding: 12px 16px 14px; column-count: 2; column-gap: 20px; } | |||
.hpa-namensliste li { break-inside: avoid; } | |||
.hpa-namensliste a { display: block; padding: 3px 0; overflow-wrap: break-word; hyphens: auto; } | |||
.hpa-personen .hpa-rest { display: block; counter-reset: hpa-alle hpa-rest; } | |||
.hpa-personen .hpa-namensliste li { counter-increment: none; } | |||
.hpa-personen .hpa-namensliste .hpa-weitere li { counter-increment: hpa-rest; } | |||
.client-js .hpa-personen .hpa-rest.mw-collapsed > .hpa-namensliste { display: block !important; } | |||
.client-js .hpa-personen .hpa-rest.mw-collapsed .hpa-weitere { visibility: hidden; height: 0; overflow: hidden; } | |||
.hpa-personen .hpa-rest > .hpa-toggle { display: inline-block; margin: -6px 8px 10px; } | |||
/* Einzelnachweis */ | |||
.hpa-quellen { font-size: 0.8em; } | |||
.hpa-quellen .references { margin: 0 0 0 2em; } | |||
/* Breiten: richten sich nach dem verfügbaren Platz, nicht nach dem Fenster */ | |||
@container hpabox (min-width: 420px) { | |||
.hpa-gruppen { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |||
.hpa-gruppe { grid-template-rows: subgrid; grid-row: span 5; } | |||
.hpa-gruppe .hpa-liste ul { column-count: 1; } | |||
.hpa-namensliste { column-count: auto; column-width: 12.5em; column-gap: 24px; } | |||
.hpa-gene { display: table; width: calc(100% - 32px); } | |||
.hpa-gene caption { display: table-caption; } | |||
.hpa-gene tbody { display: table-row-group; } | |||
.hpa-gene tr { display: table-row; padding: 0; border: 0; } | |||
.hpa-gene th, .hpa-gene td { display: table-cell; padding: 7px 0; border-top: 1px solid var(--hp-linie-zart); vertical-align: top; } | |||
.hpa-gene th { width: 1%; padding-right: 20px; font-size: 1em; white-space: nowrap; } | |||
} | |||
@container hpabox (min-width: 520px) { | |||
.hpa-fragen > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |||
} | |||
@container hpabox (min-width: 620px) { | |||
.hpa-gruppen { grid-template-columns: repeat(4, minmax(0, 1fr)); } | |||
.hpa-gruppe { padding-left: 14px; padding-right: 12px; } | |||
} | |||
@container hpa (min-width: 700px) { | |||
.hpa-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 35%); column-gap: 36px; padding: 24px 28px 22px; } | |||
.hpa .hpa-lead { font-size: 1.07em; } | |||
.hpa-kopf-fakten { margin-top: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--hp-linie); } | |||
} | |||
/* Zwei Spalten erst, wenn die Hauptspalte die vier Themengruppen nebeneinander fasst (622 px), sonst bliebe im Kasten „Neuigkeiten“ viel Leerraum */ | |||
@container hpa (min-width: 922px) { | |||
.hpa-reihe { display: grid; grid-template-columns: minmax(622px, 2fr) minmax(280px, 1fr); } | |||
.hpa-haupt, .hpa-rand { display: flex; flex-direction: column; gap: 20px; min-width: 0; } | |||
.hpa-neu, .hpa-personen { flex: 1 1 auto; } | |||
} | |||
/* Fingerbedienung: größere Trefferflächen */ | |||
@media (pointer: coarse) { | |||
.hpa-liste a, .hpa-neu-auto .mw-newpages-pagename, .hpa-neu .hpa-rest .hpa-liste a { padding-top: 8px; padding-bottom: 8px; } | |||
.hpa-neu > .hpa-mehr a { padding: 10px 0; } | |||
.hpa-namensliste a { padding: 8px 0; } | |||
.hpa-rest > .hpa-toggle { padding-top: 11px; padding-bottom: 11px; } | |||
.hpa-gene td a { padding: 8px 0; } | |||
.hpa-kopf-fakten li { padding: 0; } | |||
.hpa-kopf-fakten li a { padding: 10px 0; } | |||
} | |||
/* ===== ADHS-Ausweis-Banner: mittig über dem Inhalt ===== | |||
Vector 2022 zentriert die Sitenotice über der ganzen Seitenbreite. Steht neben dem Inhalt nur rechts eine Spalte | |||
(Besucher auf der Hauptseite und auf Seiten ohne Inhaltsverzeichnis: „Erscheinungsbild“), liegt der Inhalt weiter | |||
links als die Seitenmitte und der Banner wirkte nach rechts versetzt. Die Regel rückt den Banner um die halbe | |||
Spaltenbreite mit: Spalte 12.25rem + 24px Abstand, ab 1680px Fensterbreite 15.5rem + 24px. | |||
480px und 500px sind die halbe Höchstbreite des Banners aus /assets/adhs-banner.css (960px, ab 1200px 1000px | |||
mit 24px unsichtbarem Seitenrand). Größe und Aussehen des Banners bleiben unverändert. Ist der Inhalt schmaler | |||
als der Banner (Fenster unter 1280px), schließt der Banner links bündig mit dem Inhalt ab. */ | |||
@media screen and (min-width: 1120px) { | |||
#siteNotice { --banner-halb: 480px; --banner-rand: 0px; --banner-spalte: calc(6.125rem + 12px); } | |||
html.vector-feature-main-menu-pinned-disabled:is(.vector-toc-not-available, .vector-feature-toc-pinned-clientpref-0):is(.vector-feature-page-tools-pinned-enabled, .vector-feature-appearance-pinned-clientpref-1) #siteNotice .adhs-banner { | |||
margin-left: max(calc(0px - var(--banner-rand)), calc(50% - var(--banner-halb) - var(--banner-spalte))); | |||
margin-right: auto; | |||
} | |||
} | |||
@media screen and (min-width: 1200px) { | |||
#siteNotice { --banner-halb: 500px; --banner-rand: 24px; } | |||
} | |||
@media screen and (min-width: 1680px) { | |||
#siteNotice { --banner-spalte: calc(7.75rem + 12px); } | |||
} | |||
/* ===== Seitenende: kein leerer Platz unter dem Fußbereich ===== | |||
Unter dem Fußbereich steht der Querbanner (AdSense, responsiv) in einem div mit | |||
margin-top: 30px direkt im body. AdSense legt dafür sofort einen Platzhalter mit fester | |||
Höhe an (div#aswift_…_host, am Desktop 1200 × 280 px) und lädt die Anzeige erst danach | |||
in einen iframe. Kam keine Anzeige, blieb die Fläche leer. Zusammen mit den 82 px | |||
Innenabstand, die Vector 2022 unter den Fußbereich setzt, waren unten fast 400 px frei. | |||
Jetzt nimmt eine Anzeigenfläche nur Platz ein, wenn der iframe da ist. Bis dahin hat sie | |||
die Höhe 0, behält aber ihre Breite, damit AdSense die Anzeige nachladen kann. Geprüft | |||
wird erst, wenn AdSense den Platzhalter angelegt hat, die Wahl der Anzeigengröße bleibt | |||
also unberührt. Meldet AdSense „unfilled“, verschwindet die Fläche ganz (Regel nach | |||
Google). Dasselbe gilt für den Hochkant-Banner in der linken Spalte. */ | |||
.mw-footer-container { | |||
padding-bottom: 24px; | |||
} | |||
ins.adsbygoogle:has(> div[id^="aswift_"]):not(:has(iframe)) { | |||
height: 0 !important; | |||
overflow: hidden; | |||
} | |||
ins.adsbygoogle[data-ad-status="unfilled"] { | |||
display: none !important; | |||
} | |||
body > div:not([class]):has(> ins.adsbygoogle > div[id^="aswift_"]):not(:has(iframe)), | |||
body > div:not([class]):has(> ins.adsbygoogle[data-ad-status="unfilled"]), | |||
.vector-column-start > div:not([class]):has(> ins.adsbygoogle > div[id^="aswift_"]):not(:has(iframe)), | |||
.vector-column-start > div:not([class]):has(> ins.adsbygoogle[data-ad-status="unfilled"]) { | |||
margin-top: 0 !important; | |||
margin-bottom: 0 !important; | |||
line-height: 0; | |||
} | |||
/* Hauptseite: Anpassung an MediaWiki 1.46 (26.11.2026) | |||
Seit MediaWiki 1.46 tragen eingeklappte Inhalte hidden="until-found". Der Browser setzt dafür | |||
content-visibility: hidden, MediaWiki macht den Block außerdem absolut positioniert und 0 px groß. | |||
Dadurch zählten die CSS-Zähler die eingeklappten Einträge nicht mehr mit („0 weitere Artikel“), | |||
und die Personenliste verschwand ganz. Die beiden Regeln stellen das frühere Verhalten wieder her. */ | |||
.client-js .hpa-rest.mw-collapsed > .mw-collapsible-content[hidden] { | |||
content-visibility: visible; | |||
} | |||
.client-js .hpa-personen .hpa-rest.mw-collapsed > .hpa-namensliste[hidden] { | |||
position: static; | |||
width: auto !important; | |||
height: auto !important; | |||
overflow: visible !important; | |||
padding: 12px 16px 14px !important; | |||
margin: 0 !important; | |||
} | |||
/* ===== Impressum (November 2026, Klassen imp-*) ===== | |||
Oben der Kopfkasten mit den Anbieterangaben, gestaltet wie der Kopfkasten der Hauptseite | |||
(Linie oben in Marineblau, Fläche und Rahmen aus den Codex-Variablen, folgt dem dunklen Farbschema). | |||
Die Angaben stehen in zwei Blöcken zu je drei Feldern (.imp-felder). Wie viele Spalten passen, | |||
misst eine Container-Abfrage am Kasten selbst: unter 30em eine Spalte, von 30 bis 46em zwei | |||
(das hohe Feld läuft dann über zwei Zeilen), ab 46em drei. | |||
Darunter die Personenverzeichnisse: Listen in <div class="imp-liste">, Spalten mit mindestens | |||
16em Breite, höchstens drei. Die Einträge laufen von oben nach unten (wie bei den Linklisten), | |||
kein Eintrag wird auf zwei Spalten verteilt. */ | |||
.imp-kopf { | |||
container: impkopf / inline-size; | |||
margin: 4px 0 24px; | |||
padding: 18px clamp(16px, 2.5vw, 28px) 16px; | |||
border: 1px solid var(--border-color-subtle, #c8ccd1); | |||
border-top: 3px solid #1e5088; | |||
border-radius: 2px; | |||
background: var(--background-color-neutral-subtle, #f8f9fa); | |||
line-height: 1.5; | |||
} | |||
.imp-name { | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif; | |||
font-size: 1.6em; | |||
line-height: 1.25; | |||
color: var(--color-emphasized, #101418); | |||
overflow-wrap: break-word; | |||
} | |||
.imp-felder { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr); | |||
column-gap: clamp(20px, 3.5cqi, 32px); | |||
} | |||
.imp-felder + .imp-felder { | |||
margin-top: 16px; | |||
border-top: 1px solid var(--border-color-subtle, #c8ccd1); | |||
} | |||
.imp-kopf dl { | |||
margin: 0; | |||
} | |||
.imp-kopf dt { | |||
margin-top: 12px; | |||
font-size: 0.875em; | |||
font-weight: normal; | |||
color: var(--color-subtle, #54595d); | |||
} | |||
.imp-felder + .imp-felder dt { | |||
margin-top: 14px; | |||
} | |||
.imp-kopf dd { | |||
margin: 2px 0 0; | |||
overflow-wrap: break-word; | |||
} | |||
.imp-kopf a, | |||
.imp-mail { | |||
overflow-wrap: anywhere; | |||
} | |||
@container impkopf (min-width: 30em) and (max-width: 45.99em) { | |||
.imp-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |||
.imp-name + .imp-felder > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; } | |||
.imp-name + .imp-felder > :nth-child(2) { grid-column: 2; grid-row: 1; } | |||
.imp-name + .imp-felder > :nth-child(3) { grid-column: 2; grid-row: 2; } | |||
.imp-felder + .imp-felder > :nth-child(1) { grid-column: 1; grid-row: 1; } | |||
.imp-felder + .imp-felder > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; } | |||
.imp-felder + .imp-felder > :nth-child(3) { grid-column: 1; grid-row: 2; } | |||
} | |||
@container impkopf (min-width: 46em) { | |||
.imp-felder { grid-template-columns: repeat(3, minmax(0, 1fr)); } | |||
} | |||
/* Personenverzeichnisse */ | |||
.imp-liste > ul { | |||
margin: 12px 0 0; | |||
padding: 0; | |||
list-style: none; | |||
columns: 16em 3; | |||
column-gap: 32px; | |||
} | |||
.imp-liste > ul > li { | |||
margin: 0; | |||
padding-bottom: 16px; | |||
break-inside: avoid; | |||
line-height: 1.5; | |||
overflow-wrap: break-word; | |||
} | |||
.imp-mail { | |||
color: var(--color-subtle, #54595d); | |||
} | |||
/* Fingerbedienung: größere Trefferflächen für die Links im Kopfkasten */ | |||
@media (pointer: coarse) { | |||
.imp-kopf dd a { display: inline-block; padding: 5px 0; } | |||
} | } | ||