Template:Content/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
} | } | ||
/* | /* Tile container */ | ||
.tile-row > div { | .tile-row > div { | ||
width: 180px; | width: 180px; | ||
height: | height: 240px; /* Slightly taller to fit image + label */ | ||
padding: 0.5em; | padding: 0.5em; | ||
background: #fdfaf3; | background: #fdfaf3; | ||
border: 1px solid #c8b68e; | border: 1px solid #c8b68e; | ||
border-radius: 6px; | border-radius: 6px; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; /* Ensure spacing between image & text */ | |||
text-align: center; | text-align: center; | ||
transition: transform 0.2s; | transition: transform 0.2s; | ||
box-sizing: border-box; | |||
} | } | ||
| Line 29: | Line 31: | ||
} | } | ||
/* Image | /* Image wrapper */ | ||
.tile-top { | .tile-top { | ||
width: 100%; | width: 100%; | ||
height: | height: 120px; | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
| Line 47: | Line 48: | ||
} | } | ||
/* | /* Text label */ | ||
.tile-bottom { | .tile-bottom { | ||
font-size: 1em; | font-size: 1em; | ||
font-weight: 500; | font-weight: 500; | ||
color: #222; | color: #222; | ||
text-align: center; | |||
width: 100%; | width: 100%; | ||
padding-bottom: 0.2em; | |||
} | } | ||
/* Remove MediaWiki | /* Remove MediaWiki link styling */ | ||
.tile-bottom a { | .tile-bottom a { | ||
all: unset; | all: unset; | ||
| Line 67: | Line 66: | ||
cursor: pointer; | cursor: pointer; | ||
display: inline-block; | display: inline-block; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | } | ||
| Line 75: | Line 73: | ||
} | } | ||
/* Responsive | /* Responsive layout */ | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
.tile-row > div { | .tile-row > div { | ||
flex: 1 1 45%; | flex: 1 1 45%; | ||
width: auto; | |||
height: auto; | height: auto; | ||
} | } | ||
} | } | ||
Revision as of 05:01, 26 July 2025
.tile-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
margin: 2em auto;
max-width: 1200px;
}
/* Tile container */
.tile-row > div {
width: 180px;
height: 240px; /* Slightly taller to fit image + label */
padding: 0.5em;
background: #fdfaf3;
border: 1px solid #c8b68e;
border-radius: 6px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between; /* Ensure spacing between image & text */
text-align: center;
transition: transform 0.2s;
box-sizing: border-box;
}
.tile-row > div:hover {
transform: scale(1.03);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Image wrapper */
.tile-top {
width: 100%;
height: 120px;
display: flex;
justify-content: center;
align-items: center;
}
/* Image scaling */
.tile-top img {
max-height: 100%;
max-width: 100%;
object-fit: contain;
display: block;
}
/* Text label */
.tile-bottom {
font-size: 1em;
font-weight: 500;
color: #222;
text-align: center;
width: 100%;
padding-bottom: 0.2em;
}
/* Remove MediaWiki link styling */
.tile-bottom a {
all: unset;
font-size: inherit;
font-weight: inherit;
color: inherit;
cursor: pointer;
display: inline-block;
line-height: 1.4;
}
.tile-bottom a:hover {
text-decoration: underline;
}
/* Responsive layout */
@media (max-width: 800px) {
.tile-row > div {
flex: 1 1 45%;
width: auto;
height: auto;
}
}