Module:Navbar/styles.css: Difference between revisions
From All Skies Encyclopaedia
| imported>Izno m (Izno moved page Template:Navbar/styles.css to Module:Navbar/styles.css without leaving a redirect: navbar is implemented in module space) | imported>Izno   (adj) | ||
| (22 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| /*  | /* {{pp|small=yes}} */ | ||
| .navbar { | .navbar { | ||
| 	display: inline; | 	display: inline; | ||
| 	font-size: 88%; | 	font-size: 88%; | ||
| 	font-weight: normal; | 	font-weight: normal; | ||
| } | |||
| .navbar-collapse { | |||
| ⚫ | |||
| 	text-align: left; | |||
| } | |||
| .navbar-boxtext { | |||
| 	word-spacing: 0; | |||
| } | } | ||
| Line 9: | Line 18: | ||
| 	display: inline-block; | 	display: inline-block; | ||
| 	white-space: nowrap; | 	white-space: nowrap; | ||
| ⚫ | |||
| } | } | ||
| .navbar-brackets::before { | |||
| body.skin-Minerva .navbar ul { | |||
| ⚫ | |||
| 	display: inline; /* why does mobile differ here? */ | |||
| 	content: '[ '; | |||
| } | |||
| .navbar-brackets::after { | |||
| 	margin-left: -0.125em; | |||
| 	content: ' ]'; | |||
| } | } | ||
| Line 18: | Line 34: | ||
| 	word-spacing: -0.125em; | 	word-spacing: -0.125em; | ||
| } | } | ||
| /* | |||
| Space reserved for remaining common fixes. | |||
| .navbar a > span, | |||
| .navbar a > abbr { | |||
| ⚫ | |||
| */ | |||
| /* Navbar styling when nested in infobox and navbox */ | |||
| /* Should consider having a separate TemplateStyles for those specific places | |||
| using an infobox/navbox and a navbar */ | |||
| .infobox .navbar { | |||
| ⚫ | |||
| } | } | ||
| .navbar-mini abbr { | |||
| ⚫ | |||
| 	display: block; | |||
| 	border-bottom: none; | |||
| 	text-decoration: none; | |||
| 	cursor: inherit; | |||
| } | } | ||
| .navbar-ct-full { | |||
| ⚫ | |||
| 	/* @noflip */ | |||
| 	margin: 0 7em; | |||
| 	/* @noflip */ | |||
| ⚫ | |||
| 	/* @noflip */ | |||
| ⚫ | |||
| } | } | ||
| .navbar-ct-mini { | |||
| body.skin-Minerva .navbox-title .navbar { | |||
| 	font-size: 114%; | |||
| 	width: 6em; /* Why does mobile set this width? */ | |||
| 	margin: 0 4em; | |||
| } | } | ||
| /* not the usual @media screen, we simply remove navbar in @media print */ | |||
| /* CSS below is from Common.css */ | |||
| . | html.skin-theme-clientpref-night .navbar li a abbr { | ||
| 	color: var(--color-base) !important; | |||
| 	line-height: inherit; /* Why is this missing in Minerva? */ | |||
| } | } | ||
| .navbar.mini li abbr[title] { /* Not entirely certain why this is restricted to abbr with title; all abbrs must have a title */ | |||
| @media (prefers-color-scheme: dark) { | |||
| ⚫ | |||
| 	html.skin-theme-clientpref-os .navbar li a abbr { | |||
| 	/* Below 3 rules missing from Minerva */ | |||
| 		color: var(--color-base) !important; | |||
| 	border-bottom: none; | |||
| 	} | |||
| ⚫ | |||
| ⚫ | |||
| } | } | ||
| @media print { | |||
| /* CSS below is from Mobile.css */ | |||
| .navbar | 	.navbar { | ||
| 		display: none !important; | |||
| 	font-variant: small-caps; /* This just looks like it missed the update to abbr */ | |||
| 	} | |||
| } | } | ||
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;
	}
}







