Toggle menu
20
62
5
836
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: Difference between revisions

MediaWiki interface page
mNo edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
/* ---------- DULL CATEGORY BUTTONS WITH ALWAYS-VISIBLE OVERLAY + MARGIN ---------- */
/* ---------- DULL CATEGORY BUTTONS (ONLY DIVS) ---------- */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 960px;
    margin: 30px auto;
    padding: 0 12px;
}
 
.cat-button {
.cat-button {
     position: relative;
     flex: 0 1 200px;
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
     text-decoration: none;
     text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
     border-radius: 8px;
     border-radius: 8px;
     overflow: hidden;
     overflow: hidden;
     background: transparent; /* ← NO default color under button */
     background: #f9f9f9;
     transition: box-shadow 0.2s ease;
     box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
}


.cat-button:hover {
.cat-button:hover,
     box-shadow: 0 4px 12px rgba(0,0,0,0.15);
.cat-button:focus {
    background: #f5f5f5;
     box-shadow: 0 5px 12px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}
}


.cat-button img {
.cat-button img {
    display: block;
     width: 100%;
     width: 100%;
     height: auto;
     height: auto;
    display: block;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
}


/* Always-visible overlay with margin */
.cat-label {
.cat-button .cat-overlay {
     padding: 10px 8px;
     position: absolute;
     font-size: 0.95em;
     top: 0;
     color: #333;
     left: 0;
    font-weight: 500;
     width: 100%;
     text-align: center;
     height: 100%;
     flex-grow: 1;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    pointer-events: none;
    padding: 16px; /* ← MARGIN around text */
    box-sizing: border-box;
}
}


.cat-button .cat-label {
/* Responsive: 2 per row on small screens */
    color: #fff;
@media (max-width: 768px) {
    font-size: 1.15em;
     .cat-grid { gap: 16px; }
    font-weight: 600;
     .cat-button { flex: 0 1 calc(50% - 8px); }
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    padding: 10px 16px;    /* inner padding */
    background: rgba(0, 0, 0, 0.35);
     border-radius: 6px;
     max-width: 90%;        /* prevents overflow */
    word-wrap: break-word;
}
}

Revision as of 09:48, 16 November 2025

/* ---------- DULL CATEGORY BUTTONS (ONLY DIVS) ---------- */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 960px;
    margin: 30px auto;
    padding: 0 12px;
}

.cat-button {
    flex: 0 1 200px;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.cat-button:hover,
.cat-button:focus {
    background: #f5f5f5;
    box-shadow: 0 5px 12px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

.cat-button img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cat-label {
    padding: 10px 8px;
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive: 2 per row on small screens */
@media (max-width: 768px) {
    .cat-grid { gap: 16px; }
    .cat-button { flex: 0 1 calc(50% - 8px); }
}