MediaWiki:Timeless.css: Unterschied zwischen den Versionen

Aus NordhausenWiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Zeile 1: Zeile 1:
/*
/* ============================================== */
* Koordinaten und diverse andere Anzeigen oben rechts, siehe
/* Optimiertes CSS für NordhausenWiki */
* [[:Kategorie:Vorlage:mit Seitenindikator#Textelemente]].
/* ============================================== */
* Beachte, dass diese Elemente im Wikitext an beliebigen Stellen auftreten und
 
* deshalb allerhand Eigenschaften erben können. Das gilt insbesondere für die
/* Koordinaten und Seitenindikatoren */
* Schriftgröße.
* Der folgende Darstellungsfehler ist bekannt: Wenn die Fensterbreite kleiner
* als 982px ist und die Schriftgröße des Wurzelelements wie üblich 16px ist,
* überlappen sich die 17px hohen Icons der Gadgets „WikiMiniAtlas“ und
* „OpenStreetMap“ mit der SiteNotice.
*/
#mw-content-text #coordinates,
#mw-content-text #coordinates,
#mw-content-text #editcount,
#mw-content-text #editcount,
Zeile 34: Zeile 28:
}
}


/* ============================================== */
/* Farbschema und Grundlayout */
/* ============================================== */
:root {
    --nw-primary: #00669d;
    --nw-primary-dark: #004d75;
    --nw-primary-light: #0088cc;
    --nw-accent: #d4a517;
    --nw-bg-dark: #272a33;
    --nw-bg-light: #f9f9f8;
    --nw-border: #EFEFEF;
    --nw-text: #252525;
    --nw-shadow: rgba(0, 0, 0, 0.1);
}
body {
    background: var(--nw-bg-dark) !important;
}
#mw-content-container {
    background: var(--nw-bg-light);
    background-image: none;
    box-shadow: 0 2px 8px var(--nw-shadow);
}
#mw-content {
    border-color: #ffffff !important;
}


/* ============================================== */
/* ============================================== */
/* Jetzt kommt das Special-CSS von NordhausenWiki. */
/* Sidebar Verbesserungen */
/* ============================================== */
/* ============================================== */


@media screen and (min-width: 1100px) {
@media screen and (min-width: 1100px) {
   
    /* Revised sidebar */
     .sidebar-chunk {
     .sidebar-chunk {
         background: #ffffff !important;
         background: #ffffff !important;
         border-color: #ffffff !important;
         border-color: #ffffff !important;
        border-radius: 4px;
        margin-bottom: 0.75em;
        box-shadow: 0 1px 3px var(--nw-shadow);
        transition: box-shadow 0.2s ease;
    }
   
    .sidebar-chunk:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
     }
     }
      
      
     .sidebar-chunk h3 {
     .sidebar-chunk h3 {
         border-bottom-color: #EFEFEF !important;
         border-bottom: 2px solid var(--nw-border) !important;
        color: var(--nw-primary-dark);
        font-weight: 600;
        padding-bottom: 0.5em;
    }
   
    .sidebar-chunk ul {
        padding-left: 0.5em;
    }
   
    .sidebar-chunk li {
        padding: 0.25em 0;
        transition: background-color 0.2s ease;
    }
   
    .sidebar-chunk li:hover {
        background-color: rgba(0, 102, 157, 0.05);
        border-radius: 2px;
     }
     }
}
}


/* Masthead fix */
/* ============================================== */
/* Überschriften und Akzente */
/* ============================================== */
 
.mw-body h1.firstHeading {
    border-bottom: 3px solid var(--nw-primary);
    color: var(--nw-text);
    padding-bottom: 0.3em;
    margin-bottom: 0.5em;
}
 
.mw-body h2 {
    border-bottom: 2px solid var(--nw-border);
    color: var(--nw-primary-dark);
    margin-top: 1em;
    padding-bottom: 0.25em;
}
 
.mw-body h3 {
    color: var(--nw-primary-dark);
    border-bottom: 1px solid var(--nw-border);
    padding-bottom: 0.2em;
}
 
/* Farbige Akzentlinie oben */
.color-left,
.color-middle,
.color-right {
    background: linear-gradient(90deg,
        var(--nw-primary) 0%,
        var(--nw-primary-light) 50%,
        var(--nw-primary) 100%);
    height: 3px;
}
 
#mw-content-container {
    border-bottom-color: var(--nw-primary);
}
 
.tools-inline li.selected {
    border-bottom-color: var(--nw-primary);
}
 
/* ============================================== */
/* Portale und spezielle Frames */
/* ============================================== */
 
.nw-portal-frame {
    background: #ffffff;
    border: 1px solid var(--nw-border);
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1em;
    box-shadow: 0 1px 3px var(--nw-shadow);
}
 
.nw-portal-frame h2 {
    border-bottom: 3px solid var(--nw-primary) !important;
    color: var(--nw-primary-dark);
    margin-top: 0;
}
 
.nw-portal-frame h2::after {
    border-bottom: none !important;
}
 
/* ============================================== */
/* Masthead */
/* ============================================== */
 
.nw-masthead-title h2::after {
.nw-masthead-title h2::after {
     border-bottom: none !important;
     border-bottom: none !important;
}
}
.nw-masthead-contents {
.nw-masthead-contents {
     column-width: 9.125rem;
     column-width: 9.125rem;
    column-gap: 1.5rem;
}
}


/* Disable mobile link for Timeless only, and nowhere else */
.nw-masthead-mlink {
.nw-masthead-mlink {
     display: none;
     display: none;
}
}


/* Frame title fix */
/* ============================================== */
.nw-portal-frame h2 {
/* Logo und Titel */
     border-bottom: 3px solid #000000 !important; /* Beispielhafte Farbe hinzugefügt */
/* ============================================== */
 
.mw-wiki-logo {
    transition: transform 0.2s ease;
}
 
.mw-wiki-logo:hover {
    transform: scale(1.02);
}
 
.mw-wiki-logo img {
    width: 150px;
    height: 50px;
}
 
#p-logo-text a {
    display: block;
    font-weight: 600;
    color: var(--nw-primary-dark);
}
 
@media screen and (min-width: 1150px) {
    #p-logo-text a {
        display: none;
    }
}
 
@media (max-width: 768px) {
    .mw-wiki-logo img {
        width: 100px;
        height: 33px;
    }
}
 
/* ============================================== */
/* Links und Buttons */
/* ============================================== */
 
a {
     color: var(--nw-primary);
    transition: color 0.2s ease;
}
 
a:hover {
    color: var(--nw-primary-light);
}
 
a:visited {
    color: var(--nw-primary-dark);
}
 
.mw-editsection a {
    color: #666;
    font-size: 0.85em;
}
 
.mw-editsection a:hover {
    color: var(--nw-primary);
}
 
/* ============================================== */
/* Tabellen */
/* ============================================== */
 
table.wikitable {
    border: 1px solid var(--nw-border);
    border-radius: 4px;
    overflow: hidden;
}
 
table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color: var(--nw-primary);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}
 
table.wikitable > tr > td,
table.wikitable > * > tr > td {
    border-color: var(--nw-border);
}
}
.nw-portal-frame h2::after {
 
     border-bottom: none !important;
table.wikitable > tr:nth-child(even),
table.wikitable > * > tr:nth-child(even) {
     background-color: rgba(0, 102, 157, 0.03);
}
}


/* Linie oben */
/* ============================================== */
.color-left,
/* Infoboxen */
.color-middle,
/* ============================================== */
.color-right {
 
     background-color: #EFEFEF;
.infobox {
    border: 1px solid var(--nw-border);
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--nw-shadow);
     overflow: hidden;
}
}


/* Strich Überschrift */
.infobox th {
#mw-content-container,
    background-color: var(--nw-primary);
.mw-body h1.firstHeading,
     color: white;
.tools-inline li.selected {
     border-bottom-color: #00669d;
}
}


/* Margin fixes */
/* ============================================== */
/* Notices und Hinweise */
/* ============================================== */
 
.mw-indicators {
.mw-indicators {
     margin: 0.25em 0 0 0;
     margin: 0.25em 0 0 0;
}
}
.mw-dismissable-notice-close {
.mw-dismissable-notice-close {
     margin: 0em 1.25em;
     margin: 0em 1.25em;
}
}


/* Revised background */
.mw-message-box {
body {
    border-radius: 4px;
     background: #272a33 !important;
     border-left-width: 4px;
}
}
#mw-content {
 
     border-color: #ffffff !important;
.mw-message-box-info {
     border-left-color: var(--nw-primary);
}
}
#mw-content-container {
 
     background: #f9f9f8;
/* ============================================== */
     background-image: none;
/* Such-Features */
/* ============================================== */
 
.searchresult {
     color: var(--nw-primary);
     font-weight: 600;
}
}


/* Website title text */
.mw-search-result-heading a {
    color: var(--nw-primary-dark);
    font-size: 1.1em;
}


/* Anzeige des Titels standardmäßig */
/* ============================================== */
#p-logo-text a {
/* Footer */
     display: block;
/* ============================================== */
 
#footer {
     color: #666;
}
}


/* Titel nur bei größeren Bildschirmgrößen ausblenden */
#footer a {
@media screen and (min-width: 1150px) {
    color: var(--nw-primary-dark);
    #p-logo-text a {
        display: none;
    }
}
}


/* Logo Standardgröße für Desktop */
/* ============================================== */
.mw-wiki-logo img {
/* Mobile Optimierungen */
    width: 150px;
/* ============================================== */
    height: 50px;
}


/* Anpassung für mobile Ansichten */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .mw-wiki-logo img {
     .nw-portal-frame {
         width: 100px;
         padding: 0.75em;
         height: 33px;
    }
   
    .nw-masthead-contents {
        column-width: 100%;
         column-count: 1;
     }
     }
}
}

Version vom 21. Januar 2026, 20:06 Uhr

/* ============================================== */
/* Optimiertes CSS für NordhausenWiki */
/* ============================================== */

/* Koordinaten und Seitenindikatoren */
#mw-content-text #coordinates,
#mw-content-text #editcount,
#mw-content-text #shortcut,
body.ns-special #mw-content-text .specialpage-helplink {
    display: block;
    font-size: x-small;
    line-height: 1.5;
    position: absolute;
    right: 1.6em;
    text-align: right;
    text-indent: 0;
    top: 2em;
    white-space: nowrap;
}

@media screen and (min-width: 982px) {
    #mw-content-text #coordinates,
    #mw-content-text #editcount,
    #mw-content-text #shortcut,
    body.ns-special #mw-content-text .specialpage-helplink {
        right: 2.4em;
    }
}

/* ============================================== */
/* Farbschema und Grundlayout */
/* ============================================== */

:root {
    --nw-primary: #00669d;
    --nw-primary-dark: #004d75;
    --nw-primary-light: #0088cc;
    --nw-accent: #d4a517;
    --nw-bg-dark: #272a33;
    --nw-bg-light: #f9f9f8;
    --nw-border: #EFEFEF;
    --nw-text: #252525;
    --nw-shadow: rgba(0, 0, 0, 0.1);
}

body {
    background: var(--nw-bg-dark) !important;
}

#mw-content-container {
    background: var(--nw-bg-light);
    background-image: none;
    box-shadow: 0 2px 8px var(--nw-shadow);
}

#mw-content {
    border-color: #ffffff !important;
}

/* ============================================== */
/* Sidebar Verbesserungen */
/* ============================================== */

@media screen and (min-width: 1100px) {
    .sidebar-chunk {
        background: #ffffff !important;
        border-color: #ffffff !important;
        border-radius: 4px;
        margin-bottom: 0.75em;
        box-shadow: 0 1px 3px var(--nw-shadow);
        transition: box-shadow 0.2s ease;
    }
    
    .sidebar-chunk:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar-chunk h3 {
        border-bottom: 2px solid var(--nw-border) !important;
        color: var(--nw-primary-dark);
        font-weight: 600;
        padding-bottom: 0.5em;
    }
    
    .sidebar-chunk ul {
        padding-left: 0.5em;
    }
    
    .sidebar-chunk li {
        padding: 0.25em 0;
        transition: background-color 0.2s ease;
    }
    
    .sidebar-chunk li:hover {
        background-color: rgba(0, 102, 157, 0.05);
        border-radius: 2px;
    }
}

/* ============================================== */
/* Überschriften und Akzente */
/* ============================================== */

.mw-body h1.firstHeading {
    border-bottom: 3px solid var(--nw-primary);
    color: var(--nw-text);
    padding-bottom: 0.3em;
    margin-bottom: 0.5em;
}

.mw-body h2 {
    border-bottom: 2px solid var(--nw-border);
    color: var(--nw-primary-dark);
    margin-top: 1em;
    padding-bottom: 0.25em;
}

.mw-body h3 {
    color: var(--nw-primary-dark);
    border-bottom: 1px solid var(--nw-border);
    padding-bottom: 0.2em;
}

/* Farbige Akzentlinie oben */
.color-left,
.color-middle,
.color-right {
    background: linear-gradient(90deg, 
        var(--nw-primary) 0%, 
        var(--nw-primary-light) 50%, 
        var(--nw-primary) 100%);
    height: 3px;
}

#mw-content-container {
    border-bottom-color: var(--nw-primary);
}

.tools-inline li.selected {
    border-bottom-color: var(--nw-primary);
}

/* ============================================== */
/* Portale und spezielle Frames */
/* ============================================== */

.nw-portal-frame {
    background: #ffffff;
    border: 1px solid var(--nw-border);
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1em;
    box-shadow: 0 1px 3px var(--nw-shadow);
}

.nw-portal-frame h2 {
    border-bottom: 3px solid var(--nw-primary) !important;
    color: var(--nw-primary-dark);
    margin-top: 0;
}

.nw-portal-frame h2::after {
    border-bottom: none !important;
}

/* ============================================== */
/* Masthead */
/* ============================================== */

.nw-masthead-title h2::after {
    border-bottom: none !important;
}

.nw-masthead-contents {
    column-width: 9.125rem;
    column-gap: 1.5rem;
}

.nw-masthead-mlink {
    display: none;
}

/* ============================================== */
/* Logo und Titel */
/* ============================================== */

.mw-wiki-logo {
    transition: transform 0.2s ease;
}

.mw-wiki-logo:hover {
    transform: scale(1.02);
}

.mw-wiki-logo img {
    width: 150px;
    height: 50px;
}

#p-logo-text a {
    display: block;
    font-weight: 600;
    color: var(--nw-primary-dark);
}

@media screen and (min-width: 1150px) {
    #p-logo-text a {
        display: none;
    }
}

@media (max-width: 768px) {
    .mw-wiki-logo img {
        width: 100px;
        height: 33px;
    }
}

/* ============================================== */
/* Links und Buttons */
/* ============================================== */

a {
    color: var(--nw-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--nw-primary-light);
}

a:visited {
    color: var(--nw-primary-dark);
}

.mw-editsection a {
    color: #666;
    font-size: 0.85em;
}

.mw-editsection a:hover {
    color: var(--nw-primary);
}

/* ============================================== */
/* Tabellen */
/* ============================================== */

table.wikitable {
    border: 1px solid var(--nw-border);
    border-radius: 4px;
    overflow: hidden;
}

table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color: var(--nw-primary);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

table.wikitable > tr > td,
table.wikitable > * > tr > td {
    border-color: var(--nw-border);
}

table.wikitable > tr:nth-child(even),
table.wikitable > * > tr:nth-child(even) {
    background-color: rgba(0, 102, 157, 0.03);
}

/* ============================================== */
/* Infoboxen */
/* ============================================== */

.infobox {
    border: 1px solid var(--nw-border);
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--nw-shadow);
    overflow: hidden;
}

.infobox th {
    background-color: var(--nw-primary);
    color: white;
}

/* ============================================== */
/* Notices und Hinweise */
/* ============================================== */

.mw-indicators {
    margin: 0.25em 0 0 0;
}

.mw-dismissable-notice-close {
    margin: 0em 1.25em;
}

.mw-message-box {
    border-radius: 4px;
    border-left-width: 4px;
}

.mw-message-box-info {
    border-left-color: var(--nw-primary);
}

/* ============================================== */
/* Such-Features */
/* ============================================== */

.searchresult {
    color: var(--nw-primary);
    font-weight: 600;
}

.mw-search-result-heading a {
    color: var(--nw-primary-dark);
    font-size: 1.1em;
}

/* ============================================== */
/* Footer */
/* ============================================== */

#footer {
    color: #666;
}

#footer a {
    color: var(--nw-primary-dark);
}

/* ============================================== */
/* Mobile Optimierungen */
/* ============================================== */

@media (max-width: 768px) {
    .nw-portal-frame {
        padding: 0.75em;
    }
    
    .nw-masthead-contents {
        column-width: 100%;
        column-count: 1;
    }
}