MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus dem IServ-Wiki
Zur Navigation springen Zur Suche springen
K (+css für die Hauptseite)
 
(74 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
/* wikitable/prettytable class for skinning normal tables */
+
/*
 +
<!-- nur für die Darstellung innerhalb des MediaWikis; bei der Verarbeitung als CSS-Datei werden die Tags ignoriert. -->
 +
<!-- Tipp: Tabs per Copy and Paste einfügen. -->
 +
<pre>
 +
*/
  
table.wikitable,
+
/* Hauptseite */
table.prettytable {
+
@import "/w/index.php?title=MediaWiki:Common.css:hauptseite&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
  margin: 1em 1em 1em 0;
+
/* Portalseite */
  background: #f9f9f9;
+
@import "/w/index.php?title=MediaWiki:Common.css:portalseite&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
   border: 1px #aaaaaa solid;
+
/* Infoboxen */
  border-collapse: collapse;
+
@import "/w/index.php?title=MediaWiki:Common.css:infoboxen&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
 +
 
 +
/* Bearbeiten-Links an Überschriften */
 +
div.editsection {
 +
font-size: smaller;
 +
float: right;
 +
}
 +
 
 +
/* für [[Vorlage:Cmdpre]]: pre für Eingaben auf der Kommandozeile */
 +
.cmdpre {
 +
background-color: #f9e3e3;
 +
border: 1px dashed #2f6fab;
 +
padding: 0 1em;
 +
position: relative;
 +
margin: 1em 0;
 +
}
 +
/* Linkfarben anpassen */
 +
.cmdpre a:link { color:#ffa0a0; }
 +
.cmdpre a:visited { color:#ffa0a0; }
 +
.cmdpre a:hover { color:#ff9090; }
 +
 
 +
/* für [[Vorlage:Rootpre]]: pre für Eingaben auf der Kommandozeile, für die man root-Rechte braucht */
 +
.rootpre {
 +
background-color: #f9e3e3;
 +
border: 1px dotted red;
 +
padding: 0 1em;
 +
position: relative;
 +
margin: 1em 0;
 +
}
 +
/* Linkfarben anpassen */
 +
.rootpre a:link { color:#ffa0a0; }
 +
.rootpre a:visited { color:#ffa0a0; }
 +
.rootpre a:hover { color:#ff9090; }
 +
 
 +
/* für [[Vorlage:Filepre]]: pre für Dateiinhalte etc. */
 +
.filepre {
 +
border: 1px dashed #2f6fab;
 +
background-color: #e3e6f9;
 +
padding: 0 1em;
 +
position: relative;
 +
margin: 1em 0;
 +
}
 +
/* Linkfarben anpassen */
 +
.filepre a:link { color:#a0a0ff; }
 +
.filepre a:visited { color:#a0a0ff; }
 +
.filepre a:hover { color:#9090ff; }
 +
 
 +
/* für die o. g. Vorlagen wird ein pre-Element ohne Formatierungen benötigt */
 +
pre.none {
 +
border-width: 0;
 +
color: black;
 +
background-color: transparent;
 +
padding: 0;
 +
line-height: .5em;   /* ist sonst zu weit auseinander */
 +
}
 +
 
 +
/* Format des Hilfe-Links im oben rechts pre-Element
 +
  Achtung: die Farbe des Links wird über a:link, a:hover und a:active bestimmt! */
 +
.prehelp {
 +
display: inline;
 +
font-family: "Arial Black", "Arial", "Helvetica";
 +
font-size: 200%;
 +
font-weight: bold;
 +
line-height: .8em;
 +
position: absolute;
 +
right: 0;
 +
}
 +
 
 +
/* pre-Stil für Bereiche, die wie ein pre hervorgehoben werden sollen, aber formatierten Wikitext enthalten */
 +
.prestyle {
 +
border: 1px dashed #2f6fab;
 +
color: black;
 +
background-color: #f9f9f9;
 +
padding: 1em;
 
}
 
}
  
table.wikitable th, table.wikitable td,
+
/* Zentrales Aussehen von Hinweisboxen, Farben müssen später einzeln angegeben werden */
table.prettytable th, table.prettytable td {
+
.hinweisbox {
  border: 1px solid #8cacbb;
+
        border-width: .08em;
  padding: 0.2em;
+
        border-style: solid;
 +
        border-left-width: .5em;
 +
        padding: 0.2em 0.5em;
 +
        margin-bottom: 1.5em;"
 
}
 
}
  
table.wikitable th,
+
/* tt mit leichtem grau */
table.prettytable th {
+
tt {
   background: #dee7ec;
+
   background-color: #f5f5f5;
  text-align: left;
 
 
}
 
}
  
table.wikitable caption,
+
/* Aber bitte nicht in Hinweisboxen! */
table.prettytable caption {
+
.hinweisbox tt {
   margin-left: inherit;
+
   background-color: transparent;
  margin-right: inherit;
 
 
}
 
}
  
/* +++++ 3. NEUE [[Hauptseite|HAUPTSEITE]] (ab 2006) +++++ */
+
/* Logo verkleinern */
 +
#mw-panel.collapsible-nav .portal.first { margin-top: -60px; }
 +
#p-logo, #p-logo a, #p-logo a:hover { height: 120px; }
  
#hauptseite h2 {
+
/* </pre> */
      background-color: #d8e8ff;
 
      border: 1px solid #8898bf;
 
      font-size: 1em;
 
      font-weight: bold;
 
      margin-top: 0;
 
      margin-bottom: 0;
 
      padding-top: 0.1em;
 
      padding-bottom: 0.1em;
 
}
 
#hauptseite .inhalt {
 
      background-color: #ffffff;
 
      border: 1px solid #8898bf;
 
      border-top: 0px solid white;
 
      padding: 0.3em 0.8em 0.4em 0.8em;
 
}
 
#hauptseite .inhalt hr {
 
      background-color: #8898bf;
 
      color: #8898bf;
 
      height: 1px;
 
      margin:0.5em 0;
 
      padding: 0;
 
}
 
#hauptseite .inhalt .mehr {
 
      clear: both;
 
      font-size: 95%;
 
      margin-top: 0.8em;
 
      text-align: right;
 
}
 
.hauptseite-oben,
 
.hauptseite-links,
 
.hauptseite-rechts {
 
      margin-bottom: 1em;
 
}
 
.hauptseite-links {
 
      margin-right: 0.5em;
 
}
 
.hauptseite-rechts {
 
      margin-left: 0.5em;
 
}
 
.hauptseite-oben h2,
 
.hauptseite-unten h2 {
 
      text-align: center;
 
}
 
.hauptseite-oben .inhalt .portale {
 
      font-weight: bold;
 
      margin-top: 0.2em;
 
      margin-bottom: 0.2em;
 
}
 
.hauptseite-oben .inhalt .intern {
 
      font-size: 90%;
 
      text-align: center;
 
}
 
.hauptseite-links h2,
 
.hauptseite-rechts h2 {
 
      text-indent: 0.8em;
 
}
 
#hauptseite-schwesterprojekte .inhalt a {
 
      font-weight: bold;
 
}
 

Aktuelle Version vom 20. Juni 2014, 14:16 Uhr

/*
<!-- nur für die Darstellung innerhalb des MediaWikis; bei der Verarbeitung als CSS-Datei werden die Tags ignoriert. -->
<!-- Tipp: Tabs per Copy and Paste einfügen. -->
<pre>
*/

/* Hauptseite */
@import "/w/index.php?title=MediaWiki:Common.css:hauptseite&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
/* Portalseite */
@import "/w/index.php?title=MediaWiki:Common.css:portalseite&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
/* Infoboxen */
@import "/w/index.php?title=MediaWiki:Common.css:infoboxen&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";

/* Bearbeiten-Links an Überschriften */
div.editsection {
	font-size: smaller;
	float: right;
}

/* für [[Vorlage:Cmdpre]]: pre für Eingaben auf der Kommandozeile */
.cmdpre {
	background-color: #f9e3e3;
	border: 1px dashed #2f6fab;
	padding: 0 1em;
	position: relative;
	margin: 1em 0;
}
/* Linkfarben anpassen */
.cmdpre a:link { color:#ffa0a0; }
.cmdpre a:visited { color:#ffa0a0; }
.cmdpre a:hover { color:#ff9090; }

/* für [[Vorlage:Rootpre]]: pre für Eingaben auf der Kommandozeile, für die man root-Rechte braucht */
.rootpre {
	background-color: #f9e3e3;
	border: 1px dotted red;
	padding: 0 1em;
	position: relative;
	margin: 1em 0;
}
/* Linkfarben anpassen */
.rootpre a:link { color:#ffa0a0; }
.rootpre a:visited { color:#ffa0a0; }
.rootpre a:hover { color:#ff9090; }

/* für [[Vorlage:Filepre]]: pre für Dateiinhalte etc. */
.filepre {
	border: 1px dashed #2f6fab;
	background-color: #e3e6f9;
	padding: 0 1em;
	position: relative;
	margin: 1em 0;
}
/* Linkfarben anpassen */
.filepre a:link { color:#a0a0ff; }
.filepre a:visited { color:#a0a0ff; }
.filepre a:hover { color:#9090ff; }

/* für die o. g. Vorlagen wird ein pre-Element ohne Formatierungen benötigt */
pre.none {
	border-width: 0;
	color: black;
	background-color: transparent;
	padding: 0;
	line-height: .5em;   /* ist sonst zu weit auseinander */
}

/* Format des Hilfe-Links im oben rechts pre-Element
   Achtung: die Farbe des Links wird über a:link, a:hover und a:active bestimmt! */
.prehelp {
	display: inline;
	font-family: "Arial Black", "Arial", "Helvetica";
	font-size: 200%;
	font-weight: bold;
	line-height: .8em;
	position: absolute;
	right: 0;
}

/* pre-Stil für Bereiche, die wie ein pre hervorgehoben werden sollen, aber formatierten Wikitext enthalten */
.prestyle {
	border: 1px dashed #2f6fab;
	color: black;
	background-color: #f9f9f9;
	padding: 1em;
}

/* Zentrales Aussehen von Hinweisboxen, Farben müssen später einzeln angegeben werden */
.hinweisbox {
        border-width: .08em;
        border-style: solid;
        border-left-width: .5em;
        padding: 0.2em 0.5em;
        margin-bottom: 1.5em;"
}

/* tt mit leichtem grau */
tt {
  background-color: #f5f5f5;
}

/* Aber bitte nicht in Hinweisboxen! */
.hinweisbox tt {
  background-color: transparent;
}

/* Logo verkleinern */
#mw-panel.collapsible-nav .portal.first { margin-top: -60px; }
#p-logo, #p-logo a, #p-logo a:hover { height: 120px; }

/* </pre> */