From 88e454ec51b5c756e0b3b1e417832bdde4f4df2e Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:42:18 +1100 Subject: [PATCH] chore: Scope styles for `SearchableJson.svelte` (#540) --- src/lib/SearchableJson.svelte | 46 +++++++++++++++++++++++++++++++++++ src/lib/styles/globals.css | 43 -------------------------------- 2 files changed, 46 insertions(+), 43 deletions(-) diff --git a/src/lib/SearchableJson.svelte b/src/lib/SearchableJson.svelte index b705434b6..58a45ff5e 100644 --- a/src/lib/SearchableJson.svelte +++ b/src/lib/SearchableJson.svelte @@ -91,3 +91,49 @@ {/each} + + diff --git a/src/lib/styles/globals.css b/src/lib/styles/globals.css index 81820ed14..f43167b1e 100644 --- a/src/lib/styles/globals.css +++ b/src/lib/styles/globals.css @@ -112,37 +112,6 @@ hr { top: calc(100% + 1rem); left: 0; } -.controls { - display: grid; - justify-content: stretch; - align-items: center; - gap: var(--s-4); - font-family: Overpass; - position: relative; -} -.inputs { - display: grid; - gap: var(--s-2); -} -.searchbar { - padding: 20.5px var(--s-2); - border: 2px solid var(--dark-gray); - border-radius: 2px; - align-self: flex-end; - grid-row: 1/2; - font-family: Overpass; - background: #f3f6f9 url(/images/search-icon.svg) 98% no-repeat; - margin: 0; -} -.searchbar:focus { - outline: none; - border: 1px solid var(--secondary); -} -.searchbar-count { - position: absolute; - top: calc(100% + 1rem); - right: 0; -} ul.popin { padding: 0.5ex; margin: 0; @@ -190,15 +159,3 @@ ul.popin li input { flex: 0; margin: 0 1ex 0 0; } - -@media (min-width: 1280px) { - .controls { - grid-template-columns: 2fr 1fr; - } - .searchbar { - grid-row: auto; - } - .inputs { - grid-template-columns: repeat(4, auto); - } -}