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
(Make infobox full width at top instead of floating right)
(Tighten gap between number and label in stats)
 
(22 intermediate revisions by the same user not shown)
Line 4: Line 4:
     padding: 0 !important;
     padding: 0 !important;
     line-height: 0 !important;
     line-height: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.game-card > p > a {
    display: block;
    width: 100%;
    height: 100%;
}
.game-card > p {
    border-radius: 8px 8px 0 0;
}
}
.game-card > p > a > img {
.game-card > p > a > img {
     width: 100% !important;
     width: 100% !important;
     height: auto !important;
     height: 100% !important;
     max-width: 100% !important;
     max-width: 100% !important;
     display: block;
     display: block;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.game-card {
    transition: background 0.15s ease, transform 0.15s ease;
}
.game-card:hover {
    background: var(--color-surface-3, #3a3a4a) !important;
    transform: translateY(-4px);
}
.game-card > div[style] {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    line-height: 1.2;
}
.game-card > div[style] br {
    display: none;
}
.game-card > div[style] small {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--color-base--subtle, #aaa);
}
}


/* Infobox styling */
/* Infobox styling - horizontal layout */
.infobox {
.infobox {
     width: 100%;
     width: 100%;
    max-width: 100%;
     margin: 0 0 16px 0;
     margin: 0 0 16px 0;
     border: 1px solid var(--border-color-base, #555);
     border: 1px solid var(--border-color-base, #555);
Line 21: Line 55:
     background: var(--color-surface-1, #1e1e2e);
     background: var(--color-surface-1, #1e1e2e);
     font-size: 0.875rem;
     font-size: 0.875rem;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0;
     overflow: hidden;
     overflow: hidden;
}
}
.infobox-title th {
.infobox-title {
     padding: 12px;
     padding: 12px;
     text-align: center;
     text-align: center;
Line 32: Line 63:
     font-weight: 700;
     font-weight: 700;
     background: var(--color-surface-2, #2a2a3a);
     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-data th {
.infobox-label {
    padding: 8px 12px;
    text-align: right;
    white-space: nowrap;
     color: var(--color-base--subtle, #aaa);
     color: var(--color-base--subtle, #aaa);
     font-weight: 400;
     font-size: 0.75rem;
     font-size: 0.8125rem;
     margin-bottom: 0;
     vertical-align: top;
     line-height: 1.1;
}
}
.infobox-data td {
.infobox-value {
    padding: 8px 12px;
     font-weight: 600;
     font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1px;
}
@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 traditional layout, tight spacing */
.mw-gallery-traditional {
    margin: 0 !important;
}
.mw-gallery-traditional .gallerybox {
    margin: 2px 2px 6px 2px !important;
    padding: 0 !important;
}
.mw-gallery-traditional .gallerybox,
.mw-gallery-traditional .gallerybox > div,
.mw-gallery-traditional .thumb {
    width: auto !important;
}
.mw-gallery-traditional .gallerybox > div {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.mw-gallery-traditional .thumb {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    height: auto !important;
}
.mw-gallery-traditional .thumb > div {
    margin: 0 !important;
    width: auto !important;
}
.mw-gallery-traditional .thumb img {
    display: block;
    border-radius: 4px;
}
}
.infobox-data {
.mw-gallery-traditional .gallerytext {
     border-top: 1px solid var(--border-color-base, #333);
     display: none !important;
}
}

Latest revision as of 14:20, 18 February 2026

/* Game card grid - make thumbnails fill card width */
.game-card > p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.game-card > p > a {
    display: block;
    width: 100%;
    height: 100%;
}
.game-card > p {
    border-radius: 8px 8px 0 0;
}
.game-card > p > a > img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.game-card {
    transition: background 0.15s ease, transform 0.15s ease;
}
.game-card:hover {
    background: var(--color-surface-3, #3a3a4a) !important;
    transform: translateY(-4px);
}
.game-card > div[style] {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    line-height: 1.2;
}
.game-card > div[style] br {
    display: none;
}
.game-card > div[style] small {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--color-base--subtle, #aaa);
}

/* 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: 0;
    line-height: 1.1;
}
.infobox-value {
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1px;
}

@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 traditional layout, tight spacing */
.mw-gallery-traditional {
    margin: 0 !important;
}
.mw-gallery-traditional .gallerybox {
    margin: 2px 2px 6px 2px !important;
    padding: 0 !important;
}
.mw-gallery-traditional .gallerybox,
.mw-gallery-traditional .gallerybox > div,
.mw-gallery-traditional .thumb {
    width: auto !important;
}
.mw-gallery-traditional .gallerybox > div {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.mw-gallery-traditional .thumb {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    height: auto !important;
}
.mw-gallery-traditional .thumb > div {
    margin: 0 !important;
    width: auto !important;
}
.mw-gallery-traditional .thumb img {
    display: block;
    border-radius: 4px;
}
.mw-gallery-traditional .gallerytext {
    display: none !important;
}