From ea9aa385734acce8aedabd70d83ff30c47fa945d Mon Sep 17 00:00:00 2001 From: Zhangyuan Nie Date: Tue, 20 Oct 2020 01:08:43 -0400 Subject: [PATCH] header: disable user-select for theme-toggle (#52) * fix: clicking twice on theme switch selects other text on the nav-bar. --- assets/css/header.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/css/header.css b/assets/css/header.css index ef68ef4..72b5f6a 100644 --- a/assets/css/header.css +++ b/assets/css/header.css @@ -34,9 +34,10 @@ margin-inline-end: 8px; } -.theme-toggle svg{ +.theme-toggle svg { height: 18px; margin: 0 10px; + user-select: none; } body.dark #moon{