Template:Infobox/styles.css: Difference between revisions
From Night Vision Wiki
(Admin changed the content model of the page Template:Infobox/styles.css from "wikitext" to "Sanitized CSS") |
No edit summary |
||
| (18 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
/* @noflip */ | /* @noflip */ | ||
margin: 0 0 0.5em 0.5em; | margin: 0 0 0.5em 0.5em; | ||
} | } | ||
.infobox th { | .infobox th { | ||
/* @noflip */ | /* @noflip */ | ||
text-align: | text-align: center; | ||
} | } | ||
| Line 50: | Line 36: | ||
.infobox td { | .infobox td { | ||
padding: 0.2em 0.5em; | padding: 0.2em 0.5em; | ||
} | |||
.infobox tr { | |||
border: 1px solid #a2a9b1; | |||
} | |||
.infobox p { | |||
margin: 0.5em 0; | |||
} | } | ||
.infobox-header { | .infobox-header { | ||
background-color: # | background-color: #f8f9fa; | ||
text-align: left; | text-align: left; | ||
} | } | ||
| Line 66: | Line 58: | ||
.infobox-header td, | .infobox-header td, | ||
.infobox-header th { | .infobox-header th { | ||
padding | padding: 0.5em 0; | ||
} | } | ||
.infobox-header img { | .infobox-header img { | ||
padding: 0 0 | padding: 0 0 0 0.5em; | ||
} | } | ||
Latest revision as of 18:13, 4 January 2023
/**
* 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 th {
/* @noflip */
text-align: center;
}
@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 {
padding: 0.2em 0.5em;
}
.infobox tr {
border: 1px solid #a2a9b1;
}
.infobox p {
margin: 0.5em 0;
}
.infobox-header {
background-color: #f8f9fa;
text-align: left;
}
.infobox-header a {
color: #FFF;
}
.infobox-header td,
.infobox-header th {
padding: 0.5em 0;
}
.infobox-header img {
padding: 0 0 0 0.5em;
}