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 22:32, 21 January 2026 by Texyc (talk | contribs) (Created page with "→--- Fandom Style Cards ---: .card-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; →Centers them on the page: } .fandom-card { background: #1a1a1a; →Dark grey background: border: 1px solid #333; border-radius: 8px; →Rounded corners: width: 220px; →Width of each card: overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; text-align: center; } /* Hover Effect (Makes it pop...")
(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.
/* --- Fandom Style Cards --- */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Centers them on the page */
}

.fandom-card {
    background: #1a1a1a; /* Dark grey background */
    border: 1px solid #333;
    border-radius: 8px; /* Rounded corners */
    width: 220px; /* Width of each card */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

/* Hover Effect (Makes it pop up) */
.fandom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: #a855f7; /* Purple glow */
}

/* Image styling */
.fandom-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Text styling */
.fandom-card-text {
    padding: 10px;
    color: white;
}

.fandom-card-title {
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}