From 0e97c7c80adc78c901b5ee6aba65ba142cfaa7cb Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 4 Jan 2023 16:54:43 +0100 Subject: [PATCH] Fix badge colors in various places --- app/assets/stylesheets/overrides/_list-group.scss | 14 +++++++++++--- app/assets/stylesheets/overrides/_navbar.scss | 4 ++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/overrides/_list-group.scss b/app/assets/stylesheets/overrides/_list-group.scss index 9e1d63b6..0ef6477b 100644 --- a/app/assets/stylesheets/overrides/_list-group.scss +++ b/app/assets/stylesheets/overrides/_list-group.scss @@ -1,6 +1,6 @@ .list-group-item { background-color: transparent; - + &.active, &.active:hover { background-color: var(--primary); @@ -14,8 +14,16 @@ .list-group-item-action { color: RGB(var(--body-text)); - + &:hover, &:focus { background-color: var(--raised-accent); } -} \ No newline at end of file + + .badge { + color: RGB(var(--body-text)); + } + + &.active .badge { + color: RGB(var(--primary-text)); + } +} diff --git a/app/assets/stylesheets/overrides/_navbar.scss b/app/assets/stylesheets/overrides/_navbar.scss index e00e0e81..1c0e76b5 100644 --- a/app/assets/stylesheets/overrides/_navbar.scss +++ b/app/assets/stylesheets/overrides/_navbar.scss @@ -28,6 +28,10 @@ &.disabled { color: rgba(var(--primary-text), .25); } + + .badge:not(.badge-primary) { + color: inherit; + } } .show > .nav-link,