Load image source on scroll

Set time tags to local time
This commit is contained in:
Michał Gdula 2023-01-26 16:55:42 +00:00
parent 792cbd1884
commit 651fd8aa49
6 changed files with 51 additions and 44 deletions

View file

@ -17,12 +17,11 @@
display: flex
flex-direction: column
gap: 0.3rem
z-index: 621
.sniffle__notification
margin: 0
margin: 0 0 0.3rem 0
padding: 0
width: 450px
@ -95,25 +94,17 @@
animation: notificationTimeout 5.1s linear
.sniffle__notification--success
@include notification($succes)
.sniffle__notification--error
@include notification($critical)
.sniffle__notification--warning
@include notification($warning)
.sniffle__notification--info
@include notification($info)
@each $name, $colour in (success: $succes, error: $critical, warning: $warning, info: $info)
.sniffle__notification--#{$name}
@include notification($colour)
.sniffle__notification-show
opacity: 1
transform: scale(1)
.sniffle__notification--hide
margin-bottom: -0.3rem // compensate for gap
max-height: 0 // prevent divs from jumping when removed
margin: 0
max-height: 0
opacity: 0
transform: translateX(100%)