From 327d4b3e88c7f44a7ec5472c361bb70cb8e75992 Mon Sep 17 00:00:00 2001 From: blueb Date: Mon, 5 Feb 2024 06:27:29 -0500 Subject: [PATCH] upd: shorten navbars to save space on mobile --- packages/frontend/src/ui/deck.vue | 16 +++++++++------- packages/frontend/src/ui/universal.vue | 14 ++++++++------ 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue index 53a05ec3d..1b95a3924 100644 --- a/packages/frontend/src/ui/deck.vue +++ b/packages/frontend/src/ui/deck.vue @@ -325,7 +325,7 @@ body { } .rootIsMobile { - padding-bottom: 100px; + padding-bottom: 58px; } .main { @@ -446,20 +446,20 @@ body { .navButton { position: relative; padding: 0; - aspect-ratio: 1; + height: 32px; width: 100%; max-width: 60px; margin: auto; - border-radius: var(--radius-full); - background: var(--panel); + border-radius: var(--radius-lg); + background: transparent; color: var(--fg); &:hover { - background: var(--panelHighlight); + color: var(--accent); } &:active { - background: var(--X2); + color: var(--accent); } } @@ -470,15 +470,17 @@ body { &:hover { background: linear-gradient(90deg, var(--X8), var(--X8)); + color: var(--fgOnAccent); } &:active { background: linear-gradient(90deg, var(--X8), var(--X8)); + color: var(--fgOnAccent); } } .navButtonIcon { - font-size: 18px; + font-size: 16px; vertical-align: middle; } diff --git a/packages/frontend/src/ui/universal.vue b/packages/frontend/src/ui/universal.vue index 8c8522e1a..ab27ea81a 100644 --- a/packages/frontend/src/ui/universal.vue +++ b/packages/frontend/src/ui/universal.vue @@ -406,20 +406,20 @@ $widgets-hide-threshold: 1090px; .navButton { position: relative; padding: 0; - aspect-ratio: 1; + height: 32px; width: 100%; max-width: 60px; margin: auto; - border-radius: var(--radius-full); - background: var(--panel); + border-radius: var(--radius-lg); + background: transparent; color: var(--fg); &:hover { - background: var(--panelHighlight); + color: var(--accent); } &:active { - background: var(--X2); + color: var(--accent); } } @@ -430,15 +430,17 @@ $widgets-hide-threshold: 1090px; &:hover { background: linear-gradient(90deg, var(--X8), var(--X8)); + color: var(--fgOnAccent); } &:active { background: linear-gradient(90deg, var(--X8), var(--X8)); + color: var(--fgOnAccent); } } .navButtonIcon { - font-size: 18px; + font-size: 16px; vertical-align: middle; }