Module:Infobox/styles.css: Difference between revisions
Content deleted Content added
Created page with "→{{pp|small=y}}: →* This TemplateStyles sheet deliberately does NOT include the full set of * infobox styles. We are still working to migrate all of the manual * infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]] * DO NOT ADD THEM HERE: →* not strictly certain these styles are necessary since the modules now * exclusively output infobox-subbox or infobox, not both * just replicating the module faithfully: .infobox-subbox { padding: 0; borde..." |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
Line 1:
/* === Force infobox background to white with standard borders/text === */
.infobox-subbox {▼
border: none;▼
background-color: transparent;▼
/* Light/default and general base styles */
.infobox-3cols-child {▼
.infobox,
color: #202122 !important; /* Standard MediaWiki text color */
border: 1px solid #202122 !important; /* Box line color */
}
/* Night mode override: ensure background stays white and text/borders stay dark */
▲.infobox .navbar {
@media screen {▼
html.skin-theme-clientpref-night .infobox,
border: 1px solid #202122 !important;
}▼
}
/* OS-driven dark mode override */
html.skin-theme-clientpref-os .infobox,
▲@media screen {
}
/* Remove the forced border specifically for the navigation menu infobox */
.infobox.navigation-menu {
▲@media screen and ( prefers-color-scheme: dark) {
▲ html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
▲ color: #f8f9fa;
}
/* If the internal cells still show lines, use this: */
.infobox.navigation-menu th,
.infobox.navigation-menu td {
border: none !important;
▲ display: table !important;
▲ }
▲ display: table-caption !important;
}
| |||