MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
Repair timeline grid and responsive presentation |
Align timeline dates markers and event cards |
||
| Line 806: | Line 806: | ||
.csw-timeline-date { | .csw-timeline-date { | ||
grid-column: 1; | grid-column: 1; | ||
grid-row: 1; | |||
padding: 0.65rem 0.75rem 0 0; | padding: 0.65rem 0.75rem 0 0; | ||
color: var(--color-base--subtle); | color: var(--color-base--subtle); | ||
| Line 818: | Line 819: | ||
.csw-timeline-marker { | .csw-timeline-marker { | ||
grid-column: 2; | grid-column: 2; | ||
grid-row: 1; | |||
z-index: 1; | z-index: 1; | ||
width: 0.7rem; | width: 0.7rem; | ||
| Line 830: | Line 832: | ||
.csw-timeline-body { | .csw-timeline-body { | ||
grid-column: 3; | grid-column: 3; | ||
grid-row: 1; | |||
min-width: 0; | min-width: 0; | ||
padding: 0.7rem 0.85rem; | padding: 0.7rem 0.85rem; | ||
| Line 906: | Line 909: | ||
.csw-timeline-date { | .csw-timeline-date { | ||
grid-row: 1; | |||
padding: 0 0 0.25rem 0.4rem; | padding: 0 0 0.25rem 0.4rem; | ||
} | |||
.csw-timeline-body { | |||
grid-row: 2; | |||
} | } | ||
} | } | ||
Latest revision as of 06:42, 1 September 2026
/* Create Server Wiki: Citizen + Catppuccin theme */
/* Latte is used for Citizen's day option. */
html.skin-theme-clientpref-day,
html.skin-theme-clientpref-os {
color-scheme: light;
--color-base: #4c4f69;
--color-base--subtle: #6c6f85;
--color-surface-0: #eff1f5;
--color-surface-1: #e6e9ef;
--color-surface-2: #dce0e8;
--color-surface-3: #ccd0da;
--color-surface-4: #bcc0cc;
--background-color-base: #eff1f5;
--background-color-base-fixed: #eff1f5;
--background-color-interactive: #e6e9ef;
--background-color-interactive-subtle: #dce0e8;
--background-color-interactive--hover: #ccd0da;
--background-color-interactive--active: #bcc0cc;
--border-color-base: #9ca0b0;
--border-color-subtle: #bcc0cc;
--color-progressive: #1e66f5;
--color-progressive--hover: #209fb5;
--color-progressive--active: #04a5e5;
--color-visited: #8839ef;
--color-destructive: #d20f39;
--color-warning: #df8e1d;
--color-success: #40a02b;
}
/* Macchiato is used for Citizen's night option. */
html.skin-theme-clientpref-night {
color-scheme: dark;
--color-base: #cad3f5;
--color-base--subtle: #a5adcb;
--color-surface-0: #24273a;
--color-surface-1: #363a4f;
--color-surface-2: #494d64;
--color-surface-3: #5b6078;
--color-surface-4: #6e738d;
--background-color-base: #24273a;
--background-color-base-fixed: #24273a;
--background-color-interactive: #363a4f;
--background-color-interactive-subtle: #1e2030;
--background-color-interactive--hover: #494d64;
--background-color-interactive--active: #5b6078;
--border-color-base: #5b6078;
--border-color-subtle: #494d64;
--color-progressive: #8aadf4;
--color-progressive--hover: #91d7e3;
--color-progressive--active: #7dc4e4;
--color-visited: #c6a0f6;
--color-destructive: #ed8796;
--color-warning: #eed49f;
--color-success: #a6da95;
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os {
--color-base: #cad3f5;
--color-base--subtle: #a5adcb;
--color-surface-0: #24273a;
--color-surface-1: #363a4f;
--color-surface-2: #494d64;
--color-surface-3: #5b6078;
--color-surface-4: #6e738d;
--background-color-base: #24273a;
--background-color-base-fixed: #24273a;
--background-color-interactive: #363a4f;
--background-color-interactive-subtle: #1e2030;
--background-color-interactive--hover: #494d64;
--background-color-interactive--active: #5b6078;
--border-color-base: #5b6078;
--border-color-subtle: #494d64;
--color-progressive: #8aadf4;
--color-progressive--hover: #91d7e3;
--color-progressive--active: #7dc4e4;
--color-visited: #c6a0f6;
--color-destructive: #ed8796;
--color-warning: #eed49f;
--color-success: #a6da95;
}
}
.csw-hero {
padding: clamp(1.5rem, 4vw, 3.5rem);
margin: 0 0 1rem;
border: 1px solid var(--border-color-subtle);
border-radius: 1rem;
background:
radial-gradient(circle at 85% 20%, color-mix(in srgb, #8839ef 24%, transparent), transparent 32%),
radial-gradient(circle at 15% 80%, color-mix(in srgb, #1e66f5 20%, transparent), transparent 38%),
linear-gradient(135deg, var(--background-color-interactive-subtle), var(--color-surface-1));
box-shadow: 0 18px 50px rgba(17, 17, 27, 0.22);
}
.skin-theme-clientpref-night .csw-hero {
background:
radial-gradient(circle at 85% 20%, color-mix(in srgb, #c6a0f6 24%, transparent), transparent 32%),
radial-gradient(circle at 15% 80%, color-mix(in srgb, #8aadf4 20%, transparent), transparent 38%),
linear-gradient(135deg, #1e2030, #363a4f);
}
.csw-kicker {
color: var(--color-warning);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.csw-hero-title {
margin: 0.2rem 0 0.45rem;
color: var(--color-base);
font-size: clamp(2.2rem, 7vw, 4.7rem);
font-weight: 800;
letter-spacing: -0.045em;
line-height: 0.98;
}
.csw-hero-copy {
max-width: 54rem;
color: var(--color-base--subtle);
font-size: clamp(1rem, 2vw, 1.25rem);
}
.csw-quicklinks {
margin: 0 0 1rem;
padding: 0.7rem 1rem;
border: 1px solid var(--border-color-subtle);
border-radius: 0.8rem;
background: var(--background-color-interactive-subtle);
text-align: center;
}
.csw-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.csw-card {
padding: 1.15rem 1.25rem;
border: 1px solid var(--border-color-subtle);
border-radius: 0.9rem;
background: var(--background-color-interactive-subtle);
}
.csw-card-wide {
grid-column: 1 / -1;
}
.csw-card h2 {
margin-top: 0;
color: var(--color-progressive);
}
/* Main Page follows a conventional community-encyclopedia portal layout. */
.csw-mp-welcome {
margin-bottom: 0.75rem;
padding: 1rem 1.25rem;
border: 1px solid var(--border-color-subtle);
background: var(--background-color-interactive-subtle);
text-align: center;
}
.csw-mp-title {
color: var(--color-base);
font-family: Georgia, 'Times New Roman', serif;
font-size: clamp(1.7rem, 4vw, 2.35rem);
line-height: 1.2;
}
.csw-mp-title a {
color: inherit;
}
.csw-mp-subtitle {
margin-top: 0.25rem;
color: var(--color-base--subtle);
font-size: 1rem;
}
.csw-mp-stats {
margin-top: 0.45rem;
font-size: 0.9rem;
}
.csw-mp-links {
margin-bottom: 1rem;
padding: 0.45rem 0.75rem;
border: 1px solid var(--border-color-subtle);
background: var(--color-surface-1);
font-size: 0.9rem;
text-align: center;
}
.csw-mp-columns {
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
gap: 1rem;
align-items: start;
}
.csw-mp-box {
margin-bottom: 1rem;
border: 1px solid var(--border-color-subtle);
background: var(--background-color-interactive-subtle);
}
.csw-mp-heading {
padding: 0.45rem 0.65rem;
border-bottom: 1px solid var(--border-color-subtle);
border-left: 0.3rem solid var(--color-progressive);
background: var(--color-surface-1);
color: var(--color-base);
font-size: 1.05rem;
font-weight: 700;
}
.csw-mp-heading-green { border-left-color: var(--color-success); }
.csw-mp-heading-yellow { border-left-color: var(--color-warning); }
.csw-mp-heading-purple { border-left-color: var(--color-visited); }
.csw-mp-heading-red { border-left-color: var(--color-destructive); }
.csw-mp-heading-teal { border-left-color: var(--color-progressive--hover); }
.csw-mp-body {
padding: 0.75rem 0.85rem;
}
.csw-mp-body > :first-child { margin-top: 0; }
.csw-mp-body > :last-child { margin-bottom: 0; }
.csw-news-table,
.csw-index-table,
.csw-side-table {
width: 100%;
border-collapse: collapse;
}
.csw-news-table th,
.csw-news-table td,
.csw-index-table th,
.csw-index-table td,
.csw-side-table th,
.csw-side-table td {
padding: 0.38rem 0.5rem;
border: 1px solid var(--border-color-subtle);
vertical-align: top;
}
.csw-news-table th,
.csw-index-table th {
width: 7rem;
background: var(--color-surface-1);
text-align: left;
white-space: nowrap;
}
.csw-mp-more {
margin-top: 0.6rem;
text-align: right;
}
.csw-server-status {
overflow: hidden;
}
.csw-server-status-line {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.csw-server-status-dot {
display: inline-block;
width: 0.72rem;
height: 0.72rem;
flex: 0 0 0.72rem;
border-radius: 50%;
background: var(--color-base--subtle);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-base--subtle) 18%, transparent);
}
.csw-server-status-dot-online {
background: var(--color-success);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 20%, transparent);
}
.csw-server-status-dot-offline {
background: var(--color-destructive);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-destructive) 20%, transparent);
}
.csw-server-status-dot-loading {
animation: csw-status-pulse 1.4s ease-in-out infinite;
}
.csw-server-player-count {
margin-left: auto;
color: var(--color-base--subtle);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.csw-server-motd {
margin-top: 0.75rem;
padding: 0.65rem 0.75rem;
border: 1px solid var(--border-color-subtle);
background: var(--color-surface-0);
color: var(--color-base);
line-height: 1.4;
white-space: pre-line;
}
.csw-server-player-section {
margin-top: 0.75rem;
}
.csw-server-player-list {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
margin-top: 0.4rem;
color: var(--color-base--subtle);
}
.csw-server-player {
display: inline-flex;
align-items: center;
min-height: 1.8rem;
padding: 0.2rem 0.55rem;
border: 1px solid var(--border-color-subtle);
border-radius: 999px;
background: var(--background-color-interactive);
font-size: 0.86rem;
font-weight: 700;
}
.csw-server-player-more {
align-self: center;
font-size: 0.82rem;
}
.csw-server-status-updated {
min-height: 1.1em;
margin-top: 0.65rem;
color: var(--color-base--subtle);
font-size: 0.75rem;
text-align: right;
}
@keyframes csw-status-pulse {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
.csw-bloc-overview {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.8rem;
}
.csw-bloc-card {
padding: 0.7rem;
border: 1px solid var(--border-color-subtle);
background: var(--color-surface-0);
}
.csw-bloc-title {
padding-bottom: 0.35rem;
border-bottom: 1px solid var(--border-color-subtle);
font-size: 1.05rem;
font-weight: 700;
}
.csw-bloc-description {
margin: 0.5rem 0 0.7rem;
color: var(--color-base--subtle);
font-size: 0.9rem;
}
.csw-bloc-subheading {
margin: 0.65rem 0 0.35rem;
color: var(--color-base--subtle);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.csw-member-roster {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
gap: 0.45rem;
}
.csw-member-card {
display: flex;
min-width: 0;
align-items: center;
gap: 0.5rem;
padding: 0.4rem;
border: 1px solid var(--border-color-subtle);
background: var(--background-color-interactive-subtle);
}
.csw-member-icon {
display: block;
width: 44px;
height: 44px;
flex: 0 0 44px;
overflow: hidden;
border: 1px solid var(--border-color-base);
background: var(--color-surface-1);
}
.csw-member-icon img {
display: block;
width: 44px;
height: 44px;
image-rendering: pixelated;
}
.csw-member-details,
.csw-member-name,
.csw-member-role {
display: block;
min-width: 0;
}
.csw-member-name {
font-weight: 700;
}
.csw-member-role {
color: var(--color-base--subtle);
font-size: 0.75rem;
line-height: 1.25;
}
.csw-infobox-member-section {
background: var(--color-surface-0);
}
.csw-member-roster-infobox {
grid-template-columns: 1fr;
margin-top: 0.45rem;
text-align: left;
}
.csw-infobox {
display: block;
width: min(100%, 22rem);
margin: 0 0 1rem 1.5rem;
float: right;
border: 1px solid var(--border-color-subtle);
border-collapse: separate;
border-spacing: 0;
border-radius: 0.8rem;
overflow: hidden;
background: var(--background-color-interactive-subtle);
box-shadow: 0 8px 28px rgba(17, 17, 27, 0.16);
}
.csw-infobox > caption {
display: block;
width: calc(100% + 2px);
margin-left: -1px;
border-radius: 0;
}
.csw-infobox > tbody {
display: table;
width: 100%;
table-layout: fixed;
border-collapse: separate;
border-spacing: 0;
}
.csw-infobox > caption,
.csw-infobox > tbody > tr:first-child > th {
background: var(--color-surface-1);
}
.csw-infobox th,
.csw-infobox td {
padding: 0.55rem 0.7rem;
border-color: var(--border-color-subtle);
vertical-align: top;
}
.csw-infobox th {
width: 35%;
color: var(--color-base--subtle);
}
.csw-infobox-subhead {
background: var(--color-surface-1);
color: var(--color-base--subtle);
font-size: 0.88rem;
text-align: center;
}
.csw-conflictbox {
width: min(100%, 390px);
background: var(--color-surface-0);
font-size: 0.9rem;
line-height: 1.45;
}
.csw-conflictbox > tbody > tr:first-child > .csw-conflict-title,
.csw-conflict-title {
width: auto;
padding: 0.78rem 0.9rem;
border-bottom: 1px solid var(--border-color-base);
background: color-mix(in srgb, var(--color-progressive) 16%, var(--color-surface-1));
color: var(--color-base);
font-size: 1.15rem;
font-weight: 800;
line-height: 1.2;
text-align: center;
}
.csw-conflict-partof {
padding: 0.42rem 0.7rem;
border-bottom: 1px solid var(--border-color-subtle);
background: var(--color-surface-1);
color: var(--color-base--subtle);
font-size: 0.82rem;
font-style: italic;
text-align: center;
}
.csw-conflictbox > tbody > tr > th:not([colspan]) {
width: 27%;
color: var(--color-base);
font-weight: 700;
}
.csw-conflict-section {
width: auto;
padding: 0.4rem 0.65rem;
border-top: 1px solid var(--border-color-base);
border-bottom: 1px solid var(--border-color-subtle);
background: color-mix(in srgb, var(--color-progressive) 11%, var(--color-surface-1));
color: var(--color-base);
font-size: 0.88rem;
font-weight: 800;
letter-spacing: 0.015em;
text-align: center;
}
.csw-conflict-party {
width: 50%;
padding: 0.62rem 0.72rem;
background: var(--background-color-interactive-subtle);
overflow-wrap: anywhere;
text-align: left;
vertical-align: top;
}
.csw-conflict-party-2 {
border-left: 1px solid var(--border-color-subtle);
}
.csw-conflict-party-name {
color: var(--color-base);
font-weight: 750;
text-align: center;
}
.csw-commander-entry {
display: flex;
align-items: flex-start;
gap: 0.42rem;
margin: 0.22rem 0;
line-height: 1.25;
}
.csw-commander-head {
display: inline-flex;
flex: 0 0 22px;
width: 22px;
height: 22px;
}
.csw-commander-head img {
width: 22px;
height: 22px;
border: 1px solid var(--border-color-base);
background: var(--color-surface-1);
image-rendering: pixelated;
}
.csw-commander-details {
min-width: 0;
}
.csw-commander-name {
color: var(--color-base);
font-weight: 700;
}
.csw-commander-role,
.csw-commander-note {
display: block;
color: var(--color-base--subtle);
font-size: 0.78rem;
line-height: 1.3;
}
.csw-commander-note {
margin-top: 0.35rem;
}
.csw-infobox-image {
text-align: center;
}
.csw-player-profile img {
width: min(100%, 240px);
height: auto;
max-height: 280px;
object-fit: contain;
}
.csw-infobox-caption,
.csw-shortdesc {
color: var(--color-base--subtle);
font-size: 0.88rem;
}
.csw-shortdesc {
margin: -0.35rem 0 1rem;
font-style: italic;
}
.csw-notice {
display: grid;
grid-template-columns: 8.5rem minmax(0, 1fr);
margin: 1rem 0;
border: 1px solid var(--border-color-subtle);
border-left: 0.35rem solid var(--color-progressive);
background: var(--background-color-interactive-subtle);
}
.csw-notice-label,
.csw-notice-body {
padding: 0.75rem 0.9rem;
}
.csw-notice-label {
display: flex;
align-items: center;
background: color-mix(in srgb, var(--color-progressive) 12%, transparent);
color: var(--color-base);
font-weight: 800;
}
.csw-notice-body {
align-self: center;
}
.csw-notice-information {
border-left-color: var(--color-progressive);
}
.csw-notice-update {
border-left-color: var(--color-success);
}
.csw-notice-warning {
border-left-color: var(--color-warning);
}
.csw-notice-disputed {
border-left-color: var(--color-destructive);
}
.csw-notice-protected {
border-left-color: var(--color-visited);
}
.csw-quote-box {
max-width: 34rem;
margin: 1rem 0 1rem auto;
padding: 0.9rem 1rem;
border: 0;
border-left: 0.3rem solid var(--color-progressive);
background: var(--background-color-interactive-subtle);
}
.csw-quote-text {
color: var(--color-base);
font-family: Georgia, 'Times New Roman', serif;
font-size: 1.08rem;
}
.csw-quote-box footer {
margin-top: 0.5rem;
color: var(--color-base--subtle);
font-size: 0.86rem;
text-align: right;
}
.csw-status-badge {
display: inline-block;
padding: 0.12rem 0.48rem;
border: 1px solid var(--border-color-subtle);
border-radius: 999px;
background: var(--color-surface-1);
color: var(--color-base);
font-size: 0.78rem;
font-weight: 750;
line-height: 1.45;
white-space: nowrap;
}
.csw-status-active {
border-color: var(--color-success);
background: color-mix(in srgb, var(--color-success) 16%, var(--color-surface-1));
}
.csw-status-inactive {
color: var(--color-base--subtle);
}
.csw-status-planned {
border-color: var(--color-progressive);
background: color-mix(in srgb, var(--color-progressive) 16%, var(--color-surface-1));
}
.csw-status-disputed {
border-color: var(--color-destructive);
background: color-mix(in srgb, var(--color-destructive) 16%, var(--color-surface-1));
}
.csw-navbox {
clear: both;
margin-top: 2rem;
border: 1px solid var(--border-color-subtle);
border-radius: 0.8rem;
overflow: hidden;
background: var(--background-color-interactive-subtle);
font-size: 0.9rem;
}
.csw-navbox-title {
padding: 0.6rem 0.8rem;
background: var(--color-surface-1);
color: var(--color-progressive);
font-weight: 800;
text-align: center;
}
.csw-navbox-row {
padding: 0.45rem 0.75rem;
border-top: 1px solid var(--border-color-subtle);
}
.csw-navbox-row strong {
display: inline-block;
min-width: 6.5rem;
color: var(--color-warning);
}
.wikitable,
.mw-parser-output table.wikitable {
border-color: var(--border-color-subtle);
background: var(--background-color-interactive-subtle);
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background: var(--color-surface-1);
}
.csw-timeline {
--csw-timeline-date-width: 8.1rem;
--csw-timeline-rail-width: 1.8rem;
position: relative;
margin: 1rem 0 1.5rem;
}
.csw-timeline::before {
position: absolute;
top: 0.45rem;
bottom: 1.45rem;
left: calc(var(--csw-timeline-date-width) + (var(--csw-timeline-rail-width) / 2));
width: 2px;
transform: translateX(-1px);
background: var(--border-color-base);
content: '';
}
.csw-timeline-entry {
position: relative;
display: grid;
grid-template-columns: var(--csw-timeline-date-width) var(--csw-timeline-rail-width) minmax(0, 1fr);
align-items: start;
padding: 0 0 1rem;
}
.csw-timeline-date {
grid-column: 1;
grid-row: 1;
padding: 0.65rem 0.75rem 0 0;
color: var(--color-base--subtle);
font-size: 0.86rem;
font-weight: 700;
line-height: 1.35;
overflow-wrap: normal;
text-align: right;
word-break: normal;
}
.csw-timeline-marker {
grid-column: 2;
grid-row: 1;
z-index: 1;
width: 0.7rem;
height: 0.7rem;
margin: 0.85rem auto 0;
border: 2px solid var(--background-color-base);
border-radius: 50%;
background: var(--color-progressive);
box-shadow: 0 0 0 1px var(--color-progressive);
}
.csw-timeline-body {
grid-column: 3;
grid-row: 1;
min-width: 0;
padding: 0.7rem 0.85rem;
border: 1px solid var(--border-color-subtle);
border-radius: 0.55rem;
background: var(--background-color-interactive-subtle);
}
.csw-timeline-title {
margin-bottom: 0.2rem;
color: var(--color-base);
font-weight: 700;
}
@media (max-width: 720px) {
.csw-bloc-overview {
grid-template-columns: 1fr;
}
.csw-mp-columns {
grid-template-columns: 1fr;
}
.csw-grid {
grid-template-columns: 1fr;
}
.csw-notice {
grid-template-columns: 1fr;
}
.csw-notice-label {
padding-bottom: 0.45rem;
}
.csw-quote-box {
max-width: none;
margin-left: 0;
}
.csw-card-wide {
grid-column: auto;
}
.csw-infobox {
width: 100%;
margin: 0 0 1rem;
float: none;
}
.csw-navbox-row strong {
display: block;
margin-bottom: 0.2rem;
}
.csw-timeline::before {
left: 0.45rem;
transform: none;
}
.csw-timeline-entry {
grid-template-columns: 1rem minmax(0, 1fr);
}
.csw-timeline-marker {
grid-column: 1;
grid-row: 1 / span 2;
margin-top: 0.35rem;
}
.csw-timeline-date,
.csw-timeline-body {
grid-column: 2;
text-align: left;
}
.csw-timeline-date {
grid-row: 1;
padding: 0 0 0.25rem 0.4rem;
}
.csw-timeline-body {
grid-row: 2;
}
}