Template:Content/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
.tile-row { | .tile-row { | ||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: center; | |||
gap: 2em; | |||
margin: 2em auto; | |||
max-width: 1200px; | |||
} | } | ||
.tile { | /* 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:hover { | .tile-row > div:hover { | ||
transform: scale(1.03); | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |||
} | } | ||
.tile- | /* 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; | |||
} | } | ||
.tile- | /* 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) { | @media (max-width: 800px) { | ||
.tile-row > div { | |||
flex: 1 1 45%; | |||
} | |||
} | } | ||
Revision as of 04:56, 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%;
}
}