MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (21 intermediate revisions by the same user not shown) | |||
| Line 128: | Line 128: | ||
.skin-citizen .citizen-footer a:hover { | .skin-citizen .citizen-footer a:hover { | ||
color: #ffd37a; | color: #ffd37a; | ||
} | |||
/* Main Page banner swap for Citizen/tablet/mobile. | |||
The no-background banner is used through the tablet range, then the desktop | |||
parchment banner returns at the 900px layout breakpoint. */ | |||
.skin-citizen .page-banner-desktop { | |||
display: block !important; | |||
} | |||
.skin-citizen .page-banner-mobile { | |||
display: none !important; | |||
} | |||
@media (max-width: 899px) { | |||
.skin-citizen .page-banner { | |||
aspect-ratio: 300 / 141; | |||
margin-bottom: 0; | |||
background-image: url("/index.php/Special:Redirect/file/Wizlords_banner_nobg.png"); | |||
background-repeat: no-repeat; | |||
background-position: center center; | |||
background-size: contain; | |||
} | |||
.skin-citizen .page-banner-desktop { | |||
display: none !important; | |||
} | |||
.skin-citizen .page-banner-mobile { | |||
display: none !important; | |||
} | |||
} | |||
@media (min-width: 900px) { | |||
.skin-citizen .page-banner { | |||
aspect-ratio: auto; | |||
background-image: none; | |||
} | |||
.skin-citizen .page-banner-desktop { | |||
display: block !important; | |||
} | |||
.skin-citizen .page-banner-mobile { | |||
display: none !important; | |||
} | |||
} | } | ||
| Line 141: | Line 186: | ||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-class-category-table) { | .skin-citizen .citizen-overflow-wrapper:has(.wizlords-class-category-table) { | ||
width: min(100%, 640px); | |||
max-width: 640px; | |||
margin-right: auto; | |||
margin-left: auto; | |||
overflow-x: visible; | overflow-x: visible; | ||
border: 0; | border: 0; | ||
border-radius: 0; | |||
box-shadow: none; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-class-category-table) | |||
.wizlords-class-category-table { | |||
width: 100%; | |||
min-width: 0; | |||
max-width: 640px; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-example-table) { | |||
width: min(100%, 600px); | |||
max-width: 600px; | |||
margin-right: auto; | |||
margin-left: auto; | |||
overflow-x: visible; | |||
border: 0; | |||
border-radius: 0; | |||
box-shadow: none; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-example-table.mw-collapsed) { | |||
background: transparent; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-example-table) | |||
.wizlords-example-table { | |||
width: 100%; | |||
min-width: 0; | |||
max-width: 600px; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-example-table-full-heal) { | |||
width: min(100%, 500px); | |||
max-width: 500px; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-example-table-full-heal) | |||
.wizlords-example-table-full-heal { | |||
max-width: 500px; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-reward-table) { | |||
width: fit-content; | |||
max-width: 100%; | |||
margin-right: auto; | |||
margin-left: 0; | |||
overflow-x: visible; | |||
border: 0; | |||
border-radius: 0; | |||
box-shadow: none; | |||
background: transparent; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-reward-table) | |||
.wizlords-reward-table { | |||
min-width: 0; | |||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-example-table) | |||
.wizlords-example-table caption { | |||
display: table-caption !important; | |||
caption-side: top; | |||
width: auto !important; | |||
max-width: none !important; | |||
text-align: center !important; | |||
} | } | ||
| Line 421: | Line 537: | ||
padding-right: 0; | padding-right: 0; | ||
padding-left: 20px; | padding-left: 20px; | ||
font-family: Roboto, Roboto-fallback, system-ui, -apple-system, sans-serif !important; | |||
font-size: 22px !important; | |||
font-weight: 700 !important; | |||
line-height: 1.3 !important; | |||
} | |||
.skin-citizen .wizlords-collapsible-section > .wizlords-collapsed-hint { | |||
font-family: Roboto, Roboto-fallback, system-ui, -apple-system, sans-serif !important; | |||
font-size: 14px !important; | |||
font-style: normal !important; | |||
font-weight: 400 !important; | |||
line-height: 1.6 !important; | |||
} | } | ||
| Line 579: | Line 707: | ||
line-height: 1.2; | line-height: 1.2; | ||
text-align: center; | text-align: center; | ||
overflow-wrap: | overflow-wrap: normal; | ||
word-break: normal; | |||
hyphens: none; | |||
} | } | ||
| Line 737: | Line 867: | ||
line-height: 1.2; | line-height: 1.2; | ||
text-align: center; | text-align: center; | ||
overflow-wrap: | overflow-wrap: normal; | ||
word-break: normal; | |||
hyphens: none; | |||
} | |||
} | |||
/* Ultra-narrow phones/foldables. | |||
Keep the four-across homepage icon rhythm, but give labels just enough room | |||
that words do not split into single trailing letters around 344-369px. */ | |||
@media screen and (max-width: 369px) { | |||
.skin-citizen .wizlords-mainpage-items { | |||
gap: 12px 6px; | |||
} | |||
.skin-citizen .wizlords-imagetext { | |||
flex-basis: calc((100% - 18px) / 4); | |||
width: calc((100% - 18px) / 4); | |||
} | |||
.skin-citizen .wizlords-imagetext-image, | |||
.skin-citizen .wizlords-imagetext-image img { | |||
width: 58px; | |||
height: 58px; | |||
} | |||
.skin-citizen .wizlords-imagetext-text { | |||
font-size: 11px; | |||
line-height: 1.15; | |||
} | |||
} | |||
/* Extremely narrow foldable screens. | |||
At 360px and below, four columns become too tight for readable labels. | |||
The Main Page square-icon groups contain seven items, so this creates a | |||
centred 3 / 3 / 1 rhythm instead of allowing single-letter word breaks. */ | |||
@media screen and (max-width: 360px) { | |||
.skin-citizen .wizlords-mainpage-items { | |||
gap: 14px 8px; | |||
} | |||
.skin-citizen .wizlords-imagetext { | |||
flex-basis: calc((100% - 16px) / 3); | |||
width: calc((100% - 16px) / 3); | |||
} | |||
.skin-citizen .wizlords-imagetext-image, | |||
.skin-citizen .wizlords-imagetext-image img { | |||
width: 62px; | |||
height: 62px; | |||
} | |||
.skin-citizen .wizlords-imagetext-text { | |||
font-size: 12px; | |||
line-height: 1.15; | |||
} | } | ||
} | } | ||
| Line 926: | Line 1,109: | ||
padding-right: max(var(--padding-page, 16px), env(safe-area-inset-right)); | padding-right: max(var(--padding-page, 16px), env(safe-area-inset-right)); | ||
padding-left: max(var(--padding-page, 16px), env(safe-area-inset-left)); | padding-left: max(var(--padding-page, 16px), env(safe-area-inset-left)); | ||
} | } | ||
} | } | ||
| Line 958: | Line 1,131: | ||
} | } | ||
.skin-citizen .wizlords-magic-intro { | .skin-citizen .wizlords-magic-intro { | ||
align-items: flex-start; | align-items: flex-start; | ||
gap: 16px; | gap: 16px; | ||
} | } | ||
| Line 1,028: | Line 1,196: | ||
.skin-citizen .wizlords-class-category-table { | .skin-citizen .wizlords-class-category-table { | ||
max-width: 640px; | max-width: 640px; | ||
} | |||
.skin-citizen .citizen-overflow-wrapper:has(.wizlords-reward-table) { | |||
margin-right: auto; | |||
margin-left: auto; | |||
} | } | ||
| Line 1,061: | Line 1,234: | ||
padding: 6px 10px; | padding: 6px 10px; | ||
text-align: center; | text-align: center; | ||
} | |||
.skin-citizen .wizlords-class-card-title { | |||
font-family: Roboto, Roboto-fallback, system-ui, -apple-system, sans-serif !important; | |||
font-size: 20px !important; | |||
font-weight: 700 !important; | |||
line-height: 1.25 !important; | |||
} | |||
.skin-citizen .wizlords-class-card-summary { | |||
font-family: Roboto, Roboto-fallback, system-ui, -apple-system, sans-serif !important; | |||
font-size: 13px !important; | |||
font-style: italic !important; | |||
font-weight: 400 !important; | |||
line-height: 1.35 !important; | |||
display: block !important; | |||
overflow: visible !important; | |||
-webkit-line-clamp: unset !important; | |||
} | } | ||
} | } | ||