From 4b4e3a8928ce14bf002a0f13deecbf49e079b528 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 3 Mar 2022 17:21:59 +0200 Subject: [PATCH] Improve hover highlight UI effects for cards in dark mode In light mode a change in elevation changes the drop shadow, but this is all but invisible in dark mode, so I added a highlight to the cards when hovering to show that the card can be expanded with a click --- app/imports/ui/components/CardHighlight.vue | 43 +++++++++++++++++++ app/imports/ui/components/ToolbarCard.vue | 21 ++++++--- .../characterSheetTabs/CharacterTab.vue | 26 +++++++++-- .../characterSheetTabs/InventoryTab.vue | 8 +--- .../character/characterSheetTabs/StatsTab.vue | 4 +- .../components/actions/ActionCard.vue | 3 ++ .../components/attributes/AttributeCard.vue | 6 +++ .../components/attributes/ResourceCard.vue | 6 +++ .../components/persona/NoteCard.vue | 18 ++++++++ 9 files changed, 119 insertions(+), 16 deletions(-) create mode 100644 app/imports/ui/components/CardHighlight.vue diff --git a/app/imports/ui/components/CardHighlight.vue b/app/imports/ui/components/CardHighlight.vue new file mode 100644 index 00000000..42a25fcc --- /dev/null +++ b/app/imports/ui/components/CardHighlight.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/app/imports/ui/components/ToolbarCard.vue b/app/imports/ui/components/ToolbarCard.vue index aa92e2c0..099a674a 100644 --- a/app/imports/ui/components/ToolbarCard.vue +++ b/app/imports/ui/components/ToolbarCard.vue @@ -2,15 +2,17 @@ +