From c91166d548b77b3a1743b7596b603e054e13eb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 1 Aug 2022 20:58:59 +0200 Subject: [PATCH] Use Svelte shorthand for CSS variables declaration --- src/components/SplitText.svelte | 4 ++-- src/components/atoms/ScrollingTitle.svelte | 2 +- src/components/molecules/Location.svelte | 4 +++- src/components/organisms/Carousel.svelte | 3 ++- src/routes/[country]/[location]/index.svelte | 2 +- src/routes/photos.svelte | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/SplitText.svelte b/src/components/SplitText.svelte index 1217de2..3d7734b 100644 --- a/src/components/SplitText.svelte +++ b/src/components/SplitText.svelte @@ -16,7 +16,7 @@ {#each Array(2) as _, index} {#each split as word, i} - {word}{#if word.includes('\n')}
{/if} + {word}{#if word.includes('\n')}
{/if} {#if i < split.length - 1}{/if} {/each} @@ -36,7 +36,7 @@ {:else} {#each split as char, i} - {char} + {char} {/each} {/if} \ No newline at end of file diff --git a/src/components/atoms/ScrollingTitle.svelte b/src/components/atoms/ScrollingTitle.svelte index 30f0b86..ce1044b 100644 --- a/src/components/atoms/ScrollingTitle.svelte +++ b/src/components/atoms/ScrollingTitle.svelte @@ -67,7 +67,7 @@ diff --git a/src/components/molecules/Location.svelte b/src/components/molecules/Location.svelte index 1704b82..ab6a8c0 100644 --- a/src/components/molecules/Location.svelte +++ b/src/components/molecules/Location.svelte @@ -61,7 +61,9 @@ {#if hasIllustration} - + -
+
{#if photos}