From 6acab131eea060c5f70eaa542f08c6941e2b096e Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:41:56 +1300 Subject: [PATCH] Move border to tr --- .../src/site-meta-list/style.scss | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/source/wp-content/themes/wporg-showcase-2022/src/site-meta-list/style.scss b/source/wp-content/themes/wporg-showcase-2022/src/site-meta-list/style.scss index a5184139..5b4a1d69 100644 --- a/source/wp-content/themes/wporg-showcase-2022/src/site-meta-list/style.scss +++ b/source/wp-content/themes/wporg-showcase-2022/src/site-meta-list/style.scss @@ -2,9 +2,8 @@ margin-block-start: 0; table, - tbody, - tr { - // Needed to pass border color down to `td` and `th`. + tbody { + // Needed to pass border color down to `tr`. border-color: inherit; } @@ -13,15 +12,13 @@ padding: 0; width: 100%; border-spacing: 0; + border-collapse: collapse; } tr { &:not(:last-of-type) { - th, - td { - border-bottom: 1px solid; - border-color: inherit; - } + border-bottom: 1px solid; + border-color: inherit; } th:not(.screen-reader-text), @@ -50,10 +47,6 @@ padding-bottom: 0; } - &:not(:last-of-type) th { - border-bottom: none; - } - td { text-align: start; padding-top: 0;