MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ---------- IMAGE-ONLY BUTTONS – BLOCK CITIZEN | /* ---------- IMAGE-ONLY BUTTONS – BLOCK CITIZEN + BORDER RADIUS ---------- */ | ||
.cat-grid { | .cat-grid { | ||
display: flex; | display: flex; | ||
| Line 10: | Line 10: | ||
} | } | ||
/* DIV button – RESET | /* DIV button – FULL RESET + BORDER RADIUS */ | ||
.cat-button { | .cat-button { | ||
position: relative; | position: relative; | ||
| Line 18: | Line 18: | ||
padding: 0 !important; | padding: 0 !important; | ||
border: none !important; | border: none !important; | ||
border-radius: | border-radius: 10px !important; /* ← ADDED: ROUNDED CORNERS */ | ||
background: none !important; | background: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
overflow: | overflow: hidden !important; /* ← CHANGED: clip overlay to rounded corners */ | ||
transition: transform 0.25s ease; | transition: transform 0.25s ease; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
/* HOVER: only | /* HOVER: lift only */ | ||
.cat-button:hover, | .cat-button:hover, | ||
.cat-button:focus { | .cat-button:focus { | ||
| Line 41: | Line 41: | ||
padding: 0; | padding: 0; | ||
border: 0; | border: 0; | ||
border-radius: 10px; /* ensures image corners match */ | |||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
| Line 59: | Line 60: | ||
pointer-events: none; | pointer-events: none; | ||
background: rgba(0,0,0,0.3); | background: rgba(0,0,0,0.3); | ||
border-radius: 10px; /* overlay follows rounded corners */ | |||
transition: background 0.25s ease; | transition: background 0.25s ease; | ||
} | } | ||
Revision as of 10:11, 16 November 2025
/* ---------- IMAGE-ONLY BUTTONS – BLOCK CITIZEN + BORDER RADIUS ---------- */
.cat-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 24px;
max-width: 960px;
margin: 30px auto;
padding: 0 12px;
}
/* DIV button – FULL RESET + BORDER RADIUS */
.cat-button {
position: relative;
display: block !important;
line-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
border-radius: 10px !important; /* ← ADDED: ROUNDED CORNERS */
background: none !important;
box-shadow: none !important;
overflow: hidden !important; /* ← CHANGED: clip overlay to rounded corners */
transition: transform 0.25s ease;
cursor: pointer;
}
/* HOVER: lift only */
.cat-button:hover,
.cat-button:focus {
transform: translateY(-4px);
outline: none !important;
}
/* IMAGE = FULL BUTTON */
.cat-button img {
width: 100%;
height: auto;
display: block;
margin: 0;
padding: 0;
border: 0;
border-radius: 10px; /* ensures image corners match */
vertical-align: top;
}
/* OVERLAY TEXT */
.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);
border-radius: 10px; /* overlay follows rounded corners */
transition: background 0.25s ease;
}
.cat-button:hover .cat-overlay {
background: rgba(0,0,0,0.5);
}
/* RESPONSIVE */
@media (max-width: 768px) {
.cat-grid { gap: 16px; }
.cat-overlay { font-size: 1em; }
}