MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Created page with ".citizen-page-container { position: relative; min-height: 100vh; background-image: url('/mediawiki/images/8/80/Site-background.jpg'); background-repeat: no-repeat; background-position: center center; background-size: cover; background-attachment: fixed; } .citizen-page-container::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; →default alpha for light mode: background: rgba(0,0,0,0.2); backdrop-filter..." |
(No difference)
|
Revision as of 02:00, 23 November 2025
.citizen-page-container {
position: relative;
min-height: 100vh;
background-image: url('/mediawiki/images/8/80/Site-background.jpg');
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
background-attachment: fixed;
}
.citizen-page-container::before {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
/* default alpha for light mode */
background: rgba(0,0,0,0.2);
backdrop-filter: blur(8px);
z-index: 0;
}
/* dark mode overlay - explicit night mode */
.skin-theme-clientpref-night .citizen-page-container::before {
background: rgba(7,9,13,0.5);
}
/* dark mode overlay - auto mode when system is dark */
@media (prefers-color-scheme: dark) {
.skin-theme-clientpref-os .citizen-page-container::before {
background: rgba(7,9,13,0.5);
}
}
.citizen-page-container > * {
position: relative;
z-index: 1;
}
.citizen-page-header {
margin-top: 0;
}
.citizen-page-header-inner, .citizen-body {
background: var(--color-surface-1);
padding: var(--space-xl);
border-radius: 16px;
border: var(--border-width-base) solid var(--border-color-base);
}
.citizen-footer {
margin-top: 6.9rem;
}
.citizen-page-footer {
margin-top: 0;
}
.citizen-body p {
margin: 1em 0;
}
#mw-content-text {
margin-block-start: 0;
}
.page-Main_Page.action-view .citizen-body-container {
margin-block-start: 0;
}
body:not(.page-Main_Page) .citizen-body {
margin-block-start: var(--space-md);
}
.page-info__text {
font-weight: 600;
}
.page-info {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-xl);
}
@media screen and (min-width: 1120px) {
.page-info {
text-align: center;
margin-right: 30% !important;
margin-left: 30% !important;
}
}
@media screen and (max-width: 1119px) {
body.page-Main_Page .citizen-page-header-inner {
display: contents;
}
body.page-Main_Page .citizen-body-container {
margin-bottom: 0;
}
}
/* Simple approach: Remove margin from first non-empty section's first child */
.mw-parser-output > section:first-child > *:first-child,
.mw-parser-output > .citizen-section:first-child > *:first-child {
margin-top: 0 !important;
}
/* If first section is empty, target the next element with margin */
.mw-parser-output > section:empty:first-child + .mw-heading,
.mw-parser-output > .citizen-section:empty:first-child + .mw-heading {
margin-top: 0 !important;
}
/* Catch-all for direct first children that have content */
.mw-parser-output > p:first-child,
.mw-parser-output > h1:first-child,
.mw-parser-output > h2:first-child,
.mw-parser-output > div:first-child:not(.citizen-section):not(.mw-heading) {
margin-top: 0 !important;
}
table th, table td {
padding: 3px 6px;
}
li {
margin: 0 0 2px 0;
}
.item-link a img,
.crafts .i img {
margin: 1px;
}
.item-link .i > span + span,
.crafts .i > span:first-child + span {
margin-left: 2px;
}
.linksbox {
background-color: var(--color-surface-3);
}
/* linksbox dark mode - explicit night mode */
.skin-theme-clientpref-night {
.linksbox {
background-color: var(--color-surface-1);
}
.infobox th {
background-color: var(--color-surface-1) !important;
}
}
/* linksbox dark mode - auto mode when system is dark */
@media (prefers-color-scheme: dark) {
.skin-theme-clientpref-os {
.linksbox {
background-color: var(--color-surface-1);
}
.infobox th {
background-color: var(--color-surface-1) !important;
}
}
}
#siteSub {
margin-top: 4px;
}
.mw-heading1, .mw-heading2 {
margin-top: 18px;
margin-bottom: 12px;
}
.mw-heading3 {
margin-top: 14px;
margin-bottom: 7px;
}
.infobox {
border: 1px solid var(--border-color-base);
background: var(--color-surface-2);
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
float: right;
th {
background-color: var(--color-surface-3) !important;
border-radius: .35em;
}
}
.float-right {
float: right;
}
img.pixel-art {
image-rendering: auto; /* default */
}
img.pixel-art.pixelated {
image-rendering: pixelated;
}
.background-1 {
border: 1px solid var(--border-color-base) !important;
background: var(--color-surface-2);
th {
background-color: var(--color-surface-1) !important;
border-radius: .35em;
}
tbody tr td {
padding: 1px;
}
}
.i > span {
display: inline-block;
margin-left: 3px;
text-align: left;
}
.i {
white-space: nowrap;
color: var(--wiki-content-text-color);
display: inline-block;
}
.i.block, .i.block > span {
display: block;
}
.i.aligncenter {
text-align: center;
}
.i.break > span {
white-space: normal;
}
.i.multi-line > span, .i.-w > span, .i.break > span {
line-height: 1.25;
vertical-align: middle;
}
.i > a:first-child, .i > img:first-child, .i > span:first-child {
margin-left: auto;
}
.i > .mw-default-size:first-child {
display: contents;
}
.crafts ul {
list-style-type: none;
margin: 0;
}
