From 3a6513ff13614e614ecac67343c99291cb78f85c Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Tue, 18 Jul 2017 10:53:58 -0400 Subject: [PATCH] Add blue select border to active list row *When viewing host insights, highlight insights button instead of edit button --- awx/ui/client/legacy-styles/ansible-ui.less | 6 +++ awx/ui/client/legacy-styles/lists.less | 8 ++-- .../hosts/hosts.partial.html | 6 +-- .../related/hosts/related-host.list.js | 3 +- .../list-generator/list-generator.factory.js | 37 ++++++++++++++----- 5 files changed, 43 insertions(+), 17 deletions(-) diff --git a/awx/ui/client/legacy-styles/ansible-ui.less b/awx/ui/client/legacy-styles/ansible-ui.less index 1521516ced..2af0228646 100644 --- a/awx/ui/client/legacy-styles/ansible-ui.less +++ b/awx/ui/client/legacy-styles/ansible-ui.less @@ -1727,6 +1727,8 @@ tr td button i { padding: 0; border: none; margin-top: 0; + display: flex; + justify-content: flex-end; .btn.btn-primary { text-transform: uppercase; @@ -1745,6 +1747,10 @@ tr td button i { border-color: @default-succ-disabled; } } + + .btn + .btn { + margin: 0; + } } /* form navigation */ diff --git a/awx/ui/client/legacy-styles/lists.less b/awx/ui/client/legacy-styles/lists.less index de1dc3ee38..35e6392219 100644 --- a/awx/ui/client/legacy-styles/lists.less +++ b/awx/ui/client/legacy-styles/lists.less @@ -22,6 +22,7 @@ table, tbody { width: 100%; margin-top: 20px; table-layout: fixed; + overflow: hidden; } .List-tableHeader{ @@ -71,9 +72,8 @@ table, tbody { background-color: #f2f2f2; } -.List-tableRow--selected, -.List-tableRow--selected > :first-child { - border-left: 5px solid @list-row-select-bord; +.List-tableRow--selected { + border-left: 10px solid @list-row-select-bord; } .List-tableRow--selected > :first-child { @@ -353,6 +353,8 @@ table, tbody { .modal-body > .List-noItems { margin-top: 0px; } + +.List-actionButton--selected, .List-editButton--selected { background-color: @list-actn-bg-hov !important; color: @list-actn-icn-hov; diff --git a/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html b/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html index 5b71af2432..3eef5ad07d 100644 --- a/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html +++ b/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html @@ -48,7 +48,7 @@ - +
@@ -74,10 +74,10 @@
- -