Difference between revisions of "Template:Infobox/styles.css"
Jump to navigation
Jump to search
>Izno (make this higher specificity to ensure lower level infoboxes can't override) |
>Izno (and a bit more) |
||
Line 18: | Line 18: | ||
@media (max-width: 719px) { | @media (max-width: 719px) { | ||
/* high specificity to ensure specific infoboxes won't override these | |||
* properties with their own tstyles inadvertently */ | |||
body.mediawiki .tpl-infobox { | body.mediawiki .tpl-infobox { | ||
float: none; | float: none; | ||
Line 29: | Line 31: | ||
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; | ||
} | } |
Revision as of 23:18, 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) {
/* high specificity to ensure specific infoboxes won't override these
* properties with their own tstyles inadvertently */
body.mediawiki .tpl-infobox {
float: none;
clear: both;
width: 100%;
margin: 0 0 .5em 0;
}
}
.tpl-infobox td {
border: 2px none #a2a9b1;
padding: 0.2em 0.5em;
/* TODO why is this !important */
border-bottom: 1px solid #f0f0f0 !important;
}
.tpl-infobox-header {
background-color: #a2a9b1;
color: #FFF;
text-align: left;
}
.tpl-infobox-header a {
color: #FFF;
}
.tpl-infobox-header td {
padding-top: 0.5em;
}
.tpl-infobox-header img {
padding: 0 0.2em 0 0.5em;
}