MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus CMO
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 393: | Zeile 393: | ||
/* ========================================================= | /* ========================================================= | ||
Info- und Übersichtsboxen | |||
Zwei Bausteine, ein Aussehen. Infoboxen tragen | |||
class="cmo-infobox", | class="cmo-infobox", Übersichtsboxen class="cmo-uebersicht". | ||
Dazu wahlweise eine Bereichsklasse, die nur die Linienfarbe | |||
tauscht: cmo-werk, cmo-leben, cmo-quellen, cmo-rezeptionen, | |||
cmo-cmg, cmo-museum, cmo-cmo. | |||
Ohne Bereichsklasse gelten die Werte des Bereichs Werk. | |||
Fläche ist immer #F7F7F7, sie wechselt nie. | |||
========================================================= */ | ========================================================= */ | ||
/* Linienfarben je Bereich. Abgeschwächte Töne, nicht die | |||
Bereichshauptfarben aus dem :root-Block oben. Zum Ändern | |||
genügt eine Zeile. */ | |||
table.cmo-infobox, | |||
table.cmo-uebersicht { | |||
--linie: #DFC9C9; /* Werk, aus Karminrot */ | |||
--linie-innen: #E8D5D5; | |||
} | |||
table.cmo-infobox.cmo-werk, | |||
table.cmo-uebersicht.cmo-werk { --linie: #DFC9C9; --linie-innen: #E8D5D5; } | |||
table.cmo-infobox.cmo-leben, | |||
table.cmo-uebersicht.cmo-leben { --linie: #CDDBDC; --linie-innen: #E4EBEC; } | |||
table.cmo-infobox.cmo-quellen, | |||
table.cmo-uebersicht.cmo-quellen { --linie: #E0D2A8; --linie-innen: #EDE6D2; } | |||
table.cmo-infobox.cmo-rezeptionen, | |||
table.cmo-uebersicht.cmo-rezeptionen { --linie: #D1C9D1; --linie-innen: #E6E2E6; } | |||
table.cmo-infobox.cmo-cmg, | |||
table.cmo-uebersicht.cmo-cmg { --linie: #D8E6E2; --linie-innen: #EAF1EF; } | |||
table.cmo-infobox.cmo-museum, | |||
table.cmo-uebersicht.cmo-museum { --linie: #D2D7C9; --linie-innen: #E7E9E2; } | |||
table.cmo-infobox.cmo-cmo, | |||
table.cmo-uebersicht.cmo-cmo { --linie: #D5CFC2; --linie-innen: #E4DFD4; } | |||
/* ---------- Infobox ---------- */ | |||
table.cmo-infobox { | table.cmo-infobox { | ||
| Zeile 406: | Zeile 434: | ||
font-size: 95%; | font-size: 95%; | ||
background-color: #F7F7F7; | background-color: #F7F7F7; | ||
border: 1px solid | border: 1px solid var(--linie); | ||
} | } | ||
table.cmo-infobox td { | table.cmo-infobox td { | ||
vertical-align: top; | vertical-align: top; | ||
padding: 0.3em 0.6em; | padding: 0.3em 0.6em; | ||
border-bottom: 1px solid | border-bottom: 1px solid var(--linie-innen); | ||
} | } | ||
table.cmo-infobox td:first-child { | table.cmo-infobox td:first-child { | ||
| Zeile 427: | Zeile 455: | ||
} | } | ||
/* | /* ---------- Übersichtsbox ---------- */ | ||
table.cmo- | table.cmo-uebersicht { | ||
table.cmo- | width: 100%; | ||
margin: 1em 0 0.4em 0; | |||
border-collapse: collapse !important; | |||
border-spacing: 0; | |||
border: 1px solid var(--linie); | |||
border-radius: 0 !important; | |||
font-size: 100%; | |||
color: #777; /* Trennstriche zwischen den Titeln */ | |||
text-align: left; | |||
} | |||
table.cmo-uebersicht td, | |||
table.cmo-uebersicht th { | |||
border: 1px solid var(--linie-innen); | |||
padding: 0.4em 0.6em; | |||
vertical-align: top; | |||
} | |||
/* Außenkanten einfarbig halten */ | |||
table.cmo-uebersicht tr:first-child > * { border-top-color: var(--linie); } | |||
table.cmo-uebersicht tr:last-child > * { border-bottom-color: var(--linie); } | |||
table.cmo-uebersicht tr > *:first-child { border-left-color: var(--linie); } | |||
table.cmo-uebersicht tr > *:last-child { border-right-color: var(--linie); } | |||
/* Trennlinie zwischen Kopf- und Inhaltszeile */ | |||
table.cmo-uebersicht tr:first-child > * { border-bottom-color: var(--linie-innen); } | |||
table.cmo-uebersicht tr:nth-child(2) > * { border-top-color: var(--linie-innen); } | |||
/* Kopfzeile */ | |||
table.cmo-uebersicht tr:first-child td, | |||
table.cmo-uebersicht tr:first-child th { | |||
background: #F7F7F7; | |||
font-size: 95%; | |||
color: #555; | |||
padding-left: 2em; | |||
} | |||
/* aktuelle Seite */ | |||
table.cmo-uebersicht .mw-selflink, | |||
table.cmo-uebersicht strong.selflink { | |||
color: #666; | |||
font-weight: bold; | |||
text-decoration: none; | |||
cursor: default; | |||
} | |||
/* Platzhalter „–“ aus Vorlage:LeeresFeld */ | /* Platzhalter „–“ aus Vorlage:LeeresFeld */ | ||
| Zeile 436: | Zeile 507: | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
Linkfarben in | Linkfarben in beiden Boxen. Einziger Ort für diese Werte. | ||
!important ist nötig gegen die Regel | !important ist nötig gegen die Regel | ||
#content a:not(.new):visited { color: #007bff } | #content a:not(.new):visited { color: #007bff } | ||
| Zeile 467: | Zeile 537: | ||
/* ------------------------------ | /* ------------------------------ | ||
Druckansicht | Mobil | ||
------------------------------ */ | |||
@media (max-width: 600px) { | |||
table.cmo-uebersicht td, | |||
table.cmo-uebersicht th { padding: .25em; } | |||
table.cmo-uebersicht tr:first-child td, | |||
table.cmo-uebersicht tr:first-child th { font-size: 80%; } | |||
table.cmo-uebersicht tr:last-child td, | |||
table.cmo-uebersicht tr:last-child th { font-size: 70%; } | |||
} | |||
/* ------------------------------ | |||
Druckansicht | |||
------------------------------ */ | ------------------------------ */ | ||
@media print { | @media print { | ||
table.cmo-infobox { | table.cmo-infobox, | ||
table.cmo-uebersicht { | |||
--linie: #999; | |||
--linie-innen: #999; | |||
background: none; | background: none; | ||
font-size: 90%; | font-size: 90%; | ||
| Zeile 477: | Zeile 561: | ||
page-break-inside: avoid; | page-break-inside: avoid; | ||
} | } | ||
table.cmo-infobox td { | table.cmo-infobox td { | ||
border: none; | border: none; | ||
| Zeile 490: | Zeile 573: | ||
table.cmo-infobox td:last-child { width: 75%; } | table.cmo-infobox td:last-child { width: 75%; } | ||
table.cmo-infobox td a:link, | table.cmo-infobox td a:link, | ||
table.cmo-infobox td a:visited { | table.cmo-infobox td a:visited, | ||
table.cmo-uebersicht td a:link, | |||
table.cmo-uebersicht td a:visited { | |||
color: #000 !important; | color: #000 !important; | ||
text-decoration: none; | text-decoration: none; | ||
Aktuelle Version vom 24. August 2026, 19:43 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* =========================================================
Bereichsfarben
Zuordnung Bereich zu Farbe. Wird an zwei Stellen verwendet:
Sidebar-Marken und Startseitenboxen.
========================================================= */
:root {
--cmo-werk: #9B3A2F; /* Karminrot */
--cmo-leben: #1F5A5E; /* Petrol */
--cmo-quellen: #C89B3C; /* Goldocker */
--cmo-rezeptionen: #5A3E5B; /* Aubergine */
--cmo-cmg: #4F8C7A; /* Türkisgrün */
--cmo-museum: #5E6F3E; /* Moosgrün */
--cmo-cmo: #E6E1D8; /* Warmes Grau */
}
/*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: var(--cmo-werk) /* Karminrot */
}
#n-CM---Leben > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: var(--cmo-leben) /* Petrol */
}
#n-CM---Quellen > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: var(--cmo-quellen) /* Goldocker */
}
#n-CM---Rezeptionen > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: var(--cmo-rezeptionen) /* Aubergine */
}
#n-CMG > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: var(--cmo-cmg) /* Türkisgrün */
}
#n-Museum > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: var(--cmo-museum) /* Moosgrün */
}
#n-Projekt > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: var(--cmo-cmo); /*warmes grau */
}
/*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;
}
/*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 (Desktop / Responsive)
========================================================= */
/* === Grid-Container für alle Boxen === */
.startseite-boxen {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5em;
margin: 1.5em 0;
}
/* === Einzelne Box === */
.box {
padding: 1em 1.2em;
background: #ffffff;
border-radius: 0px;
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* === Box-Titel === */
.box > b,
.box > strong {
display: block;
margin-bottom: 0.6em;
font-size: 110%;
}
/* =========================================================
Farbzuordnung (Akzent oben)
========================================================= */
/* Werk – Karminrot */
.box-werk {
border-top: 8px solid var(--cmo-werk);
}
/* Leben – Petrol */
.box-leben {
border-top: 8px solid var(--cmo-leben);
}
/* Quellen – Goldocker */
.box-quellen {
border-top: 8px solid var(--cmo-quellen);
}
/* Rezeptionen – Aubergine */
.box-rezeptionen {
border-top: 8px solid var(--cmo-rezeptionen);
}
/* CMG – Türkisgrün */
.box-cmg {
border-top: 8px solid var(--cmo-cmg);
}
/* Museum – Moosgrün */
.box-museum {
border-top: 8px solid var(--cmo-museum);
}
/* CMO – Warmes Grau */
.box-cmo {
border-top: 8px solid var(--cmo-cmo);
}
/* =========================================================
Responsive Anpassungen
========================================================= */
@media (max-width: 1100px) {
.startseite-boxen {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 700px) {
.startseite-boxen {
grid-template-columns: 1fr;
}
}
/* Box über volle Zeile, links beginnend */
.box-full-left {
grid-column: 1 / -1;
}
/* === Startseite: Listen === */
.startseite-boxen ul,
.startseite-boxen ol {
margin-left: 0;
padding-left: 1em;
}
.startseite-boxen li {
margin-left: 0;
padding-left: 0;
}
/* Zeigt nur die 1. Ebene eines Inhaltsverzeichnisses an */
.toc-nur-ebene-1 .toc ul ul {
display: none;
}
/* Navigation im Museum-Namespace ausblenden */
.ns-200 #mw-navigation {
display: none;
}
/* Hauptinhalt auf volle Breite, da Sidebar wegfällt */
.ns-200 #mw-main-container .col-md-9 {
flex: 0 0 100%;
max-width: 100%;
}
/* Suchfeld wird im Namespace Museum ausgeblendet */
.ns-200 #p-search.mw-portlet {
display: none;
}
/* Logo wirddamit nicht mehr klickbar */
.ns-200 #p-logo a {
pointer-events: none;
cursor: default;
}
/* =========================================================
CMO:Datierungsmodell – Gutachten-Layout
========================================================= */
/* Viererspaltiges Raster für Schulen-Karten */
.cmo-gutachten-raster {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1em;
margin: 1em 0 1.5em;
}
@media (max-width: 700px) {
.cmo-gutachten-raster {
grid-template-columns: 1fr;
}
}
/* Einzelne Schulen-Karte */
.cmo-gutachten-karte {
border-top: 4px solid #ccc;
background: #faf9f7;
padding: 0.9em 1.1em;
font-size: 95%;
}
/* Feldbox mit linkem Akzentstreifen */
.cmo-gutachten-feldbox {
border-left: 5px solid #ccc;
background: #faf9f7;
padding: 0.8em 1.2em;
margin: 0.8em 0 1em;
font-size: 95%;
}
/* Hinweisbox (TEI-Regeln o.ä.) */
.cmo-gutachten-hinweis {
background: #fdf6e3;
border: 1px solid #e0c97a;
border-left: 4px solid #C89B3C;
padding: 0.7em 1.1em;
margin: 1em 0;
font-size: 93%;
}
/* Akzentfarben oben (Karten) */
.cmo-akzent-karmin { border-top-color: #9B3A2F; }
.cmo-akzent-petrol { border-top-color: #1F5A5E; }
.cmo-akzent-gold { border-top-color: #C89B3C; }
.cmo-akzent-aubergine { border-top-color: #5A3E5B; }
/* Akzentfarben links (Feldboxen) */
.cmo-akzent-karmin-links { border-left-color: #9B3A2F; }
.cmo-akzent-petrol-links { border-left-color: #1F5A5E; }
.cmo-akzent-gold-links { border-left-color: #C89B3C; }
.cmo-akzent-aubergine-links { border-left-color: #5A3E5B; }
.cmo-akzent-moos-links { border-left-color: #5E6F3E; }
/* =========================================================
Info- und Übersichtsboxen
Zwei Bausteine, ein Aussehen. Infoboxen tragen
class="cmo-infobox", Übersichtsboxen class="cmo-uebersicht".
Dazu wahlweise eine Bereichsklasse, die nur die Linienfarbe
tauscht: cmo-werk, cmo-leben, cmo-quellen, cmo-rezeptionen,
cmo-cmg, cmo-museum, cmo-cmo.
Ohne Bereichsklasse gelten die Werte des Bereichs Werk.
Fläche ist immer #F7F7F7, sie wechselt nie.
========================================================= */
/* Linienfarben je Bereich. Abgeschwächte Töne, nicht die
Bereichshauptfarben aus dem :root-Block oben. Zum Ändern
genügt eine Zeile. */
table.cmo-infobox,
table.cmo-uebersicht {
--linie: #DFC9C9; /* Werk, aus Karminrot */
--linie-innen: #E8D5D5;
}
table.cmo-infobox.cmo-werk,
table.cmo-uebersicht.cmo-werk { --linie: #DFC9C9; --linie-innen: #E8D5D5; }
table.cmo-infobox.cmo-leben,
table.cmo-uebersicht.cmo-leben { --linie: #CDDBDC; --linie-innen: #E4EBEC; }
table.cmo-infobox.cmo-quellen,
table.cmo-uebersicht.cmo-quellen { --linie: #E0D2A8; --linie-innen: #EDE6D2; }
table.cmo-infobox.cmo-rezeptionen,
table.cmo-uebersicht.cmo-rezeptionen { --linie: #D1C9D1; --linie-innen: #E6E2E6; }
table.cmo-infobox.cmo-cmg,
table.cmo-uebersicht.cmo-cmg { --linie: #D8E6E2; --linie-innen: #EAF1EF; }
table.cmo-infobox.cmo-museum,
table.cmo-uebersicht.cmo-museum { --linie: #D2D7C9; --linie-innen: #E7E9E2; }
table.cmo-infobox.cmo-cmo,
table.cmo-uebersicht.cmo-cmo { --linie: #D5CFC2; --linie-innen: #E4DFD4; }
/* ---------- Infobox ---------- */
table.cmo-infobox {
width: 100%;
border-collapse: collapse;
margin: 0.4em 0;
font-size: 95%;
background-color: #F7F7F7;
border: 1px solid var(--linie);
}
table.cmo-infobox td {
vertical-align: top;
padding: 0.3em 0.6em;
border-bottom: 1px solid var(--linie-innen);
}
table.cmo-infobox td:first-child {
width: 20%;
font-style: italic;
color: #444;
white-space: nowrap;
}
table.cmo-infobox td:last-child {
width: 80%;
color: #111;
}
table.cmo-infobox tr:last-child td {
border-bottom: none;
}
/* ---------- Übersichtsbox ---------- */
table.cmo-uebersicht {
width: 100%;
margin: 1em 0 0.4em 0;
border-collapse: collapse !important;
border-spacing: 0;
border: 1px solid var(--linie);
border-radius: 0 !important;
font-size: 100%;
color: #777; /* Trennstriche zwischen den Titeln */
text-align: left;
}
table.cmo-uebersicht td,
table.cmo-uebersicht th {
border: 1px solid var(--linie-innen);
padding: 0.4em 0.6em;
vertical-align: top;
}
/* Außenkanten einfarbig halten */
table.cmo-uebersicht tr:first-child > * { border-top-color: var(--linie); }
table.cmo-uebersicht tr:last-child > * { border-bottom-color: var(--linie); }
table.cmo-uebersicht tr > *:first-child { border-left-color: var(--linie); }
table.cmo-uebersicht tr > *:last-child { border-right-color: var(--linie); }
/* Trennlinie zwischen Kopf- und Inhaltszeile */
table.cmo-uebersicht tr:first-child > * { border-bottom-color: var(--linie-innen); }
table.cmo-uebersicht tr:nth-child(2) > * { border-top-color: var(--linie-innen); }
/* Kopfzeile */
table.cmo-uebersicht tr:first-child td,
table.cmo-uebersicht tr:first-child th {
background: #F7F7F7;
font-size: 95%;
color: #555;
padding-left: 2em;
}
/* aktuelle Seite */
table.cmo-uebersicht .mw-selflink,
table.cmo-uebersicht strong.selflink {
color: #666;
font-weight: bold;
text-decoration: none;
cursor: default;
}
/* Platzhalter „–“ aus Vorlage:LeeresFeld */
.gf-placeholder { color: #999; }
/* ---------------------------------------------------------
Linkfarben in beiden Boxen. Einziger Ort für diese Werte.
!important ist nötig gegen die Regel
#content a:not(.new):visited { color: #007bff }
aus Medik_screen.css. Sie enthält einen ID-Selektor.
--------------------------------------------------------- */
table.cmo-infobox td a:link,
table.cmo-uebersicht td a:link {
color: #8ea7cf !important;
text-decoration: none;
}
table.cmo-infobox td a:visited,
table.cmo-uebersicht td a:visited {
color: #9aa1c0 !important;
text-decoration: none;
}
table.cmo-infobox td a:hover,
table.cmo-uebersicht td a:hover {
color: #5f7eb5 !important;
text-decoration: underline;
}
/* fehlende Seiten */
table.cmo-infobox td a.new:link,
table.cmo-infobox td a.new:visited,
table.cmo-uebersicht td a.new:link,
table.cmo-uebersicht td a.new:visited { color: #c58a8a !important; }
table.cmo-infobox td a.new:hover,
table.cmo-uebersicht td a.new:hover { color: #a96c6c !important; }
/* ------------------------------
Mobil
------------------------------ */
@media (max-width: 600px) {
table.cmo-uebersicht td,
table.cmo-uebersicht th { padding: .25em; }
table.cmo-uebersicht tr:first-child td,
table.cmo-uebersicht tr:first-child th { font-size: 80%; }
table.cmo-uebersicht tr:last-child td,
table.cmo-uebersicht tr:last-child th { font-size: 70%; }
}
/* ------------------------------
Druckansicht
------------------------------ */
@media print {
table.cmo-infobox,
table.cmo-uebersicht {
--linie: #999;
--linie-innen: #999;
background: none;
font-size: 90%;
width: 100%;
page-break-inside: avoid;
}
table.cmo-infobox td {
border: none;
padding: 0.2em 0.5em;
color: #000;
}
table.cmo-infobox td:first-child {
font-style: italic;
color: #000;
width: 25%;
}
table.cmo-infobox td:last-child { width: 75%; }
table.cmo-infobox td a:link,
table.cmo-infobox td a:visited,
table.cmo-uebersicht td a:link,
table.cmo-uebersicht td a:visited {
color: #000 !important;
text-decoration: none;
}
.gf-placeholder { color: #555; }
}