MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Aurelianus (talk | contribs) Removed Theme |
Aurelianus (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* ========================================= | |||
HarvestWiki Basic Page Layout | |||
Keeps Citizen skin styling intact | |||
========================================= */ | |||
/* Let pages breathe a bit */ | |||
.mw-parser-output { | |||
max-width: 1200px; | |||
} | |||
/* Clear helper */ | |||
.hw-clear { | |||
clear: both; | |||
} | |||
/* Tables used in game pages */ | |||
.hw-table { | |||
width: 100%; | |||
} | |||
/* ========================================= | |||
Basic right-side game infobox | |||
========================================= */ | |||
.hw-infobox { | |||
float: right; | |||
clear: right; | |||
width: 320px; | |||
max-width: 320px; | |||
margin: 0 0 1.25rem 1.5rem; | |||
padding: 0.75rem; | |||
box-sizing: border-box; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
} | |||
/* Infobox title */ | |||
.hw-infobox-title { | |||
text-align: center; | |||
font-size: 1.35rem; | |||
font-weight: 800; | |||
line-height: 1.2; | |||
margin-bottom: 0.75rem; | |||
} | |||
/* Infobox section heading, like “Information” */ | |||
.hw-infobox-heading { | |||
text-align: center; | |||
font-size: 1.15rem; | |||
font-weight: 800; | |||
line-height: 1.2; | |||
margin: 0.75rem 0; | |||
padding: 0.5rem; | |||
border-radius: 8px; | |||
} | |||
/* Image area */ | |||
.hw-infobox-image { | |||
text-align: center; | |||
margin-bottom: 0.75rem; | |||
} | |||
.hw-infobox-image img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
/* Label/value rows */ | |||
.hw-infobox-row { | |||
display: grid; | |||
grid-template-columns: 42% 58%; | |||
gap: 0.75rem; | |||
align-items: start; | |||
padding: 0.4rem 0; | |||
} | |||
.hw-infobox-label { | |||
font-weight: 800; | |||
} | |||
.hw-infobox-value { | |||
overflow-wrap: anywhere; | |||
} | |||
/* Location blurb */ | |||
.hw-infobox-blurb { | |||
text-align: center; | |||
margin-bottom: 0.75rem; | |||
} | |||
/* Prevent content from wrapping badly around the infobox after long sections */ | |||
.hw-section-clear { | |||
clear: both; | |||
} | |||
/* Mobile layout */ | |||
@media screen and (max-width: 800px) { | |||
.hw-infobox { | |||
float: none; | |||
clear: both; | |||
width: auto; | |||
max-width: none; | |||
margin: 0 0 1rem 0; | |||
} | |||
} | |||
/* Stronger basic infobox card */ | |||
.hw-infobox { | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
background: var(--color-surface-1, var(--background-color-base, #ffffff)); | |||
border-radius: 12px; | |||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); | |||
} | |||
/* Center the title inside the infobox */ | |||
.hw-infobox-title { | |||
display: block; | |||
width: 100%; | |||
box-sizing: border-box; | |||
text-align: center !important; | |||
margin: 0 0 0.75rem 0; | |||
padding: 0.6rem 0.75rem; | |||
border-radius: 8px; | |||
background: var(--color-surface-2, var(--background-color-neutral-subtle, rgba(0, 0, 0, 0.06))); | |||
} | |||
/* Center images too */ | |||
.hw-infobox-image { | |||
text-align: center !important; | |||
} | |||
.hw-infobox-image .mw-file-element, | |||
.hw-infobox-image img { | |||
display: block; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
/* Fix location infobox blurb: remove bubble/card styling */ | |||
.hw-infobox-blurb { | |||
background: transparent !important; | |||
border: 0 !important; | |||
box-shadow: none !important; | |||
border-radius: 0 !important; | |||
padding: 0 0 0.75rem 0 !important; | |||
margin: 0 0 0.75rem 0 !important; | |||
text-align: center; | |||
font-family: inherit !important; | |||
color: inherit; | |||
} | |||
Latest revision as of 06:05, 31 May 2026
/* CSS placed here will be applied to all skins */
/* =========================================
HarvestWiki Basic Page Layout
Keeps Citizen skin styling intact
========================================= */
/* Let pages breathe a bit */
.mw-parser-output {
max-width: 1200px;
}
/* Clear helper */
.hw-clear {
clear: both;
}
/* Tables used in game pages */
.hw-table {
width: 100%;
}
/* =========================================
Basic right-side game infobox
========================================= */
.hw-infobox {
float: right;
clear: right;
width: 320px;
max-width: 320px;
margin: 0 0 1.25rem 1.5rem;
padding: 0.75rem;
box-sizing: border-box;
border-radius: 12px;
overflow: hidden;
}
/* Infobox title */
.hw-infobox-title {
text-align: center;
font-size: 1.35rem;
font-weight: 800;
line-height: 1.2;
margin-bottom: 0.75rem;
}
/* Infobox section heading, like “Information” */
.hw-infobox-heading {
text-align: center;
font-size: 1.15rem;
font-weight: 800;
line-height: 1.2;
margin: 0.75rem 0;
padding: 0.5rem;
border-radius: 8px;
}
/* Image area */
.hw-infobox-image {
text-align: center;
margin-bottom: 0.75rem;
}
.hw-infobox-image img {
max-width: 100%;
height: auto;
}
/* Label/value rows */
.hw-infobox-row {
display: grid;
grid-template-columns: 42% 58%;
gap: 0.75rem;
align-items: start;
padding: 0.4rem 0;
}
.hw-infobox-label {
font-weight: 800;
}
.hw-infobox-value {
overflow-wrap: anywhere;
}
/* Location blurb */
.hw-infobox-blurb {
text-align: center;
margin-bottom: 0.75rem;
}
/* Prevent content from wrapping badly around the infobox after long sections */
.hw-section-clear {
clear: both;
}
/* Mobile layout */
@media screen and (max-width: 800px) {
.hw-infobox {
float: none;
clear: both;
width: auto;
max-width: none;
margin: 0 0 1rem 0;
}
}
/* Stronger basic infobox card */
.hw-infobox {
border: 1px solid var(--border-color-base, #a2a9b1);
background: var(--color-surface-1, var(--background-color-base, #ffffff));
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* Center the title inside the infobox */
.hw-infobox-title {
display: block;
width: 100%;
box-sizing: border-box;
text-align: center !important;
margin: 0 0 0.75rem 0;
padding: 0.6rem 0.75rem;
border-radius: 8px;
background: var(--color-surface-2, var(--background-color-neutral-subtle, rgba(0, 0, 0, 0.06)));
}
/* Center images too */
.hw-infobox-image {
text-align: center !important;
}
.hw-infobox-image .mw-file-element,
.hw-infobox-image img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* Fix location infobox blurb: remove bubble/card styling */
.hw-infobox-blurb {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
border-radius: 0 !important;
padding: 0 0 0.75rem 0 !important;
margin: 0 0 0.75rem 0 !important;
text-align: center;
font-family: inherit !important;
color: inherit;
}