Template:Content/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
.tile-row > div { | .tile-row > div { | ||
background: #fdfaf3; | background: #fdfaf3; | ||
border: 1px solid #c8b68e; | border: 1px solid #c8b68e; | ||
border-radius: 8px; | border-radius: 8px; | ||
| Line 20: | Line 20: | ||
align-items: center; | align-items: center; | ||
text-align: center; | text-align: center; | ||
transition: transform 0.2s; | transition: transform 0.2s, box-shadow 0.2s; | ||
} | } | ||
.tile-row > div:hover { | .tile-row > div:hover { | ||
transform: scale(1.03); | transform: scale(1.03); | ||
box-shadow: 0 4px | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
} | } | ||
.tile-top { | .tile-top { | ||
margin-bottom: 0. | margin-bottom: 0.8em; | ||
} | } | ||
| Line 42: | Line 42: | ||
margin: 0; | margin: 0; | ||
font-size: 1.05em; | font-size: 1.05em; | ||
font-weight: | font-weight: 600; | ||
color: #222; | color: #222; | ||
text-decoration: none; | |||
border: none; | |||
padding: 0; | |||
} | } | ||
/* Remove any inherited border styles from links */ | |||
.tile-bottom h2 a { | |||
text-decoration: none; | |||
border: none; | |||
color: inherit; | |||
/* | |||
.tile-bottom h2 { | |||
text- | |||
} | } | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
.tile-row > div { | .tile-row > div { | ||
flex: 1 1 45%; | flex: 1 1 45%; | ||
} | } | ||
} | } | ||
Revision as of 04:27, 26 July 2025
.tile-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
margin: 2em auto;
max-width: 1200px;
}
.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);
}
.tile-top {
margin-bottom: 0.8em;
}
.tile-top img {
max-width: 100%;
height: auto;
display: block;
object-fit: contain;
}
.tile-bottom h2 {
margin: 0;
font-size: 1.05em;
font-weight: 600;
color: #222;
text-decoration: none;
border: none;
padding: 0;
}
/* Remove any inherited border styles from links */
.tile-bottom h2 a {
text-decoration: none;
border: none;
color: inherit;
}
@media (max-width: 800px) {
.tile-row > div {
flex: 1 1 45%;
}
}