Toggle menu
Toggle preferences menu
Toggle personal menu
Nejste přihlášen(a)
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css

MediaWiki interface page
Verze z 15. 7. 2026, 17:05, kterou vytvořil Draconia (diskuse | příspěvky) (fix light theme regression, lighten dark palette)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)

Poznámka: Po zveřejnění musíte vyprázdnit cache vašeho prohlížeče, jinak změny neuvidíte.

  • Firefox / Safari: Při kliknutí na Aktualizovat držte Shift nebo stiskněte Ctrl-F5 nebo Ctrl-R (na Macu ⌘-R)
  • Google Chrome: Stiskněte Ctrl-Shift-R (na Macu ⌘-Shift-R)
  • Edge: Při kliknutí na Aktualizovat držte Ctrl nebo stiskněte Ctrl-F5.
/* All CSS here will be loaded for users of the Citizen skin */

/* Draconia RP Wiki theme. Only the dark theme is styled - light mode is
   intentionally left as stock Citizen (untouched) since the wiki always
   defaults to dark ($wgCitizenThemeDefault = 'dark' in LocalSettings.php)
   and no light/toggle experience is maintained. */

:root.skin-theme-clientpref-night {
	--color-surface-0: #1e1e24 !important;
	--color-surface-1: #24242b !important;
	--color-surface-2: #292930 !important;
	--color-surface-3: #2e2e36 !important;
	--color-surface-4: #34343d !important;
	--color-surface-5: #3a3a44 !important;
	--color-base: #d6d6db !important;
	--color-emphasized: #ffffff !important;
	--color-subtle: #9a9aa4 !important;
	--color-primary: #f0801f !important;
	--color-primary--hover: #ff9438 !important;
	--color-primary--active: #d9720f !important;
	--color-inverted-primary: #141417 !important;
	--border-color-base: rgba(255, 255, 255, 0.1);
	--border-color-subtle: rgba(255, 255, 255, 0.05);
	--border-color-interactive: rgba(255, 255, 255, 0.14);
}

@media screen and (prefers-color-scheme: dark) {
	:root.skin-theme-clientpref-os {
		--color-surface-0: #1e1e24 !important;
		--color-surface-1: #24242b !important;
		--color-surface-2: #292930 !important;
		--color-surface-3: #2e2e36 !important;
		--color-surface-4: #34343d !important;
		--color-surface-5: #3a3a44 !important;
		--color-base: #d6d6db !important;
		--color-emphasized: #ffffff !important;
		--color-subtle: #9a9aa4 !important;
		--color-primary: #f0801f !important;
		--color-primary--hover: #ff9438 !important;
		--color-primary--active: #d9720f !important;
		--color-inverted-primary: #141417 !important;
		--border-color-base: rgba(255, 255, 255, 0.1);
		--border-color-subtle: rgba(255, 255, 255, 0.05);
		--border-color-interactive: rgba(255, 255, 255, 0.14);
	}
}

/* Do not invert edit button icon in dark mode (contrast) */
.skin-theme-clientpref-night #ca-edit .citizen-ui-icon::before,
.skin-theme-clientpref-night #ca-ve-edit .citizen-ui-icon::before {
	filter: none;
}

@media screen and (prefers-color-scheme: dark) {
	.skin-theme-clientpref-os #ca-edit .citizen-ui-icon::before,
	.skin-theme-clientpref-os #ca-ve-edit .citizen-ui-icon::before {
		filter: none;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--tg-font-family-heading);
}

/* Wordmark size */
img.mw-logo-wordmark {
	height: 2rem;
}

@media screen and (min-width: 640px) {
	img.mw-logo-wordmark {
		height: 2.5rem;
	}
}

/* Move page header to the bottom on the main page */
.page-Hlavní_strana .citizen-body-container {
	grid-template-areas:
		"content"
		"header"
		"afterHeader"
		"footer";
}

@media (hover: hover) {
	.citizen-search
		.citizen-dropdown-details:not([open])
		> .citizen-dropdown-summary:hover::after {
		content: "/";
		position: absolute;
		border: 1px solid var(--border-color-interactive);
		border-radius: var(--border-radius--small);
		min-width: var(--size-icon);
		min-height: var(--size-icon);
		padding: 0 var(--space-xxs);
		background: var(--color-surface-1);
		font-size: 0.65rem;
		font-weight: var(--font-weight-medium);
		line-height: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Menu: richer format with more hierarchy */
.citizen-drawer__menu {
	margin-bottom: 0;
	padding-bottom: 0;
}

.mw-portlet-External {
	position: sticky;
	bottom: 0;
	margin-top: var(--space-md);
	padding: var(--space-xs) 0;
	border-top: 1px solid var(--border-color-base);
	background: var(--color-surface-1);
	font-size: var(--font-size-x-small);
	grid-column-start: 1;
	white-space: nowrap;
}

@media screen and (min-width: 32.875rem) {
	.mw-portlet-External {
		grid-column-end: span 2;
	}
}

.mw-portlet-External .citizen-menu__heading {
	display: none;
}

.mw-portlet-External ul {
	display: flex;
	overflow: auto;
}

.mw-portlet-External .mw-list-item a {
	gap: 0;
}

#pt-logout a {
	background: rgba(240, 128, 31, 0.12);
}

#pt-logout a:hover {
	background: rgba(240, 128, 31, 0.2);
}

.catlinks li > a.new:hover,
.catlinks li > a.new:hover:visited {
	background-color: #420e1f;
}

#footer-icons a {
	border: none;
	background: none;
}