From fb4fd623d5e5adcfdc9ecf3dffef702b3786f486 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Dec 2017 15:24:49 +0100 Subject: Better admin tables --- client/src/sass/application.scss | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) (limited to 'client/src/sass/application.scss') diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 0d96d5ec0..0539ec486 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -158,6 +158,9 @@ p-datatable { td { border: 1px solid #E5E5E5 !important; padding-left: 15px !important; + overflow: hidden !important; + text-overflow: ellipsis !important; + white-space: nowrap !important; } tr { @@ -191,17 +194,31 @@ p-datatable { font-weight: $font-semibold !important; color: #000 !important; - &.ui-sortable-column:hover:not(.ui-state-active) { + &.ui-sortable-column:hover { background-color: #f0f0f0 !important; border: 1px solid #f0f0f0 !important; border-width: 0 1px !important; + + &:first-child { + border-width: 0 1px 0 0 !important; + } } &.ui-state-active { - color: #fff !important; - background-color: $orange-color !important; - border: 1px solid $orange-color !important; - border-width: 0 1px !important; + background-color: #fff !important; + + .fa { + @extend .glyphicon; + font-size: 11px; + + &.fa-sort-asc { + @extend .glyphicon-triangle-top; + } + + &.fa-sort-desc { + @extend .glyphicon-triangle-bottom; + } + } } } @@ -347,6 +364,15 @@ p-datatable { @include grey-button; } +// In tables, don't have a hover different background +table { + .action-button-edit, .action-button-delete { + &:hover, &:active, &:focus, &[disabled], &.disabled { + background-color: $grey-color !important; + } + } +} + // On small screen, menu is absolute @media screen and (max-width: 800px) { .title-menu-left { -- cgit v1.2.3