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:
parent
eb0633e082
commit
0c0a3cf7a8
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user