diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte index fd99990..6b54a42 100644 --- a/src/lib/components/Card.svelte +++ b/src/lib/components/Card.svelte @@ -66,6 +66,28 @@ div:has(div #image){ width: var(--card-width); top: 0; } +@supports(-moz-appearance:none){ + #image{ + } + #image, #div_image{ + border-top-left-radius: 20px; + border-top-right-radius: 20px; + height: 100%; + } + #div_image{ + background-repeat: no-repeat; + background-size: cover; + + } + #div_div_image{ + height: calc(var(--card-width)*0.85); + position: absolute; + width: var(--card-width); + top: 0; + } +} + + .card:hover, .card:focus-within{ transform: scale(1.02,1.02); @@ -164,8 +186,8 @@ div:has(div #image){ -
-
+
+
{recipe.alt} isloaded=true}/>