Skip to content

Commit

Permalink
Make SCCS files pass validators (4/4)
Browse files Browse the repository at this point in the history
Final commit changing the sequence of blocks to please CSS validators

Moved <table.table-grid-all th> and <table.table-grid-all td> up a bit to
define it before <table.table thead th>

Moved <hr.pagebreak + *> further up before <table.table thead th>

Moved <table.table-grid-all thead tr > *:last-child> further down
after <table.table-grid-cols tbody tr > td:last-child>

Moved <table.table-grid-cols th> and <table.table-grid-cols td> a bit up
before <table.table thead th>

Validator now says: "0 errors", yay!

Tested and verified my changes yet again with Calibre and my ancient
Kobo GloHD device.
  • Loading branch information
LPT-BlubbY committed Nov 9, 2024
1 parent 1e67159 commit 049b957
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions data/styles/epub3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -1078,36 +1110,13 @@ 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;
border-style: solid;
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;
}
Expand All @@ -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 {
Expand Down

0 comments on commit 049b957

Please sign in to comment.