MediaWiki:Common.css: Difference between revisions
Till Kraemer (talk | contribs) Infobox. |
Till Kraemer (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 668: | Line 668: | ||
} | } | ||
/* | /* Infoboxes */ | ||
.infobox { | .infobox { | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
color: black; | color: black; | ||
padding: 0.2em; | padding: 0.2em; | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.5em; | line-height: 1.5em; | ||
width: 22em; | border-spacing: 3px; | ||
} | |||
@media screen { | |||
.infobox { | |||
background-color: #f8f9fa; | |||
} | |||
} | |||
@media (max-width: 640px) { | |||
.infobox { | |||
width: 100%; | |||
} | |||
.infobox .nowrap { | |||
white-space: normal; | |||
} | |||
} | |||
@media (min-width: 640px) { | |||
.infobox { | |||
/* @noflip */ | |||
margin: 0.5em 0 0.5em 1em; | |||
/* @noflip */ | |||
float: right; | |||
/* @noflip */ | |||
clear: right; | |||
width: 22em; | |||
} | |||
} | } | ||
Line 741: | Line 761: | ||
} | } | ||
/* Normal font styling for | /* Normal font styling for wikitable row headers with scope="row" tag */ | ||
.wikitable.plainrowheaders th[scope=row] { | .wikitable.plainrowheaders th[scope=row], | ||
.wikitable.plainrowheaders th[scope=rowgroup] { | |||
font-weight: normal; | |||
/* @noflip */ | |||
text-align: left; | |||
} | } | ||
Line 1,696: | Line 1,717: | ||
} | } | ||
/* Display "From Pornopedia, the sexy encyclopedia" in skins that support it, | /* From https://www.mediawiki.org/wiki/Manual:Tagline_(Site_Subtitle) | ||
Display "From Pornopedia, the sexy encyclopedia" in skins that support it, | |||
do not apply to print mode */ | do not apply to print mode */ | ||
#siteSub { | #siteSub { | ||
display: block; | display: block; | ||
} | } | ||
/* Hide tagline from main page */ | |||
body.page-Main_Page.action-view #siteSub, | |||
body.page-Main_Page.action-submit #siteSub { | |||
display: none; | |||
} | } | ||