Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #34 from FriendsOfEpub/table-fix-and-template-impr…
Browse files Browse the repository at this point in the history
…ovements

Table fix and template improvements
  • Loading branch information
JayPanoz authored Aug 3, 2019
2 parents 972417d + 290a3f6 commit 5779efb
Show file tree
Hide file tree
Showing 12 changed files with 156 additions and 159 deletions.
4 changes: 2 additions & 2 deletions Blitz_framework/CSS/AltStylesheets/blitz.uncommented.css
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,14 @@ caption {
th {
empty-cells: show;
border-bottom: .125em solid currentColor;
padding: .6875em 2% .6875em 0;
padding: .6875em 10px .6875em 0;
text-align: left;
font-weight: 700
}
td {
empty-cells: show;
border-bottom: .0625em solid currentColor;
padding: .75em 2% .6875em 0;
padding: .75em 10px .6875em 0;
text-align: left
}
.table-fixed {
Expand Down
8 changes: 4 additions & 4 deletions Blitz_framework/CSS/blitz.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@charset "UTF-8";
/* blitz — CSS framework for reflowable eBooks
Version 1.2.3 by Jiminy Panoz
Codename: Dictator
Version 1.2.4 by Jiminy Panoz
Codename: Silicone on Sapphire
License: MIT (https://opensource.org/licenses/MIT) */
/* NAMESPACES */
@namespace h "http://www.w3.org/1999/xhtml/";
Expand Down Expand Up @@ -480,15 +480,15 @@ th {
empty-cells: show;
border-bottom: 0.125em solid currentColor;
/* Current color = color of text (inverted in night mode) */
padding: 0.6875em 2% 0.6875em 0;
padding: 0.6875em 10px 0.6875em 0;
text-align: left;
font-weight: bold;
}
td {
empty-cells: show;
border-bottom: 0.0625em solid currentColor;
/* Current color = color of text (inverted in night mode) */
padding: 0.75em 2% 0.6875em 0;
padding: 0.75em 10px 0.6875em 0;
text-align: left;
}
.table-fixed {
Expand Down
4 changes: 2 additions & 2 deletions Blitz_framework/LESS/blitz-lite.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@charset "UTF-8";

/* blitz — CSS framework for reflowable eBooks
Version 1.2.3 by Jiminy Panoz
Codename: Dictator
Version 1.2.4 by Jiminy Panoz
Codename: Silicone on Sapphire
License: MIT (https://opensource.org/licenses/MIT) */


Expand Down
4 changes: 2 additions & 2 deletions Blitz_framework/LESS/blitz-reset.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* blitz — CSS framework for reflowable eBooks
Version 1.2.3 by Jiminy Panoz
Codename: Dictator
Version 1.2.4 by Jiminy Panoz
Codename: Silicone on Sapphire
License: MIT (https://opensource.org/licenses/MIT) */

@import 'base/reset';
4 changes: 2 additions & 2 deletions Blitz_framework/LESS/blitz.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@charset "UTF-8";

/* blitz — CSS framework for reflowable eBooks
Version 1.2.3 by Jiminy Panoz
Codename: Dictator
Version 1.2.4 by Jiminy Panoz
Codename: Silicone on Sapphire
License: MIT (https://opensource.org/licenses/MIT) */


Expand Down
4 changes: 2 additions & 2 deletions Blitz_framework/LESS/extensions/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ th {
empty-cells: show;
border-bottom: (((@border-width *2) / @body-font-size) + 0em) @border-style @border-color; /* Current color = color of text (inverted in night mode) */
@computed-padding: (((@body-font-size * @body-line-height) - (@border-width * 2)) / @body-font-size);
padding: ((@computed-padding / 2) + 0em) 2% ((@computed-padding / 2) + 0em) 0;
padding: ((@computed-padding / 2) + 0em) 10px ((@computed-padding / 2) + 0em) 0;
text-align: left;
font-weight: bold;
}
Expand All @@ -46,7 +46,7 @@ td {
empty-cells: show;
border-bottom: ((@border-width / @body-font-size) + 0em) @border-style @border-color; /* Current color = color of text (inverted in night mode) */
@computed-padding: (((@body-font-size * @body-line-height) - (@border-width * 2)) / @body-font-size);
padding: (@base-margin / 2) 2% ((@computed-padding / 2) + 0em) 0;
padding: (@base-margin / 2) 10px ((@computed-padding / 2) + 0em) 0;
text-align: left;
}

Expand Down
Binary file modified Blitz_template/Blitz_epub3.epub
Binary file not shown.
8 changes: 4 additions & 4 deletions Blitz_template/Blitz_epub3/OEBPS/Styles/blitz.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@charset "UTF-8";
/* blitz — CSS framework for reflowable eBooks
Version 1.2.3 by Jiminy Panoz
Codename: Dictator
Version 1.2.4 by Jiminy Panoz
Codename: Silicone on Sapphire
License: MIT (https://opensource.org/licenses/MIT) */
/* NAMESPACES */
@namespace h "http://www.w3.org/1999/xhtml/";
Expand Down Expand Up @@ -480,15 +480,15 @@ th {
empty-cells: show;
border-bottom: 0.125em solid currentColor;
/* Current color = color of text (inverted in night mode) */
padding: 0.6875em 2% 0.6875em 0;
padding: 0.6875em 10px 0.6875em 0;
text-align: left;
font-weight: bold;
}
td {
empty-cells: show;
border-bottom: 0.0625em solid currentColor;
/* Current color = color of text (inverted in night mode) */
padding: 0.75em 2% 0.6875em 0;
padding: 0.75em 10px 0.6875em 0;
text-align: left;
}
.table-fixed {
Expand Down
227 changes: 121 additions & 106 deletions Blitz_template/Blitz_epub3/OEBPS/content.opf

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ When checking for support, you can simply click “Apply Filters” in order to

## Log

### 1.2.4

- Corrected tables’ `td` padding (switched back to `px` value instead of `%` as it depended on RSs’ forcing a relayout)
- Disabled a11y metadata in an attempt to provide with a reasonable default

### 1.2.3

- Corrected KF8’s bug where `page-break-inside: avoid` can create a blank
Expand Down
45 changes: 11 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blitz-ebook",
"description": "A CSS Framework for ebooks",
"version": "1.2.3",
"version": "1.2.4",
"homepage": "https://github.com/FriendsOfEpub/Blitz",
"license": "MIT",
"keywords": [
Expand Down

0 comments on commit 5779efb

Please sign in to comment.