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
No edit summary
No edit summary
Line 1: Line 1:
/* ---------- DULL CATEGORY BUTTONS ---------- */
/* ---------- DULL CATEGORY BUTTONS WITH OVERLAY TEXT ---------- */
.cat-button {
.cat-button {
    position: relative;
     display: block;
     display: block;
     width: 200px;
     width: 200px;
Line 8: Line 9:
     transition: box-shadow 0.2s ease;
     transition: box-shadow 0.2s ease;
     box-shadow: 0 2px 6px rgba(0,0,0,0.08);
     box-shadow: 0 2px 6px rgba(0,0,0,0.08);
     border-radius: 6px;
     border-radius: 8px;
     overflow: hidden;
     overflow: hidden;
     background: #f9f9f9;
     background: #f9f9f9;
Line 14: Line 15:


.cat-button:hover {
.cat-button:hover {
     box-shadow: 0 4px 10px rgba(0,0,0,0.12);
     box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f5f5f5;
}
}


Line 22: Line 22:
     width: 100%;
     width: 100%;
     height: auto;
     height: auto;
    border-top: 1px solid #eee;
}
}


.cat-button .cat-label {
/* Overlay text container */
     display: block;
.cat-button .cat-overlay {
     padding: 10px 4px 6px;
     position: absolute;
     font-size: 0.95em;
     top: 0;
     color: #333;
     left: 0;
     font-weight: 500;
     width: 100%;
     background: #fff;
    height: 100%;
     border-bottom: 1px solid #eee;
    display: flex;
}
    align-items: center;
     justify-content: center;
     background: rgba(0, 0, 0, 0.38); /* semi-dark overlay */
     opacity: 0;
    transition: opacity 0.25s

Revision as of 09:31, 16 November 2025

/* ---------- DULL CATEGORY BUTTONS WITH OVERLAY TEXT ---------- */
.cat-button {
    position: relative;
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.cat-button:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cat-button img {
    display: block;
    width: 100%;
    height: auto;
}

/* Overlay text container */
.cat-button .cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.38); /* semi-dark overlay */
    opacity: 0;
    transition: opacity 0.25s