MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 37: | Line 37: | ||
div.gallerytextwrapper { width: 120px !important; } | div.gallerytextwrapper { width: 120px !important; } | ||
div.gallerytext a { line-height: normal; display: inline-block; vertical-align: middle; height: 120px;} | div.gallerytext a { line-height: normal; display: inline-block; vertical-align: middle; height: 120px;} | ||
/* Category Tiles Grid */ | |||
.category-tiles-container { | |||
display: grid; | |||
grid-template-columns: repeat(3, 1fr); | |||
gap: 20px; | |||
margin: 0 auto; | |||
max-width: 1200px; | |||
} | |||
.category-tile { | |||
position: relative; | |||
background: #f8f8f8; | |||
border-radius: 8px; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.1); | |||
transition: transform 0.2s, box-shadow 0.2s; | |||
overflow: hidden; | |||
} | |||
.category-tile:hover { | |||
transform: translateY(-5px); | |||
box-shadow: 0 5px 15px rgba(0,0,0,0.2); | |||
} | |||
.category-tile a { | |||
color: inherit; | |||
text-decoration: none; | |||
display: block; | |||
} | |||
.tile-image { | |||
height: 180px; | |||
overflow: hidden; | |||
text-align: center; | |||
} | |||
.tile-image img.tile-img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
display: block; | |||
} | |||
.tile-title { | |||
padding: 15px; | |||
text-align: center; | |||
font-weight: bold; | |||
font-size: 1.1em; | |||
color: #333; | |||
background: white; | |||
} | |||
/* Alternative: Overlay title instead of showing below */ | |||
/* | |||
.tile-title { | |||
position: absolute; | |||
bottom: 0; | |||
width: 100%; | |||
padding: 10px; | |||
background: rgba(0,0,0,0.7); | |||
color: white; | |||
text-align: center; | |||
} | |||
*/ | |||
/* Responsive adjustments */ | |||
@media (max-width: 768px) { | |||
.category-tiles-container { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media (max-width: 480px) { | |||
.category-tiles-container { | |||
grid-template-columns: 1fr; | |||
} | |||
.tile-image { | |||
height: 140px; | |||
} | |||
} | |||