MediaWiki:Monobook.css: Unterschied zwischen den Versionen

Aus Wolffiles
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 8: Zeile 8:
}
}


/* Anpassung des Hauptinhaltsbereichs */
/* Hauptinhaltsbereich */
#content {
#content {
     margin-top: 50px; /* Abstand oberhalb des Hauptinhalts */
     margin-top: 50px; /* Abstand oberhalb des Hauptinhalts */
Zeile 14: Zeile 14:
}
}


/* Hauptfenster (pBody) nach unten verschieben */
/* Hauptfenster (pBody) */
.pBody {
.pBody {
     margin-top: 20px; /* Abstand oberhalb des Hauptfensters */
     margin-top: 20px; /* Abstand oberhalb des Hauptfensters */
     padding: 10px; /* Zusätzlicher Innenabstand */
     padding: 10px; /* Innenabstand im Hauptfenster */
     background-color: #ffffff; /* Weißer Hintergrund für das Hauptfenster */
     background-color: #ffffff; /* Weißer Hintergrund für das Hauptfenster */
     border-radius: 8px; /* Abgerundete Ecken für ein modernes Design */
     border: 1px solid #ccc; /* Dünne Umrandung für ein rechteckiges Design */
     box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten für das Fenster */
     box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}
}


Zeile 26: Zeile 26:
#p-navigation {
#p-navigation {
     margin-top: 0; /* Kein zusätzlicher Abstand */
     margin-top: 0; /* Kein zusätzlicher Abstand */
     padding-top: 10px; /* Innenabstand */
     padding: 10px; /* Innenabstand */
     background-color: #f8f8f8; /* Hintergrundfarbe der Navigation */
     background-color: #eaeaea; /* Hellgrauer Hintergrund für die Navigation */
     border-bottom: 1px solid #ccc; /* Trennlinie unter der Navigation */
     border-bottom: 1px solid #ccc; /* Trennlinie unter der Navigation */
}
/* Titel in der Navigationsleiste */
#p-navigation h5,
#column-one h5 {
    color: #666; /* Hellere Farbe für die Titel */
    font-size: 1.1em; /* Etwas größere Schriftgröße */
    text-transform: uppercase; /* Optional: Titel in Großbuchstaben */
    margin-bottom: 10px; /* Abstand unter den Titeln */
}
}


Zeile 37: Zeile 46:
}
}


/* Navigationsleiste (Navbar) */
/* Links in der Navigationsleiste */
.navbar {
#p-navigation a,
    margin-top: 0;
#column-one a {
     padding: 5px 10px; /* Innenabstand oben/unten und links/rechts */
     color: #0077cc; /* Standard-Linkfarbe */
     background-color: #eaeaea; /* Heller Hintergrund für die Navbar */
     text-decoration: none; /* Unterstreichung entfernen */
    border: 1px solid #ddd; /* Umrandung */
}
    border-radius: 5px; /* Abgerundete Ecken */
 
     position: relative; /* Position relativ zum Container */
#p-navigation a:hover,
     z-index: 10; /* Stellt sicher, dass die Navbar über dem Hauptinhalt bleibt */
#column-one a:hover {
     color: #005fa3; /* Dunklere Farbe beim Hover */
     text-decoration: underline; /* Unterstreichung beim Überfahren */
}
}



Version vom 5. Januar 2025, 10:38 Uhr

/* Das folgende CSS wird für Benutzer der Benutzeroberfläche MonoBook geladen */
body {
    background-color: #323734;
    background-image: url("https://example.com/hintergrundbild.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Hauptinhaltsbereich */
#content {
    margin-top: 50px; /* Abstand oberhalb des Hauptinhalts */
    padding: 10px; /* Innenabstand für den Hauptinhalt */
}

/* Hauptfenster (pBody) */
.pBody {
    margin-top: 20px; /* Abstand oberhalb des Hauptfensters */
    padding: 10px; /* Innenabstand im Hauptfenster */
    background-color: #ffffff; /* Weißer Hintergrund für das Hauptfenster */
    border: 1px solid #ccc; /* Dünne Umrandung für ein rechteckiges Design */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}

/* Navigationsleiste (Hauptnavigation) */
#p-navigation {
    margin-top: 0; /* Kein zusätzlicher Abstand */
    padding: 10px; /* Innenabstand */
    background-color: #eaeaea; /* Hellgrauer Hintergrund für die Navigation */
    border-bottom: 1px solid #ccc; /* Trennlinie unter der Navigation */
}

/* Titel in der Navigationsleiste */
#p-navigation h5, 
#column-one h5 {
    color: #666; /* Hellere Farbe für die Titel */
    font-size: 1.1em; /* Etwas größere Schriftgröße */
    text-transform: uppercase; /* Optional: Titel in Großbuchstaben */
    margin-bottom: 10px; /* Abstand unter den Titeln */
}

/* Linke Spalte (Seiten-Navigation) */
#column-one {
    margin-top: 10px; /* Abstand zur oberen Kante */
    position: relative; /* Position bleibt relativ zum Hauptinhalt */
}

/* Links in der Navigationsleiste */
#p-navigation a, 
#column-one a {
    color: #0077cc; /* Standard-Linkfarbe */
    text-decoration: none; /* Unterstreichung entfernen */
}

#p-navigation a:hover, 
#column-one a:hover {
    color: #005fa3; /* Dunklere Farbe beim Hover */
    text-decoration: underline; /* Unterstreichung beim Überfahren */
}

/* Zusätzlicher Platz vor pBody mit Pseudo-Element */
.pBody::before {
    content: ""; /* Leeres Pseudo-Element */
    display: block;
    height: 20px; /* Höhe des Abstands */
}

/* Footer anpassen */
#footer {
    margin-top: 20px; /* Abstand oberhalb des Fußbereichs */
    padding: 10px; /* Innenabstand im Fußbereich */
    background-color: #f8f8f8; /* Hintergrundfarbe */
    border-top: 1px solid #ccc; /* Trennlinie über dem Fußbereich */
    text-align: center; /* Zentrierter Text im Footer */
}

/* Zusätzliche globale Anpassungen */
h1, h2, h3 {
    color: #333; /* Dunklere Textfarbe für Überschriften */
}

a {
    color: #0077cc; /* Standard-Linkfarbe */
    text-decoration: none; /* Unterstreichung entfernen */
}

a:hover {
    color: #005fa3; /* Dunklere Farbe bei Hover */
    text-decoration: underline; /* Unterstreichung beim Überfahren */
}