Template:Content/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* Row layout for tiles */ | |||
.tile-row { | .tile-row { | ||
display: flex; | display: flex; | ||
Line 8: | Line 9: | ||
} | } | ||
/* Each tile | /* Each tile (wrapped in a wiki link) */ | ||
.tile | .tile { | ||
background: #fdfaf3; | background: #fdfaf3; | ||
border: 1px solid #c8b68e; | border: 1px solid #c8b68e; | ||
Line 21: | Line 22: | ||
align-items: center; | align-items: center; | ||
text-align: center; | text-align: center; | ||
text-decoration: none; | |||
color: #222; | |||
transition: transform 0.2s, box-shadow 0.2s; | transition: transform 0.2s, box-shadow 0.2s; | ||
} | } | ||
.tile | .tile:hover { | ||
transform: scale(1.03); | transform: scale(1.03); | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
} | } | ||
/* Image | /* Image inside tile */ | ||
.tile img { | |||
.tile | |||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
object-fit: contain; | object-fit: contain; | ||
display: block; | display: block; | ||
margin-bottom: 0.8em; | |||
} | } | ||
/* | /* Text inside tile */ | ||
.tile | .tile span { | ||
font-size: 1.05em; | font-size: 1.05em; | ||
font-weight: 600; | font-weight: 600; | ||
color: #222; | color: #222; | ||
line-height: 1.4; | |||
} | } | ||
/* | /* Reset default link styling */ | ||
.tile | .tile a, | ||
.tile span a { | |||
background: none; | |||
border: none; | |||
padding: 0; | |||
margin: 0; | |||
text-decoration: none; | |||
color: #222; | color: #222; | ||
} | } | ||
.tile | .tile a:hover, | ||
.tile span a:hover { | |||
text-decoration: underline; | text-decoration: underline; | ||
color: #000; | color: #000; | ||
} | } | ||
/* Mobile */ | /* Mobile responsiveness */ | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
.tile | .tile { | ||
flex: 1 1 45%; | flex: 1 1 45%; | ||
} | } | ||
} | } |
Revision as of 05:38, 26 July 2025
/* Row layout for tiles */ .tile-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2em; margin: 2em auto; max-width: 1200px; } /* Each tile (wrapped in a wiki link) */ .tile { 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; text-decoration: none; color: #222; transition: transform 0.2s, box-shadow 0.2s; } .tile:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Image inside tile */ .tile img { max-width: 100%; height: auto; object-fit: contain; display: block; margin-bottom: 0.8em; } /* Text inside tile */ .tile span { font-size: 1.05em; font-weight: 600; color: #222; line-height: 1.4; } /* Reset default link styling */ .tile a, .tile span a { background: none; border: none; padding: 0; margin: 0; text-decoration: none; color: #222; } .tile a:hover, .tile span a:hover { text-decoration: underline; color: #000; } /* Mobile responsiveness */ @media (max-width: 800px) { .tile { flex: 1 1 45%; } }