MediaWiki:Monobook.css: Unterschied zwischen den Versionen
Aus Wolffiles
Zur Navigation springenZur Suche springen
Wahke (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Wahke (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 8: | Zeile 8: | ||
} | } | ||
/* | /* Hauptinhaltsbereich */ | ||
#content { | #content { | ||
margin-top: 50px; /* Abstand oberhalb des Hauptinhalts */ | margin-top: 50px; /* Abstand oberhalb des Hauptinhalts */ | ||
| Zeile 14: | Zeile 14: | ||
} | } | ||
/* Hauptfenster (pBody) | /* Hauptfenster (pBody) */ | ||
.pBody { | .pBody { | ||
margin-top: 20px; /* Abstand oberhalb des Hauptfensters */ | margin-top: 20px; /* Abstand oberhalb des Hauptfensters */ | ||
padding: 10px; /* | 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 | 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 | 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 | padding: 10px; /* Innenabstand */ | ||
background-color: # | 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 | /* 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 */ | |||
} | } | ||
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 */
}