From 54b7277fb24da12e7c80be75cea660dd1aa34a46 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 30 Mar 2025 06:32:43 -0300 Subject: css: conclude collapse anim w/ height: auto Permit the browser to take over height. This should always be the same value as we animated to, but avoids unpredicted cases just cutting off part of the heading completely. This has an impact on changing the font size (but not pixel size) while the sticky heading is collapsed, for example. --- src/static/css/site.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/static/css/site.css b/src/static/css/site.css index 6aa31c1e..02bd3982 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -3015,9 +3015,13 @@ main.long-content .content-sticky-heading-container .content-sticky-subheading-r height: var(--uncollapsed-heading-height); } - to { + 99.9% { height: var(--collapsed-heading-height); } + + to { + height: auto; + } } .content-sticky-heading-container h1 a { -- cgit 1.3.0-6-gf8a5