From 73a2b90e1b52c96658d128a5ab84527a2a2d31d2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 6 Jan 2023 10:49:26 +0100 Subject: [PATCH] On hovering, all the tr should be colored This needs to be respecified with an `!important` keyword Even if already defined in `app/webpacker/css/admin/openfoodnetwork.scss` --- app/webpacker/css/admin/v2/components/tables.scss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/webpacker/css/admin/v2/components/tables.scss b/app/webpacker/css/admin/v2/components/tables.scss index 6f7128446a..b3124cf38b 100644 --- a/app/webpacker/css/admin/v2/components/tables.scss +++ b/app/webpacker/css/admin/v2/components/tables.scss @@ -115,6 +115,10 @@ table { } } +table tbody tr:hover > td { + background-color: #e9f3fc !important; // needs to be important because of already defined with important +} + table#listing_orders { td { // When the table is the listing of orders, we need to increase the height of the cells @@ -125,3 +129,13 @@ table#listing_orders { } } } + +table#listing_order_cycles tr.open td { + background-color: #d9fccb !important; // needs to be important because of already defined with important +} +table#listing_order_cycles tr.closed td { + background-color: #eee !important; // needs to be important because of already defined with important +} +table#listing_order_cycles tr.upcoming td { + background-color: #fbfccb !important; // needs to be important because of already defined with important +}