Improved image lazy loader
This commit is contained in:
@ -32,6 +32,7 @@ mixin grid-image
|
||||
height 100%
|
||||
border-radius 3px
|
||||
object-fit cover
|
||||
default-transition
|
||||
|
||||
mixin grid-icon
|
||||
font-size 2.5rem
|
||||
|
11
styles/images.scarlet
Normal file
11
styles/images.scarlet
Normal file
@ -0,0 +1,11 @@
|
||||
.lazy
|
||||
visibility hidden
|
||||
opacity 0
|
||||
|
||||
.image-found
|
||||
visibility visible
|
||||
opacity 1 !important
|
||||
|
||||
.image-not-found
|
||||
visibility hidden
|
||||
opacity 0 !important
|
@ -4,13 +4,6 @@
|
||||
height avatar-size
|
||||
border-radius 100%
|
||||
object-fit cover
|
||||
opacity 0
|
||||
default-transition
|
||||
:hover
|
||||
box-shadow outline-shadow-heavy
|
||||
|
||||
.user-image-found
|
||||
opacity 1 !important
|
||||
|
||||
.user-image-not-found
|
||||
opacity 0 !important
|
||||
box-shadow outline-shadow-heavy
|
Reference in New Issue
Block a user