MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
Admin-erik (talk | contribs) No edit summary |
Admin-erik (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 57: | Line 57: | ||
flex-direction: row; | flex-direction: row; | ||
align-items: center; | align-items: center; | ||
} | } | ||
Latest revision as of 19:42, 10 October 2026
/* All CSS here will be loaded for users of the Citizen skin */
:root {
--font-family-base: var(--ygdren-font-family-body);
--font-size-x-small: var(--ygdren-font-size-x-small);
--font-size-small: var(--ygdren-font-size-small);
--font-size-medium: var(--ygdren-font-size-medium);
--font-size-large: var(--ygdren-font-size-large);
--font-size-x-large: var(--ygdren-font-size-x-large);
--font-size-xx-large: var(--ygdren-font-size-xx-large);
--font-size-xxx-large: var(--ygdren-font-size-xxx-large);
--color-base: var(--ygdren-color-text) !important;
--color-emphasized: var(--ygdren-color-emphasized) !important;
--color-subtle: var(--ygdren-color-subtle) !important;
--color-inverted-primary: var(--ygdren-color-inverted) !important;
--color-inverted-fixed: var(--ygdren-color-inverted) !important;
--border-color-base: var(--ygdren-border-color-base) !important;
--border-color-interactive: var(--ygdren-border-color-interactive) !important;
--border-color-subtle: var(--ygdren-border-color-subtle) !important;
--border-color-disabled: var(--ygdren-border-color-subtle) !important;
--border-color-muted: var(--ygdren-border-color-subtle) !important;
--color-surface-0: var(--ygdren-color-surface-0) !important;
--color-surface-1: var(--ygdren-color-surface-1) !important;
--color-surface-2: var(--ygdren-color-surface-2) !important;
--color-surface-3: var(--ygdren-color-surface-3) !important;
--color-surface-4: var(--ygdren-color-surface-4) !important;
--color-progressive: var(--ygdren-color-progressive) !important;
--color-progressive--hover: var(--ygdren-color-progressive--hover) !important;
--color-progressive--active: var(--ygdren-color-progressive--active) !important;
}
@media screen and (prefers-reduced-transparency: reduce) {
:root {
--backdrop-filter-frosted-glass: blur(16px) saturate(140%) !important;
--opacity-glass: 0.9 !important;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--ygdren-font-family-header);
}
.citizen-footer__container {
max-width: var(--width-layout--extended);
}
.citizen-footer__sitetitle {
flex-direction: row;
align-items: center;
}
.citizen-menu__card,
.citizen-command-palette,
.citizen-sticky-header-background {
background-color: color-mix(in oklab,var(--color-surface-1) calc(var(--opacity-glass) * 100%),transparent);
}
.citizen-dropdown-details[open] + .citizen-menu__card {
backdrop-filter: var(--backdrop-filter-frosted-glass);
}
.citizen-page-header-inner {
filter: drop-shadow(0px 0px 8px var(--ygdren-color-surface-0));
}
.citizen-page-container::before {
background-image: url(https://ygdren.net/img_auth.php/5/5a/Painterly_Banner.png);
background-position: 70% center;
background-repeat: no-repeat;
content: "";
position: absolute;
inset: 0;
pointer-events: none;
height: 400px;
background-size: cover;
mask-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4) 3rem, rgba(0, 0, 0, 0.2) 9rem, transparent 100%);
}
.citizen-overflow-wrapper:has(.wikitable.wide) {
max-width: none;
}
.citizen-toc .citizen-menu__card {
backdrop-filter: none;
}
.citizen-toc-link {
text-align: left;
}
.wikitable hr {
margin-block: 0.5em;
}
.mw-templatedata-doc-params .mw-templatedata-caption .mw-editsection-like > .mw-editsection-bracket {
display: none
}
@media screen and (min-width: 1120px) {
.citizen-header {
padding-top: 24px;
}
}
#footer-places {
flex-grow: 0;
}
#footer-places ul {
grid-template-columns: 1fr 1fr;
}
#n-allpages, #n-recentimages {
a::before {
display: block;
width: var(--size-icon);
min-width: var(--size-icon);
height: var(--size-icon);
min-height: var(--size-icon);
contain: strict;
content: '';
background-color: currentcolor;
background-image: none !important;
mask-repeat: no-repeat;
mask-position: center;
mask-size: contain;
}
}
#n-allpages a::before {
mask-image: url(/load.php?modules=skins.citizen.icons&image=article&format=original&lang=en-gb&skin=citizen&version=ztntf);
}
#n-recentimages a::before {
mask-image: url(/load.php?modules=skins.citizen.icons&image=image&format=original&lang=en-gb&skin=citizen&version=ztntf);
}