Difference between revisions of "Template:Infobox/styles.css"

From WPRDC Wiki
Jump to navigation Jump to search
>ExE Boss
(Copy common `tpl‑infobox` styles from MediaWiki:Gadget‑site.css?oldid=4662923)
 
>ExE Boss
(Apply base `.ext‑infobox‑header img` padding to all infobox headers (from MediaWiki:Gadget‑site.css?oldid=4662923))
Line 41: Line 41:
.tpl-infobox-header td {
.tpl-infobox-header td {
padding-top: 0.5em;
padding-top: 0.5em;
}
.tpl-infobox-header img {
padding: 0 0.2em 0 0.5em;
}
}

Revision as of 16:09, 6 July 2021

/**
 * Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
 * [[Template:Tool]], etc.
 */
.tpl-infobox {
	box-sizing: border-box;
	border: 2px solid #a2a9b1;
	width: 280px;
	/* @noflip */
	clear: right;
	/* @noflip */
	float: right;
	margin: 0 0 0.5em 0.5em;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: white;
}

@media (max-width: 719px) {
	.tpl-infobox {
		box-sizing: border-box;
		float: none;
		clear: both;
		width: 100%;
		margin: 0 0 .5em 0;
	}
}

.tpl-infobox td {
	border: 2px none #a2a9b1;
	padding: 0.2em 0.5em;
	border-bottom: 1px solid #f0f0f0 !important;
}

.tpl-infobox-header {
	background-color: #a2a9b1;
	color: white;
	text-align: left;
}

.tpl-infobox-header td {
	padding-top: 0.5em;
}

.tpl-infobox-header img {
	padding: 0 0.2em 0 0.5em;
}