MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus CMO

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(20 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 14: Zeile 14:
</div>
</div>
*/
*/
.mw-navbar .mw-desktop-sitename,
.mw-navbar .mw-desktop-sitename a,
.mw-navbar .mw-desktop-sitename::after {
  color: #2B2B2B !important;
}


/*Zusatz in Skin-Farbbalken */
/*Zusatz in Skin-Farbbalken */
Zeile 36: Zeile 30:
   height: 1em;
   height: 1em;
   margin-right: .4em;
   margin-right: .4em;
   background: #592e64;/* lila */
   background: #9B3A2F;/* Karminrot */
}
}


Zeile 45: Zeile 39:
   height: 1em;
   height: 1em;
   margin-right: .4em;
   margin-right: .4em;
   background: #81c244;/* Grün */
   background: #1F5A5E;/* Petrol */
}
}


#n-CM---Quellen > a::before {
#n-CM---Quellen > a::before {
   background: #06aae9;/* Blau */
   background: #C89B3C;/* Goldocker */
   content: "";
   content: "";
   display: inline-block;
   display: inline-block;
Zeile 58: Zeile 52:


#n-CM---Rezeptionen > a::before {
#n-CM---Rezeptionen > a::before {
   background: #f2d114;/* gelb */
   background: #5A3E5B;/* Aubergine */
   content: "";
   content: "";
   display: inline-block;
   display: inline-block;
Zeile 67: Zeile 61:


#n-CMG > a::before {
#n-CMG > a::before {
   background: #f49521;/* orange */
   background: #4F8C7A;/* Türkisgrün */
   content: "";
   content: "";
   display: inline-block;
   display: inline-block;
Zeile 76: Zeile 70:


#n-Museum > a::before {
#n-Museum > a::before {
   background: #d71f35;/* rot */
   background: #5E6F3E;/* Moosgrün */
   content: "";
   content: "";
   display: inline-block;
   display: inline-block;
Zeile 85: Zeile 79:


#n-Projekt > a::before {
#n-Projekt > a::before {
   background: #5972c6;
   background: #E6E1D8;/* Warmes Grau*/
   content: "";
   content: "";
   display: inline-block;
   display: inline-block;
Zeile 110: Zeile 104:
   line-height: 1.6em;
   line-height: 1.6em;
}
}
/* Textausrichtung Tabelle Gedichtinformation
.gedichtinformation td,
.gedichtinformation th {
  vertical-align: top;
}*/


/*Textauszeichnung "gesperrt" */
/*Textauszeichnung "gesperrt" */
Zeile 185: Zeile 173:
   margin: 0;
   margin: 0;
   padding: 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 #9B3A2F;
}
/* Leben – Petrol (später) */
.box-leben {
  border-top: 8px solid #1F5A5E;
}
/* Quellen – Goldocker (später) */
.box-quellen {
  border-top: 8px solid #C89B3C;
}
/* Rezeptionen – Aubergine (später) */
.box-rezeptionen {
  border-top: 8px solid #5A3E5B;
}
/* CMG – Türkisgrün (später) */
.box-cmg {
  border-top: 8px solid #4F8C7A;
}
/* Museum – Moosgrün (später) */
.box-museum {
  border-top: 8px solid #5E6F3E;
}
/* CMO – Warmes Grau */
.box-cmo {
  border-top: 8px solid #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;
  }
}
/* 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;
}
}

Aktuelle Version vom 18. April 2026, 01:02 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;
}

/*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 #9B3A2F;
}

/* Leben – Petrol (später) */
.box-leben {
  border-top: 8px solid #1F5A5E;
}

/* Quellen – Goldocker (später) */
.box-quellen {
  border-top: 8px solid #C89B3C;
}

/* Rezeptionen – Aubergine (später) */
.box-rezeptionen {
  border-top: 8px solid #5A3E5B;
}

/* CMG – Türkisgrün (später) */
.box-cmg {
  border-top: 8px solid #4F8C7A;
}

/* Museum – Moosgrün (später) */
.box-museum {
  border-top: 8px solid #5E6F3E;
}

/* CMO – Warmes Grau */
.box-cmo {
  border-top: 8px solid #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;
  }
}

/* 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;
}