Zum Inhalt springen

MediaWiki:Common.css

Aus Informatik.wiki
Version vom 2. Dezember 2026, 09:47 Uhr von Maintenance script (Diskussion | Beiträge) (Hauptseite V5: Didaktische Reihenfolge und Nummerierung)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

Hinweis: Leere 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
/* Klassisches MediaWiki – keine projektspezifischen Layoutregeln */

/* BEGIN INFORMATIK.WIKI DGB1 LANGSWITCH */
#iw-lang-switch {
    float: right;
    margin: 0 0 0.6rem 1rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    background: #f8f9fa;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: nowrap;
}

#iw-lang-switch a,
#iw-lang-switch span {
    display: inline-block;
}

#iw-lang-switch .iw-lang-separator {
    margin: 0 0.4rem;
    color: #72777d;
}

#iw-lang-switch .iw-lang-active {
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

#iw-lang-switch .iw-lang-unavailable {
    color: #72777d;
    cursor: default;
}

@media ( max-width: 720px ) {
    #iw-lang-switch {
        float: none;
        display: inline-block;
        margin: 0 0 0.75rem 0;
    }
}
/* END INFORMATIK.WIKI DGB1 LANGSWITCH */

/* Doppelten alten Sprachumschalter vor dem Seitentitel ausblenden */
#iw-lang-switch-header {
    display: none;
}

/* Seitentitel links, Sprachumschalter rechts */
.mw-body-header.vector-page-titlebar {
    position: relative;
}

.mw-body-header.vector-page-titlebar #iw-lang-switch {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
}

.mw-body-header.vector-page-titlebar #firstHeading {
    margin-right: 7.5rem;
}

/* FINAL: Seitentitel links, Sprachbox ganz rechts */
.vector-page-titlebar #firstHeading {
    order: initial !important;
    margin-right: 0 !important;
}

.vector-page-titlebar #iw-lang-switch {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    order: initial !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* FINAL V2: Seitentitel links, Sprachumschalter ganz rechts */
.mw-body-header.vector-page-titlebar {
    display: flex !important;
    align-items: center !important;
}

.mw-body-header.vector-page-titlebar .vector-toc-landmark {
    order: 0 !important;
    flex: 0 0 auto !important;
}

.mw-body-header.vector-page-titlebar #firstHeading {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-right: 0 !important;
}

.mw-body-header.vector-page-titlebar .mw-indicators {
    order: 2 !important;
}

.mw-body-header.vector-page-titlebar #iw-lang-switch {
    order: 99 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* BEGIN INFORMATIK-WIKI MATERIALBUTTONS V1 */
/* Nur bisherige Materialbuttons in Kapitellisten; keine Artikel- oder Linkänderung. */
.mw-parser-output li span.plainlinks[style*="#b7472a"]:has(> a[href^="https://informatik.wiki/unterricht/"][href$=".pptx"]),
.mw-parser-output li span.plainlinks[style*="#287b52"]:has(> a[href^="https://www.learningsnacks.de/share/"]) {
    display: inline-block !important;
    margin-left: .35em !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 75% !important;
    line-height: 1.25 !important;
    vertical-align: .08em;
    white-space: nowrap !important;
}
.mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href^="https://informatik.wiki/unterricht/"][href$=".pptx"] {
    --iw-button-color: #a63c24;
}
.mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"] {
    --iw-button-color: #236d48;
}
.mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href^="https://informatik.wiki/unterricht/"][href$=".pptx"],
.mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"] {
    display: inline-flex !important;
    align-items: center;
    gap: .3em;
    color: var(--iw-button-color) !important;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent !important;
    padding: .23em .55em !important;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.25;
    text-decoration: none !important;
    transition: background-color .12s, color .12s;
}
.mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href^="https://informatik.wiki/unterricht/"][href$=".pptx"] > span,
.mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"] > span {
    color: inherit !important;
}
.mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href^="https://informatik.wiki/unterricht/"][href$=".pptx"]::before {
    content: "\2193";
    font-size: 1.1em;
    line-height: 1;
}
.mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"]::before {
    content: "\25B8";
    font-size: 1.1em;
    line-height: 1;
}
.mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href^="https://informatik.wiki/unterricht/"][href$=".pptx"]:hover,
.mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"]:hover {
    background-color: var(--iw-button-color) !important;
    border-color: var(--iw-button-color);
    color: #fff !important;
}
.mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href^="https://informatik.wiki/unterricht/"][href$=".pptx"]:focus-visible,
.mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
/* Vector-Dunkelmodus: gut lesbare helle Akzente und dunkler Hovertext. */
.skin-theme-clientpref-night .mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href$=".pptx"] { --iw-button-color: #ffad95; }
.skin-theme-clientpref-night .mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"] { --iw-button-color: #91dcb0; }
.skin-theme-clientpref-night .mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href$=".pptx"]:hover,
.skin-theme-clientpref-night .mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"]:hover { color: #171717 !important; }
@media (prefers-color-scheme: dark) {
    .skin-theme-clientpref-os .mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href$=".pptx"] { --iw-button-color: #ffad95; }
    .skin-theme-clientpref-os .mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"] { --iw-button-color: #91dcb0; }
    .skin-theme-clientpref-os .mw-parser-output li span.plainlinks[style*="#b7472a"] > a[href$=".pptx"]:hover,
    .skin-theme-clientpref-os .mw-parser-output li span.plainlinks[style*="#287b52"] > a[href^="https://www.learningsnacks.de/share/"]:hover { color: #171717 !important; }
}
/* END INFORMATIK-WIKI MATERIALBUTTONS V1 */

/* BEGIN INFORMATIK-WIKI HAUPTSEITE V5 */
/* Nur die deutsche Hauptseite. Keine Anpassung der Materialbuttons. */
body.page-Hauptseite #mw-content-text > .mw-parser-output {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(h2, .mw-heading2) {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: .95rem;
    border-bottom: 1px solid var(--border-color-subtle, #d6d6d6);
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > h2,
body.page-Hauptseite #mw-content-text > .mw-parser-output > .mw-heading2 > h2 {
    font-family: inherit;
    font-size: 1.65rem;
    line-height: 1.3;
    font-weight: 650;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > .mw-heading2 > h2 {
    border: 0;
    margin: 0;
    padding: 0;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(h3, .mw-heading3) {
    margin-top: 1.35rem;
    margin-bottom: .85rem;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > h3,
body.page-Hauptseite #mw-content-text > .mw-parser-output > .mw-heading3 > h3 {
    font-family: inherit;
    font-size: 1.3rem;
    line-height: 1.35;
    font-weight: 650;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(ul, ol) {
    list-style-position: outside;
    list-style-image: none;
    margin: .55rem 0 1.25rem 1.05rem;
    padding: 0;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(ul, ol) > li {
    padding-left: .1rem;
    margin: 0 0 .85rem;
    line-height: 1.55;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(ul, ol) > li::marker {
    color: var(--color-progressive, #4f63bd);
    font-size: .75em;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(ul, ol) > li > a:not(.new),
body.page-Hauptseite #mw-content-text > .mw-parser-output > p > a:not(.new) {
    color: var(--color-progressive, #4f63bd);
    text-decoration: none;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(ul, ol) > li > a:hover,
body.page-Hauptseite #mw-content-text > .mw-parser-output > p > a:hover {
    text-decoration: underline;
}
/* Nummerierte Lernpfade: native, durchgehende Nummerierung, eigene Einrückung. */
body.page-Hauptseite #mw-content-text > .mw-parser-output > ol {
    list-style-type: decimal;
    margin-left: 1.8rem;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > ul {
    list-style-type: disc;
}
body.page-Hauptseite #mw-content-text > .mw-parser-output > ol > li::marker {
    font-size: .9em;
    font-variant-numeric: tabular-nums;
}
/* Die Bearbeitungslinks bleiben sichtbar und bedienbar, aber dezent. */
body.page-Hauptseite #mw-content-text .mw-editsection { font-size: .72rem; font-weight: 400; }
@media (max-width: 600px) {
    body.page-Hauptseite #mw-content-text > .mw-parser-output { font-size: 1rem; }
    body.page-Hauptseite #mw-content-text > .mw-parser-output > :is(ul, ol) > li { margin-bottom: .65rem; }
}
/* END INFORMATIK-WIKI HAUPTSEITE V5 */