MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Aurelianus (talk | contribs) Removed Theme |
Aurelianus (talk | contribs) No edit summary |
||
| 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; | |||
} | |||
} | |||
Revision as of 05:48, 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;
}
}