From d3b047cab25ae175dd63fff8799daf602b4adc7c Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Thu, 25 Dec 2025 15:43:02 -0500 Subject: [PATCH] Fix flashing on initial load --- style.css | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/style.css b/style.css index 7bef2ad..b51f3e5 100644 --- a/style.css +++ b/style.css @@ -286,19 +286,15 @@ body.toc-collapsed .toc-toggle::before { margin-left: 0; transform: translateX(-100%); transition: transform 0.3s ease, opacity 0.3s ease; + animation: none; } - .toc:not(.collapsed) { + body.toc-open .toc { transform: translateX(0); opacity: 1; pointer-events: auto; } - .toc.collapsed { - opacity: 0; - pointer-events: none; - } - .toc-toggle { top: 50%; bottom: auto;