From 6c1fa7f54c14d09fabad0b71e8263c4b537524d7 Mon Sep 17 00:00:00 2001 From: eggy Date: Fri, 22 Jul 2022 16:53:39 -0400 Subject: [PATCH] fix: slow transitions in chrome --- components/Navbar.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/Navbar.vue b/components/Navbar.vue index 59c85ed..1f5aeb7 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -48,7 +48,9 @@ li.home-text { } * { - transition: all 0.2s ease; + --trans: 0.2s ease; + transition: opacity var(--trans), height var(--trans), width var(--trans), + padding-left var(--trans); } @media screen and (max-width: 510px) { @@ -73,4 +75,8 @@ li.home-text { gap: 0rem; } } + +html.dark svg { + fill: white; +}