From f51e664752395de155eacdf516ffef6a2f2a82bc Mon Sep 17 00:00:00 2001 From: Aeledfyr Date: Tue, 6 Jun 2023 18:16:01 -0500 Subject: [PATCH] Fix striped table backgrounds within blockquotes Fixes #659 by defaulting to the primary background color for normal table rows. As noted in the issue, this still looks a bit weird, but it's no longer inconsistent. --- tildes/scss/_base.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tildes/scss/_base.scss b/tildes/scss/_base.scss index df622a2..4b336fd 100644 --- a/tildes/scss/_base.scss +++ b/tildes/scss/_base.scss @@ -280,6 +280,12 @@ table { margin-bottom: 1rem; } +// Add a default non-transparent background to fix styling in blockquotes +tbody tr, +thead tr { + background-color: var(--background-primary-color); +} + tbody tr:nth-of-type(2n + 1) { background-color: var(--background-secondary-color); }