Card.svelte: placeholder image also blurred if JS disabled
This commit is contained in:
parent
61488a8ce9
commit
1222fe7487
@ -51,10 +51,9 @@ onMount(() => {
|
|||||||
}
|
}
|
||||||
.blur{
|
.blur{
|
||||||
filter: blur(10px);
|
filter: blur(10px);
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
}
|
}
|
||||||
.unblur{
|
.backdrop_blur{
|
||||||
filter: blur(0px) !important;
|
backdrop-filter: blur(10px);
|
||||||
}
|
}
|
||||||
.div_image,
|
.div_image,
|
||||||
.div_div_image{
|
.div_div_image{
|
||||||
@ -175,9 +174,9 @@ onMount(() => {
|
|||||||
<div class=div_div_image >
|
<div class=div_div_image >
|
||||||
<div class=div_image style="background-image:url({'https://bocken.org/static/rezepte/placeholder/' + recipe.short_name + '.webp'})">
|
<div class=div_image style="background-image:url({'https://bocken.org/static/rezepte/placeholder/' + recipe.short_name + '.webp'})">
|
||||||
<noscript>
|
<noscript>
|
||||||
<img id=image src={'https://bocken.org/static/rezepte/thumb/' + recipe.short_name + '.webp'} loading=lazy alt="{recipe.alt}"/>
|
<img id=image class="backdrop_blur" src={'https://bocken.org/static/rezepte/thumb/' + recipe.short_name + '.webp'} loading=lazy alt="{recipe.alt}"/>
|
||||||
</noscript>
|
</noscript>
|
||||||
<img class:blur={!isloaded} id=image class=blur src={'https://bocken.org/static/rezepte/thumb/' + recipe.short_name + '.webp'} loading=lazy alt="{recipe.alt}" on:load={() => isloaded=true}/>
|
<img class:blur={!isloaded} id=image class="backdrop_blur" src={'https://bocken.org/static/rezepte/thumb/' + recipe.short_name + '.webp'} loading=lazy alt="{recipe.alt}" on:load={() => isloaded=true}/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{#if icon_override || recipe.season.includes(current_month)}
|
{#if icon_override || recipe.season.includes(current_month)}
|
||||||
|
Loading…
Reference in New Issue
Block a user