MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus CMO
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
UweS (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 115: | Zeile 115: | ||
/*Zeilennummerierung*/ | /*Zeilennummerierung*/ | ||
/* einheitlicher linker Gutter für alle Zeilen */ | |||
.poem { | .poem { | ||
padding-left: 3.2em; /* Platz für 2–3-stellige Nummern */ | |||
line-height: 1.6em; | line-height: 1.6em; | ||
} | } | ||
/* 0-Breite Anker vor der Zeile; schiebt Text NICHT */ | |||
.poem .znw { | |||
position: relative; | |||
display: inline-block; | |||
width: 0; | |||
} | |||
/* Nummer in den Gutter zeichnen */ | |||
.poem .zeilennummer { | .poem .zeilennummer { | ||
position: absolute; | |||
width: | right: 100%; | ||
width: 2.6em; /* bei 3-stellig ggf. 3.2em */ | |||
text-align: right; | text-align: right; | ||
font-size: 85%; /* kleiner, ohne Hochrutschen */ | |||
line-height: 1.6em; /* wie .poem */ | |||
color: #666; | color: #666; | ||
/* Feintuning bei Bedarf: | |||
transform: translateY(0.1em); */ | |||
} | } | ||
Version vom 15. September 2025, 02:36 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; }
/* Zweizeilige Tabelle mit Rahmen */
.mw-parser-output .tabelle-zweizeilig {
width: 90%;
margin: 1em auto;
border-collapse: collapse;
text-align: center;
border: 1px solid #aaa;
}
.mw-parser-output .tabelle-zweizeilig td,
.mw-parser-output .tabelle-zweizeilig th {
border: 1px solid #aaa;
padding: .5em;
}
/* obere Zeile */
.mw-parser-output .tabelle-zweizeilig tr:first-child td,
.mw-parser-output .tabelle-zweizeilig tr:first-child th {
background: #f2f2f2;
font-size: 90%;
}
/* untere Zeile */
.mw-parser-output .tabelle-zweizeilig tr:last-child td,
.mw-parser-output .tabelle-zweizeilig tr:last-child th {
font-size: 80%;
}
/* Mobil: volle Breite + kleinere Schrift + kompakteres Padding */
@media (max-width: 600px) {
.mw-parser-output .tabelle-zweizeilig {
width: 100%;
}
.mw-parser-output .tabelle-zweizeilig td,
.mw-parser-output .tabelle-zweizeilig th {
padding: .25em; /* halbiertes Padding */
}
.mw-parser-output .tabelle-zweizeilig tr:first-child td,
.mw-parser-output .tabelle-zweizeilig tr:first-child th {
font-size: 80%;
}
.mw-parser-output .tabelle-zweizeilig tr:last-child td,
.mw-parser-output .tabelle-zweizeilig tr:last-child th {
font-size: 70%;
}
}
/*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 */
#n-CM---Werk > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: #592e64;/* lila */
}
#n-CM---Leben > a::before {
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
background: #81c244;/* Grün */
}
#n-CM---Quellen > a::before {
background: #06aae9;/* Blau */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
#n-CM---über-CM > a::before {
background: #f2d114;/* gelb */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
#n-CMG > a::before {
background: #f49521;/* orange */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
#n-Museum > a::before {
background: #d71f35;/* rot */
content: "";
display: inline-block;
width: .4em;
height: 1em;
margin-right: .4em;
}
/*Zeilennummerierung*/
/* einheitlicher linker Gutter für alle Zeilen */
.poem {
padding-left: 3.2em; /* Platz für 2–3-stellige Nummern */
line-height: 1.6em;
}
/* 0-Breite Anker vor der Zeile; schiebt Text NICHT */
.poem .znw {
position: relative;
display: inline-block;
width: 0;
}
/* Nummer in den Gutter zeichnen */
.poem .zeilennummer {
position: absolute;
right: 100%;
width: 2.6em; /* bei 3-stellig ggf. 3.2em */
text-align: right;
font-size: 85%; /* kleiner, ohne Hochrutschen */
line-height: 1.6em; /* wie .poem */
color: #666;
/* Feintuning bei Bedarf:
transform: translateY(0.1em); */
}