From 5b517a2cb0cbabe4aab4bc9dc2ac4ff7631291c8 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Wed, 17 Jun 2015 17:28:28 +0200 Subject: [PATCH] Improve table layout Add alternating colors to table rows, to improve visibillity of the table. refs #9361 --- .../views/scripts/config/resource.phtml | 2 +- .../scripts/form/reorder-authbackend.phtml | 2 +- application/views/scripts/group/list.phtml | 2 +- application/views/scripts/role/list.phtml | 2 +- application/views/scripts/user/list.phtml | 2 +- .../views/scripts/usergroupbackend/list.phtml | 2 +- public/css/icinga/main-content.less | 21 +++++++++++++++++-- 7 files changed, 25 insertions(+), 8 deletions(-) diff --git a/application/views/scripts/config/resource.phtml b/application/views/scripts/config/resource.phtml index d3d0e4d4f..36822b9f0 100644 --- a/application/views/scripts/config/resource.phtml +++ b/application/views/scripts/config/resource.phtml @@ -5,7 +5,7 @@ icon('plus'); ?> translate('Create A New Resource'); ?> - +
diff --git a/application/views/scripts/form/reorder-authbackend.phtml b/application/views/scripts/form/reorder-authbackend.phtml index 20d4e3696..02598e013 100644 --- a/application/views/scripts/form/reorder-authbackend.phtml +++ b/application/views/scripts/form/reorder-authbackend.phtml @@ -1,5 +1,5 @@ -
translate('Resource'); ?> translate('Remove'); ?>
+
diff --git a/application/views/scripts/group/list.phtml b/application/views/scripts/group/list.phtml index 65c1591cd..1f693f152 100644 --- a/application/views/scripts/group/list.phtml +++ b/application/views/scripts/group/list.phtml @@ -27,7 +27,7 @@ if (! isset($backend)) { } if (count($groups) > 0): ?> -
Backend translate('Remove'); ?>
+
diff --git a/application/views/scripts/role/list.phtml b/application/views/scripts/role/list.phtml index 568bbdf98..e75c89356 100644 --- a/application/views/scripts/role/list.phtml +++ b/application/views/scripts/role/list.phtml @@ -6,7 +6,7 @@ isEmpty()): ?> translate('No roles found.') ?> -
translate('Group'); ?>
+
diff --git a/application/views/scripts/user/list.phtml b/application/views/scripts/user/list.phtml index df9a14a45..3430f7f4b 100644 --- a/application/views/scripts/user/list.phtml +++ b/application/views/scripts/user/list.phtml @@ -27,7 +27,7 @@ if (! isset($backend)) { } if (count($users) > 0): ?> -
translate('Name') ?>
+
diff --git a/application/views/scripts/usergroupbackend/list.phtml b/application/views/scripts/usergroupbackend/list.phtml index 58aa2deba..49b6d5372 100644 --- a/application/views/scripts/usergroupbackend/list.phtml +++ b/application/views/scripts/usergroupbackend/list.phtml @@ -11,7 +11,7 @@ ) ); ?> 0): ?> -
translate('Username'); ?>
+
diff --git a/public/css/icinga/main-content.less b/public/css/icinga/main-content.less index 697814df1..7b9c29821 100644 --- a/public/css/icinga/main-content.less +++ b/public/css/icinga/main-content.less @@ -202,14 +202,31 @@ tr[href].active { background-color: #eee; color: black; } + +table.alternating { + tr[href].active:nth-child(even), tr[href].active:nth-child(odd) { + background-color: #E5E5E5; + color: black; + } + tr[href]:nth-child(even) { + background-color: #FDFDFD; + } + tr[href]:nth-child(odd) { + background-color: #f5f5f5; + } + tr[href]:hover { + color: black; + background-color: #DDDDDD; + } +} /* End of table behaviour */ /* HOVER colors */ - + tr[href]:hover { color: black; - background-color: #eee; + background-color: #DDDDDD; } /* END of HOVER colors */
translate('Backend'); ?>