fix: optimize CHRNX editorial media

This commit is contained in:
chrnx committed 2026-08-12 15:52:53 -05:00
1 parent 55e21bca81
commit c5720b21ca
14 files changed
+252 -46

No files matched your search

+47 -11
View File
@@ -546,17 +546,30 @@ footer a {
color: #e6edf3;
}
.chrnx-home-music .wp-block-columns::before {
.chrnx-home-music__collage-layer {
position: absolute;
z-index: 0;
inset: 0;
background-image:
linear-gradient(90deg, rgb(13 17 23 / 62%), rgb(13 17 23 / 8%)),
url(../images/the-no-names-collage.jpeg);
background-position: center, 72% 42%;
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
pointer-events: none;
}
.chrnx-home-music__collage-layer::after {
position: absolute;
inset: 0;
background: linear-gradient(90deg, rgb(13 17 23 / 62%), rgb(13 17 23 / 8%));
content: "";
}
.chrnx-home-music__collage-layer .chrnx-responsive-portrait,
.chrnx-home-music__collage {
width: 100%;
height: 100%;
}
.chrnx-home-music__collage {
object-fit: cover;
object-position: 72% 42%;
filter: saturate(0.72) contrast(1.08);
opacity: 0.72;
}
@@ -583,6 +596,11 @@ html[data-theme="light"] .chrnx-home-music p {
}
.chrnx-home-music .wp-block-column:first-child {
z-index: 2;
}
.chrnx-home-music .wp-block-column:first-child > h2,
.chrnx-home-music .wp-block-column:first-child > p {
position: relative;
z-index: 2;
}
@@ -593,7 +611,7 @@ html[data-theme="light"] .chrnx-home-music p {
align-self: end;
}
.chrnx-home-music .chrnx-responsive-portrait {
.chrnx-home-music .wp-block-column:last-child .chrnx-responsive-portrait {
width: min(100%, 29rem);
margin: auto auto 0;
filter: drop-shadow(0 1.5rem 2rem rgb(0 0 0 / 42%));
@@ -632,6 +650,24 @@ html[data-theme="light"] .chrnx-home-music p {
padding: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 781px) {
.chrnx-podcast-card__link {
display: grid;
grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
align-items: stretch;
padding: clamp(1.25rem, 2.5vw, 2rem);
}
.chrnx-podcast-card__image,
.chrnx-podcast-card__fallback {
height: 100%;
min-height: 15rem;
max-height: 19rem;
aspect-ratio: auto;
}
}
.chrnx-home-about-preview,
.chrnx-subscribe-cta {
display: grid;
@@ -974,12 +1010,12 @@ html[data-theme="light"] .chrnx-home-music p {
padding-block: 0;
}
.chrnx-home-music .wp-block-columns::before {
background-position: center, 60% center;
.chrnx-home-music__collage {
object-position: 60% center;
opacity: 0.56;
}
.chrnx-home-music .chrnx-responsive-portrait {
.chrnx-home-music .wp-block-column:last-child .chrnx-responsive-portrait {
width: min(82%, 20rem);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

@@ -0,0 +1,5 @@
{
"source": "the-no-names-collage.jpeg",
"formats": [ "avif", "webp" ],
"widths": [ 384, 768 ]
}