MediaWiki:Monobook.css: Unterschied zwischen den Versionen

Aus Wolffiles
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Das folgende CSS wird für Benutzer der Benutzeroberfläche MonoBook geladen */
/* Allgemeiner Hintergrund */
body {
body {
     background-color: #323734;
     background-color: #1a1a1a; /* Dunkler Hintergrund */
     background-image: url("https://example.com/hintergrundbild.jpg");
     background-image: url("DEIN-BILD-URL"); /* Optional: Hintergrundbild */
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-size: cover;
     background-size: cover;
     background-attachment: fixed;
     color: #eaeaea; /* Helle Standardtextfarbe */
    font-family: Arial, sans-serif; /* Klare Schriftart */
}
}


/* Hauptinhaltsbereich */
/* Hauptinhaltsbereich */
#content {
#content {
     margin-top: 50px; /* Abstand oberhalb des Hauptinhalts */
     margin: 50px auto; /* Zentriert den Inhaltsbereich */
     padding: 10px; /* Innenabstand für den Hauptinhalt */
    max-width: 1100px; /* Maximale Breite */
     padding: 20px; /* Innenabstand */
    background-color: #ffffff; /* Weißer Hintergrund für den Hauptinhalt */
    border: 1px solid #ccc; /* Dünner Rahmen */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Schatten für Tiefe */
    color: #333; /* Dunklere Textfarbe für bessere Lesbarkeit */
}
}


/* Hauptfenster (pBody) */
/* Navigationsleiste (linke Spalte) */
.pBody {
#column-one {
    margin-top: 20px; /* Abstand oberhalb des Hauptfensters */
     background-color: #2d2d2d; /* Dunkelgrauer Hintergrund */
    padding: 10px; /* Innenabstand im Hauptfenster */
     color: #eaeaea; /* Helle Schriftfarbe */
     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 */
     padding: 10px; /* Innenabstand */
    background-color: #eaeaea; /* Hellgrauer Hintergrund für die Navigation */
     border-right: 1px solid #444; /* Trennlinie rechts */
     border-bottom: 1px solid #ccc; /* Trennlinie unter der Navigation */
}
}


/* Titel in der Navigationsleiste */
#p-navigation h5,
#column-one h5 {
#column-one h5 {
     color: #666; /* Hellere Farbe für die Titel */
     color: #ffffff; /* Helle Überschriftenfarbe */
     font-size: 1.1em; /* Etwas größere Schriftgröße */
     font-size: 1.1em; /* Etwas größere Schriftgröße */
    text-transform: uppercase; /* Optional: Titel in Großbuchstaben */
     margin-bottom: 10px; /* Abstand unter Überschrift */
     margin-bottom: 10px; /* Abstand unter den Titeln */
     text-transform: uppercase; /* Überschrift in Großbuchstaben */
}
 
/* Linke Spalte (Seiten-Navigation) */
#column-one {
     margin-top: 10px; /* Abstand zur oberen Kante */
    position: relative; /* Position bleibt relativ zum Hauptinhalt */
}
}


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


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


/* Zusätzlicher Platz vor pBody mit Pseudo-Element */
/* Titel in der Navigationsleiste */
.pBody::before {
#p-navigation {
     content: ""; /* Leeres Pseudo-Element */
     margin-bottom: 20px; /* Abstand zur unteren Navigation */
    display: block;
    height: 20px; /* Höhe des Abstands */
}
}


/* Footer anpassen */
/* Kopfbereich (Header) */
#footer {
#p-logo {
     margin-top: 20px; /* Abstand oberhalb des Fußbereichs */
     margin: 20px auto; /* Zentriert das Logo */
    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 */
#p-logo a {
h1, h2, h3 {
    display: block;
     color: #333; /* Dunklere Textfarbe für Überschriften */
    width: 200px; /* Größe des Logos */
    height: 50px;
    background: url("DEIN-LOGO-URL") no-repeat center center;
     background-size: contain; /* Logo skaliert passend */
}
}


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


a:hover {
a:hover {
     color: #005fa3; /* Dunklere Farbe bei Hover */
     color: #005fa3; /* Dunklere Farbe beim Hover */
     text-decoration: underline; /* Unterstreichung beim Überfahren */
     text-decoration: underline;
}
 
/* Footer */
#footer {
    margin-top: 50px; /* Abstand oberhalb des Footers */
    padding: 10px;
    background-color: #2d2d2d; /* Dunkelgrauer Hintergrund */
    color: #eaeaea; /* Helle Textfarbe */
    text-align: center; /* Zentrierter Text */
    border-top: 1px solid #444; /* Trennlinie oben */
}
 
/* Tabellen (Optional) */
table {
    border-collapse: collapse;
    width: 100%;
    background-color: #f9f9f9;
}
 
table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
}
 
table th {
    background-color: #0077cc;
    color: white;
    text-align: left;
}
}

Version vom 5. Januar 2025, 10:40 Uhr

/* Allgemeiner Hintergrund */
body {
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    background-image: url("DEIN-BILD-URL"); /* Optional: Hintergrundbild */
    background-repeat: no-repeat;
    background-size: cover;
    color: #eaeaea; /* Helle Standardtextfarbe */
    font-family: Arial, sans-serif; /* Klare Schriftart */
}

/* Hauptinhaltsbereich */
#content {
    margin: 50px auto; /* Zentriert den Inhaltsbereich */
    max-width: 1100px; /* Maximale Breite */
    padding: 20px; /* Innenabstand */
    background-color: #ffffff; /* Weißer Hintergrund für den Hauptinhalt */
    border: 1px solid #ccc; /* Dünner Rahmen */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Schatten für Tiefe */
    color: #333; /* Dunklere Textfarbe für bessere Lesbarkeit */
}

/* Navigationsleiste (linke Spalte) */
#column-one {
    background-color: #2d2d2d; /* Dunkelgrauer Hintergrund */
    color: #eaeaea; /* Helle Schriftfarbe */
    padding: 10px; /* Innenabstand */
    border-right: 1px solid #444; /* Trennlinie rechts */
}

#column-one h5 {
    color: #ffffff; /* Helle Überschriftenfarbe */
    font-size: 1.1em; /* Etwas größere Schriftgröße */
    margin-bottom: 10px; /* Abstand unter Überschrift */
    text-transform: uppercase; /* Überschrift in Großbuchstaben */
}

/* Links in der Navigationsleiste */
#column-one a {
    color: #79c0ff; /* Hellblau für Links */
    text-decoration: none;
}

#column-one a:hover {
    color: #47a3ff; /* Dunkleres Blau beim Hover */
    text-decoration: underline;
}

/* Titel in der Navigationsleiste */
#p-navigation {
    margin-bottom: 20px; /* Abstand zur unteren Navigation */
}

/* Kopfbereich (Header) */
#p-logo {
    margin: 20px auto; /* Zentriert das Logo */
}

#p-logo a {
    display: block;
    width: 200px; /* Größe des Logos */
    height: 50px;
    background: url("DEIN-LOGO-URL") no-repeat center center;
    background-size: contain; /* Logo skaliert passend */
}

/* Links im Hauptinhalt */
a {
    color: #0077cc; /* Standard-Linkfarbe */
    text-decoration: none; /* Keine Unterstreichung */
}

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

/* Footer */
#footer {
    margin-top: 50px; /* Abstand oberhalb des Footers */
    padding: 10px;
    background-color: #2d2d2d; /* Dunkelgrauer Hintergrund */
    color: #eaeaea; /* Helle Textfarbe */
    text-align: center; /* Zentrierter Text */
    border-top: 1px solid #444; /* Trennlinie oben */
}

/* Tabellen (Optional) */
table {
    border-collapse: collapse;
    width: 100%;
    background-color: #f9f9f9;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
}

table th {
    background-color: #0077cc;
    color: white;
    text-align: left;
}