From 29c2e6401e138605431321d833fbfafa58a98fd2 Mon Sep 17 00:00:00 2001 From: Anssi Juvonen Date: Wed, 11 Sep 2024 13:55:58 +0300 Subject: [PATCH] Unify label styles --- src/assets/main.scss | 4 ++++ src/components/AchievementBadge.vue | 2 +- src/components/AchievementList.vue | 2 +- src/components/AllTimeStatus.vue | 2 +- src/components/CategoryStatus.vue | 2 +- src/components/LocaleChanger.vue | 4 ++-- src/components/QAComponent.vue | 2 +- .../__tests__/__snapshots__/SettingsView.spec.ts.snap | 8 ++++---- src/views/SettingsView.vue | 2 +- src/views/StatsView.vue | 4 ++-- 10 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/assets/main.scss b/src/assets/main.scss index 2e12d79..e5d72a0 100644 --- a/src/assets/main.scss +++ b/src/assets/main.scss @@ -11,6 +11,10 @@ @apply text-nowrap px-4 py-2 text-sm uppercase rounded-md select-none; } + .label-like { + @apply text-xs uppercase; + } + .dropdown-list-container { @apply absolute mt-2 w-full overflow-x-hidden rounded-md shadow-lg ring-2; @apply bg-slate-50 ring-black/5; diff --git a/src/components/AchievementBadge.vue b/src/components/AchievementBadge.vue index fc3e6a0..0d81284 100644 --- a/src/components/AchievementBadge.vue +++ b/src/components/AchievementBadge.vue @@ -167,7 +167,7 @@ const achievementProps: AchievementProps = { } .badge__text { - @apply absolute bottom-[3cqmin] min-w-full text-nowrap rounded-md text-center text-xs uppercase; + @apply absolute bottom-[3cqmin] min-w-full text-nowrap rounded-md text-center label-like; @apply bg-slate-700 text-slate-50; } diff --git a/src/components/AchievementList.vue b/src/components/AchievementList.vue index a845a25..ad3ffe4 100644 --- a/src/components/AchievementList.vue +++ b/src/components/AchievementList.vue @@ -114,6 +114,6 @@ const {achievements} = storeToRefs(useAppStateStore()); } .achievement-list__label { - @apply text-xs uppercase mb-2; + @apply label-like mb-2; } diff --git a/src/components/AllTimeStatus.vue b/src/components/AllTimeStatus.vue index 1626b19..f319cb0 100644 --- a/src/components/AllTimeStatus.vue +++ b/src/components/AllTimeStatus.vue @@ -41,7 +41,7 @@ const atMostVeggies = computed(() => diff --git a/src/components/LocaleChanger.vue b/src/components/LocaleChanger.vue index 87634d4..30a2d65 100644 --- a/src/components/LocaleChanger.vue +++ b/src/components/LocaleChanger.vue @@ -6,9 +6,9 @@ import {useAppStateStore} from '@/stores/appStateStore'; const {settings} = storeToRefs(useAppStateStore());