Difference between revisions of "MediaWiki:Common.css"

From
Jump to: navigation, search
(Undo revision 1045 by Alexander Zilliacus (talk))
(Tag: Undo)
m
 
(102 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Standard Navigationsleisten, aka box hiding thingy
+
/* TOC customisation: remove auto-numbering
  from .de. Documentation at [[Wikipedia:NavFrame]]. */
+
.tocnumber {
 +
display: none;
 +
} */
 +
 
 +
/* Figure and table stylings */
 +
.figure {
 +
align: center;
 +
color:  #244858;
 +
font-size: 90%;
 +
font-family: Georgia, serif;
 +
font-variant: small-caps;
 +
margin-top: 2.5em;
 +
margin-bottom: 2.5em;
 +
}
 +
div.tablecaption {
 +
color:  #244858;
 +
text-align: center;
 +
font-size: 90%;
 +
font-family: Georgia, serif;
 +
font-variant: small-caps;
 +
margin-top: 2.5em;
 +
}
 +
 
 +
/* Import Google Fonts. Override default fonts with Open Sans.*/
 +
@import url( 'https://fonts.googleapis.com/css2?family=Open+Sans ');
 +
body {
 +
font-family: "Open Sans", sans-serif;
 +
}
 +
#content h1,
 +
#content h2 {
 +
font-family: "Open Sans", sans-serif;
 +
font-weight: bold;
 +
}
 +
 
 +
/* Standard Navigationsleisten, aka box hiding thingy from Wikipedia.de.
 +
Documentation at [https://en.wikipedia.org/wiki/Wikipedia:NavFrame|Wikipedia:NavFrame]. */
 
div.NavFrame {
 
div.NavFrame {
 
margin: 0;
 
margin: 0;
 
padding: 4px;
 
padding: 4px;
 
border: 1px solid #a2a9b1;
 
border: 1px solid #a2a9b1;
text-align: center;
+
text-align: left;
 
border-collapse: collapse;
 
border-collapse: collapse;
 
font-size: 95%;
 
font-size: 95%;
 +
font-family: Lucida Console, monospace;
 
}
 
}
 
div.NavFrame + div.NavFrame {
 
div.NavFrame + div.NavFrame {
Line 17: Line 53:
 
margin: 0;
 
margin: 0;
 
padding: 2px;
 
padding: 2px;
/* @noflip */
 
 
float: left;
 
float: left;
 
}
 
}
 
div.NavFrame div.NavHead {
 
div.NavFrame div.NavHead {
line-height: 1.6em;
+
font-size: 100%;
font-weight: bold;
+
font-family: Lucida console, monospace;
background-color: #ccf;
+
color: #fff;
 +
text-align: center;
 
position: relative;
 
position: relative;
 +
background-color: #244858;
 
}
 
}
 
div.NavFrame p,
 
div.NavFrame p,
 
div.NavFrame div.NavContent,
 
div.NavFrame div.NavContent,
 
div.NavFrame div.NavContent p {
 
div.NavFrame div.NavContent p {
font-size: 100%;
+
font-size: 90%;
 
}
 
}
 
div.NavEnd {
 
div.NavEnd {
Line 40: Line 77:
 
position: absolute;
 
position: absolute;
 
top: 0;
 
top: 0;
/* @noflip */
 
 
right: 3px;
 
right: 3px;
 +
color: #fff;
 
font-weight: normal;
 
font-weight: normal;
font-size: 90%;
 
 
}
 
}
 
 
.client-js .NavFrame.collapsed > .NavContent {
 
.client-js .NavFrame.collapsed > .NavContent {
 
display: none;
 
display: none;
 +
}
 +
.navContent table {
 +
margin-left: 3px;
 +
text-align: left;
 
}
 
}
  
 +
/* Infobox template style */
 +
.infobox {
 +
width: 250px;
 +
border: 1px solid #a2a9b1;
 +
border-spacing: 3px;
 +
background-color: #f8f9fa;
 +
color: black;
 +
margin: 0.5em 0 0.5em 1em;
 +
padding: 0.2em;
 +
float: right;
 +
clear: right;
 +
font-size: 88%;
 +
line-height: 1.5em;
 
}
 
}
 
.infobox-title {
 
.infobox-title {
    font-size: 2em;
+
font-size: 125%;
    text-align: center;
+
font-weight: bold;
 +
padding: 0.2em;
 +
text-align: center;
 
}
 
}
 
.infobox-image {
 
.infobox-image {
    text-align: center;
+
text-align: center;
 +
margin: 10px;
 +
}
 +
.infobox td,
 +
.infobox th {
 +
vertical-align: top;
 +
/* @noflip */
 +
text-align: left;
 +
}
 +
.infobox.bordered {
 +
border-collapse: collapse;
 +
}
 +
.infobox.bordered td,
 +
.infobox.bordered th {
 +
border: 1px solid #a2a9b1;
 +
}
 +
.infobox.bordered .borderless td,
 +
.infobox.bordered .borderless th {
 +
border: 0;
 +
}
 +
 
 +
/* styles for bordered infobox with merged rows */
 +
.infobox.bordered .mergedtoprow td,
 +
.infobox.bordered .mergedtoprow th {
 +
border: 0;
 +
border-top: 1px solid #a2a9b1;
 +
/* @noflip */
 +
border-right: 1px solid #a2a9b1;
 +
}
 +
 
 +
.infobox.bordered .mergedrow td,
 +
.infobox.bordered .mergedrow th {
 +
border: 0;
 +
/* @noflip */
 +
border-right: 1px solid #a2a9b1;
 +
}
 +
 
 +
/* Normal font styling for wikitable row headers with scope="row" tag */
 +
.wikitable.plainrowheaders th[scope=row] {
 +
font-weight: normal;
 +
/* @noflip */
 +
text-align: left;
 +
}
 +
 
 +
/* Lists in wikitable data cells are always left-aligned */
 +
.wikitable td ul,
 +
.wikitable td ol,
 +
.wikitable td dl {
 +
/* @noflip */
 +
text-align: left;
 +
}
 +
/* ...unless they also use the hlist class */
 +
.toc.hlist ul,
 +
#toc.hlist ul,
 +
.wikitable.hlist td ul,
 +
.wikitable.hlist td ol,
 +
.wikitable.hlist td dl {
 +
text-align: inherit;
 +
}
 +
 
 +
/* Generic information boxes */
 +
 
 +
.mbox {
 +
border: 1px solid #D3D3D3;
 +
padding: 5px;
 +
}
 +
.mbox.small
 +
{
 +
width: 30%;
 +
}

Latest revision as of 04:56, 8 September 2020

/* TOC customisation: remove auto-numbering
.tocnumber {
	display: none;
} */

/* Figure and table stylings */
.figure {
	align: center;
	color:  #244858;
	font-size: 90%;
	font-family: Georgia, serif;
	font-variant: small-caps;
	margin-top: 2.5em;
	margin-bottom: 2.5em;
}
div.tablecaption {
	color:  #244858;
	text-align: center;
	font-size: 90%;
	font-family: Georgia, serif;
	font-variant: small-caps;
	margin-top: 2.5em;
}

/* Import Google Fonts. Override default fonts with Open Sans.*/
@import url( 'https://fonts.googleapis.com/css2?family=Open+Sans ');
body {
	font-family: "Open Sans", sans-serif;
}
#content h1,
#content h2 { 
	font-family: "Open Sans", sans-serif;
	font-weight: bold;
}

/* Standard Navigationsleisten, aka box hiding thingy from Wikipedia.de.
	Documentation at [https://en.wikipedia.org/wiki/Wikipedia:NavFrame|Wikipedia:NavFrame]. */
div.NavFrame {
	margin: 0;
	padding: 4px;
	border: 1px solid #a2a9b1;
	text-align: left;
	border-collapse: collapse;
	font-size: 95%;
	font-family: Lucida Console, monospace;
}
div.NavFrame + div.NavFrame {
	border-top-style: none;
	border-top-style: hidden;
}
div.NavPic {
	background-color: #fff;
	margin: 0;
	padding: 2px;
	float: left;
}
div.NavFrame div.NavHead {
	font-size: 100%;
	font-family: Lucida console, monospace;
	color: #fff;
	text-align: center;
	position: relative;
	background-color: #244858;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
	font-size: 90%;
}
div.NavEnd {
	margin: 0;
	padding: 0;
	line-height: 1px;
	clear: both;
}
a.NavToggle {
	position: absolute;
	top: 0;
	right: 3px;
	color: #fff;
	font-weight: normal;
}
.client-js .NavFrame.collapsed > .NavContent {
	display: none;
}
.navContent table {
	margin-left: 3px;
	text-align: left;
}

/* Infobox template style */
.infobox {
	width: 250px;
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	float: right;
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
}
.infobox-title {
	font-size: 125%;
	font-weight: bold;
	padding: 0.2em;
	text-align: center;
}
.infobox-image {
	text-align: center;
	margin: 10px;
}
.infobox td,
.infobox th {
	vertical-align: top;
	/* @noflip */
	text-align: left;
}
.infobox.bordered {
	border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
	border: 0;
	border-top: 1px solid #a2a9b1;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
	border: 0;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}

/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row] {
	font-weight: normal;
	/* @noflip */
	text-align: left;
}

/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
	/* @noflip */
	text-align: left;
}
/* ...unless they also use the hlist class */
.toc.hlist ul,
#toc.hlist ul,
.wikitable.hlist td ul,
.wikitable.hlist td ol,
.wikitable.hlist td dl {
	text-align: inherit;
}

/* Generic information boxes */

.mbox {
	border: 1px solid #D3D3D3;
	padding: 5px;
}
.mbox.small
{
	width: 30%;
}