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

From WPRDC Wiki
Jump to navigation Jump to search
>ExE Boss
(Add `color: #fff;` to `.tpl‑infobox‑header a`)
>ExE Boss
(Add `padding‑top` for `.infobox‑header th`)
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  * [[Template:Tool]], etc.
  * [[Template:Tool]], etc.
  */
  */
.tpl-infobox {
.infobox {
box-sizing: border-box;
box-sizing: border-box;
border: 2px solid #a2a9b1;
border: 2px solid #a2a9b1;
width: 280px;
width: 280px;
border-collapse: collapse;
border-spacing: 0;
background-color: white;
/* these are overriden by .infobox-rtl on the templates of interest */
/* @noflip */
/* @noflip */
clear: right;
clear: right;
/* @noflip */
/* @noflip */
float: right;
float: right;
/* @noflip */
margin: 0 0 0.5em 0.5em;
margin: 0 0 0.5em 0.5em;
border-collapse: collapse;
}
border-spacing: 0;
 
background-color: white;
.infobox-rtl {
/* @noflip */
clear: left;
/* @noflip */
float: left;
/* @noflip */
margin: 0 0.5em 0.5em 0;
}
 
.infobox th {
/* @noflip */
text-align: left;
}
 
.infobox-rtl th {
/* @noflip */
text-align: right;
}
}


@media (max-width: 719px) {
@media (max-width: 719px) {
.tpl-infobox {
/* high specificity to ensure specific infoboxes won't override these
box-sizing: border-box;
* properties with their own tstyles inadvertently */
body.mediawiki .infobox {
float: none;
float: none;
clear: both;
clear: both;
Line 27: Line 49:
}
}


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


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


.tpl-infobox-header a {
.infobox-header a {
color: #fff;
color: #FFF;
}
}


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


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

Latest revision as of 17:28, 14 July 2021

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

.infobox-rtl {
	/* @noflip */
	clear: left;
	/* @noflip */
	float: left;
	/* @noflip */
	margin: 0 0.5em 0.5em 0;
}

.infobox th {
	/* @noflip */
	text-align: left;
}

.infobox-rtl th {
	/* @noflip */
	text-align: right;
}

@media (max-width: 719px) {
	/* high specificity to ensure specific infoboxes won't override these
	 * properties with their own tstyles inadvertently */
	body.mediawiki .infobox {
		float: none;
		clear: both;
		width: 100%;
		margin: 0 0 .5em 0;
	}
}

.infobox td {
	border: 2px none #a2a9b1;
	padding: 0.2em 0.5em;
	/* TODO why is this !important */
	border-bottom: 1px solid #f0f0f0 !important;
}

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

.infobox-header a {
	color: #FFF;
}

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

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