Jump to content
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

MediaWiki interface page
Revision as of 00:34, 6 September 2026 by Nano (talk | contribs)

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.
:root {
    --wiki-accent: #7dbdff;
    --wiki-navy: #152a46;
    --wiki-surface: var(--color-surface-1, #fff);
    --wiki-surface-alt: var(--color-surface-2, #eaecf0);
    --wiki-border: var(--border-color-base, #a2a9b1);
    --wiki-text: var(--color-base, #202122);
    --wiki-subtle: var(--color-subtle, #54595d);
}

.weapon-infobox {
    float: right;
    clear: right;
    width: 320px;
    max-width: 42%;
    margin: 0 0 1.5rem 1.75rem;
    overflow: hidden;
    color: var(--wiki-text);
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.weapon-infobox-title,
.weapon-infobox-heading {
    font-weight: 700;
    background: var(--wiki-surface-alt);
}

.weapon-infobox-title {
    padding: 0.9rem 1rem;
    font-size: 1.25rem;
    text-align: center;
}

.weapon-infobox-image {
    min-height: 120px;
    padding: 1rem;
    text-align: center;
    background: rgba(127, 127, 127, 0.06);
}

.weapon-infobox-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
}

.weapon-infobox-heading {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-block: 1px solid var(--wiki-border);
}

.weapon-infobox-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(127, 127, 127, 0.18);
}

.weapon-infobox-row:last-child {
    border-bottom: 0;
}

.weapon-infobox-row span,
.cw-card-description,
.wiki-home-card-description,
.wiki-home-info,
.wiki-home-links {
    color: var(--wiki-subtle);
}

.weapon-infobox-row strong {
    text-align: right;
}

.weapon-page-clear {
    clear: both;
}

.cw-hero,
.wiki-home-hero {
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(125, 189, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.cw-hero {
    margin-bottom: 2rem;
    padding: 3.5rem 3rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(73, 155, 255, 0.35), transparent 32%),
        linear-gradient(135deg, #0c1524, #162b47 55%, #244f75);
}

.wiki-home-hero {
    padding: 4rem 3rem;
    background:
        radial-gradient(circle at 82% 20%, rgba(75, 160, 255, 0.3), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(89, 89, 255, 0.18), transparent 35%),
        linear-gradient(135deg, #08111f, #152a46 55%, #214f77);
}

.cw-hero-eyebrow,
.cw-section-label,
.wikiiki-home-badge,
.wiki-home-eyebrow,
.wiki-home-card-tag {
    color: var(--wiki-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cw-hero-title,
.wiki-home-title {
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.cw-hero-title {
    margin: 0.3rem 0 0.6rem;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.wiki-home-title {
    margin: 0.4rem 0 0.75rem;
    font-size: clamp(2.8rem, 8vw, 5rem);
}

.cw-hero-description,
.wiki-home-subtitle {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
}

.cw-hero-description {
    max-width: 650px;
    font-size: 1.05rem;
}

.wiki-home-subtitle {
    max-width: 720px;
    font-size: 1.08rem;
}

.cw-hero-actions,
.wiki-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cw-hero-actions a,
.cw-community a,
.wiki-home-actions a {
    color: inherit;
    text-decoration: none;
}

.cw-button,
.wiki-home-button {
    display: inline-block;
    padding: 0.7rem 1rem;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
}

.cw-button-primary,
.wiki-home-button-primary {
    color: #07111e;
    background: var(--wiki-accent);
    border-color: var(--wiki-accent);
}

.cw-section-heading,
.wiki-home-heading {
    margin: 2rem 0 1rem;
}

.cw-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.cw-section-heading h2,
.wiki-home-heading h2 {
    margin: 0.15rem 0 0;
    border: 0;
}

.cw-grid,
.wiki-home-grid,
.wiki-home-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.cw-grid {
    margin-bottom: 2rem;
}

.cw-card,
.wiki-home-card {
    padding: 1.2rem;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: 10px;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.cw-card {
    min-height: 105px;
}

.cw-card:hover,
.wiki-home-card:hover {
    transform: translateY(-2px);
    border-color: #579ee5;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}

.wiki-home-card-featured {
    background:
        linear-gradient(rgba(75, 150, 230, 0.08), rgba(75, 150, 230, 0.08)),
        var(--wiki-surface);
    border-color: #579ee5;
}

.cw-card-title,
.wiki-home-card-title,
.wiki-home-info-title {
    color: var(--wiki-text);
    font-weight: 700;
}

.cw-card-title,
.wiki-home-card-title {
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
}

.cw-card-title a,
.wiki-home-card-title a,
.wiki-home-card-link a {
    text-decoration: none;
}

.cw-card-description,
.wiki-home-card-description {
    font-size: 0.92rem;
    line-height: 1.5;
}

.wiki-home-card-description {
    min-height: 4.2rem;
}

.wiki-home-card-link {
    margin-top: 1rem;
    font-weight: 650;
}

.cw-community {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    color: #fff;
    background: var(--wiki-navy);
    border-radius: 10px;
}

.cw-community-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.cw-community-description {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.wiki-home-notice {
    margin: 1.25rem 0 2.25rem;
    padding: 1rem 1.15rem;
    color: var(--wiki-subtle);
    background: var(--wiki-surface-alt);
    border-left: 4px solid var(--wiki-accent);
    border-radius: 6px;
}

.wiki-home-notice-title {
    margin-bottom: 0.2rem;
    color: var(--wiki-text);
    font-weight: 700;
}

.wiki-home-info {
    padding: 1rem 0;
    line-height: 1.55;
}

.wiki-home-info-title {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.wiki-home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
    overflow: hidden;
    text-align: center;
    background: var(--wiki-navy);
    border-radius: 11px;
}

.wiki-home-stats div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.wiki-home-stats div:last-child {
    border-right: 0;
}

.wiki-home-stats strong {
    color: #fff;
    font-size: 1.45rem;
}

.wiki-home-stats span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.wiki-home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem;
}

.wiki-home-links-title {
    width: 100%;
    color: var(--wiki-text);
    font-weight: 700;
    text-align: center;
}

@media screen and (max-width: 720px) {
    .weapon-infobox {
        float: none;
        width: auto;
        max-width: none;
        margin: 0 0 1.5rem;
    }

    .cw-hero,
    .wiki-home-hero {
        padding: 2.25rem 1.5rem;
    }

    .cw-community {
        align-items: flex-start;
        flex-direction: column;
    }

    .wiki-home-card-description {
        min-height: 0;
    }

    .wiki-home-stats {
        grid-template-columns: 1fr;
    }

    .wiki-home-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .wiki-home-stats div:last-child {
        border-bottom: 0;
    }
}