From f1af0806f1b8710d26fcceddbb27f38dcdc2ed57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 17 Feb 2020 22:39:40 +0100 Subject: [PATCH] WIP for the locations list Needs some fixes for the appearing items --- src/molecules/Location.svelte | 2 +- src/organisms/Locations.svelte | 118 +++++++++++----------------- src/style/organisms/_locations.scss | 3 +- 3 files changed, 49 insertions(+), 74 deletions(-) diff --git a/src/molecules/Location.svelte b/src/molecules/Location.svelte index a51a70c..87f2aca 100644 --- a/src/molecules/Location.svelte +++ b/src/molecules/Location.svelte @@ -6,7 +6,7 @@ const src = country.flag.full_url -
+
{'Flag

{name}

diff --git a/src/organisms/Locations.svelte b/src/organisms/Locations.svelte index 483ebdb..197f63e 100644 --- a/src/organisms/Locations.svelte +++ b/src/organisms/Locations.svelte @@ -1,11 +1,9 @@ - - @@ -56,57 +55,32 @@
    - {#if continentsToShow.length > 1} + {#if continentsToDisplay.length > 1}
  • toggleContinents(e)}> -
  • {/if} - {#each continentsToShow as continent} -
  • toggleContinents(e, continent.id)}> -
  • {/each}
- {#each $locations as location} - - {/each} -
-
- - + - {/each} - --> + + diff --git a/src/style/organisms/_locations.scss b/src/style/organisms/_locations.scss index d29c449..88a8728 100644 --- a/src/style/organisms/_locations.scss +++ b/src/style/organisms/_locations.scss @@ -40,7 +40,8 @@ margin-top: 112px; @include breakpoint (sm) { - display: grid; + display: flex; + // display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-column-gap: 120px; grid-row-gap: pxVW(120);