MediaWiki:Citizen.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the Citizen skin */
/**
* Background images
*/
@media screen {
/* Hero image */
.citizen-page-container:before {
background-image: url(/images/4/4e/Header_Landscape.webp);
background-position: center;
}
/**
* Background image handling
*/
.citizen-page-container,
.citizen-body-container {
position: relative;
}
.citizen-header:before,
.citizen-page-container::before,
.mw-body::before,
.citizen-body-container::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
}
.citizen-header:before,
.citizen-page-container::before {
background-repeat: no-repeat;
}
.mw-body::before,
.citizen-body-container::after {
background-repeat: repeat-y;
filter: var(--filter-invert);
}
.citizen-page-container::before {
height: 500px;
background-size: cover;
mask-image: linear-gradient(
rgba(0, 0, 0, 0.35),
rgba(0, 0, 0, 0.2) 6rem,
rgba(0, 0, 0, 0.05) 18rem,
transparent 100%
);
-webkit-mask-image: linear-gradient(
rgba(0, 0, 0, 0.35),
rgba(0, 0, 0, 0.2) 6rem,
rgba(0, 0, 0, 0.05) 18rem,
transparent 100%
);
}
/**
* Loka Wiki theme
*/
:root {
--color-surface-0: var(--loka-color-surface-0) !important;
--color-surface-1: var(--loka-color-surface-1) !important;
--color-surface-2: var(--loka-color-surface-2) !important;
--color-surface-3: var(--loka-color-surface-3) !important;
--color-surface-4: var(--loka-color-surface-4) !important;
--color-base: var(--loka-color-base) !important;
--color-base--emphasized: var(--loka-color-emphasized) !important;
--color-base--subtle: var(--loka-color-subtle) !important;
--font-family-base: var(--loka-font-family-body);
--color-primary__h: 84.55;
--color-primary__s: 69%;
--color-primary__l: 28%;
--color-primary: var(--loka-color-progressive) !important;
--color-primary--hover: var(--loka-color-progressive--hover) !important;
--color-primary--active: var(--loka-color-progressive--active) !important;
--color-inverted-primary: var(--loka-color-inverted-progressive);
}
/* Dark theme */
:root.skin-theme-clientpref-night {
--loka-border-color-base: rgba(255, 255, 255, 0.05);
--loka-border-color-subtle: rgba(255, 255, 255, 0.02);
--loka-border-color-interactive: rgba(255, 255, 255, 0.08);
--loka-color-base: #e4ddcf;
--loka-color-emphasized: #fbf8f1;
--loka-color-subtle: #e3d2b0;
--loka-color-inverted-progressive: #000;
--loka-color-surface-0: #1a1a1f;
--loka-color-surface-1: #1f1f24;
--loka-color-surface-2: #23232e;
--loka-color-surface-3: #282833;
--loka-color-surface-4: #2c2c3c;
--loka-color-surface-5: #313142;
--loka-color-progressive: #f1c45e;
--loka-color-progressive--hover: #ffd16b;
--loka-color-progressive--active: #e4b750;
--loka-opacity-pattern: 0.05;
--color-primary__h: 41.6;
--color-primary__s: 84%;
--color-primary__l: 65.7%;
}
/* Auto theme */
@media screen and (prefers-color-scheme: dark) {
:root.skin-theme-clientpref-os {
--loka-border-color-base: rgba(255, 255, 255, 0.05);
--loka-border-color-subtle: rgba(255, 255, 255, 0.02);
--loka-border-color-interactive: rgba(255, 255, 255, 0.08);
--loka-color-base: #e4ddcf;
--loka-color-emphasized: #fbf8f1;
--loka-color-subtle: #e3d2b0;
--loka-color-inverted-progressive: #000;
--loka-color-surface-0: #1a1a1f;
--loka-color-surface-1: #1f1f24;
--loka-color-surface-2: #23232e;
--loka-color-surface-3: #282833;
--loka-color-surface-4: #2c2c3c;
--loka-color-surface-5: #313142;
--loka-color-progressive: #f1c45e;
--loka-color-progressive--hover: #ffd16b;
--loka-color-progressive--active: #e4b750;
--loka-opacity-pattern: 0.05;
--color-primary__h: 41.6;
--color-primary__s: 84%;
--color-primary__l: 65.7%;
}
}
/* Black theme */
:root.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 {
--loka-color-surface-0: #000;
--loka-color-surface-1: #111;
--loka-color-surface-2: #222;
--loka-color-surface-3: #333;
--loka-color-surface-4: #444;
--loka-color-surface-5: #555;
--delta-hover-state: 6%;
--shadow-strength: 0.04;
}
@media screen and (prefers-color-scheme: dark) {
:root.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 {
--loka-color-surface-0: #000;
--loka-color-surface-1: #111;
--loka-color-surface-2: #222;
--loka-color-surface-3: #333;
--loka-color-surface-4: #444;
--loka-color-surface-5: #555;
--delta-hover-state: 6%;
--shadow-strength: 0.04;
}
}
/* Do not invert edit button icon in dark mode because of 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(--loka-font-family-heading);
font-variant: var(--loka-font-variant-heading);
}
/* Adjust wordmark size */
img.mw-logo-wordmark {
height: 2rem;
}
/* Shift sticky header trigger point by 100px */
#citizen-page-header-sticky-sentinel {
transform: translateY(100px);
}
@media screen and (min-width: 640px) {
img.mw-logo-wordmark {
height: 2.5rem;
}
}
/* Move page header to the bottom for main page */
.page-Main_Page .citizen-body-container {
grid-template-areas:
'content'
'header'
'afterHeader'
'footer';
}
@media (hover: hover) {
/*
* Search button tooltip
* This is temporary until tooltip is fully implemented upstream at Citizen
*/
.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
* Rich format menu to have more hierarchy
*/
/* Remove bottom spacing as it is handled in footer portlet */
.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;
}