MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus CMO
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 197: | Zeile 197: | ||
/* ========================================================= | /* ========================================================= | ||
Startseite CMO – Boxenlayout ( | Startseite CMO – Boxenlayout (linksfarbiger Streifen) | ||
========================================================= */ | ========================================================= */ | ||
/* === Grid-Container | /* === Grid-Container === */ | ||
.startseite-boxen { | .startseite-boxen { | ||
display: grid; | display: grid; | ||
| Zeile 208: | Zeile 208: | ||
} | } | ||
/* === | /* === Grundbox === */ | ||
.box { | .box { | ||
padding: 1em 1.2em; | position: relative; | ||
padding: 1em 1.2em 1em 1.8em; /* Platz für linken Streifen */ | |||
background: #ffffff; | background: #ffffff; | ||
border-radius: | border-top: none; /* kein oberer Streifen mehr */ | ||
border-radius: 0; /* kein Radius */ | |||
box-shadow: 0 1px 3px rgba(0,0,0,0.08); | box-shadow: 0 1px 3px rgba(0,0,0,0.08); | ||
} | |||
/* === linker Farbstreifen (Standardbreite) === */ | |||
.box::before { | |||
content: ""; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 8px; | |||
height: 100%; | |||
background: transparent; /* wird je Box-Typ gesetzt */ | |||
} | } | ||
| Zeile 225: | Zeile 238: | ||
/* ========================================================= | /* ========================================================= | ||
Farbzuordnung ( | Farbzuordnung – linker Streifen | ||
Jugendstil-System J2 (final) | |||
========================================================= */ | ========================================================= */ | ||
/* Werk – Karminrot */ | /* Werk – Karminrot */ | ||
.box-werk { | .box-werk::before { | ||
background: #9B3A2F; | |||
} | } | ||
/* Leben – Petrol | /* Leben – Petrol */ | ||
.box-leben { | .box-leben::before { | ||
background: #1F5A5E; | |||
} | } | ||
/* Quellen – Goldocker | /* Quellen – Goldocker */ | ||
.box-quellen { | .box-quellen::before { | ||
background: #C89B3C; | |||
} | } | ||
/* Rezeptionen – Aubergine | /* Rezeptionen – Aubergine */ | ||
.box-rezeptionen { | .box-rezeptionen::before { | ||
background: #5A3E5B; | |||
} | } | ||
/* CMG – Türkisgrün | /* CMG – Türkisgrün */ | ||
.box-cmg { | .box-cmg::before { | ||
background: #4F8C7A; | |||
} | } | ||
/* Museum – Moosgrün | /* Museum – Moosgrün */ | ||
.box-museum { | .box-museum::before { | ||
background: #5E6F3E; | |||
} | } | ||
/* CMO – Warmes Grau */ | /* CMO – Warmes Grau */ | ||
.box-cmo { | .box-cmo::before { | ||
background: #E6E1D8; | |||
} | } | ||
| Zeile 279: | Zeile 293: | ||
} | } | ||
/* === Startseite: Listen === */ | /* === Startseite: Listen === */ | ||
Version vom 8. Februar 2026, 20:08 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/*Verindert das Anzeigen des Inhaltsverzeichnisses, das Inhalrsverzeichnis existiert aber noch für barrierefreiheit */
.mw-parser-output .toc { display: none; }
/* Opt-in: Wenn __TOC__ in einem Wrapper sitzt, wieder anzeigen */
.mw-parser-output .show-toc .toc {
display: block; /* bei Bedarf mit !important */
}
/* Das muss man dann auf der Seite eintragen, wenn das Inhaltsverzeichnis eingeblendet werden soll
<div class="show-toc">
__TOC__
</div>
*/
/*Zusatz in Skin-Farbbalken */
.mw-desktop-sitename::after {
content: " Christian-Morgenstern-Online";
font-weight: normal;
font-size: 90%;
margin-left: .25em;
}
/* Grundlayout: schmaler Balken links neben dem Link in Sidebar */
#n-CM---Werk > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: #9B3A2F;/* Karminrot */
}
#n-CM---Leben > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: #1F5A5E;/* Petrol */
}
#n-CM---Quellen > a::before {
background: #C89B3C;/* Goldocker */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
#n-CM---Rezeptionen > a::before {
background: #5A3E5B;/* Aubergine */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
#n-CMG > a::before {
background: #4F8C7A;/* Türkisgrün */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
#n-Museum > a::before {
background: #5E6F3E;/* Moosgrün */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
#n-Projekt > a::before {
background: #E6E1D8;/* Warmes Grau*/
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
/*Zeilennummerierung*/
.poem {
margin-left: 3.5em;
line-height: 1.6em;
position: relative;
}
.poem .zeilennummer {
position: absolute;
left: -3.5em;
width: 3em;
text-align: right;
color: #666;
font-size: 85%;
line-height: 1.6em;
}
/* Textausrichtung Tabelle Gedichtinformation
.gedichtinformation td,
.gedichtinformation th {
vertical-align: top;
}*/
/*Textauszeichnung "gesperrt" */
.gesperrt {
letter-spacing: 0.12em;
}
/*Textauszeichnung "Serifenschrift" */
.serif {
font-family: serif;
}
/*Textauszeichnung "Kapitälchen" */
.kap {
font-variant:small-caps;
}
/*Einrückung mit : funzt nicht, da margin-left auf 0, das wird hier geändert*/
dl dd {
margin-left: 1.6em !important;
}
/* Luftigere Darstellung für Tabellen */
.wikitable {
border-collapse: collapse;
border: 1px solid #aaa;
}
.wikitable th,
.wikitable td {
padding: 6px 10px; /* etwas mehr Luft */
vertical-align: top;
border: 1px solid #aaa;
}
.wikitable th {
background-color: #f8f8f8; /* leichtes Grau für Kopfzeile */
}
/* Zusammenfassung ausblenden */
#wpSummary,
label[for="wpSummary"] {
display: none !important;
}
/* Minor-Edit-Checkbox ausblenden */
#wpMinoredit,
label[for="wpMinoredit"] {
display: none !important;
}
/*Wenige Gedichte von CM sind achszenriert*/
/* Grund-Wrapper für achszentrierte Gedichte */
.gedicht-achs-wrapper {
text-align: left;
margin: 0.5em 0;
padding: 0;
}
/* drei Abstufungen für Abstand zur Zeilennummern-Spalte */
.gedicht-achs-wrapper-schmal { margin-left: 0.5em; }
.gedicht-achs-wrapper-mittel { margin-left: 1.5em; }
.gedicht-achs-wrapper-breit { margin-left: 3em; }
/* Gedichtblock: Breite ergibt sich automatisch aus der längsten Zeile */
.poem.poem-achs {
display: inline-block;
text-align: center;
margin: 0;
padding: 0;
}
@media screen {
/* Nur linker Headerbereich (Banner/Sitename) */
#p-banner,
#p-banner a,
#p-banner:visited,
#p-banner:hover,
#p-banner a:visited,
#p-banner a:hover,
#p-banner .mw-desktop-sitename,
#p-banner .mw-desktop-sitename a,
#p-banner .mw-desktop-sitename::after {
color: #2B2B2B !important;
}
}
/* =========================================================
Startseite CMO – Boxenlayout (linksfarbiger Streifen)
========================================================= */
/* === Grid-Container === */
.startseite-boxen {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5em;
margin: 1.5em 0;
}
/* === Grundbox === */
.box {
position: relative;
padding: 1em 1.2em 1em 1.8em; /* Platz für linken Streifen */
background: #ffffff;
border-top: none; /* kein oberer Streifen mehr */
border-radius: 0; /* kein Radius */
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* === linker Farbstreifen (Standardbreite) === */
.box::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 8px;
height: 100%;
background: transparent; /* wird je Box-Typ gesetzt */
}
/* === Box-Titel === */
.box > b,
.box > strong {
display: block;
margin-bottom: 0.6em;
font-size: 110%;
}
/* =========================================================
Farbzuordnung – linker Streifen
Jugendstil-System J2 (final)
========================================================= */
/* Werk – Karminrot */
.box-werk::before {
background: #9B3A2F;
}
/* Leben – Petrol */
.box-leben::before {
background: #1F5A5E;
}
/* Quellen – Goldocker */
.box-quellen::before {
background: #C89B3C;
}
/* Rezeptionen – Aubergine */
.box-rezeptionen::before {
background: #5A3E5B;
}
/* CMG – Türkisgrün */
.box-cmg::before {
background: #4F8C7A;
}
/* Museum – Moosgrün */
.box-museum::before {
background: #5E6F3E;
}
/* CMO – Warmes Grau */
.box-cmo::before {
background: #E6E1D8;
}
/* =========================================================
Responsive Anpassungen
========================================================= */
@media (max-width: 1100px) {
.startseite-boxen {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 700px) {
.startseite-boxen {
grid-template-columns: 1fr;
}
}
/* === Startseite: Listen === */
.startseite-boxen ul,
.startseite-boxen ol {
margin-left: 0;
padding-left: 1em;
}
.startseite-boxen li {
margin-left: 0;
padding-left: 0;
}