From 30411b1502665a3648169c1f4efb3cabc28f2140 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 19 Mar 2022 09:56:50 +0100 Subject: [PATCH] Feature/add hover to table (#760) * Add hover * Update changelog --- CHANGELOG.md | 4 ++++ apps/client/src/styles/table.scss | 18 ++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46f78f8ec..803f39c44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added a hover effect to the table style + ### Fixed - Fixed an issue with the user currency of the public page diff --git a/apps/client/src/styles/table.scss b/apps/client/src/styles/table.scss index 49fcd6df0..8131c3dad 100644 --- a/apps/client/src/styles/table.scss +++ b/apps/client/src/styles/table.scss @@ -11,20 +11,22 @@ .mat-row { &:nth-child(even) { - background-color: rgba( - var(--palette-foreground-base), - var(--palette-background-hover-alpha) - ); + background-color: rgba(var(--palette-foreground-base), 0.02); + } + + &:hover { + background-color: rgba(var(--palette-foreground-base), 0.05); } } @if $darkTheme { .mat-row { &:nth-child(even) { - background-color: rgba( - var(--palette-foreground-base-dark), - var(--palette-background-hover-alpha) - ); + background-color: rgba(var(--palette-foreground-base-dark), 0.02); + } + + &:hover { + background-color: rgba(var(--palette-foreground-base-dark), 0.05); } } }