From ff83381d59bc966b296a2078ced804060112e98a Mon Sep 17 00:00:00 2001 From: ef3d0c3e Date: Sun, 1 Dec 2024 06:45:06 +0100 Subject: [PATCH] Update style --- style.css | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index 8acbc66..bbf79b2 100644 --- a/style.css +++ b/style.css @@ -6,6 +6,10 @@ body { padding: 0; } +html { + scrollbar-color: #444 #00000000; +} + .layout { display: flex; } @@ -17,6 +21,28 @@ body { width: 100%; } +/* Scrollbar */ +::-webkit-scrollbar { + width: 5px; +} +::-webkit-scrollbar:horizontal { + height: 5px; +} +/* Track */ +::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { + background: #00000000; +} +/* Handle */ +::-webkit-scrollbar-thumb { + background: #444; + border-radius: 5px; +} + +/* Handle on hover */ +::-webkit-scrollbar-thumb:hover { + background: #555; +} + /* Layouts */ div.centered { text-align: center; @@ -187,7 +213,7 @@ li.navbar-entry-current a { outline: 1px dotted #000; } -#navbar summary:after { +#navbar summary:before { content: "+"; color: #55ffb4; float: left; @@ -195,7 +221,7 @@ li.navbar-entry-current a { width: 1em; } -#navbar details[open] > summary { +#navbar details[open] > summary:before { content: "–"; } @@ -268,7 +294,7 @@ div.code-block-content { max-height: 38em; margin-bottom: 0.2em; - overflow: scroll; + overflow: auto; background-color: #0f141a; }