MediaWiki:Common.css
Jump to navigation
Jump to search
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.
.stand-ability-image,
.stand-ability-image img {
width: 560px;
max-width: 100%;
height: auto;
}
/* Keep expanded GIFs below their buttons, independent of article infobox floats. */
.stand-ability-gif {
display: flow-root;
}
.stand-ability-gif > .mw-collapsible-toggle {
float: left !important;
}
.stand-ability-gif > .mw-collapsible-content {
clear: both;
}
/* Keep the “Powered by MediaWiki” badge visually unframed. */
#footer-poweredbyico > a,
#footer-poweredbyico > a.cdx-button,
#footer-poweredbyico > a.cdx-button:hover,
#footer-poweredbyico > a.cdx-button:focus,
#footer-poweredbyico > a.cdx-button:active {
background: transparent !important;
border-color: transparent !important;
box-shadow: none !important;
}
#footer-poweredbyico img {
filter: grayscale(1) brightness(0) invert(1);
opacity: 0.5;
}
/* Three equal alignment cards with responsive wrapping. */
.alignment-gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
}
.alignment-gallery > .gallerybox {
box-sizing: border-box;
width: calc((100% - 24px) / 3) !important;
margin: 0 !important;
}
.alignment-gallery > .gallerybox .thumb {
box-sizing: border-box;
width: 100% !important;
height: 175px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.alignment-gallery > .gallerybox .thumb img {
width: 100% !important;
height: 175px !important;
object-fit: cover;
}
@media (max-width: 700px) {
.alignment-gallery > .gallerybox {
width: calc((100% - 12px) / 2) !important;
}
}
@media (max-width: 420px) {
.alignment-gallery > .gallerybox {
width: 100% !important;
}
}
/* Equal, centered tiles on the Mechanics landing page. */
.mechanics-gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
}
.mechanics-gallery > .gallerybox {
box-sizing: border-box;
width: calc((100% - 36px) / 4) !important;
margin: 0 !important;
}
.mechanics-gallery > .gallerybox .thumb {
box-sizing: border-box;
width: 100% !important;
height: 175px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.mechanics-gallery > .gallerybox .thumb img {
width: 100% !important;
height: 175px !important;
object-fit: cover;
}
@media (max-width: 700px) {
.mechanics-gallery > .gallerybox {
width: calc((100% - 12px) / 2) !important;
}
}
@media (max-width: 420px) {
.mechanics-gallery > .gallerybox {
width: 100% !important;
}
}
/* Keep every NPC card the same size; packed mode must not enlarge full rows. */
.npc-gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
}
.npc-gallery > .gallerybox {
box-sizing: border-box;
width: 152px !important;
margin: 0 !important;
}
.npc-gallery > .gallerybox .thumb {
box-sizing: border-box;
width: 152px !important;
height: 152px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.npc-gallery > .gallerybox .thumb img {
width: 150px !important;
height: 150px !important;
object-fit: cover;
}
/* Navigation is handled by landing pages; do not show category footers. */
#catlinks {
display: none !important;
}
/* Photo slots inside the original dimensional menu buttons. */
.bp-tile-simple .bp-menu-card-media {
position: relative;
z-index: 1;
aspect-ratio: 16 / 9;
width: 100%;
margin-bottom: 8px;
overflow: hidden;
background: transparent;
}
.bp-tile-simple .bp-menu-card-media > span,
.bp-tile-simple .bp-menu-card-media a {
display: block;
width: 100%;
height: 100%;
}
.bp-tile-simple .bp-menu-card-media img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.bp-tile-simple .bp-menu-card-placeholder {
background: transparent;
}
/* Match the Names and Appearance gallery frames to the dark page surface. */
.page-Names_and_Appearance .mw-gallery-traditional .gallerybox > .thumb,
.page-Safe_Cracking .mw-gallery-traditional .gallerybox > .thumb {
background-color: rgba(255, 255, 255, 0.035);
border-color: rgba(255, 255, 255, 0.12);
}
/* Match standard article thumbnail frames to the dark page surface. */
.mw-parser-output figure[typeof~="mw:File/Thumb"] {
background-color: #171a1f;
border-color: #343942 !important;
}
.mw-parser-output figure[typeof~="mw:File/Thumb"] figcaption {
color: #c9cdd3;
background-color: #171a1f;
border-color: #343942 !important;
}
.mw-parser-output figure[typeof~="mw:File/Thumb"] .mw-file-element {
border-color: #343942 !important;
}
/* Keep packed galleries in fixed, centered tiles instead of widening every row. */
ul.gallery.mw-gallery-packed:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) {
--bp-gallery-size: 175px;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 8px;
}
body.page-Items_and_Utilities ul.gallery.mw-gallery-packed:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) {
--bp-gallery-size: 123px;
}
ul.gallery.mw-gallery-packed.specialty-gallery:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) {
--bp-gallery-size: 186px;
}
ul.gallery.mw-gallery-packed:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) > li.gallerybox {
box-sizing: border-box;
width: min(var(--bp-gallery-size), 100%) !important;
margin: 0 !important;
}
ul.gallery.mw-gallery-packed:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) > li.gallerybox > .thumb {
box-sizing: border-box;
width: calc(min(var(--bp-gallery-size), 100%) - 4px) !important;
height: var(--bp-gallery-size);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
ul.gallery.mw-gallery-packed:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) > li.gallerybox > .thumb > span,
ul.gallery.mw-gallery-packed:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) > li.gallerybox > .thumb a {
display: block;
max-width: 100%;
min-width: 0;
}
ul.gallery.mw-gallery-packed:not(.npc-gallery):not(.mechanics-gallery):not(.alignment-gallery) > li.gallerybox > .thumb img {
width: auto;
height: auto;
max-width: 100%;
max-height: var(--bp-gallery-size);
object-fit: contain;
}
/* Center every Stand gallery row with equal, filled image frames. */
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: stretch;
gap: 10px;
}
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) > li.gallerybox {
display: flex;
flex: 1 1 131.25px;
flex-direction: column;
box-sizing: border-box;
width: auto !important;
max-width: 165px;
min-width: 0;
margin: 0 !important;
}
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) > li.gallerybox > .thumb {
box-sizing: border-box;
width: 100% !important;
height: auto;
aspect-ratio: 1 / 1;
}
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) > li.gallerybox > .thumb > a,
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) > li.gallerybox > .thumb > span {
width: 100%;
height: 100%;
}
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) > li.gallerybox > .thumb img {
width: 100%;
height: 100%;
max-width: none;
max-height: none;
object-fit: cover;
}
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) > li.gallerybox > .gallerytext {
min-height: 2.8em;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
@media (max-width: 600px) {
body.page-Stands .mw-parser-output ul.gallery.mw-gallery-packed:not(.mechanics-gallery) > li.gallerybox {
flex-basis: 108.75px;
}
}
/* Inventory limits in item infoboxes. */
#infoboxtable .bp-inventory-limit {
display: inline-block;
min-width: 1.6em;
padding: 0 0.25em;
border: 1px solid var(--bp-border, #34383f);
border-radius: 4px;
background: var(--bp-bg-elevated, #262a30);
color: var(--bp-text-dim, #9a9a9a);
text-align: center;
line-height: 1.35;
}