From e4f30cea5788d14bcb2d02a07ea1dceee919e5f1 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 14 Dec 2016 08:42:32 +1100 Subject: [PATCH] Fixing styling for table rows within index panels --- .../stylesheets/admin/index_panels.css.scss | 2 +- app/assets/stylesheets/admin/tables.css.scss | 15 +++++++++++++++ .../admin/standing_orders/_autocomplete.html.haml | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 app/assets/stylesheets/admin/tables.css.scss diff --git a/app/assets/stylesheets/admin/index_panels.css.scss b/app/assets/stylesheets/admin/index_panels.css.scss index b622212446..e47ad151eb 100644 --- a/app/assets/stylesheets/admin/index_panels.css.scss +++ b/app/assets/stylesheets/admin/index_panels.css.scss @@ -98,7 +98,7 @@ tbody.panel-ctrl { tr.panel-row { &:hover { - td { + >td { background-color: #ffffff; } } diff --git a/app/assets/stylesheets/admin/tables.css.scss b/app/assets/stylesheets/admin/tables.css.scss new file mode 100644 index 0000000000..c5f9d64175 --- /dev/null +++ b/app/assets/stylesheets/admin/tables.css.scss @@ -0,0 +1,15 @@ +table tbody tr:hover td { + background-color: inherit; +} + +table tbody tr:hover >td { + background-color: #e9f3fc; +} + +table.layout { + tr, tr:hover { + td { + background-color: transparent; + } + } +} diff --git a/app/views/admin/standing_orders/_autocomplete.html.haml b/app/views/admin/standing_orders/_autocomplete.html.haml index fbb0733cd2..d20a565316 100644 --- a/app/views/admin/standing_orders/_autocomplete.html.haml +++ b/app/views/admin/standing_orders/_autocomplete.html.haml @@ -1,7 +1,7 @@ #add-line-item %fieldset %legend{ align: 'center'}= t(:products) - %table.no-borders + %table.no-borders.layout %col{ width: '60%' } %col{ width: '20%' } %col{ width: '20%' }