From 9240d780a4cc122b77d84953b1b1ca1d0fbdc91d Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Mon, 24 Jul 2023 19:49:43 +0530 Subject: [PATCH] bootstrap: Remove CSS for table-stripped from bootstrap.css. This commit re-adds the CSS to have different background for alternate rows in striped tables to specific files and remove them from bootstrap.css. --- web/styles/app_components.css | 4 ++++ web/styles/portico/activity.css | 4 ++++ web/styles/portico/portico.css | 4 ++++ web/third/bootstrap/css/bootstrap.css | 3 --- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/web/styles/app_components.css b/web/styles/app_components.css index c5e14d6054..1594c0b0c2 100644 --- a/web/styles/app_components.css +++ b/web/styles/app_components.css @@ -739,6 +739,10 @@ div.overlay { } } + tbody > tr:nth-child(odd) > td { + background-color: hsl(0deg 0% 98%); + } + /* Force the actions column to use the minimum space necessary */ .actions { width: 1%; diff --git a/web/styles/portico/activity.css b/web/styles/portico/activity.css index 5e3abf3fa5..40a0a6c9c5 100644 --- a/web/styles/portico/activity.css +++ b/web/styles/portico/activity.css @@ -36,6 +36,10 @@ td.number { border-left: 1px solid hsl(0deg 0% 87%); } + tbody > tr:nth-child(odd) > td { + background-color: hsl(0deg 0% 98%); + } + thead tr:first-child > th:first-child { border-top-left-radius: 4px; } diff --git a/web/styles/portico/portico.css b/web/styles/portico/portico.css index aed5391fa5..b42e179eb1 100644 --- a/web/styles/portico/portico.css +++ b/web/styles/portico/portico.css @@ -565,6 +565,10 @@ input.text-error { .table.table-striped { background-color: hsl(0deg 0% 100%); box-shadow: 0 0 4px hsl(0deg 0% 0% / 10%); + + tbody > tr:nth-child(odd) > td { + background-color: hsl(0deg 0% 98%); + } } .team-profiles { diff --git a/web/third/bootstrap/css/bootstrap.css b/web/third/bootstrap/css/bootstrap.css index 3666bb0299..181e990e0e 100644 --- a/web/third/bootstrap/css/bootstrap.css +++ b/web/third/bootstrap/css/bootstrap.css @@ -239,9 +239,6 @@ table { .table thead:first-child tr:first-child th { border-top: 0; } -.table-striped tbody > tr:nth-child(odd) > td { - background-color: #f9f9f9; -} form { margin: 0 0 20px; }