MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 232: | Line 232: | ||
aspect-ratio: 300 / 141; | aspect-ratio: 300 / 141; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
background-image: url(" | background-image: url("/index.php/Special:Redirect/file/Wizlords_banner_nobg.png"); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: center center; | background-position: center center; | ||
| Line 625: | Line 625: | ||
} | } | ||
.wizlords- | .wizlords-culture-grid { | ||
display: grid; | |||
grid-template-columns: repeat(6, minmax(0, 1fr)); | |||
gap: 14px; | |||
margin: 18px auto 24px; | |||
} | |||
.wizlords-culture-card { | |||
display: flex; | display: flex; | ||
flex-direction: column; | |||
grid-column: span 2; | |||
min-height: 100%; | |||
border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d); | |||
background: #171717; | |||
} | } | ||
.wizlords- | .wizlords-culture-grid.cultures-2 .wizlords-culture-card:nth-child(1), | ||
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(1), | |||
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(3) { | |||
grid-column: 2 / span 2; | |||
} | } | ||
.wizlords- | .wizlords-culture-grid.cultures-2 .wizlords-culture-card:nth-child(2), | ||
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(2), | |||
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(4) { | |||
grid-column: 4 / span 2; | |||
} | } | ||
.wizlords- | .wizlords-culture-grid.cultures-5 .wizlords-culture-card:nth-child(4) { | ||
grid-column: 2 / span 2; | |||
} | } | ||
.wizlords- | .wizlords-culture-grid.cultures-5 .wizlords-culture-card:nth-child(5) { | ||
.wizlords- | grid-column: 4 / span 2; | ||
} | } | ||
.wizlords- | .wizlords-culture-grid.cultures-7 .wizlords-culture-card:nth-child(7) { | ||
grid-column: 3 / span 2; | |||
} | } | ||
.wizlords- | .wizlords-culture-card-header { | ||
padding: 16px 12px 12px; | |||
text-align: center; | |||
bottom: - | border-bottom: 1px solid var(--wiz-race-table-border-colour, #4d4d4d); | ||
} | } | ||
.wizlords- | .wizlords-culture-card-header img { | ||
margin- | display: block; | ||
width: 250px; | |||
height: 250px; | |||
font- | max-width: 100%; | ||
margin: 0 auto 10px; | |||
object-fit: contain; | |||
border: 0; | |||
background: transparent; | |||
} | |||
.wizlords-culture-card-title, | |||
.wizlords-culture-card-title a { | |||
color: var(--wiz-link, #ff942d); | |||
font-size: 16px; | |||
font-weight: bold; | font-weight: bold; | ||
line-height: 1.25; | |||
text-decoration: none; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-card-body { | ||
flex: 1 1 auto; | |||
padding: 12px; | |||
background: #1f1e1e; | |||
} | } | ||
.wizlords-culture-card { | .wizlords-culture-card-body p { | ||
margin: 0 0 12px; | |||
font-style: italic; | |||
line-height: 1.55; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-separator { | ||
width: 110px; | |||
height: 1px; | |||
margin: 14px auto 12px; | |||
background: var(--wiz-race-table-divider-colour, #9d7531); | |||
} | } | ||
.wizlords- | .wizlords-shared-classes { | ||
display: table; | |||
width: auto; | |||
min-width: 330px; | |||
margin: 16px auto 22px; | |||
padding: 10px 28px; | |||
border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d); | |||
background: #171717; | |||
} | } | ||
.wizlords- | .wizlords-shared-classes-title { | ||
margin-bottom: 5px; | |||
color: var(--wiz-heading-colour, #f2ead7); | |||
font-weight: bold; | |||
text-align: center; | |||
} | } | ||
.wizlords- | .wizlords-shared-classes ul { | ||
grid-column: | display: grid; | ||
grid-auto-flow: column; | |||
grid-template-rows: repeat(5, auto); | |||
grid-auto-columns: max-content; | |||
column-gap: 42px; | |||
width: max-content; | |||
margin: 2px auto 0; | |||
padding-left: 0; | |||
list-style: disc outside; | |||
} | } | ||
.wizlords- | .wizlords-shared-classes li { | ||
display: list-item; | |||
margin: 0 0 3px; | |||
margin-left: 18px; | |||
break-inside: avoid; | |||
} | } | ||
.wizlords- | .wizlords-shared-classes.classes-8 ul { | ||
grid-template-rows: repeat(4, auto); | |||
} | } | ||
.wizlords- | .wizlords-shared-classes.classes-9 ul { | ||
grid-template-rows: repeat(5, auto); | |||
} | } | ||
.wizlords- | .wizlords-shared-classes.classes-4 ul { | ||
. | grid-template-rows: repeat(4, auto); | ||
} | } | ||
.wizlords- | .wizlords-shared-classes.classes-9-three ul { | ||
grid-template-rows: repeat(3, auto); | |||
} | } | ||
.wizlords- | .wizlords-class-compare { | ||
display: flex; | |||
justify-content: center; | |||
align-items: stretch; | |||
gap: 12px; | |||
margin: 16px auto 22px; | |||
} | } | ||
.wizlords- | .wizlords-class-compare .wizlords-shared-classes { | ||
margin: 0; | |||
min-width: 0; | |||
margin: | |||
} | } | ||
.wizlords-shared-classes { | .wizlords-shared-classes a { | ||
color: var(--wiz-link, #ff942d); | |||
text-decoration: none; | |||
} | } | ||
.wizlords-shared-classes | .wizlords-shared-classes a:hover { | ||
color: #ffd37a; | |||
color: | text-decoration: none; | ||
text- | |||
} | } | ||
.wizlords- | .wizlords-culture-classes { | ||
margin-top: 12px; | |||
font-weight: bold; | |||
margin | |||
} | } | ||
.wizlords- | .wizlords-culture-known-for, | ||
.wizlords-culture-suggested-class { | |||
margin-top: 10px; | |||
margin- | line-height: 1.45; | ||
} | } | ||
.wizlords- | .wizlords-culture-suggested-class a { | ||
color: var(--wiz-link, #ff942d); | |||
text-decoration: none; | |||
} | } | ||
.wizlords- | .wizlords-culture-class-note { | ||
margin-top: 6px; | |||
line-height: 1.45; | |||
} | } | ||
.wizlords- | .wizlords-culture-card-body ul { | ||
margin: 4px 0 0; | |||
padding-left: 28px; | |||
list-style: disc outside; | |||
} | } | ||
.wizlords- | .wizlords-culture-card-body li { | ||
display: list-item; | |||
margin: 0 0 3px; | |||
} | } | ||
.wizlords- | .wizlords-culture-card-body a, | ||
.wizlords-culture-row-classes a { | |||
color: var(--wiz-link, #ff942d); | |||
text-decoration: none; | |||
} | } | ||
.wizlords- | .wizlords-culture-card-body a:hover, | ||
.wizlords-culture-row-classes a:hover { | |||
.wizlords- | |||
color: #ffd37a; | color: #ffd37a; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.wizlords-culture- | .wizlords-culture-list { | ||
margin | margin: 18px 0 24px; | ||
} | } | ||
.wizlords-culture- | .wizlords-culture-row { | ||
padding: 20px 0 24px; | |||
border-bottom: 1px solid var(--wiz-race-table-border-colour, #4d4d4d); | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-row-feature { | ||
display: grid; | |||
grid-template-columns: 150px 1px minmax(0, 1fr) 300px; | |||
align-items: center; | |||
gap: 22px; | |||
margin: 10px 0 18px; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-row-icon img { | ||
display: block; | |||
width: 150px; | |||
height: 150px; | |||
object-fit: contain; | |||
border: 0; | |||
background: transparent; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-row-divider { | ||
width: 1px; | |||
height: 150px; | |||
background: var(--wiz-race-table-border-colour, #4d4d4d); | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-row-title, | ||
.wizlords-culture-row-title a { | |||
color: var(--wiz-heading, #e7e1d4); | |||
font-size: 18px; | |||
font-weight: bold; | |||
line-height: 1.3; | |||
text-decoration: none; | |||
} | } | ||
.wizlords-culture-row-description { | |||
.wizlords-culture-row- | position: relative; | ||
color: var(--wiz- | margin: 0; | ||
padding: 0 34px; | |||
color: var(--wiz-text, #d2d2d2); | |||
font-size: 16px; | |||
font-style: italic; | |||
line-height: 1.6; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-row-description::before, | ||
.wizlords-culture-row- | .wizlords-culture-row-description::after { | ||
color: # | position: absolute; | ||
color: #555; | |||
font-size: 42px; | |||
line-height: 1; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-row-description::before { | ||
content: "\201C"; | |||
left: 0; | |||
top: -6px; | |||
} | } | ||
.wizlords-culture-row { | .wizlords-culture-row-description::after { | ||
content: "\201D"; | |||
right: 0; | |||
bottom: -18px; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-appearance { | ||
box-sizing: border-box; | |||
width: 300px; | |||
padding: 4px; | |||
border: 1px solid var(--wiz-race-table-divider-colour, #9d7531); | |||
background: #171717; | |||
} | } | ||
.wizlords-culture- | .wizlords-culture-appearance img { | ||
display: block; | display: block; | ||
width: | width: 300px; | ||
height: | height: 138px; | ||
object-fit: | object-fit: cover; | ||
border: 0; | border: 0; | ||
background: transparent; | background: transparent; | ||
} | } | ||
.wizlords-culture- | .wizlords-culture-appearance-caption { | ||
margin-top: 4px; | |||
color: var(--wiz-text, #d2d2d2); | |||
font-size: 12px; | |||
line-height: 1.3; | |||
} | } | ||
.wizlords- | .wizlords-page-image { | ||
box-sizing: border-box; | |||
width: min(450px, 100%); | |||
padding: 6px; | |||
border: 1px solid var(--wiz-content-border, #ff942d); | |||
background: #171717; | |||
} | } | ||
.wizlords- | .wizlords-page-image p { | ||
margin: 0; | margin: 0; | ||
padding: 0 | padding: 0; | ||
} | } | ||
.wizlords- | .wizlords-page-image span, | ||
.wizlords- | .wizlords-page-image a { | ||
display: block; | |||
} | } | ||
.wizlords- | .wizlords-page-image.right { | ||
float: right; | |||
margin: 0 0 16px 24px; | |||
} | } | ||
.wizlords- | .wizlords-page-image.left { | ||
float: left; | |||
margin: 0 24px 16px 0; | |||
} | } | ||
.wizlords- | .wizlords-page-image img { | ||
display: block; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
width: | width: 100%; | ||
aspect-ratio: 2 / 1; | |||
border: 1px solid var(--wiz- | height: auto; | ||
background: | object-fit: cover; | ||
border: 1px solid var(--wiz-content-border, #ff942d); | |||
background: transparent; | |||
} | } | ||
.wizlords- | .wizlords-page-image-caption { | ||
margin-top: 7px; | |||
padding: 0 4px; | |||
color: var(--wiz-text, #d2d2d2); | color: var(--wiz-text, #d2d2d2); | ||
font-size: 12px; | font-size: 12px; | ||
| Line 982: | Line 971: | ||
} | } | ||
.wizlords- | .wizlords-culture-row-classes { | ||
color: var(--wiz-text, #d2d2d2); | |||
font-size: 14px; | |||
} | } | ||
.wizlords- | .wizlords-culture-class-list { | ||
margin: 0; | display: grid; | ||
padding: | grid-auto-flow: column; | ||
grid-auto-columns: minmax(130px, max-content); | |||
grid-template-rows: repeat(4, auto); | |||
gap: 4px 18px; | |||
margin: 6px 0 0; | |||
padding-left: 28px; | |||
list-style: disc outside; | |||
} | } | ||
.wizlords- | .wizlords-culture-class-list li { | ||
display: list-item; | |||
display: | margin: 0; | ||
padding: 0; | |||
} | } | ||
.wizlords- | .wizlords-culture-class-list li::marker { | ||
color: var(--wiz-text, #d2d2d2); | |||
} | } | ||
. | /* Tablet and small-desktop layouts use a three-column grid. */ | ||
@media (min-width: 600px) and (max-width: 1199px) { | |||
.wiz-grid { | |||
grid-template-columns: repeat(3, minmax(0, 1fr)) !important; | |||
} | |||
} | } | ||
. | /* Phone layout uses two columns. */ | ||
@media (max-width: 599px) { | |||
.wiz-grid { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)) !important; | |||
} | |||
} | } | ||
/* CLASS OVERVIEW PAGE */ | |||
/* ------------------- */ | |||
.wizlords-classes-page { | |||
max-width: 100%; | |||
} | } | ||
.wizlords- | .wizlords-classes-page ul { | ||
list-style: disc outside; | |||
padding-left: 28px; | |||
} | } | ||
.wizlords- | .wizlords-classes-page li { | ||
display: | display: list-item; | ||
} | |||
} | |||
.wizlords- | .wizlords-class-category-table { | ||
width: 100%; | |||
margin: | min-width: 0; | ||
max-width: 640px; | |||
margin: 18px auto 24px; | |||
border: 0 !important; | |||
background: #171717; | |||
color: var(--wiz-text, #d2d2d2); | color: var(--wiz-text, #d2d2d2); | ||
border-collapse: collapse; | |||
table-layout: fixed; | |||
} | } | ||
.wizlords-class-category-table th, | |||
.wizlords-class-category-table td { | |||
box-sizing: border-box; | |||
width: 33.333%; | |||
min-width: 0; | |||
border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d) !important; | |||
vertical-align: top; | |||
} | } | ||
.wizlords-class-category-table th { | |||
padding: 8px 18px !important; | |||
background: #1f1e1e !important; | |||
color: var(--wiz-heading, #e7e1d4) !important; | |||
font-size: 18px; | |||
text-align: center; | |||
} | } | ||
.wizlords-class-category-icon { | |||
margin: 0 0 6px; | |||
.wizlords- | text-align: center; | ||
} | } | ||
.wizlords- | .wizlords-class-category-icon img { | ||
display: inline-block; | |||
width: 110px; | |||
height: 110px; | |||
object-fit: contain; | |||
} | } | ||
.wizlords- | .wizlords-class-category-table td { | ||
padding: 8px 18px 10px 12px !important; | |||
background: #171717 !important; | |||
} | } | ||
.wizlords-class-category-table | .wizlords-class-category-table tr:first-child { | ||
border-bottom: 0; | |||
} | } | ||
.wizlords-class-category-table ul { | |||
margin: 0; | |||
padding-left: 22px; | |||
list-style: disc outside; | |||
.wizlords-class-category-table ul { | |||
margin: 0; | |||
padding-left: 22px; | |||
list-style: disc outside; | |||
} | } | ||
| Line 1,421: | Line 1,363: | ||
margin: 22px auto 18px; | margin: 22px auto 18px; | ||
background: var(--wiz-race-table-divider-colour, #9d7531); | background: var(--wiz-race-table-divider-colour, #9d7531); | ||
} | |||
/* SHARED STANDARD TABLE | |||
--------------------- | |||
Opt-in colour and border treatment for ordinary custom wiki tables. | |||
Add "wizlords-table" beside "wikitable" instead of overriding every | |||
MediaWiki-generated wikitable. Component-specific classes continue to own | |||
specialised widths, alignment, captions, and collapsible behaviour. */ | |||
.wikitable.wizlords-table, | |||
.wizlords-table { | |||
border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d) !important; | |||
border-collapse: collapse; | |||
background: #171717 !important; | |||
color: var(--wiz-text, #d2d2d2) !important; | |||
} | |||
.wikitable.wizlords-table th, | |||
.wikitable.wizlords-table td, | |||
.wizlords-table th, | |||
.wizlords-table td { | |||
padding: 8px 12px; | |||
border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d) !important; | |||
background: #171717 !important; | |||
color: var(--wiz-text, #d2d2d2) !important; | |||
} | |||
.wikitable.wizlords-table th, | |||
.wizlords-table th { | |||
background: #1f1e1e !important; | |||
color: var(--wiz-heading, #e7e1d4) !important; | |||
} | } | ||
| Line 2,186: | Line 2,158: | ||
.ww-navbox-stack > .mw-collapsible-content > .ww-navbox:last-child { | .ww-navbox-stack > .mw-collapsible-content > .ww-navbox:last-child { | ||
border-bottom: 0; | border-bottom: 0; | ||
} | |||
/* The Player Guide is a desktop/tablet site index. Keep it out of the phone | |||
layout along with the divider that belongs to it. */ | |||
@media screen and (max-width: 599px) { | |||
.ww-navbox-stack, | |||
.wizlords-navbox-divider { | |||
display: none !important; | |||
} | |||
} | } | ||