From 049b957f9f961ce156a7dab8ad9ab6c9a8bfd196 Mon Sep 17 00:00:00 2001 From: "L.P.T." Date: Sat, 9 Nov 2024 21:22:13 +0100 Subject: [PATCH] Make SCCS files pass validators (4/4) Final commit changing the sequence of blocks to please CSS validators Moved and up a bit to define it before Moved further up before Moved *:last-child> further down after td:last-child> Moved and a bit up before Validator now says: "0 errors", yay! Tested and verified my changes yet again with Calibre and my ancient Kobo GloHD device. --- data/styles/epub3.scss | 82 +++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/data/styles/epub3.scss b/data/styles/epub3.scss index 508691f..30c75fd 100644 --- a/data/styles/epub3.scss +++ b/data/styles/epub3.scss @@ -1045,6 +1045,38 @@ table.table th { font-weight: bold; } +table.table-grid-all th, +table.table-grid-all td { + border-width: 1px 1px 1px 1px; + border-style: solid; + border-color: $table-border; +} + +hr.pagebreak { + -webkit-column-break-after: always; + page-break-after: always; + border: none; + margin: 0; +} + +/* REVIEW */ +hr.pagebreak + * { + margin-top: 0 !important; +} + +#_about_the_author { + -webkit-column-break-before: always; + page-break-before: always; + border-bottom: 1px solid $about-author-border; +} + +table.table-grid-cols th, +table.table-grid-cols td { + border-width: 0 1px 0 0; + border-style: solid; + border-color: $table-border; +} + table.table thead th { border-bottom: 1px solid $table-border; } @@ -1078,22 +1110,6 @@ table.table-framed-sides { border-color: $table-border; } -table.table-grid-all th, -table.table-grid-all td { - border-width: 1px 1px 1px 1px; - border-style: solid; - border-color: $table-border; -} - -table.table-grid-all thead tr > *:last-child { - border-right-width: 0; -} - -table.table-grid-all tbody tr:last-child > th, -table.table-grid-all tbody tr:last-child > td { - border-bottom-width: 0; -} - table.table-grid-rows tbody th, table.table-grid-rows tbody td { border-width: 1px 0 0 0; @@ -1101,13 +1117,6 @@ table.table-grid-rows tbody td { border-color: $table-border; } -table.table-grid-cols th, -table.table-grid-cols td { - border-width: 0 1px 0 0; - border-style: solid; - border-color: $table-border; -} - table.table-grid-cols thead th:last-child { border-right-width: 0; } @@ -1116,28 +1125,19 @@ table.table-grid-cols tbody tr > td:last-child { border-right-width: 0; } -pre.pygments span.linenos, -pre.rouge span.linenos { - display: inline-block; - margin-right: 0.75em; -} - -hr.pagebreak { - -webkit-column-break-after: always; - page-break-after: always; - border: none; - margin: 0; +table.table-grid-all thead tr > *:last-child { + border-right-width: 0; } -/* REVIEW */ -hr.pagebreak + * { - margin-top: 0 !important; +table.table-grid-all tbody tr:last-child > th, +table.table-grid-all tbody tr:last-child > td { + border-bottom-width: 0; } -#_about_the_author { - -webkit-column-break-before: always; - page-break-before: always; - border-bottom: 1px solid $about-author-border; +pre.pygments span.linenos, +pre.rouge span.linenos { + display: inline-block; + margin-right: 0.75em; } img.headshot {