From ab998f7b6dffbe461d830d3696cb46491ad6afb0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Feb 2018 14:36:16 +0100 Subject: Improve admin tables --- client/src/sass/application.scss | 48 +++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 25 deletions(-) (limited to 'client/src/sass') diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index f998096ae..438990a40 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -131,21 +131,9 @@ label { } // ngprime data table customizations -p-datatable { +p-table { font-size: 15px !important; - .ui-datatable-scrollable-header { - background-color: #fff !important; - } - - .ui-widget-content { - border: none !important; - } - - .ui-datatable-virtual-table { - border-top: none !important; - } - td { border: 1px solid #E5E5E5 !important; padding-left: 15px !important; @@ -157,23 +145,33 @@ p-datatable { tr { background-color: #fff !important; height: 46px; + } - &:hover { - background-color: #f0f0f0 !important; - } + .ui-table-tbody { + tr { + &:hover { + background-color: #f0f0f0 !important; + } - &:not(:hover) { - .action-cell * { - display: none !important; + &:not(:hover) { + .action-cell * { + display: none !important; + } } - } - &:first-child td { - border-top: none !important; + &:first-child td { + border-top: none !important; + } + + &:last-child td { + border-bottom: none !important; + } } - &:last-child td { - border-bottom: none !important; + .expander { + cursor: pointer; + position: relative; + top: 1px; } } @@ -195,7 +193,7 @@ p-datatable { } } - &.ui-state-active { + &.ui-state-highlight { background-color: #fff !important; .fa { -- cgit v1.2.3