summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorZhangyuan Nie <yuan@znie.org>2020-10-20 01:08:43 -0400
committerGitHub <noreply@github.com>2020-10-20 10:38:43 +0530
commitea9aa385734acce8aedabd70d83ff30c47fa945d (patch)
tree704806bb1754cfb24897a706f9a345195e0f2dbc /assets/css
parentc0ba1ce20dfe9823fff3a4b86e0b04fe8ebb0287 (diff)
header: disable user-select for theme-toggle (#52)
* fix: clicking twice on theme switch selects other text on the nav-bar.
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/header.css3
1 files changed, 2 insertions, 1 deletions
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{