From 1f4f27ae93d095a98b4e10d1bc9271ddfcadc1b2 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 15 Sep 2022 13:56:49 +0200 Subject: [PATCH] Bug 30952: Fix table styling (cell borders, striping) Issue #22 Signed-off-by: Martin Renvoize Signed-off-by: Owen Leonard Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/css/src/_mixins.scss | 2 +- koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss | 6 +++++- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_mixins.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_mixins.scss index d17055405b..87ea118ef3 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_mixins.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_mixins.scss @@ -3,7 +3,7 @@ $font-monospace: "Courier New", Courier, monospace; $language-footer-min-height: 20px; $table-border-color: #BCBCBC; $table-header-background: #E8E8E8; -$table-odd-row: #F9F9F9; +$table-odd-row: #f3f4f4; $nav-menu-bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 25 25'%3E%3Cpath fill='%23999' d='M9.66.95h4.56l9.21 11.85-9.21 10.53H9.66l5.08-10.53z'/%3E%3C/svg%3E"); diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss index be71628215..86becf8730 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss @@ -146,7 +146,11 @@ table { td, th { padding: .2em .9em; - border: 1px solid $table-border-color; + border-left: 1px solid $table-border-color; + + &:first-child { + border-left: none; + } } td { diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index c2009f807f..0919270678 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -3532,6 +3532,7 @@ code { } .tab-content { + background-color: #fff; border: 3px solid #418940; border-radius: 4px; padding: 1em; -- 2.39.5