diff --git a/src/components/Checkbox.svelte b/src/components/Checkbox.svelte index 9b5f306..95d8518 100644 --- a/src/components/Checkbox.svelte +++ b/src/components/Checkbox.svelte @@ -158,7 +158,7 @@ } input:checked ~ .checkbox-wrapper .check-path { - animation: check-draw 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; + animation: draw-svg 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; } input:checked ~ .checkbox-wrapper .checkbox-border { @@ -187,12 +187,6 @@ scale: 0.95; } - @keyframes check-draw { - to { - stroke-dashoffset: 0; - } - } - @media (prefers-reduced-motion: reduce) { .checkbox-container *, .checkbox-container { diff --git a/src/components/ColorPicker.svelte b/src/components/ColorPicker.svelte index d208fd7..7ba25c0 100644 --- a/src/components/ColorPicker.svelte +++ b/src/components/ColorPicker.svelte @@ -97,7 +97,7 @@ transparent 60% ); transform: rotate(45deg); - animation: shine 4s infinite cubic-bezier(0.4, 0, 0.2, 1); + animation: gleam 4s infinite cubic-bezier(0.4, 0, 0.2, 1); } .glow { @@ -110,22 +110,4 @@ ); animation: pulse 3s infinite alternate; } - - @keyframes shine { - 0% { - transform: translateX(-150%) rotate(45deg); - } - 100% { - transform: translateX(150%) rotate(45deg); - } - } - - @keyframes pulse { - 0% { - opacity: 0.5; - } - 100% { - opacity: 1; - } - } diff --git a/src/components/Dialog.svelte b/src/components/Dialog.svelte index 711b79f..c33f6d0 100644 --- a/src/components/Dialog.svelte +++ b/src/components/Dialog.svelte @@ -15,7 +15,6 @@ { open = false; onClose(); }} use:appendToBody > diff --git a/src/components/MailboxFolderItems.svelte b/src/components/MailboxFolderItems.svelte index 0623203..783dd28 100644 --- a/src/components/MailboxFolderItems.svelte +++ b/src/components/MailboxFolderItems.svelte @@ -8,6 +8,7 @@ import type { Letter } from '$lib/letter'; import { slide } from 'svelte/transition'; import { FolderLabel } from '$lib/folderLabel'; + import '$lib/style/mailbox-folder-items.css'; let { letters, @@ -215,95 +216,3 @@ {@render letterGroup(sortedInbox)} {/if} - - diff --git a/src/components/Notification.svelte b/src/components/Notification.svelte index 231726e..ed49199 100644 --- a/src/components/Notification.svelte +++ b/src/components/Notification.svelte @@ -1,4 +1,6 @@