From 7b1a9ea16cfa693fc3569ac8958881f2294b57b9 Mon Sep 17 00:00:00 2001 From: riqvip Date: Mon, 16 Sep 2024 17:37:48 +1000 Subject: [PATCH] Update styles.css --- styles.css | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/styles.css b/styles.css index 4e4daaa..321f504 100644 --- a/styles.css +++ b/styles.css @@ -117,15 +117,14 @@ body { padding: 20px; border-radius: 0 10px 10px 0; width: 20%; - height: 275px; - overflow-y: auto; - position: static; + max-height: auto; + overflow-y: auto; + position: sticky; top: 0; box-sizing: border-box; color: #333; } - .contents ul { list-style: none; padding: 0; @@ -139,6 +138,11 @@ body { color: #333; text-decoration: none; font-size: 1.1em; + transition: opacity 0.3s ease-in-out; +} + +.contents a:active { + opacity: 0; } .steps { @@ -158,11 +162,9 @@ body { width: 100%; box-sizing: border-box; color: #333; - min-height: auto; - max-height: none; + min-height: 15cm; } - .step-box h3 { font-size: 1.5em; } @@ -173,7 +175,7 @@ body { .guide-title { position: absolute; - top: -30px; + top: 20px; left: 50%; transform: translateX(-50%); font-size: 3em;