MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Eressea
Zur Navigation springenZur Suche springen
KKeine Bearbeitungszusammenfassung
(row_layout: z.B. 2 Tabellen nebeneinander)
Zeile 49: Zeile 49:
}
}


/* layout divs in a row if possible */
.row_layout {
  display: flex;
  flex-flow: row wrap;
}


 
.row_element {
table.zebra {
  flex: 1;
}
}


Zeile 69: Zeile 74:
   background-color: #bbb;
   background-color: #bbb;
}
}


table.zebra tbody tr:nth-child(even) th {
table.zebra tbody tr:nth-child(even) th {

Version vom 5. März 2024, 08:29 Uhr

/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
div.mainpage_content {
  display:flex;
  flex-flow: row wrap;
}

div.mainpage_banner {
  display:flex;
  flex-flow: row wrap;
  width:99%;
  border:1px solid #ccc;
  background:#fbfbfb;
  padding: 3px;
  margin: 3px;
}

.mainpage_banner_heading {
  flex: 1 50%;
  min-width: 20em;
  text-align:center;
  font-size: 180%;
  color: #000;
}

.mainpage_banner_sub {
  flex: 1 50%;
  min-width: 40%;
}

.mainpage_box {
  flex: 1 47%;
  min-width: 40ch;
  background: #fbfbfb;
  border: 1px solid #cfcff0;
  background: #f5faff;
  padding: 3px;
  margin: 3px;
}

.mainpage_box_heading_2 {
  margin: 0.1em;
  background: #cfcff0;
  font-size: 120%;
  font-weight: bold;
  border: 1px solid #a3bfb1;
  text-align: left;
  color: #000;
  padding: 0.2em 0.4em;
}

/* layout divs in a row if possible */
.row_layout {
  display: flex;
  flex-flow: row wrap;
}

.row_element {
  flex: 1;
}

table.center_content th {
  text-align: center;
}

table.center_content tr > th:nth-child(1) {
  text-align: left;
}

table.center_content tr {
  text-align: center;
}

table.zebra tbody tr:nth-child(even) {
  background-color: #bbb;
}

table.zebra tbody tr:nth-child(even) th {
  background-color: #bbb;
}

/*
table.zebra tbody tr:nth-child(odd) th {
  background-color: #999;
}
*/

.wikitable tr.fake_table td {
  background: #fff;
  border: 0;
  text-align: left;
}