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
(Simplify game card image CSS)
(Target exact HTML structure: .game-card > p > a > img)
Line 1: Line 1:
/* Game card grid - make thumbnails fill card width */
/* Game card grid - make thumbnails fill card width */
.game-card a.image img {
.game-card > p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
.game-card > p > a > img {
     width: 100% !important;
     width: 100% !important;
     height: auto !important;
     height: auto !important;
     max-width: none !important;
     max-width: 100% !important;
    display: block;
}
}

Revision as of 09:53, 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;
}