From 2a925d6fd800d89b072d9f035a069d84e735941b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Thu, 9 Sep 2021 08:50:55 +0200 Subject: [PATCH] Separator for table direct children (#34861) * fix(tables): separator for table direct children * fix(tables): drop universal selectors * fix(tables): trying the lobotomized owl selector * fix(tables): get closer to v4 * fix(tables): ensure borderless are borderless --- scss/_tables.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scss/_tables.scss b/scss/_tables.scss index d474ad5663e8..e10e4c4e4cb3 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -39,8 +39,8 @@ } // Highlight border color between thead, tbody and tfoot. - > :not(:last-child) > :last-child > * { - border-bottom-color: $table-group-separator-color; + > :not(:first-child) { + border-top: (2 * $table-border-width) solid $table-group-separator-color; } } @@ -91,6 +91,10 @@ > :not(caption) > * > * { border-bottom-width: 0; } + + > :not(:first-child) { + border-top-width: 0; + } } // Zebra-striping