style: compose CHRNX grunge stages

This commit is contained in:
chrnx committed 2026-08-13 08:21:55 -05:00
1 parent 54ea215895
commit 041c5f539d
5 files changed
+585 -26

No files matched your search

+45 -2
View File
@@ -3,14 +3,57 @@
padding: var(--wp--preset--spacing--40, 1.5rem);
}
.chrnx-podcast-card__link {
display: grid;
grid-template-columns: minmax(12rem, 34%) minmax(0, 1fr);
align-items: stretch;
}
.chrnx-podcast-card__content {
min-width: 0;
overflow-wrap: normal;
}
.chrnx-podcast-card__image,
.chrnx-podcast-card__fallback {
aspect-ratio: 3 / 2;
display: block;
object-fit: cover;
width: 100%;
max-width: 100%;
height: 100%;
min-height: 12rem;
max-height: 20rem;
overflow: hidden;
object-fit: cover;
}
.chrnx-podcast-card__title,
.chrnx-podcast-card__excerpt,
.chrnx-podcast-card__badge {
overflow-wrap: normal;
word-break: normal;
}
.chrnx-podcast-card__fallback {
background: linear-gradient(135deg, var(--wp--preset--color--green), var(--wp--preset--color--violet));
}
@media (max-width: 720px) {
.chrnx-podcast-card__link {
grid-template-columns: minmax(0, 1fr);
}
.chrnx-podcast-card__image,
.chrnx-podcast-card__fallback {
height: auto;
min-height: 0;
aspect-ratio: 3 / 2;
}
}
@media (min-width: 721px) {
.chrnx-podcast-card__link {
grid-template-columns: minmax(12rem, 34%) minmax(0, 1fr);
}
}