Skip to content

Commit

Permalink
revert cursor stuff hiding for petri
Browse files Browse the repository at this point in the history
  • Loading branch information
eyaler committed Apr 27, 2024
1 parent 0ed76ce commit 1f2d291
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resen/petri/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
</p>

<br>
<div class="petri" onmousemove="show_cursor(this)" oncontextmenu="toggle_fullscreen(event)"></div>
<div class="petri" oncontextmenu="toggle_fullscreen(event)"></div>

<textarea id="poem" autocomplete="off" readonly rows="15" spellcheck="false"></textarea>

Expand Down
6 changes: 5 additions & 1 deletion resen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -857,13 +857,17 @@ nav[dir=rtl] ~ :nth-last-child(1 of .refs):not([data-title]) {
}

@keyframes show_cursor {
0%, 100% {cursor: pointer}
0%, 100% {cursor: var(--cursor)}
}

.show_cursor {
animation: 3s show_cursor;
}

button.show_cursor {
--cursor: pointer;
}

[onmousemove*=show_cursor] { /* Note this will not capture element where the handler was added programmatically */
cursor: none;
}
Expand Down

0 comments on commit 1f2d291

Please sign in to comment.