Skip to content

Commit

Permalink
Merge pull request #49 from agmm/master
Browse files Browse the repository at this point in the history
 Fixed accidental text selection
  • Loading branch information
Djordje Atlialp authored Sep 8, 2019
2 parents ef0df73 + 19fc94c commit b2f7b9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.vscode
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 b2f7b9e

Please sign in to comment.