Template:Content/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
.tile-row { | .tile-row { | ||
display: flex; | display: flex; | ||
| Line 9: | Line 8: | ||
} | } | ||
/* | /* Each tile card */ | ||
.tile-row > div { | .tile-row > div { | ||
background: #fdfaf3; | background: #fdfaf3; | ||
| Line 30: | Line 29: | ||
} | } | ||
/* Image container | /* Image container (auto size, no cutting) */ | ||
.tile-top { | .tile-top { | ||
width: 100%; | width: 100%; | ||
height: | min-height: 100px; | ||
margin-bottom: 0.8em; | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
} | } | ||
/* Image | /* Image scaling without clipping */ | ||
.tile-top img { | .tile-top img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | |||
object-fit: contain; | object-fit: contain; | ||
display: block; | display: block; | ||
} | } | ||
/* Label under the image | /* Label under the image */ | ||
.tile-bottom { | .tile-bottom { | ||
font-size: 1.05em; | font-size: 1.05em; | ||
font-weight: 600; | font-weight: 600; | ||
color: #222; | color: #222; | ||
display: block; | |||
width: 100%; | |||
text-align: center; | |||
} | } | ||
/* | /* Kill all skin-inherited link styles */ | ||
.tile-bottom a { | .tile-bottom a { | ||
all: unset; | all: unset; | ||
font-size: 1.05em; | |||
font-weight: 600; | font-weight: 600; | ||
color: #222; | color: #222; | ||
cursor: pointer; | cursor: pointer; | ||
display: inline-block; | display: inline-block; | ||
text-align: center; | text-align: center; | ||
line-height: 1.4; | |||
} | } | ||
.tile-bottom a:hover { | .tile-bottom a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
color: #000; | |||
} | } | ||
/* Mobile | /* Mobile */ | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
.tile-row > div { | .tile-row > div { | ||
Revision as of 04:35, 26 July 2025
.tile-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
margin: 2em auto;
max-width: 1200px;
}
/* Each tile card */
.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 (auto size, no cutting) */
.tile-top {
width: 100%;
min-height: 100px;
margin-bottom: 0.8em;
display: flex;
justify-content: center;
align-items: center;
}
/* Image scaling without clipping */
.tile-top img {
max-width: 100%;
height: auto;
object-fit: contain;
display: block;
}
/* Label under the image */
.tile-bottom {
font-size: 1.05em;
font-weight: 600;
color: #222;
display: block;
width: 100%;
text-align: center;
}
/* Kill all skin-inherited link styles */
.tile-bottom a {
all: unset;
font-size: 1.05em;
font-weight: 600;
color: #222;
cursor: pointer;
display: inline-block;
text-align: center;
line-height: 1.4;
}
.tile-bottom a:hover {
text-decoration: underline;
color: #000;
}
/* Mobile */
@media (max-width: 800px) {
.tile-row > div {
flex: 1 1 45%;
}
}