From f0f8137fd67f6da26573ed93557a4972544df018 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Wed, 27 Jul 2022 22:12:40 -0700 Subject: [PATCH] Fixing advanced search mobile screen width and global reset css changes. --- .../search/advancedSearch/index.svelte | 4 ++++ src/routes/index.svelte | 22 ------------------- src/styles/global.scss | 18 ++++++++++++++- src/styles/reset.scss | 6 ++--- 4 files changed, 24 insertions(+), 26 deletions(-) diff --git a/src/lib/components/search/advancedSearch/index.svelte b/src/lib/components/search/advancedSearch/index.svelte index 075307c..b973fc8 100644 --- a/src/lib/components/search/advancedSearch/index.svelte +++ b/src/lib/components/search/advancedSearch/index.svelte @@ -90,6 +90,10 @@ fieldset { display: grid; grid-template-columns: repeat(3, 1fr); + + @media (max-width: 800px) { + grid-template-columns: 1fr; + } } label { diff --git a/src/routes/index.svelte b/src/routes/index.svelte index dffa9f3..9775422 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,21 +1,11 @@ @@ -33,18 +23,6 @@ - -

Games

{#each $gameStore as game} diff --git a/src/styles/global.scss b/src/styles/global.scss index e3ba086..cdf62da 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -140,6 +140,21 @@ */ } +html { + width: 100%; + // background-color: var(--seaFoamBlue); + font-size: 62.5%; + box-sizing: border-box; +} + +body { + // line-height: var(--lineHeight); + color: var(--primary); + padding: 0; + margin: 0; + font-size: var(--bodyTextSize); +} + html { font-size: 62.5%; box-sizing: border-box; @@ -211,6 +226,7 @@ input { border-radius: var(--radius-base); background-color: var(--clr-input-bg); border: solid 2px var(--clr-theme-active); + &:focus { outline: 0; border-color: var(--clr-primary); @@ -255,4 +271,4 @@ ol { padding: var(--spacing-20) 0; background-color: var(--color-placeholder); border-radius: var(--radius-base); -} +} \ No newline at end of file diff --git a/src/styles/reset.scss b/src/styles/reset.scss index ae50e29..02bf499 100644 --- a/src/styles/reset.scss +++ b/src/styles/reset.scss @@ -1,6 +1,6 @@ *, -*::before, -*::after { +*:before, +*:after { margin: 0; padding: 0; box-sizing: border-box; @@ -55,4 +55,4 @@ button { ul, ol { list-style: none; -} +} \ No newline at end of file