Module:Hatnote/styles.css: Difference between revisions
Appearance
move @print none to templatestyles from MediaWiki:Print.css to support MediaWiki talk:Common.css/to do#Turn mobile.css/js totally off |
m avoid background bleeding into float |
||
| Line 9: | Line 9: | ||
padding-left: 1.6em; | padding-left: 1.6em; | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
/* Separate block formatting context avoids background behind floating content */ | |||
display: flow-root; | |||
} | } | ||
Revision as of 12:42, 4 November 2025
/* {{pp|small=y}} */
.hatnote {
font-style: italic;
}
/* Limit structure CSS to divs because of [[Module:Hatnote inline]] */
div.hatnote {
/* @noflip */
padding-left: 1.6em;
margin-bottom: 0.5em;
/* Separate block formatting context avoids background behind floating content */
display: flow-root;
}
.hatnote i {
font-style: normal;
}
/* The templatestyles element inserts a link element before hatnotes.
* TODO: Remove link if/when WMF resolves T200206 */
.hatnote + link + .hatnote {
margin-top: -0.5em;
}
@media print {
body.ns-0 .hatnote {
display: none !important;
}
}