From f7b76df47369a78110b03299ad2db59488fd0ff3 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 14 Apr 2024 17:47:44 +0300 Subject: [PATCH] Add dark mode overrides for Bootstrap table variants --- app/assets/stylesheets/common.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 629d26a81..ec91b2818 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -66,6 +66,21 @@ time[title] { color: $blue; } +/* Bootstrap contextual table classes overrides in dark mode */ + +@include color-mode(dark) { + .table-primary { + --bs-table-bg: rgb(var(--bs-primary-rgb), .25); + } + .table-secondary { + --bs-table-bg: rgb(var(--bs-secondary-rgb), .25); + } + .table-primary, .table-secondary { + --bs-table-color: initial; + border-color: inherit; + } +} + /* Rules for the header */ #menu-icon { -- 2.45.1