From e03d84c26f4b05e3f7ba0487233a9615385a1671 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Fri, 27 Jan 2023 10:28:36 +0100 Subject: [PATCH] Update ePUB table styles --- epubs/_build/templates/style.css | 8 ++++---- src/scss/epub.scss | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/epubs/_build/templates/style.css b/epubs/_build/templates/style.css index ea68349a..6a1a7f2f 100644 --- a/epubs/_build/templates/style.css +++ b/epubs/_build/templates/style.css @@ -338,6 +338,9 @@ ol ol { font-weight: 700; vertical-align: bottom; } +.wp-block-table th, .wp-block-table td { + padding: 6px 9px; +} .wp-block-table tfoot td { font-size: 87.5%; font-weight: 700; @@ -346,16 +349,13 @@ ol ol { .wp-block-table.is-style-regular table { border-color: currentColor; } -.wp-block-table.is-style-regular th, .wp-block-table.is-style-regular td { - padding: 8px 12px; -} .wp-block-table.is-style-stripes table { border: none; } .wp-block-table.is-style-stripes th, .wp-block-table.is-style-stripes td { position: relative; z-index: 1; - padding: 10px 16px; + padding: 8px 12px; } .wp-block-table.is-style-stripes tbody tr:nth-child(odd) th::before, .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td::before { diff --git a/src/scss/epub.scss b/src/scss/epub.scss index 8707a6b7..7d002df8 100644 --- a/src/scss/epub.scss +++ b/src/scss/epub.scss @@ -415,6 +415,10 @@ ol { vertical-align: bottom; } + th, td { + padding: 6px 9px; + } + tfoot { td { font-size: 87.5%; @@ -427,10 +431,6 @@ ol { table { border-color: currentColor; } - - th, td { - padding: 8px 12px; - } } &.is-style-stripes { @@ -441,7 +441,7 @@ ol { th, td { position: relative; z-index: 1; - padding: 10px 16px; + padding: 8px 12px; } tbody {