From cc341a088e27fa209d7b7fb7be280227f081d012 Mon Sep 17 00:00:00 2001 From: AguzzTN54 Date: Sun, 12 Feb 2023 23:59:31 +0700 Subject: [PATCH] Update Stylesheet --- .../gachainfo/history/_filter.svelte | 30 ++++++++++++++++--- .../gachainfo/history/_select-banner.svelte | 17 ++++++++++- .../components/inventory/MainInventory.svelte | 18 ++++++++++- src/lib/components/menu/_options.svelte | 22 ++++++++++++-- 4 files changed, 79 insertions(+), 8 deletions(-) diff --git a/src/lib/components/gachainfo/history/_filter.svelte b/src/lib/components/gachainfo/history/_filter.svelte index 7289c8bd..6cd0dc79 100644 --- a/src/lib/components/gachainfo/history/_filter.svelte +++ b/src/lib/components/gachainfo/history/_filter.svelte @@ -25,14 +25,16 @@ {#if showTableFilterOption}
- filter('All')}>{$t('history.filterAll')} - filter(5)}> + filter('All')} class:active={isNaN(filterBy)}> + {$t('history.filterAll')} + + filter(5)} class:active={filterBy === 5}> {$t('history.filter', { values: { rarity: 5 } })} - filter(4)}> + filter(4)} class:active={filterBy === 4}> {$t('history.filter', { values: { rarity: 4 } })} - filter(3)}> + filter(3)} class:active={filterBy === 3}> {$t('history.filter', { values: { rarity: 3 } })}
@@ -93,8 +95,28 @@ .v2 .options span { border: 0; padding: calc(0.015 * var(--content-width)) calc(0.02 * var(--content-width)); + position: relative; + margin: 1%; } .v2 .options span:hover { background-color: #717887; } + + .v2 .options span.active, + .v2 .options span:hover { + background-color: #717887; + border-radius: 3rem; + } + + .v2 .options span.active::after { + content: '✔'; + color: #eee; + position: absolute; + display: block; + top: 50%; + right: 10%; + font-size: 170%; + line-height: 0; + transform: translateY(-50%); + } diff --git a/src/lib/components/gachainfo/history/_select-banner.svelte b/src/lib/components/gachainfo/history/_select-banner.svelte index 94382d5b..d839db59 100644 --- a/src/lib/components/gachainfo/history/_select-banner.svelte +++ b/src/lib/components/gachainfo/history/_select-banner.svelte @@ -174,13 +174,28 @@ overflow: hidden; } .v2 .item { - color: #fff; + color: #eee; padding: calc(0.02 * var(--content-width)) calc(0.03 * var(--content-width)); + position: relative; + margin: 0.5% 1%; } .v2 .item.active, .v2 .item:hover { background-color: #717887; + border-radius: 3rem; + } + + .v2 .item.active::after { + content: '✔'; + color: #eee; + position: absolute; + display: block; + top: 50%; + right: 5%; + font-size: 170%; + line-height: 0; + transform: translateY(-50%); } .selectType.v2 .reset { diff --git a/src/lib/components/inventory/MainInventory.svelte b/src/lib/components/inventory/MainInventory.svelte index a0b57edd..525ca097 100644 --- a/src/lib/components/inventory/MainInventory.svelte +++ b/src/lib/components/inventory/MainInventory.svelte @@ -635,20 +635,36 @@ background-color: #565a64; transform: translateY(-100%); border-radius: 1rem; - padding: 0.2rem 0; + padding: 1% 1.5%; z-index: +10; overflow: hidden; } .order-list a { + position: relative; padding: 0.85rem 1rem; + margin: 0.5% 0; text-decoration: none; color: #eee; transition: all 0.2s; } + .order-list a.selected, .order-list a:hover { background-color: #717887; + border-radius: 2rem; + } + + .order-list a.selected::after { + content: '✔'; + color: #eee; + position: absolute; + display: block; + top: 50%; + right: 8%; + font-size: 170%; + line-height: 0; + transform: translateY(-50%); } .showAll { diff --git a/src/lib/components/menu/_options.svelte b/src/lib/components/menu/_options.svelte index cac6a36e..43a98b6c 100644 --- a/src/lib/components/menu/_options.svelte +++ b/src/lib/components/menu/_options.svelte @@ -215,7 +215,7 @@ .option-select button, .option-select { - font-size: 0.8rem !important; + font-size: 0.7rem !important; } .select { @@ -229,17 +229,35 @@ z-index: +1; border-radius: 1rem; overflow-y: auto; + padding: 1% 2%; } + .select button { display: block; width: 100%; padding: 6%; color: #eee; + margin: 1% 0; + transition: all 0.2s; + position: relative; } .select button:hover, .select button.selected { background-color: #717887; + border-radius: 2rem; + } + + .select button.selected::after { + content: '✔'; + color: #eee; + position: absolute; + display: block; + top: 50%; + right: 8%; + font-size: 170%; + line-height: 0; + transform: translateY(-50%); } .locale { @@ -250,7 +268,7 @@ justify-content: center; align-items: center; line-height: 0%; - padding: 8%; + padding: 6% 8%; } .flag {