Toggle menu
20
62
5
841
Irontide Fantasy Roleplay
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 09:59, 16 November 2025 by Admin (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.
/* ---------- IMAGE-ONLY BUTTONS – NO BOX, NO PADDING ---------- */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 960px;
    margin: 30px auto;
    padding: 0 12px;
}

/* Button = just the image + overlay */
.cat-button {
    position: relative;
    display: block;
    line-height: 0;                    /* removes any text spacing */
    overflow: visible;                /* no clipping */
    box-shadow: none;                 /* NO SHADOW */
    border: none;                     /* NO BORDER */
    padding: 0;                       /* NO PADDING */
    margin: 0;
    border-radius: 0;                 /* NO ROUNDED CORNERS */
    transition: transform 0.25s ease;
    cursor: pointer;
}

/* Hover: only lift, no box */
.cat-button:hover,
.cat-button:focus {
    transform: translateY(-4px);
    z-index: 1;
}

/* Image = full size, no stretching */
.cat-button img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Overlay text – on top of image */
.cat-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    text-align: center;
    padding: 8px;
    pointer-events: none;
    background: rgba(0,0,0,0.3);      /* subtle dark tint */
    transition: background 0.25s ease;
}

.cat-button:hover .cat-overlay {
    background: rgba(0,0,0,0.5);      /* darker on hover */
}

/* Responsive */
@media (max-width: 768px) {
    .cat-grid { gap: 16px; }
    .cat-overlay { font-size: 1em; }
}