MediaWiki:Monobook.css: Unterschied zwischen den Versionen

Aus Wolffiles
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Allgemeiner Seitenhintergrund */
/* Grundlegendes Layout zurücksetzen */
body {
body, html {
     background-color: #2a2a2a; /* Dunkler Hintergrund */
     margin: 0;
    background-image: url("DEIN-BILD-URL"); /* Optional: Hintergrundbild */
     padding: 0;
     background-repeat: no-repeat;
    background-size: cover;
    color: #e0e0e0; /* Helle Textfarbe */
    font-family: Arial, sans-serif; /* Moderne Schriftart */
}
}


/* Hauptcontainer für den Inhalt */
/* Kopfbereich (Header) */
#content {
#p-logo {
     margin: 20px auto; /* Zentriert den Inhalt und fügt Abstand hinzu */
     height: 100px;
     max-width: 1200px; /* Maximale Breite des Inhalts */
     background-color: #333;
     background-color: #ffffff; /* Weißer Hintergrund für den Hauptinhalt */
    color: white;
     border: 1px solid #ccc; /* Dünner grauer Rahmen */
    display: flex;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
     align-items: center;
     padding: 20px; /* Innenabstand */
     justify-content: center;
     font-size: 1.5em;
     font-weight: bold;
}
}


/* Navigation (linke Spalte) */
/* Linke Navigationsleiste */
#column-one {
#column-one {
     width: 200px; /* Feste Breite für die Navigation */
     position: fixed;
     background-color: #1a1a1a; /* Dunkler Hintergrund für Navigation */
    top: 100px; /* Höhe des Kopfbereichs */
     color: #e0e0e0; /* Helle Textfarbe */
     left: 0;
     border-right: 1px solid #333; /* Trennlinie rechts */
    width: 200px;
    float: left; /* Navigation links positionieren */
    height: calc(100% - 100px); /* Navigation bleibt unter dem Header */
    height: 100vh; /* Volle Höhe der Navigation */
     background-color: #f8f8f8;
     padding: 20px; /* Innenabstand */
     border-right: 1px solid #ccc;
     box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5); /* Schatten rechts der Navigation */
     padding: 10px;
     overflow-y: auto; /* Scrollbar, falls die Navigation zu lang ist */
}
}


/* Titel der Navigationsleiste */
/* Hauptinhaltsbereich */
#column-one h5 {
#content {
     color: #f0a500; /* Hell-orange Farbe für die Titel */
     margin-left: 210px; /* Platz für die Navigation lassen */
     font-size: 1.2em; /* Etwas größere Schriftgröße */
     padding: 20px;
     margin-bottom: 15px; /* Abstand unter den Titeln */
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
     min-height: calc(100vh - 100px); /* Füllt den Rest des Bildschirms aus */
}
}


/* Links in der Navigation */
/* Links in der Navigation */
#column-one a {
#column-one a {
     color: #e0e0e0; /* Helle Farbe für Links */
     color: #0077cc;
     text-decoration: none; /* Entfernt die Unterstreichung */
     text-decoration: none;
    font-size: 1em;
    display: block; /* Jeder Link ist ein Blockelement */
    margin: 5px 0; /* Abstand zwischen den Links */
    padding: 5px; /* Innenabstand für die Links */
    border-radius: 4px; /* Leicht abgerundete Ecken */
    transition: background-color 0.3s ease; /* Sanfter Übergang bei Hover */
}
}


#column-one a:hover {
#column-one a:hover {
    background-color: #f0a500; /* Hell-orange Hintergrundfarbe beim Überfahren */
     color: #005fa3;
    color: #1a1a1a; /* Dunkle Textfarbe */
     text-decoration: underline;
}
 
/* Hauptfenster (pBody) */
.pBody {
    margin-left: 220px; /* Platz für die linke Navigation */
    padding: 20px; /* Innenabstand im Hauptfenster */
    background-color: #ffffff; /* Weißer Hintergrund */
    border: 1px solid #ccc; /* Dünner Rahmen */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}
 
/* Kopfzeile (Header) */
#p-logo {
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    padding: 20px;
    text-align: center; /* Zentrierter Text */
    border-bottom: 2px solid #f0a500; /* Trennlinie in Orange */
}
 
#p-logo img {
    max-width: 100px; /* Maximale Breite des Logos */
    display: inline-block;
}
 
/* Footer */
#footer {
    margin-top: 20px; /* Abstand oberhalb des Fußbereichs */
    padding: 20px; /* Innenabstand im Footer */
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    color: #e0e0e0; /* Helle Schriftfarbe */
    text-align: center; /* Zentrierter Text */
    border-top: 1px solid #333; /* Dünne Trennlinie oben */
}
 
/* Globale Anpassungen */
h1, h2, h3 {
    color: #333; /* Dunkle Farbe für Überschriften */
    margin-bottom: 20px; /* Abstand unter den Überschriften */
}
 
a {
    color: #0077cc; /* Standard-Linkfarbe */
    text-decoration: none; /* Keine Unterstreichung */
}
 
a:hover {
     color: #005fa3; /* Dunklere Farbe beim Überfahren */
     text-decoration: underline; /* Unterstreichung bei Hover */
}
}

Version vom 5. Januar 2025, 11:11 Uhr

/* Grundlegendes Layout zurücksetzen */
body, html {
    margin: 0;
    padding: 0;
}

/* Kopfbereich (Header) */
#p-logo {
    height: 100px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

/* Linke Navigationsleiste */
#column-one {
    position: fixed;
    top: 100px; /* Höhe des Kopfbereichs */
    left: 0;
    width: 200px;
    height: calc(100% - 100px); /* Navigation bleibt unter dem Header */
    background-color: #f8f8f8;
    border-right: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto; /* Scrollbar, falls die Navigation zu lang ist */
}

/* Hauptinhaltsbereich */
#content {
    margin-left: 210px; /* Platz für die Navigation lassen */
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 100px); /* Füllt den Rest des Bildschirms aus */
}

/* Links in der Navigation */
#column-one a {
    color: #0077cc;
    text-decoration: none;
}

#column-one a:hover {
    color: #005fa3;
    text-decoration: underline;
}