diff --git a/frontend/public/global.css b/frontend/public/global.css index eb3570a..bf4849d 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -137,13 +137,13 @@ body { } .modal-header { - margin-bottom: var(--space-norm); + margin-bottom: var(--space-md); text-align: center; } .modal-footer { margin-top: auto; - padding-top: var(--space-norm); + padding-top: var(--space-lg); } .modal-primary-action { diff --git a/frontend/src/animations.js b/frontend/src/animations.js index d97be8d..a282c38 100644 --- a/frontend/src/animations.js +++ b/frontend/src/animations.js @@ -1,6 +1,15 @@ import { fade, fly } from "svelte/transition"; +import { cubicInOut } from "svelte/easing"; import { getItem } from "./storage"; +export function maybeModalFade(node) { + return maybeFade(node, { duration: 160, easing: cubicInOut }); +} + +export function maybeModalFly(node) { + return maybeFly(node, { duration: 210, easing: cubicInOut, y: 15 }); +} + export function maybeFly(...e) { if (getItem("ui:doAnimations")) return fly(...e); diff --git a/frontend/src/components/overlays/CreateAccount.svelte b/frontend/src/components/overlays/CreateAccount.svelte index 67152a7..065b7c9 100644 --- a/frontend/src/components/overlays/CreateAccount.svelte +++ b/frontend/src/components/overlays/CreateAccount.svelte @@ -1,9 +1,8 @@