Skip to content

Commit

Permalink
Fixed accidental text selection
Browse files Browse the repository at this point in the history
  • Loading branch information
agmm committed Aug 13, 2019
1 parent 1169c17 commit 19fc94c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions assets/scss/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@
.theme-toggler {
fill: currentColor;
}

.unselectable {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</span>
{{ end }}

<span class="theme-toggle">{{ partial "theme-icon.html" . }}</span>
<span class="theme-toggle unselectable">{{ partial "theme-icon.html" . }}</span>
</span>
</span>
</header>

0 comments on commit 19fc94c

Please sign in to comment.