Zum Inhalt springen

MediaWiki:Common.css

Aus ADHSpedia
Version vom 23. September 2026, 17:11 Uhr von L (Diskussion | Beiträge) (Hauptseite: Fragen-Links („Womit möchten Sie anfangen?“, Molekulargenetik) in der normalen Seitenschrift statt Serifenschrift)

Hinweis: Leeren Sie nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */

.vector-header-container .mw-header, .vector-header-container .vector-sticky-header {
   min-width: auto !important;
}

#p-logo a {
  background-size: cover !important;
}

.googlead {
    display: block;
    width: 320px;
    height: 90px;
}

#siteNotice {
    text-align: left !important;
}

div.vectorTabs ul li {
     background-color: transparent;
}

#p-navigation, #p-socialsidebar-label { 
     display:none
}

.portal iframe { 
     margin-top: 15px;
}

#siteNotice {
	width: 100%;
	height: auto;
}

.page-Kostenlose_Empfehlungskarte_bestellen #localNotice, .page-Kostenlose_Empfehlungskarte_bestellen .firstHeading, .page-Psychopharmaka-Ausweis_bestellen #localNotice, .page-Psychopharmaka-Ausweis_bestellen .firstHeading {
     display: none;
}

#mw-panel.collapsible-nav .portal#p-socialsidebar .body {
     display: block;
}

@media only screen and (max-width: 1200px) {
.references-medium {
-moz-column-count:3 !important;
column-count:3 !important;
}
}

@media only screen and (max-width: 1024px) {
.references-medium {
-moz-column-count:2 !important;
column-count:2 !important;
}
}

@media only screen and (max-width: 600px) {
.references-medium {
-moz-column-count:1 !important;
column-count:1 !important;
}
}

/* Frontpage */
.frontpage .row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

@media only screen and (min-width: 1200px) {
    .frontpage .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.frontpage .row .card--background {
    background-color: rgba(6,69,173,0.1);
    padding: 8px;
}

.frontpage .grid--topics {
    display: flex;
    flex-wrap: wrap;
}

.frontpage .grid--topics a {
    font-size: 0.8rem;
    padding: 3px 8px;
    background-color: rgba(6,69,173,0.2);
    margin: 3px;
    border-radius: 4px;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.frontpage .grid--topics a:hover {
    background-color: rgba(6,69,173,0.4);
}

@media only screen and (min-width: 1200px) {
    .floatright {
        float: right
    }
}

/* ===== Hauptseite (Neugestaltung, Klassen hp-*) ===== */
.frontpage.hp ul { list-style: none; margin: 0; padding: 0; }
.frontpage.hp li { margin: 0; }

/* Kopf: Einleitung + Einstiegsfragen */
.hp-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1em 2em; align-items: start; }
.hp-lead { font-size: 1.15em; line-height: 1.6; margin-top: 0; }
.hp-meilenstein { display: flex; align-items: center; gap: .75em; margin: 1em 0; padding: .75em 0; border-top: 1px solid #c8ccd1; border-bottom: 1px solid #c8ccd1; }
.hp-meilenstein img { display: block; }
.hp-fakten { color: #54595d; }
.hp-fragen { background: rgba(6, 69, 173, .1); padding: .75em 1.25em .5em; }
.hp-fragen-titel { font-weight: bold; font-size: 1.1em; }
.frontpage.hp .hp-fragen li + li { border-top: 1px solid rgba(6, 69, 173, .2); }
.hp-fragen a { display: block; position: relative; padding: .6em 1.75em .6em 0; }
.hp-fragen a::after { content: ""; position: absolute; right: .35em; top: 50%; width: .45em; height: .45em; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.hp-frage { display: block; font-size: 1.15em; line-height: 1.4; }
.hp-ziel { display: block; margin-top: .15em; font-size: .9em; color: #54595d; }

/* Artikel zum Einstieg */
.hp-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: .75em; }
.hp-karte { display: flex; flex-direction: column; padding: .25em 1em 1em; background: rgba(6, 69, 173, .1); }
.hp-anzahl { color: #54595d; font-size: .9em; margin-bottom: .5em; }
.frontpage.hp .hp-liste li { border-top: 1px solid rgba(6, 69, 173, .15); }
.hp-liste a { display: block; padding: .3em 0; }
.hp-fuss { margin-top: auto; padding-top: .75em; }
.hp-toggle { display: block; box-sizing: border-box; min-height: 32px; padding: 5px 12px; border: 1px solid #a2a9b1; border-radius: 2px; background: #f8f9fa; color: #202122; font-weight: bold; text-align: center; cursor: pointer; }
.hp-toggle:hover { background: #fff; border-color: #72777d; }
.mw-collapsible.mw-collapsed + .hp-fuss .hp-weniger,
.mw-collapsible:not(.mw-collapsed) + .hp-fuss .hp-mehr { display: none; }

/* Neuigkeiten + Molekulargenetik */
.hp-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 2em; align-items: start; }
.hp-hinweis { display: flow-root; background: #e8ecf6; border: 1px solid #a2bcd4; padding: .75em 1em; margin: .5em 0 1em; }
.frontpage.hp .hp-neu li { border-bottom: 1px solid #eaecf0; }
.hp-neu a { display: block; padding: .3em 0; }
.hp-spalte .hp-toggle { display: inline-block; }
.hp-genetik-frage { margin-top: .5em; font-size: 1.15em; line-height: 1.4; }
.hp-genetik-sub, .hp-gruppe-name { color: #54595d; }
.hp-gruppe { margin-top: .5em; }
.hp-gruppe-name { font-size: .9em; }
.frontpage .hp-gene { margin-left: -3px; }
.frontpage .hp-gene a { font-style: italic; }

/* Personen */
.hp-personen ul { column-width: 10em; column-gap: 2em; }
.hp-personen li { padding: .15em 0; break-inside: avoid; }

/* Einzelnachweise */
.hp-quellen { margin-top: 2em; font-size: .8em; }

/* ===== Mehrspaltige Linklisten =====
   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).
   Alle Spalten haben dieselbe feste Breite und beginnen links, dadurch stehen
   die Spalten in allen Abschnitten exakt untereinander.
   Ab 4 Einträgen werden die Einträge gleichmäßig auf bis zu drei Spalten verteilt
   (bei genau 4 Einträgen auf zwei Spalten); Listen mit bis zu 3 Einträgen bleiben einspaltig.
   Bei wenig Platz (z. B. mobil) sinkt die Spaltenzahl automatisch. */
.references-medium:has(> ul, > #RandomPages > ul) {
    -moz-column-count: auto !important;
    column-count: auto !important;
}
.spaltenliste > ul:has(> li:nth-child(4)),
.references-medium > ul:has(> li:nth-child(4)),
.references-medium > #RandomPages > ul:has(> li:nth-child(4)) {
    display: grid;
    grid-template-columns: repeat(auto-fill, 240px);
    column-gap: 28px;
    max-width: 777px; /* höchstens 3 Spalten (3 × 240px + 2 × 28px) */
}
.spaltenliste > ul:has(> li:first-child:nth-last-child(4)),
.references-medium > ul:has(> li:first-child:nth-last-child(4)),
.references-medium > #RandomPages > ul:has(> li:first-child:nth-last-child(4)) {
    max-width: 509px; /* genau 4 Einträge: 2 Spalten */
}