MediaWiki:Common.css: Difference between revisions

From Voluminous Energy
(Add Infobox styling)
No edit summary
 
Line 5: Line 5:
/* Infobox template style */
/* Infobox template style */
.infobox {
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
float: right;
/* @noflip */
clear: right;
clear: right;
font-size: 88%;
margin-bottom: 0.5em;
line-height: 1.5em;
margin-left: 1em;
width: 22em;
padding: 0.2em;
border: 1px solid #AAA;
background: #F9F9F9;
color: black;
}
}


.infobox-header,
.infobox td,
.infobox-label,
.infobox th {
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
vertical-align: top;
}
}


.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
.infobox caption {
font-size: 125%;
margin-left: inherit;
font-weight: bold;
font-size: larger;
text-align: center;
}
}


.infobox-title,
.infobox.bordered {
/* Remove element selector when every .infobox thing is using the standard module/templates  */
border-collapse: collapse;
.infobox caption {
padding: 0.2em;
}
}


/* Remove .infobox when element selectors above are removed */
.infobox.bordered td,
.infobox .infobox-header,
.infobox.bordered th {
.infobox .infobox-subheader,
border: 1px solid #AAA;
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
}


/* Remove .infobox when element selectors above are removed */
.infobox.bordered .borderless td,
.infobox .infobox-navbar {
.infobox.bordered .borderless th {
/* @noflip */
border: 0;
text-align: right;
}
}

Latest revision as of 22:58, 3 February 2023

/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Zen+Kaku+Gothic+New:wght@500&display=swap');


/* Infobox template style */
.infobox {
	float: right;
	clear: right;
	margin-bottom: 0.5em;
	margin-left: 1em;
	padding: 0.2em;
	border: 1px solid #AAA;
	background: #F9F9F9;
	color: black;
}

.infobox td,
.infobox th {
	vertical-align: top;
}

.infobox caption {
	margin-left: inherit;
	font-size: larger;
}

.infobox.bordered {
	border-collapse: collapse;
}

.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #AAA;
}

.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}