From 0b46f9317eb90cc2b966de1338f85d87df2ac870 Mon Sep 17 00:00:00 2001 From: Bernd Erk Date: Wed, 4 Nov 2015 15:12:35 +0100 Subject: [PATCH] Rename listing-table to common-table and remove action-table Further, style for the common-table has been changed. (WIP) refs #5543 --- public/css/icinga/base.less | 13 ++++++++++++- public/css/icinga/main.less | 23 +++++++++++++---------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/public/css/icinga/base.less b/public/css/icinga/base.less index f5b533292..ea44e592f 100644 --- a/public/css/icinga/base.less +++ b/public/css/icinga/base.less @@ -97,10 +97,21 @@ table { border-collapse: separate; border-spacing: 0 1px; width: 100%; + line-height: 2em; + margin-top: 2em; +} + +thead { + line-height: 2.5em; +} + + +th { + padding: @vertical-padding / 2 @horizontal-padding / 2; } td { - padding: @vertical-padding / 2 @horizontal-padding / 2; + padding: @vertical-padding / 2 @horizontal-padding / 2; } [class^="icon-"], [class*=" icon-"] { diff --git a/public/css/icinga/main.less b/public/css/icinga/main.less index 37c38d36c..5b7a394a0 100644 --- a/public/css/icinga/main.less +++ b/public/css/icinga/main.less @@ -125,14 +125,19 @@ dl.name-value-list { } } -table.action-table { - tbody tr { - .transition(background-color 0.3s ease); +table.common-table { + border-collapse: collapse; + + tr { + border-left: 5px solid rgba(0,0,0,0.5); + border-opacity:0.7; + } + + tr[href] { &.active { background-color: @gray-lighter; - // Auto-refresh must not start transition - transition: none; + border-left: 5px solid @icinga-blue; } &:hover { @@ -140,19 +145,17 @@ table.action-table { cursor: pointer; } } -} - -table.listing-table { - border-collapse: collapse; tbody th { text-align: left; } thead { - color: @text-color-light; + border-bottom: 1px solid @gray-light; + // Reset default font-weight font-weight: normal; + text-align: left; } tr {