From 99535ea6478c681942c5a8ce2a74ac1a9f229678 Mon Sep 17 00:00:00 2001 From: Cliff Su Date: Tue, 11 Feb 2020 09:35:41 +0800 Subject: [PATCH] Fix #15944 - pagination table section background issue Signed-off-by: Cliff Su --- themes/bootstrap/scss/_common.scss | 5 +++++ themes/metro/scss/_common.scss | 5 +++++ themes/pmahomme/scss/_common.scss | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/themes/bootstrap/scss/_common.scss b/themes/bootstrap/scss/_common.scss index f5746dc141..1c7d053000 100644 --- a/themes/bootstrap/scss/_common.scss +++ b/themes/bootstrap/scss/_common.scss @@ -568,6 +568,11 @@ table tbody:first-of-type tr:nth-child(even) th, background: #dfdfdf; } +// only one item +table tbody:first-of-type tr:only-child { + background: none; +} + table tr { text-align: $left; diff --git a/themes/metro/scss/_common.scss b/themes/metro/scss/_common.scss index eece20ef5a..efb1cc450b 100644 --- a/themes/metro/scss/_common.scss +++ b/themes/metro/scss/_common.scss @@ -622,6 +622,11 @@ table tr { border-bottom: none; } + // only one item + &:only-child { + background: none; + } + th { text-align: $left; border-bottom: 1px solid #eee; diff --git a/themes/pmahomme/scss/_common.scss b/themes/pmahomme/scss/_common.scss index 1f2e5101c4..14bfc1d709 100644 --- a/themes/pmahomme/scss/_common.scss +++ b/themes/pmahomme/scss/_common.scss @@ -573,6 +573,11 @@ table tbody:first-of-type tr:nth-child(even) th, background: #dfdfdf; } +// only one item +table tbody:first-of-type tr:only-child { + background: none; +} + table tr { text-align: $left;