Module:Navbar/styles.css: Difference between revisions
From All Skies Encyclopaedia
| imported>Jdlrobson  (be safe and limit these to minerva for time being (but I think we can consolidate these with MediaWiki:Common.css)) | imported>Izno   (adj) | ||
| (25 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| /* {{pp|small=yes}} */ | |||
| body.skin-minerva .navbar { | |||
| .navbar { | |||
| 	display: inline; | 	display: inline; | ||
| 	font-size: 88%; | 	font-size: 88%; | ||
| 	font-weight: normal; | 	font-weight: normal; | ||
| } | } | ||
| body.skin-minerva .navbar ul { | |||
| .navbar-collapse { | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| } | |||
| .navbar-boxtext { | |||
| 	word-spacing: 0; | |||
| } | |||
| .navbar ul { | |||
| ⚫ | |||
| 	white-space: nowrap; | 	white-space: nowrap; | ||
| 	line-height: inherit; | |||
| } | } | ||
| body.skin-minerva .navbar li { | |||
| .navbar-brackets::before { | |||
| ⚫ | |||
| 	content: '[ '; | |||
| } | |||
| .navbar-brackets::after { | |||
| 	margin-left: -0.125em; | |||
| 	content: ' ]'; | |||
| } | |||
| .navbar li { | |||
| 	word-spacing: -0.125em; | 	word-spacing: -0.125em; | ||
| } | } | ||
| .body.skin-minerva navbar.mini li span { | |||
| .navbar a > span, | |||
| .navbar a > abbr { | |||
| 	text-decoration: inherit; | |||
| } | |||
| .navbar-mini abbr { | |||
| 	font-variant: small-caps; | 	font-variant: small-caps; | ||
| 	border-bottom: none; | |||
| 	text-decoration: none; | |||
| 	cursor: inherit; | |||
| } | } | ||
| /* Navbar styling when nested in infobox and navbox */ | |||
| .navbar-ct-full { | |||
| body.skin-minerva .navbox .navbar, | |||
| 	font-size: 114%; | |||
| body.skin-minerva .infobox .navbar { | |||
| 	margin: 0 7em; | |||
| } | } | ||
| body.skin-minerva .navbox .navbar { | |||
| .navbar-ct-mini { | |||
| 	display: block; | |||
| 	font-size: 114%; | |||
| 	margin: 0 4em; | |||
| } | } | ||
| body.skin-minerva .navbox-title .navbar { | |||
| /* not the usual @media screen, we simply remove navbar in @media print */ | |||
| 	/* @noflip */ | |||
| html.skin-theme-clientpref-night .navbar li a abbr { | |||
| ⚫ | |||
| 	color: var(--color-base) !important; | |||
| 	/* @noflip */ | |||
| } | |||
| ⚫ | |||
| 	/* @noflip */ | |||
| @media (prefers-color-scheme: dark) { | |||
| ⚫ | |||
| 	html.skin-theme-clientpref-os .navbar li a abbr { | |||
| 	width: 6em; | |||
| 		color: var(--color-base) !important; | |||
| 	} | |||
| } | |||
| @media print { | |||
| 	.navbar { | |||
| 		display: none !important; | |||
| 	} | |||
| } | } | ||
Latest revision as of 02:07, 9 August 2024
/* {{pp|small=yes}} */
.navbar {
	display: inline;
	font-size: 88%;
	font-weight: normal;
}
.navbar-collapse {
	float: left;
	text-align: left;
}
.navbar-boxtext {
	word-spacing: 0;
}
.navbar ul {
	display: inline-block;
	white-space: nowrap;
	line-height: inherit;
}
.navbar-brackets::before {
	margin-right: -0.125em;
	content: '[ ';
}
.navbar-brackets::after {
	margin-left: -0.125em;
	content: ' ]';
}
.navbar li {
	word-spacing: -0.125em;
}
.navbar a > span,
.navbar a > abbr {
	text-decoration: inherit;
}
.navbar-mini abbr {
	font-variant: small-caps;
	border-bottom: none;
	text-decoration: none;
	cursor: inherit;
}
.navbar-ct-full {
	font-size: 114%;
	margin: 0 7em;
}
.navbar-ct-mini {
	font-size: 114%;
	margin: 0 4em;
}
/* not the usual @media screen, we simply remove navbar in @media print */
html.skin-theme-clientpref-night .navbar li a abbr {
	color: var(--color-base) !important;
}
@media (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .navbar li a abbr {
		color: var(--color-base) !important;
	}
}
@media print {
	.navbar {
		display: none !important;
	}
}







