Module:Navbar/styles.css: Difference between revisions

en>Izno
navbar-mini is never a span, and span doesn't have all the stuff that needs resetting
m 5 revisions imported
 
(12 intermediate revisions by 5 users not shown)
Line 33: Line 33:
.navbar li {
.navbar li {
word-spacing: -0.125em;
word-spacing: -0.125em;
}
.navbar a > span,
.navbar a > abbr {
text-decoration: inherit;
}
}


Line 52: Line 57:
}
}


/* Navbar styling when nested in infobox and navbox
/* not the usual @media screen, we simply remove navbar in @media print */
Should consider having a separate TemplateStyles for those specific places
html.skin-theme-clientpref-night .navbar li a abbr {
using an infobox/navbox and a navbar, or possibly override from using template */
color: var(--color-base) !important;
.infobox .navbar {
font-size: 100%;
}
}


.navbox .navbar {
@media (prefers-color-scheme: dark) {
display: block;
html.skin-theme-clientpref-os .navbar li a abbr {
font-size: 100%;
color: var(--color-base) !important;
}
}
}


.navbox-title .navbar {
@media print {
/* @noflip */
.navbar {
float: left;
display: none !important;
/* @noflip */
}
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
}