diff --git a/src/app.css b/src/app.css index b5c61c9..3a694cb 100644 --- a/src/app.css +++ b/src/app.css @@ -1,3 +1,10 @@ @tailwind base; @tailwind components; @tailwind utilities; + +/* This class allows to manually simulate the "hover" class */ +.btn-hover { + --tw-brightness: brightness(1.15); + filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) + var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); +} diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index 7faf5d6..925041d 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -1,22 +1,44 @@ {#if href} - + {@render children()} {:else}