From a77b96b17138f9ad85ea8c1ada3b249a33f1ecf7 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 19 Feb 2023 01:23:31 +0800 Subject: [PATCH] Pushing the limits of CSS coding --- src/app.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.css b/src/app.css index 0ee21b03..f16e8b31 100644 --- a/src/app.css +++ b/src/app.css @@ -618,10 +618,14 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) { font-size: calc(100% + 25% * max(2 - var(--content-text-weight), 0)); } .status-carousel - .content-container[style*='content-text-weight:1'] + .content-container:is( + [style*='content-text-weight:1'], + [style*='content-text-weight: 1'] + ) .media-container.media-eq1 { /* LOL, this is madness, reading a value from the style attribute */ height: auto; + max-height: max(160px, 50vh); } .status-carousel.boosts-carousel { --carousel-color: var(--reblog-color);