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 06:41, 11 May 2026 by Xenorio (talk | contribs) (Created page with "========== Main page hero ==========: .altered-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3em 1em 2.5em; gap: 0.75em; width: 100%; box-sizing: border-box; } override Citizen's default left-aligned content flow for the hero: .altered-hero, .altered-hero * { margin-left: auto; margin-right: auto; } .altered-hero__logo img { width: 128px; height: 128px; filt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* ========== Main page hero ========== */

.altered-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3em 1em 2.5em;
    gap: 0.75em;
    width: 100%;
    box-sizing: border-box;
}

/* override Citizen's default left-aligned content flow for the hero */
.altered-hero,
.altered-hero * {
    margin-left: auto;
    margin-right: auto;
}

.altered-hero__logo img {
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.18));
}

.altered-hero__title {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.altered-hero__tagline {
    font-size: 1.1em;
    opacity: 0.75;
    max-width: 520px;
    line-height: 1.6;
}

/* ========== GitHub link ========== */

.altered-github-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.6em;
    border-radius: 6px;
    border: 1px solid currentColor;
    opacity: 0.8;
    font-size: 0.95em;
    text-decoration: none;
}

.altered-github-link a:hover {
    opacity: 1;
}

.altered-github-link a::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background: url("/logo.svg") no-repeat center / contain;
    /* swap for a github mark if one gets added to assets */
}