Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
(Force all gallery inline widths to fill container)
(Clean up gallery CSS for packed mode - remove all whitespace)
Line 63: Line 63:
}
}


/* Gallery - remove chunky borders, fill thumbnails */
/* Gallery - clean packed layout */
.gallery .gallerybox .thumb {
.mw-gallery-packed {
     border: none !important;
    padding: 0 !important;
     background: none !important;
}
.mw-gallery-packed .gallerybox {
     margin: 2px !important;
     padding: 0 !important;
}
}
.gallery .gallerybox .thumb > div {
.mw-gallery-packed .gallerybox > div {
    padding: 0 !important;
     margin: 0 !important;
     margin: 0 !important;
}
}
.gallery .gallerybox .thumb img {
.mw-gallery-packed .thumb {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    border-radius: 4px;
}
.gallery .gallerybox {
    border: none !important;
}
.gallery .gallerybox > div {
     border: none !important;
     border: none !important;
     background: none !important;
     background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
}
 
.mw-gallery-packed .thumb > div {
/* Make gallery images bigger - override all inline widths */
.gallery .gallerybox {
    width: 400px !important;
}
.gallery .gallerybox > div {
    width: 400px !important;
}
.gallery .gallerybox .thumb {
    width: 100% !important;
}
.gallery .gallerybox .thumb > div {
    width: 100% !important;
     margin: 0 !important;
     margin: 0 !important;
}
}
.gallery .gallerybox .thumb a {
.mw-gallery-packed .thumb img {
     display: block;
     display: block;
     width: 100%;
     border-radius: 4px;
}
}
.gallery .gallerybox .thumb img {
.mw-gallery-packed .gallerytext {
     width: 100% !important;
     display: none !important;
    height: auto !important;
    max-width: none !important;
}
}

Revision as of 11:29, 18 February 2026

/* Game card grid - make thumbnails fill card width */
.game-card > p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
.game-card > p > a > img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
}

/* Infobox styling - horizontal layout */
.infobox {
    width: 100%;
    margin: 0 0 16px 0;
    border: 1px solid var(--border-color-base, #555);
    border-radius: 8px;
    background: var(--color-surface-1, #1e1e2e);
    font-size: 0.875rem;
    overflow: hidden;
}
.infobox-title {
    padding: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--color-surface-2, #2a2a3a);
    display: none;
}
.infobox-fields {
    display: flex;
    flex-wrap: wrap;
}
.infobox-field {
    flex: 1 1 0;
    min-width: 100px;
    padding: 10px 14px;
    border-left: 1px solid var(--border-color-base, #333);
}
.infobox-field:first-child {
    border-left: none;
}
.infobox-label {
    color: var(--color-base--subtle, #aaa);
    font-size: 0.75rem;
    margin-bottom: 4px;
}
.infobox-value {
    font-weight: 600;
}

@media (max-width: 600px) {
    .infobox-fields {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .infobox-field {
        border-left: none;
        border-top: 1px solid var(--border-color-base, #333);
    }
}

/* Gallery - clean packed layout */
.mw-gallery-packed {
    padding: 0 !important;
}
.mw-gallery-packed .gallerybox {
    margin: 2px !important;
    padding: 0 !important;
}
.mw-gallery-packed .gallerybox > div {
    padding: 0 !important;
    margin: 0 !important;
}
.mw-gallery-packed .thumb {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mw-gallery-packed .thumb > div {
    margin: 0 !important;
}
.mw-gallery-packed .thumb img {
    display: block;
    border-radius: 4px;
}
.mw-gallery-packed .gallerytext {
    display: none !important;
}