MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Aftermarket Games: Game and Platform titles */
body:has(.aftermarket-game) #firstHeading,
body:has(.aftermarket-game) .mw-first-heading,
body:has(.aftermarket-game) .mw-page-title-main,
body:has(.aftermarket-platform) #firstHeading,
body:has(.aftermarket-platform) .mw-first-heading,
body:has(.aftermarket-platform) .mw-page-title-main {
font-size: 2em !important;
font-weight: 700 !important;
}
/* Aftermarket Games: Platform game directory */
.aftermarket-platform-games ul {
list-style: none !important;
padding-left: 0;
margin-left: 0;
}
.aftermarket-platform-games li {
margin-bottom: 6px;
}
/* Aftermarket Games: Platform device photograph */
.aftermarket-platform-photo {
display: flex;
align-items: flex-start;
justify-content: center;
height: 215px;
line-height: 0;
margin: 0;
}
.aftermarket-platform-photo p {
margin: 0;
}
/* Aftermarket Games: Dynamic Developer listings */
/* Dynamic Developer page heading */
.aftermarket-developer {
font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
font-size: 3.8em;
font-weight: 700;
line-height: 1.05;
margin-top: -80px;
margin-bottom: 8px;
padding-bottom: 4px;
border-bottom: 4px solid #36c;
}
/* Remove MediaWiki paragraph spacing inside Developer headings */
.aftermarket-developer p {
margin: 0;
padding: 0;
}
/* Space between Games Developed heading and game listings */
.aftermarket-developer-games {
margin-top: 5px;
}
.aftermarket-developer-games ul {
column-count: 4;
column-gap: 24px;
list-style: none !important;
padding-left: 0;
margin-left: 0;
}
.aftermarket-developer-games li {
break-inside: avoid;
margin-bottom: 6px;
}
/* Adjust columns for smaller screens */
@media (max-width: 700px) {
.aftermarket-developer-games ul {
column-count: 2;
}
}
/* Hide the generic title on dynamic Developer listings only */
body:has(.aftermarket-developer) #firstHeading,
body:has(.aftermarket-developer) .mw-first-heading {
display: none;
}
/* Hide the extra query form on dynamic Developer pages */
body:has(.aftermarket-developer) #pfForm {
display: none;
}
/* Hide the Additional query heading on Developer pages */
body:has(.aftermarket-developer) h2:has(+ #pfForm) {
display: none;
}
/* Developer profile editing link */
.aftermarket-developer-edit {
margin: 8px 0 20px;
font-size: 0.9em;
}
.aftermarket-developer-edit a,
.aftermarket-developer-edit a.new {
color: #54595d;
text-decoration: none;
}
.aftermarket-developer-edit a::before {
content: "✎ ";
}
.aftermarket-developer-edit a:hover {
color: #36c;
text-decoration: underline;
}
/* Developer profile image alignment */
.aftermarket-developer-profile {
align-items: flex-start !important;
}
.aftermarket-developer-profile .aftermarket-platform-photo {
display: block;
align-self: flex-start;
height: auto;
margin: 0;
padding: 0;
line-height: 0;
}
.aftermarket-developer-profile .aftermarket-platform-photo p {
margin: 0;
padding: 0;
}
.aftermarket-developer-profile .aftermarket-platform-photo img {
display: block;
}
/* Game overview: screenshot left, table right; preserve the image aspect ratio. */
.aftermarket-game-overview {
display: grid;
grid-template-columns: minmax(0, 450px);
align-items: stretch;
gap: 24px;
max-width: 924px;
margin-top: 0;
container-type: inline-size;
}
.aftermarket-game-overview:has(.aftermarket-game-photo) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.aftermarket-game-overview .aftermarket-game-details { min-width: 0; }
.aftermarket-game-overview .aftermarket-game-details .wikitable {
width: 100%;
margin: 0;
}
.aftermarket-game-overview .aftermarket-game-photo {
position: relative;
min-width: 0;
line-height: 0;
}
.aftermarket-game-overview .aftermarket-game-photo p { margin: 0; }
.aftermarket-game-overview .aftermarket-game-photo a.mw-file-description {
position: absolute;
inset: 0;
display: block;
}
.aftermarket-game-overview .aftermarket-game-photo img {
display: block;
width: 100% !important;
height: 100% !important;
max-width: 100%;
max-height: 100%;
object-fit: contain;
object-position: center;
}
/* Stack in a narrow content column, including sidebar-heavy layouts. */
@container (max-width: 640px) {
.aftermarket-game-overview .aftermarket-game-photo,
.aftermarket-game-overview .aftermarket-game-details { grid-column: 1 / -1; }
.aftermarket-game-overview .aftermarket-game-photo a.mw-file-description { position: static; }
.aftermarket-game-overview .aftermarket-game-photo img {
width: auto !important;
height: auto !important;
max-width: 100%;
max-height: none;
margin: 0 auto;
}
}
/* Platform overview: screenshot left, table right; preserve the image aspect ratio. */
.aftermarket-platform-overview {
display: grid;
grid-template-columns: minmax(0, 450px);
align-items: stretch;
gap: 24px;
max-width: 924px;
margin-top: 0;
container-type: inline-size;
}
.aftermarket-platform-overview:has(.aftermarket-platform-photo) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.aftermarket-platform-overview .aftermarket-platform-details { min-width: 0; }
.aftermarket-platform-overview .aftermarket-platform-details .wikitable {
width: 100%;
margin: 0;
}
.aftermarket-platform-overview .aftermarket-platform-photo {
display: block;
height: auto;
position: relative;
min-width: 0;
line-height: 0;
}
.aftermarket-platform-overview .aftermarket-platform-photo p { margin: 0; }
.aftermarket-platform-overview .aftermarket-platform-photo a.mw-file-description {
position: absolute;
inset: 0;
display: block;
}
.aftermarket-platform-overview .aftermarket-platform-photo img {
display: block;
width: 100% !important;
height: 100% !important;
max-width: 100%;
max-height: 100%;
object-fit: contain;
object-position: center;
}
/* Stack in a narrow content column, including sidebar-heavy layouts. */
@container (max-width: 640px) {
.aftermarket-platform-overview .aftermarket-platform-photo,
.aftermarket-platform-overview .aftermarket-platform-details { grid-column: 1 / -1; }
.aftermarket-platform-overview .aftermarket-platform-photo a.mw-file-description { position: static; }
.aftermarket-platform-overview .aftermarket-platform-photo img {
width: auto !important;
height: auto !important;
max-width: 100%;
max-height: none;
margin: 0 auto;
}
}
/* Game Releases and Media: shared table design and keyboard-accessible scrolling. */
:is(.aftermarket-releases, .aftermarket-media-table) {
max-width: 100%;
overflow-x: auto;
border: 1px solid #c8ccd1;
border-radius: 4px;
margin: 0.5em 0 1.25em;
}
:is(.aftermarket-releases, .aftermarket-media-table):focus-visible { outline: 2px solid #36c; outline-offset: 2px; }
:is(.aftermarket-releases, .aftermarket-media-table) table.cargoTable {
width: 100%;
min-width: 38rem;
margin: 0;
border: 0;
border-collapse: collapse;
}
:is(.aftermarket-releases, .aftermarket-media-table) table.cargoTable th,
:is(.aftermarket-releases, .aftermarket-media-table) table.cargoTable td {
padding: 0.65em 0.85em;
text-align: left;
vertical-align: top;
border: 0;
border-bottom: 1px solid #c8ccd1;
line-height: 1.5;
}
:is(.aftermarket-releases, .aftermarket-media-table) table.cargoTable th {
background: #eaecf0;
font-weight: 600;
border-bottom: 2px solid #a2a9b1;
}
:is(.aftermarket-releases, .aftermarket-media-table) table.cargoTable tbody tr:nth-child(even) { background: #f8f9fa; }
:is(.aftermarket-releases, .aftermarket-media-table) table.cargoTable tbody tr:last-child td { border-bottom: 0; }
:is(.aftermarket-releases, .aftermarket-media-table) .field_Release_Format { white-space: nowrap; }
:is(.aftermarket-releases, .aftermarket-media-table) table.cargoTable a { text-underline-offset: 0.15em; }
/* Additional Game pictures: one scrollable row, equal height, original aspect ratios. */
.aftermarket-media-pictures {
display: flex;
flex-wrap: nowrap;
align-items: flex-start;
gap: 12px;
max-width: 100%;
overflow-x: auto;
margin: 0.5em 0 1.25em;
}
.aftermarket-media-pictures > div { flex: 0 0 auto; }
.aftermarket-media-pictures p { margin: 0; }
.aftermarket-media-pictures img {
display: block;
height: 180px !important;
width: auto !important;
max-width: none !important;
object-fit: contain;
}
.aftermarket-media-pictures:focus-visible { outline: 2px solid #36c; outline-offset: 2px; }
/* Browse Platforms: dynamic Cargo cards, isolated from Platform detail pages. */
.aftermarket-platform-directory {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 24px;
margin: 1.25em 0;
}
.aftermarket-platform-card { min-width: 0; text-align: center; }
.aftermarket-platform-card-image {
height: 180px;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
background: #f8f9fa;
border: 1px solid #c8ccd1;
border-radius: 4px;
}
.aftermarket-platform-card-image p { margin: 0; }
.aftermarket-platform-card-image img {
display: block;
width: auto !important;
height: auto !important;
max-width: 100% !important;
max-height: 180px;
object-fit: contain;
}
.aftermarket-platform-card-image .mw-file-element { max-width: 100%; }
.aftermarket-platform-card-image a { display: block; max-width: 100%; }
.aftermarket-platform-placeholder {
display: flex;
align-items: center;
justify-content: center;
min-height: 120px;
padding: 12px;
color: #54595d;
}
.aftermarket-platform-card-name { margin-top: 0.65em; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 900px) {
.aftermarket-platform-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 360px) {
.aftermarket-platform-directory { grid-template-columns: minmax(0, 1fr); }
}
/* Game form only: field layout and help text; no public-page or other-form selectors. */
.aftermarket-game-form { max-width: 1100px; container-type: inline-size; }
.aftermarket-game-form-section {
margin: 1.25em 0;
padding: 0 0 1.25em;
border-bottom: 1px solid #c8ccd1;
}
.aftermarket-game-form-section h2 { margin-top: 0.5em; }
.aftermarket-game-form-intro { margin: 0.5em 0 1em; color: #54595d; line-height: 1.5; }
.aftermarket-game-form-grid,
.aftermarket-game-release-fields,
.aftermarket-game-media-fields { display: grid; gap: 18px 24px; min-width: 0; }
.aftermarket-game-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aftermarket-game-release-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.8fr); }
.aftermarket-game-media-fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 2fr); }
.aftermarket-game-form-field { min-width: 0; }
.aftermarket-game-form-label { font-weight: 600; margin: 0 0 0.35em; }
.aftermarket-game-form-help { color: #54595d; font-size: 0.9em; line-height: 1.4; margin-top: 0.4em; }
.aftermarket-game-form-required { font-weight: normal; font-size: 0.8em; color: #54595d; margin-left: 0.4em; }
.aftermarket-game-form input.createboxInput,
.aftermarket-game-form select.createboxInput,
.aftermarket-game-form textarea {
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
.aftermarket-game-form .pfComboBox,
.aftermarket-game-form .pfComboBoxInput,
.aftermarket-game-form .select2-container { max-width: 100%; width: 100% !important; box-sizing: border-box; }
.aftermarket-game-form .checkboxLabel { display: inline-block; margin: 0.2em 1.1em 0.35em 0; }
.aftermarket-game-form .multipleTemplateWrapper { max-width: 100%; }
.aftermarket-game-form .multipleTemplateInstance { margin: 0 0 0.85em; border: 1px solid #c8ccd1; border-radius: 4px; background: #f8f9fa; }
.aftermarket-game-form .multipleTemplateInstanceTable { width: 100%; table-layout: auto; }
.aftermarket-game-form .multipleTemplateInstanceTable td { min-width: 0; overflow-wrap: anywhere; }
.aftermarket-game-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0; }
@media (max-width: 1100px) {
.aftermarket-game-release-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
.aftermarket-game-form-grid,
.aftermarket-game-release-fields,
.aftermarket-game-media-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.aftermarket-game-form .checkboxLabel { margin-right: 0.8em; }
}
.aftermarket-game-form-field > p { margin: 0; }
.aftermarket-game-form .multipleTemplateInstanceTable .instanceMain,
.aftermarket-game-form .multipleTemplateInstanceTable .fieldValuesDisplay { width: 100%; }
@container (max-width: 700px) {
.aftermarket-game-form-grid,
.aftermarket-game-release-fields,
.aftermarket-game-media-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
/* Page Forms initializes OOUI autocomplete with inline pixel widths; contain it in its field. */
.aftermarket-game-form select { width: 100%; max-width: 100%; box-sizing: border-box; }
.aftermarket-game-form .comboboxSpan { display: block; width: 100%; min-width: 0; }
.aftermarket-game-form .comboboxSpan > .oo-ui-comboBoxInputWidget {
display: block;
width: 100% !important;
min-width: 0 !important;
max-width: 100%;
margin: 0;
}
.aftermarket-game-form .oo-ui-comboBoxInputWidget-field { min-width: 0; max-width: 100%; }
/* Align the four Release controls despite Page Forms' different widget wrappers. */
.aftermarket-game-release-fields .aftermarket-game-form-label { line-height: 1.5; }
.aftermarket-game-release-fields .aftermarket-game-form-field > p { margin: 0; line-height: normal; }
.aftermarket-game-release-fields .inputSpan,
.aftermarket-game-release-fields .comboboxSpan { display: block; width: 100%; }
.aftermarket-game-release-fields input.createboxInput,
.aftermarket-game-release-fields select,
.aftermarket-game-release-fields .oo-ui-comboBoxInputWidget-field > input {
height: 34px;
min-height: 34px;
box-sizing: border-box;
margin-top: 0;
margin-bottom: 0;
}
.aftermarket-game-release-fields .oo-ui-comboBoxInputWidget,
.aftermarket-game-release-fields .oo-ui-comboBoxInputWidget-field { margin-top: 0; margin-bottom: 0; }
/* Override skin input margins and OOUI table-cell spacing within Release rows only. */
.aftermarket-game-release-fields input:not([type="hidden"]),
.aftermarket-game-release-fields select { margin-top: 0 !important; margin-bottom: 0 !important; vertical-align: top; }
.aftermarket-game-release-fields .oo-ui-comboBoxInputWidget-field { border-spacing: 0; }
/* Game Media form: align native text inputs and dropdowns, matching Release controls. */
.aftermarket-game-media-fields .aftermarket-game-form-label { line-height: 1.5; }
.aftermarket-game-media-fields .aftermarket-game-form-field > p { margin: 0; line-height: normal; }
.aftermarket-game-media-fields .inputSpan { display: block; width: 100%; }
.aftermarket-game-media-fields input:not([type="hidden"]),
.aftermarket-game-media-fields select {
height: 34px;
min-height: 34px;
box-sizing: border-box;
margin-top: 0 !important;
margin-bottom: 0 !important;
vertical-align: top;
}
/* Centre public gallery pictures when they fit; auto margins collapse on overflow. */
.aftermarket-media-pictures > div:first-child { margin-inline-start: auto; }
.aftermarket-media-pictures > div:last-child { margin-inline-end: auto; }
/* Game citations only: hide the empty References section on pages without citations. */
.aftermarket-game-references:not(:has(.references)) { display: none; }
/* Platform and optional profile forms only; shared layout matching the Game form. */
.aftermarket-catalogue-form { max-width: 1100px; container-type: inline-size; }
.aftermarket-catalogue-form-section { margin: 1.25em 0; padding: 0 0 1.25em; border-bottom: 1px solid #c8ccd1; }
.aftermarket-catalogue-form-section h2 { margin-top: 0.5em; }
.aftermarket-catalogue-form-intro { margin: 0.5em 0 1em; color: #54595d; line-height: 1.5; }
.aftermarket-catalogue-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.aftermarket-catalogue-form-field { min-width: 0; }
.aftermarket-catalogue-form-label { font-weight: 600; line-height: 1.5; margin: 0 0 0.35em; }
.aftermarket-catalogue-form-flag { font-weight: normal; font-size: 0.8em; color: #54595d; margin-left: 0.4em; }
.aftermarket-catalogue-form-help { color: #54595d; font-size: 0.9em; line-height: 1.4; margin-top: 0.4em; }
.aftermarket-catalogue-form-field > p { margin: 0; line-height: normal; }
.aftermarket-catalogue-form .inputSpan { display: block; width: 100%; }
.aftermarket-catalogue-form input.createboxInput,
.aftermarket-catalogue-form select,
.aftermarket-catalogue-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.aftermarket-catalogue-form input:not([type="hidden"]),
.aftermarket-catalogue-form select { min-height: 34px; margin-top: 0 !important; margin-bottom: 0 !important; vertical-align: top; }
.aftermarket-catalogue-form .imagePreview img { max-width: 100%; height: auto; }
.aftermarket-catalogue-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0; }
@media (max-width: 700px) { .aftermarket-catalogue-form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@container (max-width: 700px) { .aftermarket-catalogue-form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
/* Keep these form dropdowns full-width despite Page Forms' automatic width rules. */
.aftermarket-catalogue-form select { width: 100% !important; }
.aftermarket-catalogue-form-grid + .aftermarket-catalogue-form-field { margin-top: 18px; }