Blog: scale images on blog listing page

This commit is contained in:
Akemi Izuko 2023-12-29 14:48:52 -07:00
parent 992462c0a0
commit 5065e8c6e9
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -32,46 +32,11 @@ const posts = (await getCollection('blog')).sort(
ul li { ul li {
width: calc(50% - 1rem); width: calc(50% - 1rem);
} }
/* img {
ul li * { height: 232px;
text-decoration: none; width: 464px;
transition: 0.2s ease; object-fit: contain;
} }
ul li:first-child {
width: 100%;
margin-bottom: 1rem;
text-align: center;
}
ul li:first-child img {
width: 100%;
}
ul li:first-child .title {
font-size: 2.369rem;
}
ul li img {
margin-bottom: 0.5rem;
border-radius: 12px;
}
ul li a {
display: block;
}
.title {
margin: 0;
color: rgb(var(--black));
line-height: 1;
}
.date {
margin: 0;
color: rgb(var(--gray));
}
ul li a:hover h4,
ul li a:hover .date {
color: rgb(var(--accent));
}
ul a:hover img {
box-shadow: var(--box-shadow);
}
*/
@media (max-width: 720px) { @media (max-width: 720px) {
ul { ul {
gap: 0.5em; gap: 0.5em;