header: disable user-select for theme-toggle (#52)

* fix: clicking twice on theme switch selects other text on the nav-bar.
This commit is contained in:
Zhangyuan Nie 2020-10-20 01:08:43 -04:00 committed by GitHub
parent c0ba1ce20d
commit ea9aa38573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,9 +34,10 @@
margin-inline-end: 8px; margin-inline-end: 8px;
} }
.theme-toggle svg{ .theme-toggle svg {
height: 18px; height: 18px;
margin: 0 10px; margin: 0 10px;
user-select: none;
} }
body.dark #moon{ body.dark #moon{