From dfe6ecc55086567751dc31726d129b393614a6a6 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Thu, 28 Jul 2022 02:44:46 +0200 Subject: [PATCH] few CSS tweaks --- assets/css/common/header.css | 4 ++-- assets/css/extended/youtube.css | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/css/common/header.css b/assets/css/common/header.css index f2d78e34..0be9644c 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -98,7 +98,7 @@ body:not(.dark) #sun { #hamburger-input:checked ~ #hamburger-menu:after { content: "\00d7"; - position: absolute; + position: fixed; font-size: 28px; line-height: 0; top: 28px; @@ -112,7 +112,7 @@ body:not(.dark) #sun { display: block; width: 80%; margin: auto; - position: absolute; + position: fixed; top: 50%; left: 50%; margin-right: -50%; diff --git a/assets/css/extended/youtube.css b/assets/css/extended/youtube.css index d8dddb51..c313d073 100644 --- a/assets/css/extended/youtube.css +++ b/assets/css/extended/youtube.css @@ -1,6 +1,7 @@ .youtube-embed-div { position: relative; padding-bottom: 56.25%; + margin-bottom: 20px; height: 0; overflow: hidden; } @@ -12,4 +13,4 @@ width: 100%; height: 100%; border: 0; -} \ No newline at end of file +} \ No newline at end of file