From: Andy Allan Date: Wed, 20 Jul 2022 17:49:10 +0000 (+0100) Subject: Bootstrap 5: Fix table striping background colour X-Git-Tag: live~1067^2~1 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2b9765878636056e9b16aa20fe34c9b133712e18 Bootstrap 5: Fix table striping background colour --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index d3b6868a4..8ab10773b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1447,13 +1447,6 @@ dl.dl-inline { } } -/* Customise the background colour of striped tables */ - -.table-striped > tbody > tr:nth-child(2n+1) > td, -.table-striped > tbody > tr:nth-child(2n+1) > th { - background-color: $offwhite; -} - /* Rules for OpenID logo */ .openid_logo { diff --git a/app/assets/stylesheets/parameters.scss b/app/assets/stylesheets/parameters.scss index 31e7edce5..4b5daf4d0 100644 --- a/app/assets/stylesheets/parameters.scss +++ b/app/assets/stylesheets/parameters.scss @@ -23,4 +23,6 @@ $link-hover-color: #24d; $link-decoration: none; $link-hover-decoration: underline; +$table-striped-bg: $offwhite; + $enable-negative-margins: true;