MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary Tag: Manual revert |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
body.skin-citizen { | body.skin-citizen { | ||
--fj-orange: # | --fj-orange: #f49a4e; | ||
--fj-orange-bright: # | --fj-orange-bright: #ffc27e; | ||
--fj-green: # | --fj-green: #85d69c; | ||
--fj-blue: # | --fj-blue: #9ac9ec; | ||
--fj-violet: # | --fj-violet: #c4abf1; | ||
--fj-radius: | --fj-pink: #eeb1c4; | ||
--fj-radius-sm: | --fj-red: #e9908b; | ||
--fj-border: rgba(255, | --fj-good: #74d59b; | ||
--fj-shadow: 0 | --fj-bad: #eb8a82; | ||
--fj-surface: # | --fj-radius: 12px; | ||
--fj-surface-raised: # | --fj-radius-sm: 6px; | ||
--fj-ink: # | --fj-border: rgba(255, 220, 185, .14); | ||
--fj-muted: # | --fj-shadow: 0 8px 25px rgba(12, 7, 5, .22); | ||
--fj-surface: #33251d; | |||
--fj-surface-raised: #422e24; | |||
--fj-ink: #f9eddf; | |||
--fj-muted: #d6bda9; | |||
--color-progressive-oklch__l: 74%; | |||
--color-progressive-oklch__l: | --color-progressive-oklch__c: .14; | ||
--color-progressive-oklch__c: . | --color-progressive-oklch__h: 65; | ||
--color-progressive-oklch__h: | |||
--font-family-citizen-base: 'Trebuchet MS', 'Segoe UI', sans-serif; | --font-family-citizen-base: 'Trebuchet MS', 'Segoe UI', sans-serif; | ||
--color-link: | --color-link: #ffc27e; | ||
/* Defaults even before a Citizen mode preference is resolved. */ | |||
--color-surface-0: #211813; | |||
--color-surface-1: #33251d; | |||
--color-surface-2: #422e24; | |||
--color-surface-3: #51382a; | |||
--color-surface-4: #634431; | |||
--color-base: #f3e5d6; | |||
--color-emphasized: #fff7ee; | |||
--color-subtle: #d6bda9; | |||
} | } | ||
:is(html.skin-theme-clientpref-night body.skin-citizen, body.skin-citizen.skin-theme-clientpref-night) { | /* User-selected dark mode */ | ||
:is(html.skin-theme-clientpref-night body.skin-citizen, | |||
body.skin-citizen.skin-theme-clientpref-night) { | |||
color-scheme: dark; | color-scheme: dark; | ||
--fj- | --fj-border: rgba(255, 220, 185, .14); | ||
--fj- | --fj-shadow: 0 8px 25px rgba(12, 7, 5, .22); | ||
--fj- | --fj-surface: #33251d; | ||
--fj- | --fj-surface-raised: #422e24; | ||
--fj- | --fj-ink: #f9eddf; | ||
--fj- | --fj-muted: #d6bda9; | ||
--color-surface-0: # | --color-surface-0: #211813; | ||
--color-surface-1: # | --color-surface-1: #33251d; | ||
--color-surface-2: # | --color-surface-2: #422e24; | ||
--color-surface-3: # | --color-surface-3: #51382a; | ||
--color-surface-4: # | --color-surface-4: #634431; | ||
--color-base: # | --color-base: #f3e5d6; | ||
--color-emphasized: # | --color-emphasized: #fff7ee; | ||
--color-subtle: # | --color-subtle: #d6bda9; | ||
--color-link: # | --color-link: #ffc27e; | ||
} | } | ||
:is(html.skin-theme-clientpref-day body.skin-citizen, body.skin-citizen.skin-theme-clientpref-day) { | |||
/* User-selected light mode */ | |||
:is(html.skin-theme-clientpref-day body.skin-citizen, | |||
body.skin-citizen.skin-theme-clientpref-day) { | |||
color-scheme: light; | color-scheme: light; | ||
--fj- | --fj-orange: #c77430; | ||
--fj- | --fj-orange-bright: #a95520; | ||
--fj- | --fj-green: #247747; | ||
--fj- | --fj-blue: #4277a4; | ||
--fj-border: rgba( | --fj-violet: #7b5aab; | ||
--fj-shadow: 0 | --fj-pink: #a84f74; | ||
--color-surface-0: # | --fj-red: #b83e42; | ||
--color-surface-1: # | --fj-good: #25834e; | ||
--color-surface-2: # | --fj-bad: #b93e42; | ||
--color-surface-3: # | --fj-border: rgba(104, 64, 37, .17); | ||
--color-surface-4: # | --fj-shadow: 0 7px 22px rgba(83, 47, 22, .10); | ||
--color-base: # | --fj-surface: #fff5e7; | ||
--color-emphasized: # | --fj-surface-raised: #f3ddc2; | ||
--color-subtle: # | --fj-ink: #493021; | ||
--color-link: # | --fj-muted: #775943; | ||
--color-surface-0: #f6ead7; | |||
--color-surface-1: #fff5e7; | |||
--color-surface-2: #f3ddc2; | |||
--color-surface-3: #e8cda9; | |||
--color-surface-4: #dbbd94; | |||
--color-base: #493021; | |||
--color-emphasized: #342014; | |||
--color-subtle: #775943; | |||
--color-link: #98501d; | |||
} | } | ||
/* Follow the operating system preference when Citizen is set to Auto. */ | |||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
:is(html.skin-theme-clientpref-os body.skin-citizen, body.skin-citizen.skin-theme-clientpref-os) { | :is(html.skin-theme-clientpref-os body.skin-citizen, | ||
body.skin-citizen.skin-theme-clientpref-os) { | |||
color-scheme: dark; | color-scheme: dark; | ||
--fj- | --fj-border: rgba(255, 220, 185, .14); | ||
--fj- | --fj-shadow: 0 8px 25px rgba(12, 7, 5, .22); | ||
--fj- | --fj-surface: #33251d; --fj-surface-raised: #422e24; | ||
--fj-ink: #f9eddf; --fj-muted: #d6bda9; | |||
--color-surface-0: # | --color-surface-0: #211813; --color-surface-1: #33251d; | ||
--color-surface-2: # | --color-surface-2: #422e24; --color-surface-3: #51382a; | ||
--color-surface-4: # | --color-surface-4: #634431; --color-base: #f3e5d6; | ||
--color-emphasized: # | --color-emphasized: #fff7ee; --color-subtle: #d6bda9; | ||
--color-link: # | --color-link: #ffc27e; | ||
} | } | ||
} | } | ||
@media (prefers-color-scheme: light) { | @media (prefers-color-scheme: light) { | ||
:is(html.skin-theme-clientpref-os body.skin-citizen, body.skin-citizen.skin-theme-clientpref-os) { | :is(html.skin-theme-clientpref-os body.skin-citizen, | ||
body.skin-citizen.skin-theme-clientpref-os) { | |||
color-scheme: light; | color-scheme: light; | ||
--fj- | --fj-orange: #c77430; --fj-orange-bright: #a95520; | ||
--fj- | --fj-green: #247747; --fj-blue: #4277a4; | ||
--fj-border: rgba( | --fj-violet: #7b5aab; --fj-pink: #a84f74; | ||
--fj-shadow: 0 | --fj-red: #b83e42; --fj-good: #25834e; --fj-bad: #b93e42; | ||
--color-surface-0: # | --fj-border: rgba(104, 64, 37, .17); | ||
--color-surface-2: # | --fj-shadow: 0 7px 22px rgba(83, 47, 22, .10); | ||
--color-surface-4: # | --fj-surface: #fff5e7; --fj-surface-raised: #f3ddc2; | ||
--color-emphasized: # | --fj-ink: #493021; --fj-muted: #775943; | ||
--color-link: # | --color-surface-0: #f6ead7; --color-surface-1: #fff5e7; | ||
--color-surface-2: #f3ddc2; --color-surface-3: #e8cda9; | |||
--color-surface-4: #dbbd94; --color-base: #493021; | |||
--color-emphasized: #342014; --color-subtle: #775943; | |||
--color-link: #98501d; | |||
} | } | ||
} | } | ||
| Line 91: | Line 125: | ||
body.skin-citizen { | body.skin-citizen { | ||
background-color: var(--color-surface-0); | background-color: var(--color-surface-0); | ||
background-image: radial-gradient(ellipse 52rem 30rem at 90% -12%, rgba( | background-image: radial-gradient(ellipse 52rem 30rem at 90% -12%, rgba(242,149,78,.09), transparent 70%), | ||
radial-gradient(ellipse 45rem 26rem at -15% 40%, rgba( | radial-gradient(ellipse 45rem 26rem at -15% 40%, rgba(231,162,182,.06), transparent 75%); | ||
background-attachment: fixed; | background-attachment: fixed; | ||
} | } | ||
| Line 123: | Line 157: | ||
height: 3px; | height: 3px; | ||
pointer-events: none; | pointer-events: none; | ||
background: linear-gradient(90deg, var(--fj-orange) 0%, | background: linear-gradient(90deg, var(--fj-orange) 0%, var(--fj-pink) 30%, var(--fj-violet) 69%, var(--fj-blue) 100%); | ||
} | } | ||
body.skin-citizen .citizen-header a, | body.skin-citizen .citizen-header a, | ||
| Line 162: | Line 196: | ||
body.skin-citizen .mw-parser-output a:not(.new) { text-underline-offset: .17em; } | body.skin-citizen .mw-parser-output a:not(.new) { text-underline-offset: .17em; } | ||
body.skin-citizen .mw-parser-output a:hover { text-decoration-thickness: 2px; } | body.skin-citizen .mw-parser-output a:hover { text-decoration-thickness: 2px; } | ||
body.skin-citizen .mw-parser-output a.new { color: | body.skin-citizen .mw-parser-output a.new { color: var(--fj-red); } | ||
body.skin-citizen .mw-parser-output a:focus-visible, | body.skin-citizen .mw-parser-output a:focus-visible, | ||
body.skin-citizen button:focus-visible, | body.skin-citizen button:focus-visible, | ||
| Line 171: | Line 205: | ||
body.skin-citizen .mw-ui-button.mw-ui-progressive, | body.skin-citizen .mw-ui-button.mw-ui-progressive, | ||
body.skin-citizen .cdx-button--action-progressive.cdx-button--weight-primary { | body.skin-citizen .cdx-button--action-progressive.cdx-button--weight-primary { | ||
background: # | background: #a95520; | ||
border-color: # | border-color: #a95520; | ||
color: #fff; | color: #fff; | ||
border-radius: var(--fj-radius-sm); | border-radius: var(--fj-radius-sm); | ||
| Line 277: | Line 311: | ||
position: relative; | position: relative; | ||
isolation: isolate; | isolation: isolate; | ||
background: linear-gradient(120deg, # | background: linear-gradient(120deg, #593c2a, #6c4535 60%, #674050); | ||
color: #f7fafc; | color: #f7fafc; | ||
border: 1px solid rgba(255,255,255,.12); | border: 1px solid rgba(255,255,255,.12); | ||
| Line 294: | Line 328: | ||
top: -140px; | top: -140px; | ||
right: -65px; | right: -65px; | ||
background: radial-gradient(circle, rgba(255, | background: radial-gradient(circle, rgba(255,194,126,.30), transparent 70%); | ||
} | } | ||
body.skin-citizen .mw-parser-output .fj-hero h2, | body.skin-citizen .mw-parser-output .fj-hero h2, | ||
| Line 302: | Line 336: | ||
margin-top: 0; | margin-top: 0; | ||
} | } | ||
body.skin-citizen .mw-parser-output .fj-hero a { color: # | body.skin-citizen .mw-parser-output .fj-hero a { color: #ffe6bd; } | ||
body.skin-citizen .mw-parser-output .fj-card-grid { | body.skin-citizen .mw-parser-output .fj-card-grid { | ||
display: grid; | display: grid; | ||
| Line 407: | Line 441: | ||
max-width: 1280px; | max-width: 1280px; | ||
margin-inline: auto; | margin-inline: auto; | ||
} | |||
@media (min-width: 768px) { | |||
body.skin-citizen #footer, | |||
body.skin-citizen footer.citizen-footer { | |||
position: relative; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
width: calc(100vw - 80px) !important; | |||
max-width: none !important; | |||
margin-inline: 0 !important; | |||
box-sizing: border-box; | |||
} | |||
} | |||
/* ========================================== | |||
FJT:R — Article Comments | |||
Minimal layout, readable replies, no overlapping controls. | |||
========================================== */ | |||
body.skin-citizen .fjtr-auto-comments { | |||
clear: both; | |||
width: 100%; | |||
min-width: 0; | |||
margin: 40px 0 24px !important; | |||
padding: 0 !important; | |||
border: 0 !important; | |||
border-radius: 0 !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
box-sizing: border-box; | |||
} | |||
/* The auto-comments PHP hook already supplies a heading. | |||
Hide its duplicate; leave the Comments extension heading intact. */ | |||
body.skin-citizen .fjtr-auto-comments > h2:first-child { | |||
display: none !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-form-title { | |||
margin: 0 0 18px !important; | |||
padding: 0 0 10px !important; | |||
color: var(--color-emphasized) !important; | |||
font-size: 1.4rem !important; | |||
font-weight: 600 !important; | |||
border-bottom: 1px solid var(--fj-border) !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .comments-body { | |||
width: 100% !important; | |||
max-width: none !important; | |||
min-width: 0; | |||
background: transparent !important; | |||
} | |||
/* Form */ | |||
body.skin-citizen .fjtr-auto-comments select, | |||
body.skin-citizen .fjtr-auto-comments textarea { | |||
color: var(--color-base) !important; | |||
background: var(--color-surface-1) !important; | |||
border: 1px solid var(--fj-border) !important; | |||
border-radius: 5px !important; | |||
box-shadow: none !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments select { | |||
padding: 6px 10px !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments textarea { | |||
display: block; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
min-height: 110px !important; | |||
padding: 12px !important; | |||
box-sizing: border-box !important; | |||
resize: vertical; | |||
} | |||
body.skin-citizen .fjtr-auto-comments label { | |||
color: var(--color-base) !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments button, | |||
body.skin-citizen .fjtr-auto-comments input[type="button"], | |||
body.skin-citizen .fjtr-auto-comments input[type="submit"] { | |||
padding: 7px 12px !important; | |||
color: var(--color-base) !important; | |||
background: var(--color-surface-2) !important; | |||
border: 1px solid var(--fj-border) !important; | |||
border-radius: 4px !important; | |||
box-shadow: none !important; | |||
cursor: pointer; | |||
} | |||
body.skin-citizen .fjtr-auto-comments button:hover, | |||
body.skin-citizen .fjtr-auto-comments input[type="button"]:hover, | |||
body.skin-citizen .fjtr-auto-comments input[type="submit"]:hover { | |||
background: var(--color-surface-3) !important; | |||
} | |||
/* Comment rows: remove the extension's old fixed widths / floats. */ | |||
body.skin-citizen .fjtr-auto-comments .c-item { | |||
display: flow-root; | |||
position: relative; | |||
clear: both; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
min-width: 0; | |||
min-height: 78px; | |||
margin: 0 !important; | |||
padding: 18px 0 16px !important; | |||
border: 0 !important; | |||
border-bottom: 1px solid var(--fj-border) !important; | |||
border-radius: 0 !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
box-sizing: border-box !important; | |||
} | |||
/* Indent nested replies. The extension marks replies with .reply. */ | |||
body.skin-citizen .fjtr-auto-comments .c-item.reply, | |||
body.skin-citizen .fjtr-auto-comments .reply.c-item { | |||
width: calc(100% - 48px) !important; | |||
max-width: calc(100% - 48px) !important; | |||
margin: 0 0 0 48px !important; | |||
padding: 14px 0 14px 14px !important; | |||
border-left: 2px solid var(--fj-border) !important; | |||
border-bottom: 1px solid var(--fj-border) !important; | |||
} | |||
/* For actual nested comment markup, avoid applying indentation twice. */ | |||
body.skin-citizen .fjtr-auto-comments .c-item .c-item.reply { | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
margin-left: 0 !important; | |||
} | |||
/* Avatar and content use the same coordinate system. */ | |||
body.skin-citizen .fjtr-auto-comments .c-avatar { | |||
position: absolute !important; | |||
top: 18px !important; | |||
left: 0 !important; | |||
float: none !important; | |||
width: 36px !important; | |||
height: 36px !important; | |||
margin: 0 !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-item.reply > .c-avatar { | |||
top: 14px !important; | |||
left: 14px !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-avatar img { | |||
display: block; | |||
width: 36px !important; | |||
height: 36px !important; | |||
max-width: 36px !important; | |||
border-radius: 50% !important; | |||
object-fit: cover; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-container { | |||
display: flow-root; | |||
position: relative; | |||
float: none !important; | |||
width: auto !important; | |||
max-width: none !important; | |||
min-width: 0; | |||
margin: 0 0 0 52px !important; | |||
padding: 0 !important; | |||
box-sizing: border-box; | |||
} | |||
/* Header and score: allow wrapping instead of overlapping. */ | |||
body.skin-citizen .fjtr-auto-comments .c-user { | |||
position: relative !important; | |||
float: none !important; | |||
min-width: 0; | |||
min-height: 32px; | |||
margin: 0 0 7px !important; | |||
padding: 0 !important; | |||
overflow-wrap: anywhere; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-score { | |||
position: static !important; | |||
inset: auto !important; | |||
float: none !important; | |||
display: inline-flex; | |||
flex-wrap: wrap; | |||
align-items: center; | |||
gap: 5px; | |||
width: auto !important; | |||
margin: 4px 0 8px !important; | |||
padding: 0 !important; | |||
color: var(--color-subtle) !important; | |||
font-size: .78rem !important; | |||
font-weight: 400 !important; | |||
text-align: left !important; | |||
} | |||
/* Body and per-comment actions occupy their own rows. */ | |||
body.skin-citizen .fjtr-auto-comments .c-comment, | |||
body.skin-citizen .fjtr-auto-comments .f-message, | |||
body.skin-citizen .fjtr-auto-comments .r-message { | |||
display: block; | |||
position: static !important; | |||
float: none !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
min-width: 0; | |||
margin: 8px 0 !important; | |||
padding: 0 !important; | |||
box-sizing: border-box !important; | |||
overflow-wrap: anywhere; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-item p { | |||
margin: 7px 0 !important; | |||
color: var(--color-base) !important; | |||
font-size: .95rem !important; | |||
line-height: 1.6 !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-actions { | |||
position: static !important; | |||
inset: auto !important; | |||
float: none !important; | |||
clear: both !important; | |||
display: flex !important; | |||
flex-wrap: wrap !important; | |||
align-items: center; | |||
justify-content: flex-start !important; | |||
gap: 4px 8px; | |||
width: 100% !important; | |||
margin: 10px 0 0 !important; | |||
padding: 0 !important; | |||
color: var(--color-subtle) !important; | |||
font-size: .8rem !important; | |||
line-height: 1.5 !important; | |||
text-align: left !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-actions a { | |||
display: inline-block; | |||
float: none !important; | |||
margin: 0 !important; | |||
text-decoration: none; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-actions a:hover { | |||
text-decoration: underline; | |||
} | |||
@media (max-width: 768px) { | |||
body.skin-citizen .fjtr-auto-comments { | |||
margin-top: 24px !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-item { | |||
padding: 14px 0 !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-item.reply { | |||
width: calc(100% - 22px) !important; | |||
max-width: calc(100% - 22px) !important; | |||
margin-left: 22px !important; | |||
padding-left: 10px !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-container { | |||
margin-left: 45px !important; | |||
} | |||
body.skin-citizen .fjtr-auto-comments .c-item.reply > .c-avatar { | |||
left: 10px !important; | |||
} | |||
} | |||
/* ========================================== | |||
FJT:R — Location Infobox Gallery | |||
Square, compact, Citrus-inspired navigation | |||
========================================== */ | |||
/* Dark palette by default; override for Citizen light mode below. */ | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location { | |||
--location-header: #2b1c16; | |||
--location-gallery: #39271c; | |||
--location-tile: #4c3427; | |||
--location-tile-hover: #5c4030; | |||
--location-accent: #f4a45c; | |||
--location-border: #73513b; | |||
--location-ink: #f8e9da; | |||
--location-highlight: #ffcf95; | |||
--location-selected: #66412c; | |||
background: var(--location-gallery) !important; | |||
color: var(--location-ink) !important; | |||
border: 1px solid var(--location-border) !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
overflow: hidden !important; | |||
} | |||
/* Light palette: matches the rest of the wiki in Citizen day mode. */ | |||
:is(html.skin-theme-clientpref-day body.skin-citizen, | |||
body.skin-citizen.skin-theme-clientpref-day) | |||
.portable-infobox.pi-theme-fjtr-location { | |||
--location-header: #e8c9a2; | |||
--location-gallery: #fff0dc; | |||
--location-tile: #f5dcb9; | |||
--location-tile-hover: #eecda2; | |||
--location-accent: #b96024; | |||
--location-border: #cfa77e; | |||
--location-ink: #442c1c; | |||
--location-highlight: #864217; | |||
--location-selected: #fbe4c4; | |||
} | |||
@media (prefers-color-scheme: light) { | |||
:is(html.skin-theme-clientpref-os body.skin-citizen, | |||
body.skin-citizen.skin-theme-clientpref-os) | |||
.portable-infobox.pi-theme-fjtr-location { | |||
--location-header: #e8c9a2; | |||
--location-gallery: #fff0dc; | |||
--location-tile: #f5dcb9; | |||
--location-tile-hover: #eecda2; | |||
--location-accent: #b96024; | |||
--location-border: #cfa77e; | |||
--location-ink: #442c1c; | |||
--location-highlight: #864217; | |||
--location-selected: #fbe4c4; | |||
} | |||
} | |||
/* Header */ | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-title { | |||
margin: 0 !important; | |||
padding: 12px 14px !important; | |||
background: var(--location-header) !important; | |||
color: var(--location-ink) !important; | |||
border: 0 !important; | |||
border-bottom: 2px solid var(--location-accent) !important; | |||
border-radius: 0 !important; | |||
font-weight: 700 !important; | |||
} | |||
/* Gallery wrapper */ | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection { | |||
width: 100% !important; | |||
min-width: 0 !important; | |||
max-width: 100% !important; | |||
background: var(--location-gallery) !important; | |||
border-radius: 0 !important; | |||
overflow: hidden !important; | |||
} | |||
/* Nine screenshots in three equal columns */ | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs { | |||
display: grid !important; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)) !important; | |||
gap: 5px !important; | |||
width: 100% !important; | |||
height: auto !important; | |||
margin: 0 !important; | |||
padding: 10px !important; | |||
list-style: none !important; | |||
background: var(--location-gallery) !important; | |||
border: 0 !important; | |||
border-radius: 0 !important; | |||
overflow: visible !important; | |||
box-sizing: border-box !important; | |||
} | |||
/* Flat, centered tiles. Grid centering also works for direct text nodes. */ | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li { | |||
display: grid !important; | |||
place-items: center !important; | |||
position: relative !important; | |||
float: none !important; | |||
flex: none !important; | |||
width: 100% !important; | |||
min-width: 0 !important; | |||
max-width: none !important; | |||
min-height: 42px !important; | |||
height: auto !important; | |||
margin: 0 !important; | |||
padding: 5px 3px !important; | |||
background: var(--location-tile) !important; | |||
color: var(--location-ink) !important; | |||
border: 1px solid var(--location-border) !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
box-sizing: border-box !important; | |||
font-size: 12px !important; | |||
font-weight: 600 !important; | |||
line-height: 1.3 !important; | |||
text-align: center !important; | |||
white-space: normal !important; | |||
cursor: pointer; | |||
transition: background-color .14s ease, border-color .14s ease; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li > a, | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li > span { | |||
display: flex !important; | |||
align-items: center !important; | |||
justify-content: center !important; | |||
width: 100% !important; | |||
min-width: 0 !important; | |||
height: 100% !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
color: inherit !important; | |||
background: transparent !important; | |||
border: 0 !important; | |||
border-radius: 0 !important; | |||
font: inherit !important; | |||
text-align: center !important; | |||
text-decoration: none !important; | |||
white-space: normal !important; | |||
overflow-wrap: anywhere; | |||
box-sizing: border-box !important; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li:hover { | |||
background: var(--location-tile-hover) !important; | |||
border-color: var(--location-accent) !important; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li.current { | |||
background: var(--location-selected) !important; | |||
border-color: var(--location-accent) !important; | |||
color: var(--location-highlight) !important; | |||
box-shadow: inset 0 -3px 0 var(--location-accent) !important; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li:focus-within { | |||
outline: 2px solid var(--location-accent); | |||
outline-offset: -2px; | |||
} | |||
/* Main screenshot area */ | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-image, | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tab-content { | |||
clear: both; | |||
max-width: 100% !important; | |||
min-width: 0 !important; | |||
overflow: hidden !important; | |||
background: var(--location-gallery) !important; | |||
border-radius: 0 !important; | |||
box-sizing: border-box !important; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-image img, | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection img { | |||
display: block; | |||
max-width: 100% !important; | |||
height: auto !important; | |||
margin-inline: auto; | |||
border-radius: 0 !important; | |||
} | |||
/* Dynamic descriptions and static infobox fields */ | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-data { | |||
background: var(--location-header) !important; | |||
color: var(--location-ink) !important; | |||
border-color: var(--location-border) !important; | |||
border-top: 1px solid var(--location-border) !important; | |||
border-radius: 0 !important; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-data-label { | |||
color: var(--location-highlight) !important; | |||
font-weight: 700 !important; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-data-value { | |||
color: var(--location-ink) !important; | |||
} | |||
@media (max-width: 400px) { | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs { | |||
gap: 4px !important; | |||
padding: 7px !important; | |||
} | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li { | |||
min-height: 38px !important; | |||
font-size: 11px !important; | |||
} | |||
} | |||
@media (prefers-reduced-motion: reduce) { | |||
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li { | |||
transition: none; | |||
} | |||
} | |||
/* ============================================================= | |||
Optional status / playful accent classes for article templates. | |||
Apply these classes only when wanted; no automatic recoloring | |||
of red or green informational content. | |||
============================================================= */ | |||
body.skin-citizen .fj-status-good { | |||
border-left: 4px solid var(--fj-good); | |||
background: color-mix(in srgb, var(--fj-good) 12%, var(--fj-surface)); | |||
color: var(--fj-ink); | |||
} | |||
body.skin-citizen .fj-status-bad { | |||
border-left: 4px solid var(--fj-bad); | |||
background: color-mix(in srgb, var(--fj-bad) 12%, var(--fj-surface)); | |||
color: var(--fj-ink); | |||
} | |||
body.skin-citizen .fj-accent-pink { border-left: 4px solid var(--fj-pink); } | |||
body.skin-citizen .fj-accent-purple { border-left: 4px solid var(--fj-violet); } | |||
body.skin-citizen .fj-accent-blue { border-left: 4px solid var(--fj-blue); } | |||
/* Avoid the older navy appearance in common editing/reading surfaces. */ | |||
body.skin-citizen .mw-body-content input:not([type="checkbox"]):not([type="radio"]), | |||
body.skin-citizen .mw-body-content textarea, | |||
body.skin-citizen .mw-body-content select { | |||
border-color: var(--fj-border); | |||
} | |||
/* ============================================================= | |||
Juice Shop v3 — Reading panel and Citizen preferences | |||
Uses actual Citizen segmented controls and Codex toggle markup. | |||
============================================================= */ | |||
body.skin-citizen { | |||
--fj-reading: #2d211a; | |||
--fj-reading-border: #684a36; | |||
--fj-reading-text: #fff1df; | |||
--fj-pref-tile: #493427; | |||
--fj-pref-hover: #604330; | |||
--fj-pref-selected: #765033; | |||
--fj-pref-border: #79563d; | |||
--fj-pref-accent: #f5a35e; | |||
--fj-pref-text: #fff0de; | |||
--fj-pref-track: #4d382b; | |||
--fj-pref-track-on: #b86b34; | |||
--fj-pref-grip: #f9e5cf; | |||
} | |||
:is(html.skin-theme-clientpref-day body.skin-citizen, | |||
body.skin-citizen.skin-theme-clientpref-day) { | |||
--fj-reading: #e8d1b4; | |||
--fj-reading-border: #ae815f; | |||
--fj-reading-text: #382419; | |||
--fj-pref-tile: #f1dfcc; | |||
--fj-pref-hover: #e7c8aa; | |||
--fj-pref-selected: #edbc89; | |||
--fj-pref-border: #b58c6a; | |||
--fj-pref-accent: #a9541d; | |||
--fj-pref-text: #3b2619; | |||
--fj-pref-track: #c3a48a; | |||
--fj-pref-track-on: #b5652f; | |||
--fj-pref-grip: #fffaf2; | |||
} | |||
@media (prefers-color-scheme: light) { | |||
:is(html.skin-theme-clientpref-os body.skin-citizen, | |||
body.skin-citizen.skin-theme-clientpref-os) { | |||
--fj-reading: #e8d1b4; | |||
--fj-reading-border: #ae815f; | |||
--fj-reading-text: #382419; | |||
--fj-pref-tile: #f1dfcc; | |||
--fj-pref-hover: #e7c8aa; | |||
--fj-pref-selected: #edbc89; | |||
--fj-pref-border: #b58c6a; | |||
--fj-pref-accent: #a9541d; | |||
--fj-pref-text: #3b2619; | |||
--fj-pref-track: #c3a48a; | |||
--fj-pref-track-on: #b5652f; | |||
--fj-pref-grip: #fffaf2; | |||
} | |||
} | |||
/* Reading panel: inset text and infobox from the panel border. */ | |||
body.skin-citizen .citizen-content-container { | |||
background: var(--fj-reading) !important; | |||
color: var(--fj-reading-text); | |||
padding: 28px clamp(20px, 2.5vw, 38px) 36px !important; | |||
border: 2px solid var(--fj-reading-border) !important; | |||
border-radius: 4px !important; | |||
box-sizing: border-box !important; | |||
min-width: 0; | |||
} | |||
body.skin-citizen .citizen-body { | |||
background: transparent; | |||
} | |||
body.skin-citizen .mw-body-content { | |||
color: var(--fj-reading-text); | |||
} | |||
/* Keep Citizen's own layout and hit targets for the preferences drawer. */ | |||
body.skin-citizen .citizen-preferences { | |||
--color-progressive: var(--fj-pref-accent); | |||
accent-color: var(--fj-pref-accent); | |||
} | |||
/* The theme/text/width selectors are Codex radio components, not buttons. */ | |||
body.skin-citizen .citizen-preferences-segmented { | |||
background: color-mix(in srgb, var(--fj-pref-tile) 35%, transparent); | |||
border-color: var(--fj-pref-border); | |||
} | |||
body.skin-citizen .citizen-preferences-segmented .cdx-radio { | |||
background: var(--fj-pref-tile) !important; | |||
border: 1px solid transparent !important; | |||
color: var(--fj-pref-text) !important; | |||
box-shadow: none !important; | |||
} | |||
body.skin-citizen .citizen-preferences-segmented .cdx-radio .cdx-label__label { | |||
color: var(--fj-pref-text) !important; | |||
} | |||
body.skin-citizen .citizen-preferences-segmented .cdx-radio:hover:not(:has(.cdx-radio__input:checked)) { | |||
background: var(--fj-pref-hover) !important; | |||
border-color: var(--fj-pref-border) !important; | |||
} | |||
body.skin-citizen .citizen-preferences-segmented .cdx-radio:has(.cdx-radio__input:checked) { | |||
background: var(--fj-pref-selected) !important; | |||
border-color: var(--fj-pref-accent) !important; | |||
box-shadow: inset 0 0 0 1px var(--fj-pref-accent) !important; | |||
} | |||
/* Real Codex switch: the grip is a CHILD element, not ::before. | |||
Never apply a solid background to the entire toggle widget. */ | |||
body.skin-citizen .citizen-preferences .cdx-toggle-switch__switch { | |||
background: var(--fj-pref-track) !important; | |||
border-color: var(--fj-pref-border) !important; | |||
box-shadow: none !important; | |||
} | |||
body.skin-citizen .citizen-preferences .cdx-toggle-switch__switch__grip { | |||
display: block; | |||
background: var(--fj-pref-grip) !important; | |||
border-color: var(--fj-pref-border) !important; | |||
} | |||
body.skin-citizen .citizen-preferences .cdx-toggle-switch__input:checked + .cdx-toggle-switch__switch { | |||
background: var(--fj-pref-track-on) !important; | |||
border-color: var(--fj-pref-accent) !important; | |||
} | |||
body.skin-citizen .citizen-preferences .cdx-toggle-switch__input:focus-visible + .cdx-toggle-switch__switch { | |||
outline: 2px solid var(--fj-pref-accent); | |||
outline-offset: 3px; | |||
} | |||
/* Text and icons in the preferences panel. */ | |||
body.skin-citizen .citizen-preferences .cdx-label__label, | |||
body.skin-citizen .citizen-preferences .cdx-label__description, | |||
body.skin-citizen .citizen-preferences .citizen-preferences-section__heading { | |||
color: var(--fj-ink); | |||
} | |||
@media (max-width: 640px) { | |||
body.skin-citizen .citizen-content-container { | |||
padding: 16px 14px 24px !important; | |||
} | |||
} | } | ||
Latest revision as of 04:24, 15 November 2026
body.skin-citizen {
--fj-orange: #f49a4e;
--fj-orange-bright: #ffc27e;
--fj-green: #85d69c;
--fj-blue: #9ac9ec;
--fj-violet: #c4abf1;
--fj-pink: #eeb1c4;
--fj-red: #e9908b;
--fj-good: #74d59b;
--fj-bad: #eb8a82;
--fj-radius: 12px;
--fj-radius-sm: 6px;
--fj-border: rgba(255, 220, 185, .14);
--fj-shadow: 0 8px 25px rgba(12, 7, 5, .22);
--fj-surface: #33251d;
--fj-surface-raised: #422e24;
--fj-ink: #f9eddf;
--fj-muted: #d6bda9;
--color-progressive-oklch__l: 74%;
--color-progressive-oklch__c: .14;
--color-progressive-oklch__h: 65;
--font-family-citizen-base: 'Trebuchet MS', 'Segoe UI', sans-serif;
--color-link: #ffc27e;
/* Defaults even before a Citizen mode preference is resolved. */
--color-surface-0: #211813;
--color-surface-1: #33251d;
--color-surface-2: #422e24;
--color-surface-3: #51382a;
--color-surface-4: #634431;
--color-base: #f3e5d6;
--color-emphasized: #fff7ee;
--color-subtle: #d6bda9;
}
/* User-selected dark mode */
:is(html.skin-theme-clientpref-night body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-night) {
color-scheme: dark;
--fj-border: rgba(255, 220, 185, .14);
--fj-shadow: 0 8px 25px rgba(12, 7, 5, .22);
--fj-surface: #33251d;
--fj-surface-raised: #422e24;
--fj-ink: #f9eddf;
--fj-muted: #d6bda9;
--color-surface-0: #211813;
--color-surface-1: #33251d;
--color-surface-2: #422e24;
--color-surface-3: #51382a;
--color-surface-4: #634431;
--color-base: #f3e5d6;
--color-emphasized: #fff7ee;
--color-subtle: #d6bda9;
--color-link: #ffc27e;
}
/* User-selected light mode */
:is(html.skin-theme-clientpref-day body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-day) {
color-scheme: light;
--fj-orange: #c77430;
--fj-orange-bright: #a95520;
--fj-green: #247747;
--fj-blue: #4277a4;
--fj-violet: #7b5aab;
--fj-pink: #a84f74;
--fj-red: #b83e42;
--fj-good: #25834e;
--fj-bad: #b93e42;
--fj-border: rgba(104, 64, 37, .17);
--fj-shadow: 0 7px 22px rgba(83, 47, 22, .10);
--fj-surface: #fff5e7;
--fj-surface-raised: #f3ddc2;
--fj-ink: #493021;
--fj-muted: #775943;
--color-surface-0: #f6ead7;
--color-surface-1: #fff5e7;
--color-surface-2: #f3ddc2;
--color-surface-3: #e8cda9;
--color-surface-4: #dbbd94;
--color-base: #493021;
--color-emphasized: #342014;
--color-subtle: #775943;
--color-link: #98501d;
}
/* Follow the operating system preference when Citizen is set to Auto. */
@media (prefers-color-scheme: dark) {
:is(html.skin-theme-clientpref-os body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-os) {
color-scheme: dark;
--fj-border: rgba(255, 220, 185, .14);
--fj-shadow: 0 8px 25px rgba(12, 7, 5, .22);
--fj-surface: #33251d; --fj-surface-raised: #422e24;
--fj-ink: #f9eddf; --fj-muted: #d6bda9;
--color-surface-0: #211813; --color-surface-1: #33251d;
--color-surface-2: #422e24; --color-surface-3: #51382a;
--color-surface-4: #634431; --color-base: #f3e5d6;
--color-emphasized: #fff7ee; --color-subtle: #d6bda9;
--color-link: #ffc27e;
}
}
@media (prefers-color-scheme: light) {
:is(html.skin-theme-clientpref-os body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-os) {
color-scheme: light;
--fj-orange: #c77430; --fj-orange-bright: #a95520;
--fj-green: #247747; --fj-blue: #4277a4;
--fj-violet: #7b5aab; --fj-pink: #a84f74;
--fj-red: #b83e42; --fj-good: #25834e; --fj-bad: #b93e42;
--fj-border: rgba(104, 64, 37, .17);
--fj-shadow: 0 7px 22px rgba(83, 47, 22, .10);
--fj-surface: #fff5e7; --fj-surface-raised: #f3ddc2;
--fj-ink: #493021; --fj-muted: #775943;
--color-surface-0: #f6ead7; --color-surface-1: #fff5e7;
--color-surface-2: #f3ddc2; --color-surface-3: #e8cda9;
--color-surface-4: #dbbd94; --color-base: #493021;
--color-emphasized: #342014; --color-subtle: #775943;
--color-link: #98501d;
}
}
body.skin-citizen {
background-color: var(--color-surface-0);
background-image: radial-gradient(ellipse 52rem 30rem at 90% -12%, rgba(242,149,78,.09), transparent 70%),
radial-gradient(ellipse 45rem 26rem at -15% 40%, rgba(231,162,182,.06), transparent 75%);
background-attachment: fixed;
}
body.skin-citizen .mw-page-container,
body.skin-citizen .citizen-page-container {
max-width: 1480px;
}
body.skin-citizen .mw-body,
body.skin-citizen .citizen-body {
min-width: 0;
}
body.skin-citizen .mw-body-content {
line-height: 1.72;
}
body.skin-citizen .mw-body-content p,
body.skin-citizen .mw-body-content li {
text-wrap: pretty;
}
body.skin-citizen .citizen-header {
border-bottom: 1px solid var(--fj-border);
background: var(--color-surface-1);
box-shadow: 0 5px 24px rgba(0,0,0,.08);
}
body.skin-citizen .citizen-header::before {
content: '';
position: absolute;
inset: 0 0 auto 0;
height: 3px;
pointer-events: none;
background: linear-gradient(90deg, var(--fj-orange) 0%, var(--fj-pink) 30%, var(--fj-violet) 69%, var(--fj-blue) 100%);
}
body.skin-citizen .citizen-header a,
body.skin-citizen .citizen-header button {
transition: background-color .16s ease, color .16s ease;
}
body.skin-citizen .mw-first-heading,
body.skin-citizen #firstHeading {
font-weight: 800;
letter-spacing: -.035em;
line-height: 1.15;
text-wrap: balance;
}
body.skin-citizen .mw-parser-output > h2,
body.skin-citizen .mw-parser-output > h3,
body.skin-citizen .mw-parser-output > h4 {
font-weight: 750;
letter-spacing: -.025em;
}
body.skin-citizen .mw-parser-output > h2 {
border-bottom: 1px solid var(--fj-border);
padding-bottom: .45em;
margin-top: 1.9em;
}
body.skin-citizen .mw-parser-output > h2::after {
content: '';
display: block;
width: 46px;
height: 4px;
margin-top: .6em;
border-radius: 999px;
background: linear-gradient(90deg, var(--fj-orange), var(--fj-green));
}
body.skin-citizen .mw-parser-output > h2 .mw-headline { scroll-margin-top: 6rem; }
body.skin-citizen .mw-parser-output a:not(.new) { text-underline-offset: .17em; }
body.skin-citizen .mw-parser-output a:hover { text-decoration-thickness: 2px; }
body.skin-citizen .mw-parser-output a.new { color: var(--fj-red); }
body.skin-citizen .mw-parser-output a:focus-visible,
body.skin-citizen button:focus-visible,
body.skin-citizen input:focus-visible {
outline: 3px solid var(--fj-orange);
outline-offset: 3px;
}
body.skin-citizen .mw-ui-button.mw-ui-progressive,
body.skin-citizen .cdx-button--action-progressive.cdx-button--weight-primary {
background: #a95520;
border-color: #a95520;
color: #fff;
border-radius: var(--fj-radius-sm);
}
body.skin-citizen .mw-parser-output .wikitable {
background: var(--fj-surface);
color: var(--fj-ink);
border: 1px solid var(--fj-border);
border-radius: var(--fj-radius-sm);
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
width: auto;
max-width: 100%;
}
body.skin-citizen .mw-parser-output .wikitable > tbody > tr > th,
body.skin-citizen .mw-parser-output .wikitable > tr > th {
background: var(--fj-surface-raised);
color: var(--fj-ink);
font-weight: 750;
border-color: var(--fj-border);
}
body.skin-citizen .mw-parser-output .wikitable > tbody > tr > td,
body.skin-citizen .mw-parser-output .wikitable > tr > td {
background: transparent;
color: var(--fj-ink);
border-color: var(--fj-border);
}
body.skin-citizen .mw-parser-output .wikitable > tbody > tr:nth-child(even) > td {
background: color-mix(in srgb, var(--fj-surface-raised) 35%, transparent);
}
body.skin-citizen .mw-parser-output .wikitable > tbody > tr:hover > td {
background: color-mix(in srgb, var(--fj-orange) 8%, var(--fj-surface));
}
/* Preserve inline per-cell background colors, especially achievement tables. */
body.skin-citizen .mw-parser-output .wikitable [style*='background-color'] {
background: revert-layer;
}
body.skin-citizen .mw-parser-output .portable-infobox,
body.skin-citizen .mw-parser-output aside.portable-infobox,
body.skin-citizen .mw-parser-output .infobox {
background: var(--fj-surface);
color: var(--fj-ink);
border: 1px solid var(--fj-border);
border-radius: var(--fj-radius);
box-shadow: var(--fj-shadow);
overflow: hidden;
}
body.skin-citizen .mw-parser-output .portable-infobox .pi-title,
body.skin-citizen .mw-parser-output .portable-infobox .pi-header {
background: var(--fj-surface-raised);
color: var(--fj-ink);
font-weight: 800;
}
body.skin-citizen .mw-parser-output .portable-infobox .pi-title {
border-top: 4px solid var(--fj-orange);
}
body.skin-citizen .mw-parser-output .portable-infobox .pi-data,
body.skin-citizen .mw-parser-output .portable-infobox .pi-item {
border-color: var(--fj-border);
}
body.skin-citizen .mw-parser-output .portable-infobox .pi-image img {
max-width: 100%;
height: auto;
}
body.skin-citizen .mw-parser-output .thumbinner {
border: 1px solid var(--fj-border);
background: var(--fj-surface);
border-radius: var(--fj-radius-sm);
padding: 6px;
}
body.skin-citizen .mw-parser-output .thumbcaption {
color: var(--fj-muted);
font-size: .87em;
}
body.skin-citizen .mw-parser-output blockquote {
border-left: 4px solid var(--fj-green);
background: color-mix(in srgb, var(--fj-green) 7%, var(--fj-surface));
border-radius: 0 var(--fj-radius-sm) var(--fj-radius-sm) 0;
padding: .8em 1.1em;
margin-inline: 0;
}
body.skin-citizen .mw-parser-output pre,
body.skin-citizen .mw-parser-output code {
border-radius: 6px;
}
body.skin-citizen .citizen-drawer a,
body.skin-citizen .citizen-toc a,
body.skin-citizen .citizen-page-tools a {
border-radius: 8px;
}
body.skin-citizen .citizen-drawer a:hover,
body.skin-citizen .citizen-toc a:hover,
body.skin-citizen .citizen-page-tools a:hover {
background: color-mix(in srgb, var(--fj-orange) 10%, transparent);
}
body.skin-citizen .mw-parser-output .fj-hero {
position: relative;
isolation: isolate;
background: linear-gradient(120deg, #593c2a, #6c4535 60%, #674050);
color: #f7fafc;
border: 1px solid rgba(255,255,255,.12);
border-radius: 22px;
padding: clamp(24px, 5vw, 54px);
overflow: hidden;
box-shadow: 0 16px 45px rgba(0,0,0,.15);
}
body.skin-citizen .mw-parser-output .fj-hero::after {
content: '';
position: absolute;
z-index: -1;
width: 260px;
height: 260px;
border-radius: 50%;
top: -140px;
right: -65px;
background: radial-gradient(circle, rgba(255,194,126,.30), transparent 70%);
}
body.skin-citizen .mw-parser-output .fj-hero h2,
body.skin-citizen .mw-parser-output .fj-hero h3 {
color: #fff;
border: 0;
margin-top: 0;
}
body.skin-citizen .mw-parser-output .fj-hero a { color: #ffe6bd; }
body.skin-citizen .mw-parser-output .fj-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
gap: 15px;
margin-block: 1.2rem;
}
body.skin-citizen .mw-parser-output .fj-card {
display: block;
padding: 18px;
border: 1px solid var(--fj-border);
border-radius: var(--fj-radius);
background: var(--fj-surface);
box-shadow: 0 3px 16px rgba(0,0,0,.06);
color: var(--fj-ink);
text-decoration: none;
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.skin-citizen .mw-parser-output .fj-card:hover {
transform: translateY(-3px);
border-color: var(--fj-orange);
box-shadow: var(--fj-shadow);
}
body.skin-citizen .mw-parser-output .fj-card h3 { margin: 0 0 .45em; }
body.skin-citizen .mw-parser-output .fj-card p { margin: 0; color: var(--fj-muted); }
body.skin-citizen .mw-parser-output .fj-kicker {
font-weight: 800;
text-transform: uppercase;
letter-spacing: .13em;
font-size: .75em;
color: var(--fj-green);
}
body.skin-citizen .mw-parser-output .fj-pill {
display: inline-block;
border-radius: 100px;
padding: .25em .75em;
background: color-mix(in srgb, var(--fj-green) 16%, var(--fj-surface));
border: 1px solid color-mix(in srgb, var(--fj-green) 45%, transparent);
color: var(--fj-ink);
font-size: .82em;
font-weight: 750;
}
@media (max-width: 760px) {
body.skin-citizen .mw-first-heading,
body.skin-citizen #firstHeading { letter-spacing: -.025em; }
body.skin-citizen .mw-parser-output .portable-infobox,
body.skin-citizen .mw-parser-output aside.portable-infobox,
body.skin-citizen .mw-parser-output .infobox {
max-width: 100%;
margin-inline: auto;
}
body.skin-citizen .mw-parser-output .fj-card-grid { grid-template-columns: 1fr; }
body.skin-citizen .mw-parser-output .fj-hero { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
body.skin-citizen .fj-card,
body.skin-citizen .citizen-header a,
body.skin-citizen .citizen-header button { transition: none; }
body.skin-citizen .fj-card:hover { transform: none; }
}
@media print {
body.skin-citizen { background: #fff; }
body.skin-citizen .mw-parser-output .fj-card,
body.skin-citizen .mw-parser-output .portable-infobox { box-shadow: none; }
}
:root.citizen-feature-custom-width-clientpref-standard {
--fjtr-page-width: 1280px;
}
:root.citizen-feature-custom-width-clientpref-wide {
--fjtr-page-width: 1480px;
}
:root.citizen-feature-custom-width-clientpref-full {
--fjtr-page-width: min(1680px, calc(100vw - 48px));
}
.skin-citizen .citizen-body-container {
padding-inline: var(--padding-page) !important;
}
.skin-citizen .citizen-page-container,
.skin-citizen .citizen-page-header,
.skin-citizen .citizen-page-details,
.skin-citizen .citizen-footer__container,
.skin-citizen .citizen-content-container {
width: 100% !important;
max-width: var(--fjtr-page-width, 1280px) !important;
margin-inline: auto !important;
}
.skin-citizen .citizen-page__main,
.skin-citizen .mw-body,
.skin-citizen .mw-body-content {
width: 100% !important;
max-width: none !important;
min-width: 0 !important;
}
.skin-citizen .fjtr-home {
width: 100%;
max-width: 1280px;
margin-inline: auto;
}
@media (min-width: 768px) {
body.skin-citizen #footer,
body.skin-citizen footer.citizen-footer {
position: relative;
left: 50%;
transform: translateX(-50%);
width: calc(100vw - 80px) !important;
max-width: none !important;
margin-inline: 0 !important;
box-sizing: border-box;
}
}
/* ==========================================
FJT:R — Article Comments
Minimal layout, readable replies, no overlapping controls.
========================================== */
body.skin-citizen .fjtr-auto-comments {
clear: both;
width: 100%;
min-width: 0;
margin: 40px 0 24px !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
box-sizing: border-box;
}
/* The auto-comments PHP hook already supplies a heading.
Hide its duplicate; leave the Comments extension heading intact. */
body.skin-citizen .fjtr-auto-comments > h2:first-child {
display: none !important;
}
body.skin-citizen .fjtr-auto-comments .c-form-title {
margin: 0 0 18px !important;
padding: 0 0 10px !important;
color: var(--color-emphasized) !important;
font-size: 1.4rem !important;
font-weight: 600 !important;
border-bottom: 1px solid var(--fj-border) !important;
}
body.skin-citizen .fjtr-auto-comments .comments-body {
width: 100% !important;
max-width: none !important;
min-width: 0;
background: transparent !important;
}
/* Form */
body.skin-citizen .fjtr-auto-comments select,
body.skin-citizen .fjtr-auto-comments textarea {
color: var(--color-base) !important;
background: var(--color-surface-1) !important;
border: 1px solid var(--fj-border) !important;
border-radius: 5px !important;
box-shadow: none !important;
}
body.skin-citizen .fjtr-auto-comments select {
padding: 6px 10px !important;
}
body.skin-citizen .fjtr-auto-comments textarea {
display: block;
width: 100% !important;
max-width: 100% !important;
min-height: 110px !important;
padding: 12px !important;
box-sizing: border-box !important;
resize: vertical;
}
body.skin-citizen .fjtr-auto-comments label {
color: var(--color-base) !important;
}
body.skin-citizen .fjtr-auto-comments button,
body.skin-citizen .fjtr-auto-comments input[type="button"],
body.skin-citizen .fjtr-auto-comments input[type="submit"] {
padding: 7px 12px !important;
color: var(--color-base) !important;
background: var(--color-surface-2) !important;
border: 1px solid var(--fj-border) !important;
border-radius: 4px !important;
box-shadow: none !important;
cursor: pointer;
}
body.skin-citizen .fjtr-auto-comments button:hover,
body.skin-citizen .fjtr-auto-comments input[type="button"]:hover,
body.skin-citizen .fjtr-auto-comments input[type="submit"]:hover {
background: var(--color-surface-3) !important;
}
/* Comment rows: remove the extension's old fixed widths / floats. */
body.skin-citizen .fjtr-auto-comments .c-item {
display: flow-root;
position: relative;
clear: both;
width: 100% !important;
max-width: 100% !important;
min-width: 0;
min-height: 78px;
margin: 0 !important;
padding: 18px 0 16px !important;
border: 0 !important;
border-bottom: 1px solid var(--fj-border) !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
box-sizing: border-box !important;
}
/* Indent nested replies. The extension marks replies with .reply. */
body.skin-citizen .fjtr-auto-comments .c-item.reply,
body.skin-citizen .fjtr-auto-comments .reply.c-item {
width: calc(100% - 48px) !important;
max-width: calc(100% - 48px) !important;
margin: 0 0 0 48px !important;
padding: 14px 0 14px 14px !important;
border-left: 2px solid var(--fj-border) !important;
border-bottom: 1px solid var(--fj-border) !important;
}
/* For actual nested comment markup, avoid applying indentation twice. */
body.skin-citizen .fjtr-auto-comments .c-item .c-item.reply {
width: 100% !important;
max-width: 100% !important;
margin-left: 0 !important;
}
/* Avatar and content use the same coordinate system. */
body.skin-citizen .fjtr-auto-comments .c-avatar {
position: absolute !important;
top: 18px !important;
left: 0 !important;
float: none !important;
width: 36px !important;
height: 36px !important;
margin: 0 !important;
}
body.skin-citizen .fjtr-auto-comments .c-item.reply > .c-avatar {
top: 14px !important;
left: 14px !important;
}
body.skin-citizen .fjtr-auto-comments .c-avatar img {
display: block;
width: 36px !important;
height: 36px !important;
max-width: 36px !important;
border-radius: 50% !important;
object-fit: cover;
}
body.skin-citizen .fjtr-auto-comments .c-container {
display: flow-root;
position: relative;
float: none !important;
width: auto !important;
max-width: none !important;
min-width: 0;
margin: 0 0 0 52px !important;
padding: 0 !important;
box-sizing: border-box;
}
/* Header and score: allow wrapping instead of overlapping. */
body.skin-citizen .fjtr-auto-comments .c-user {
position: relative !important;
float: none !important;
min-width: 0;
min-height: 32px;
margin: 0 0 7px !important;
padding: 0 !important;
overflow-wrap: anywhere;
}
body.skin-citizen .fjtr-auto-comments .c-score {
position: static !important;
inset: auto !important;
float: none !important;
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 5px;
width: auto !important;
margin: 4px 0 8px !important;
padding: 0 !important;
color: var(--color-subtle) !important;
font-size: .78rem !important;
font-weight: 400 !important;
text-align: left !important;
}
/* Body and per-comment actions occupy their own rows. */
body.skin-citizen .fjtr-auto-comments .c-comment,
body.skin-citizen .fjtr-auto-comments .f-message,
body.skin-citizen .fjtr-auto-comments .r-message {
display: block;
position: static !important;
float: none !important;
width: 100% !important;
max-width: 100% !important;
min-width: 0;
margin: 8px 0 !important;
padding: 0 !important;
box-sizing: border-box !important;
overflow-wrap: anywhere;
}
body.skin-citizen .fjtr-auto-comments .c-item p {
margin: 7px 0 !important;
color: var(--color-base) !important;
font-size: .95rem !important;
line-height: 1.6 !important;
}
body.skin-citizen .fjtr-auto-comments .c-actions {
position: static !important;
inset: auto !important;
float: none !important;
clear: both !important;
display: flex !important;
flex-wrap: wrap !important;
align-items: center;
justify-content: flex-start !important;
gap: 4px 8px;
width: 100% !important;
margin: 10px 0 0 !important;
padding: 0 !important;
color: var(--color-subtle) !important;
font-size: .8rem !important;
line-height: 1.5 !important;
text-align: left !important;
}
body.skin-citizen .fjtr-auto-comments .c-actions a {
display: inline-block;
float: none !important;
margin: 0 !important;
text-decoration: none;
}
body.skin-citizen .fjtr-auto-comments .c-actions a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
body.skin-citizen .fjtr-auto-comments {
margin-top: 24px !important;
}
body.skin-citizen .fjtr-auto-comments .c-item {
padding: 14px 0 !important;
}
body.skin-citizen .fjtr-auto-comments .c-item.reply {
width: calc(100% - 22px) !important;
max-width: calc(100% - 22px) !important;
margin-left: 22px !important;
padding-left: 10px !important;
}
body.skin-citizen .fjtr-auto-comments .c-container {
margin-left: 45px !important;
}
body.skin-citizen .fjtr-auto-comments .c-item.reply > .c-avatar {
left: 10px !important;
}
}
/* ==========================================
FJT:R — Location Infobox Gallery
Square, compact, Citrus-inspired navigation
========================================== */
/* Dark palette by default; override for Citizen light mode below. */
body.skin-citizen .portable-infobox.pi-theme-fjtr-location {
--location-header: #2b1c16;
--location-gallery: #39271c;
--location-tile: #4c3427;
--location-tile-hover: #5c4030;
--location-accent: #f4a45c;
--location-border: #73513b;
--location-ink: #f8e9da;
--location-highlight: #ffcf95;
--location-selected: #66412c;
background: var(--location-gallery) !important;
color: var(--location-ink) !important;
border: 1px solid var(--location-border) !important;
border-radius: 0 !important;
box-shadow: none !important;
overflow: hidden !important;
}
/* Light palette: matches the rest of the wiki in Citizen day mode. */
:is(html.skin-theme-clientpref-day body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-day)
.portable-infobox.pi-theme-fjtr-location {
--location-header: #e8c9a2;
--location-gallery: #fff0dc;
--location-tile: #f5dcb9;
--location-tile-hover: #eecda2;
--location-accent: #b96024;
--location-border: #cfa77e;
--location-ink: #442c1c;
--location-highlight: #864217;
--location-selected: #fbe4c4;
}
@media (prefers-color-scheme: light) {
:is(html.skin-theme-clientpref-os body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-os)
.portable-infobox.pi-theme-fjtr-location {
--location-header: #e8c9a2;
--location-gallery: #fff0dc;
--location-tile: #f5dcb9;
--location-tile-hover: #eecda2;
--location-accent: #b96024;
--location-border: #cfa77e;
--location-ink: #442c1c;
--location-highlight: #864217;
--location-selected: #fbe4c4;
}
}
/* Header */
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-title {
margin: 0 !important;
padding: 12px 14px !important;
background: var(--location-header) !important;
color: var(--location-ink) !important;
border: 0 !important;
border-bottom: 2px solid var(--location-accent) !important;
border-radius: 0 !important;
font-weight: 700 !important;
}
/* Gallery wrapper */
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection {
width: 100% !important;
min-width: 0 !important;
max-width: 100% !important;
background: var(--location-gallery) !important;
border-radius: 0 !important;
overflow: hidden !important;
}
/* Nine screenshots in three equal columns */
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
gap: 5px !important;
width: 100% !important;
height: auto !important;
margin: 0 !important;
padding: 10px !important;
list-style: none !important;
background: var(--location-gallery) !important;
border: 0 !important;
border-radius: 0 !important;
overflow: visible !important;
box-sizing: border-box !important;
}
/* Flat, centered tiles. Grid centering also works for direct text nodes. */
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li {
display: grid !important;
place-items: center !important;
position: relative !important;
float: none !important;
flex: none !important;
width: 100% !important;
min-width: 0 !important;
max-width: none !important;
min-height: 42px !important;
height: auto !important;
margin: 0 !important;
padding: 5px 3px !important;
background: var(--location-tile) !important;
color: var(--location-ink) !important;
border: 1px solid var(--location-border) !important;
border-radius: 0 !important;
box-shadow: none !important;
box-sizing: border-box !important;
font-size: 12px !important;
font-weight: 600 !important;
line-height: 1.3 !important;
text-align: center !important;
white-space: normal !important;
cursor: pointer;
transition: background-color .14s ease, border-color .14s ease;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li > a,
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li > span {
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
min-width: 0 !important;
height: 100% !important;
margin: 0 !important;
padding: 0 !important;
color: inherit !important;
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
font: inherit !important;
text-align: center !important;
text-decoration: none !important;
white-space: normal !important;
overflow-wrap: anywhere;
box-sizing: border-box !important;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li:hover {
background: var(--location-tile-hover) !important;
border-color: var(--location-accent) !important;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li.current {
background: var(--location-selected) !important;
border-color: var(--location-accent) !important;
color: var(--location-highlight) !important;
box-shadow: inset 0 -3px 0 var(--location-accent) !important;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li:focus-within {
outline: 2px solid var(--location-accent);
outline-offset: -2px;
}
/* Main screenshot area */
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-image,
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tab-content {
clear: both;
max-width: 100% !important;
min-width: 0 !important;
overflow: hidden !important;
background: var(--location-gallery) !important;
border-radius: 0 !important;
box-sizing: border-box !important;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-image img,
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection img {
display: block;
max-width: 100% !important;
height: auto !important;
margin-inline: auto;
border-radius: 0 !important;
}
/* Dynamic descriptions and static infobox fields */
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-data {
background: var(--location-header) !important;
color: var(--location-ink) !important;
border-color: var(--location-border) !important;
border-top: 1px solid var(--location-border) !important;
border-radius: 0 !important;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-data-label {
color: var(--location-highlight) !important;
font-weight: 700 !important;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-data-value {
color: var(--location-ink) !important;
}
@media (max-width: 400px) {
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs {
gap: 4px !important;
padding: 7px !important;
}
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li {
min-height: 38px !important;
font-size: 11px !important;
}
}
@media (prefers-reduced-motion: reduce) {
body.skin-citizen .portable-infobox.pi-theme-fjtr-location .pi-media-collection-tabs > li {
transition: none;
}
}
/* =============================================================
Optional status / playful accent classes for article templates.
Apply these classes only when wanted; no automatic recoloring
of red or green informational content.
============================================================= */
body.skin-citizen .fj-status-good {
border-left: 4px solid var(--fj-good);
background: color-mix(in srgb, var(--fj-good) 12%, var(--fj-surface));
color: var(--fj-ink);
}
body.skin-citizen .fj-status-bad {
border-left: 4px solid var(--fj-bad);
background: color-mix(in srgb, var(--fj-bad) 12%, var(--fj-surface));
color: var(--fj-ink);
}
body.skin-citizen .fj-accent-pink { border-left: 4px solid var(--fj-pink); }
body.skin-citizen .fj-accent-purple { border-left: 4px solid var(--fj-violet); }
body.skin-citizen .fj-accent-blue { border-left: 4px solid var(--fj-blue); }
/* Avoid the older navy appearance in common editing/reading surfaces. */
body.skin-citizen .mw-body-content input:not([type="checkbox"]):not([type="radio"]),
body.skin-citizen .mw-body-content textarea,
body.skin-citizen .mw-body-content select {
border-color: var(--fj-border);
}
/* =============================================================
Juice Shop v3 — Reading panel and Citizen preferences
Uses actual Citizen segmented controls and Codex toggle markup.
============================================================= */
body.skin-citizen {
--fj-reading: #2d211a;
--fj-reading-border: #684a36;
--fj-reading-text: #fff1df;
--fj-pref-tile: #493427;
--fj-pref-hover: #604330;
--fj-pref-selected: #765033;
--fj-pref-border: #79563d;
--fj-pref-accent: #f5a35e;
--fj-pref-text: #fff0de;
--fj-pref-track: #4d382b;
--fj-pref-track-on: #b86b34;
--fj-pref-grip: #f9e5cf;
}
:is(html.skin-theme-clientpref-day body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-day) {
--fj-reading: #e8d1b4;
--fj-reading-border: #ae815f;
--fj-reading-text: #382419;
--fj-pref-tile: #f1dfcc;
--fj-pref-hover: #e7c8aa;
--fj-pref-selected: #edbc89;
--fj-pref-border: #b58c6a;
--fj-pref-accent: #a9541d;
--fj-pref-text: #3b2619;
--fj-pref-track: #c3a48a;
--fj-pref-track-on: #b5652f;
--fj-pref-grip: #fffaf2;
}
@media (prefers-color-scheme: light) {
:is(html.skin-theme-clientpref-os body.skin-citizen,
body.skin-citizen.skin-theme-clientpref-os) {
--fj-reading: #e8d1b4;
--fj-reading-border: #ae815f;
--fj-reading-text: #382419;
--fj-pref-tile: #f1dfcc;
--fj-pref-hover: #e7c8aa;
--fj-pref-selected: #edbc89;
--fj-pref-border: #b58c6a;
--fj-pref-accent: #a9541d;
--fj-pref-text: #3b2619;
--fj-pref-track: #c3a48a;
--fj-pref-track-on: #b5652f;
--fj-pref-grip: #fffaf2;
}
}
/* Reading panel: inset text and infobox from the panel border. */
body.skin-citizen .citizen-content-container {
background: var(--fj-reading) !important;
color: var(--fj-reading-text);
padding: 28px clamp(20px, 2.5vw, 38px) 36px !important;
border: 2px solid var(--fj-reading-border) !important;
border-radius: 4px !important;
box-sizing: border-box !important;
min-width: 0;
}
body.skin-citizen .citizen-body {
background: transparent;
}
body.skin-citizen .mw-body-content {
color: var(--fj-reading-text);
}
/* Keep Citizen's own layout and hit targets for the preferences drawer. */
body.skin-citizen .citizen-preferences {
--color-progressive: var(--fj-pref-accent);
accent-color: var(--fj-pref-accent);
}
/* The theme/text/width selectors are Codex radio components, not buttons. */
body.skin-citizen .citizen-preferences-segmented {
background: color-mix(in srgb, var(--fj-pref-tile) 35%, transparent);
border-color: var(--fj-pref-border);
}
body.skin-citizen .citizen-preferences-segmented .cdx-radio {
background: var(--fj-pref-tile) !important;
border: 1px solid transparent !important;
color: var(--fj-pref-text) !important;
box-shadow: none !important;
}
body.skin-citizen .citizen-preferences-segmented .cdx-radio .cdx-label__label {
color: var(--fj-pref-text) !important;
}
body.skin-citizen .citizen-preferences-segmented .cdx-radio:hover:not(:has(.cdx-radio__input:checked)) {
background: var(--fj-pref-hover) !important;
border-color: var(--fj-pref-border) !important;
}
body.skin-citizen .citizen-preferences-segmented .cdx-radio:has(.cdx-radio__input:checked) {
background: var(--fj-pref-selected) !important;
border-color: var(--fj-pref-accent) !important;
box-shadow: inset 0 0 0 1px var(--fj-pref-accent) !important;
}
/* Real Codex switch: the grip is a CHILD element, not ::before.
Never apply a solid background to the entire toggle widget. */
body.skin-citizen .citizen-preferences .cdx-toggle-switch__switch {
background: var(--fj-pref-track) !important;
border-color: var(--fj-pref-border) !important;
box-shadow: none !important;
}
body.skin-citizen .citizen-preferences .cdx-toggle-switch__switch__grip {
display: block;
background: var(--fj-pref-grip) !important;
border-color: var(--fj-pref-border) !important;
}
body.skin-citizen .citizen-preferences .cdx-toggle-switch__input:checked + .cdx-toggle-switch__switch {
background: var(--fj-pref-track-on) !important;
border-color: var(--fj-pref-accent) !important;
}
body.skin-citizen .citizen-preferences .cdx-toggle-switch__input:focus-visible + .cdx-toggle-switch__switch {
outline: 2px solid var(--fj-pref-accent);
outline-offset: 3px;
}
/* Text and icons in the preferences panel. */
body.skin-citizen .citizen-preferences .cdx-label__label,
body.skin-citizen .citizen-preferences .cdx-label__description,
body.skin-citizen .citizen-preferences .citizen-preferences-section__heading {
color: var(--fj-ink);
}
@media (max-width: 640px) {
body.skin-citizen .citizen-content-container {
padding: 16px 14px 24px !important;
}
}