Template:Content/styles.css
Jump to navigation
Jump to search
/* Container for each row of tiles */
.tile-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
margin: 2em auto;
max-width: 1200px;
}
/* Individual tile box */
.tile-row > div {
background: #fdfaf3;
border: 1px solid #c8b68e;
border-radius: 8px;
padding: 1em;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
flex: 1 1 180px;
max-width: 200px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
transition: transform 0.2s, box-shadow 0.2s;
}
.tile-row > div:hover {
transform: scale(1.03);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Image container with fixed height */
.tile-top {
width: 100%;
height: 140px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 0.8em;
overflow: hidden;
}
/* Image itself: scale to fit inside box */
.tile-top img {
max-height: 100%;
max-width: 100%;
object-fit: contain;
display: block;
}
/* Label under the image (clean, no border) */
.tile-bottom {
font-size: 1.05em;
font-weight: 600;
color: #222;
}
/* Clean up any link styles applied by MediaWiki */
.tile-bottom a {
all: unset;
font-weight: 600;
font-size: 1.05em;
color: #222;
cursor: pointer;
display: inline-block;
text-align: center;
width: 100%;
padding-top: 0.25em;
}
.tile-bottom a:hover {
text-decoration: underline;
}
/* Mobile responsiveness */
@media (max-width: 800px) {
.tile-row > div {
flex: 1 1 45%;
}
}