Skip to content

Commit

Permalink
Remove hover effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Jul 31, 2024
1 parent a3b4aba commit b487465
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
14 changes: 7 additions & 7 deletions website/pastebook/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion website/pastebook/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
text-align: center;
&:hover {
margin: 0 13px;
cursor: default;
}
Expand Down
6 changes: 5 additions & 1 deletion website/pastebook/src/routes/pastes/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
isShifting = true
let hoveredElement = document.elementFromPoint(x, y).parentElement.parentElement
if (hoveredElement === null) return
if (hoveredElement.id === "hoverable") {
handler()
Expand All @@ -116,7 +117,9 @@
}
let idElement = document.getElementById("hash")
idElement.style.opacity = 1
if (idElement === null) return
idElement.style.opacity = "1"
if (window.innerWidth < 600) {
idElement.style.height = "7px"
Expand All @@ -127,6 +130,7 @@
function undoHandler() {
let idElement = document.getElementById("hash")
if (idElement === null) return
idElement.style.opacity = 0
idElement.style.height = "0"
Expand Down

0 comments on commit b487465

Please sign in to comment.