1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 08:07:30 +00:00

Apply clicked class when loading

This commit is contained in:
Cadence Ember 2020-06-28 23:35:53 +12:00
parent eb0633e082
commit 0c0a3cf7a8
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
2 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ class NextPage extends FreezeWidth {
if (entries.some(entry => entry.isIntersecting && entry.intersectionRatio >= intersectionThreshold)) { if (entries.some(entry => entry.isIntersecting && entry.intersectionRatio >= intersectionThreshold)) {
if (this.fetching) return if (this.fetching) return
this.class("disabled") this.class("disabled")
this.class("clicked")
this.fetch() this.fetch()
} }
} }

View File

@ -43,7 +43,7 @@ body
&.disabled &.disabled
cursor: default cursor: default
&:hover:not(.disabled), &:active, &:focus &:hover:not(.disabled), &:active, &:focus, &.clicked
color: map-get($theme, "foreground-power-secondary") color: map-get($theme, "foreground-power-secondary")
background-color: map-get($theme, "background-power-secondary") background-color: map-get($theme, "background-power-secondary")
border-color: map-get($theme, "background-power-tertiary") border-color: map-get($theme, "background-power-tertiary")