Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable text selection on clock and help
  • Loading branch information
ozencb committed Jul 8, 2020
1 parent e732b3e commit 90d9db3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions css/style.css
Expand Up @@ -408,6 +408,15 @@ body.form .search-form {
visibility: visible;
}

.disable-select {
user-select: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}


@media (min-width: 500px) {
.help {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -10,14 +10,14 @@
</head>

<body>
<div class="center"><time class="clock" id="clock"></time></div>
<div class="center disable-select"><time class="clock" id="clock"></time></div>
<form autocomplete="off" class="center overlay search-form" id="search-form" spellcheck="false">
<div>
<input class="search-input" id="search-input" title="search" type="text" />
<ul class="search-suggestions" id="search-suggestions"></ul>
</div>
</form>
<aside class="center help overlay" id="help"></aside>
<aside class="center help overlay disable-select" id="help"></aside>

<script src="js/svg-inject.min.js"></script>
<script src="js/script.js"></script>
Expand Down

0 comments on commit 90d9db3

Please sign in to comment.