MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 59: | Line 59: | ||
color: white; | color: white; | ||
font-weight: 600; | font-weight: 600; | ||
font-size: 1. | font-size: 1.6em; | ||
text-align: center; | text-align: center; | ||
padding: 8px; | padding: 8px; | ||
Revision as of 10:19, 16 November 2025
/* ---------- IMAGE-ONLY BUTTONS – BLACK TEXT BORDER + SHADOW ---------- */
.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 + ROUNDED */
.cat-button {
position: relative;
display: block !important;
line-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
border-radius: 10px !important;
background: none !important;
box-shadow: none !important;
overflow: hidden !important;
transition: transform 0.25s ease;
cursor: pointer;
}
/* HOVER: lift */
.cat-button:hover,
.cat-button:focus {
transform: translateY(-4px);
outline: none !important;
}
/* IMAGE: zoom on hover */
.cat-button img {
width: 100%;
height: auto;
display: block;
margin: 0;
padding: 0;
border: 0;
border-radius: 10px;
vertical-align: top;
transition: transform 0.3s ease;
}
.cat-button:hover img {
transform: scale(1.08);
}
/* TEXT OVERLAY: BLACK BORDER + SHADOW */
.cat-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 1.6em;
text-align: center;
padding: 8px;
pointer-events: none;
background: rgba(0, 0, 0, 0.08); /* default slight tint */
border-radius: 10px;
transition: background 0.3s ease, text-shadow 0.3s ease;
/* BLACK TEXT BORDER (stroke) */
-webkit-text-stroke: 0.8px #000; /* ← PURE BLACK */
text-stroke: 0.8px #000;
/* SOFT SHADOW */
text-shadow:
0 1px 2px rgba(0, 0, 0, 0.6),
0 0 6px rgba(0, 0, 0, 0.4);
}
/* HOVER: remove tint + stronger shadow */
.cat-button:hover .cat-overlay {
background: transparent;
text-shadow:
0 2px 4px rgba(0, 0, 0, 0.7),
0 0 10px rgba(0, 0, 0, 0.5);
}
/* RESPONSIVE */
@media (max-width: 768px) {
.cat-grid { gap: 16px; }
.cat-overlay {
font-size: 1em;
-webkit-text-stroke: 1px #000;
text-stroke: 1px #000;
}
}