Skip to content

Commit 5779efb

Browse files
authored
Merge pull request FriendsOfEpub#34 from FriendsOfEpub/table-fix-and-template-improvements
Table fix and template improvements
2 parents 972417d + 290a3f6 commit 5779efb

File tree

12 files changed

+156
-159
lines changed

12 files changed

+156
-159
lines changed

Blitz_framework/CSS/AltStylesheets/blitz.uncommented.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,14 @@ caption {
377377
th {
378378
empty-cells: show;
379379
border-bottom: .125em solid currentColor;
380-
padding: .6875em 2% .6875em 0;
380+
padding: .6875em 10px .6875em 0;
381381
text-align: left;
382382
font-weight: 700
383383
}
384384
td {
385385
empty-cells: show;
386386
border-bottom: .0625em solid currentColor;
387-
padding: .75em 2% .6875em 0;
387+
padding: .75em 10px .6875em 0;
388388
text-align: left
389389
}
390390
.table-fixed {

Blitz_framework/CSS/blitz.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@charset "UTF-8";
22
/* blitz — CSS framework for reflowable eBooks
3-
Version 1.2.3 by Jiminy Panoz
4-
Codename: Dictator
3+
Version 1.2.4 by Jiminy Panoz
4+
Codename: Silicone on Sapphire
55
License: MIT (https://opensource.org/licenses/MIT) */
66
/* NAMESPACES */
77
@namespace h "http://www.w3.org/1999/xhtml/";
@@ -480,15 +480,15 @@ th {
480480
empty-cells: show;
481481
border-bottom: 0.125em solid currentColor;
482482
/* Current color = color of text (inverted in night mode) */
483-
padding: 0.6875em 2% 0.6875em 0;
483+
padding: 0.6875em 10px 0.6875em 0;
484484
text-align: left;
485485
font-weight: bold;
486486
}
487487
td {
488488
empty-cells: show;
489489
border-bottom: 0.0625em solid currentColor;
490490
/* Current color = color of text (inverted in night mode) */
491-
padding: 0.75em 2% 0.6875em 0;
491+
padding: 0.75em 10px 0.6875em 0;
492492
text-align: left;
493493
}
494494
.table-fixed {

Blitz_framework/LESS/blitz-lite.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@charset "UTF-8";
22

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

88

Blitz_framework/LESS/blitz-reset.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* blitz — CSS framework for reflowable eBooks
2-
Version 1.2.3 by Jiminy Panoz
3-
Codename: Dictator
2+
Version 1.2.4 by Jiminy Panoz
3+
Codename: Silicone on Sapphire
44
License: MIT (https://opensource.org/licenses/MIT) */
55

66
@import 'base/reset';

Blitz_framework/LESS/blitz.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@charset "UTF-8";
22

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

88

Blitz_framework/LESS/extensions/table.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ th {
3737
empty-cells: show;
3838
border-bottom: (((@border-width *2) / @body-font-size) + 0em) @border-style @border-color; /* Current color = color of text (inverted in night mode) */
3939
@computed-padding: (((@body-font-size * @body-line-height) - (@border-width * 2)) / @body-font-size);
40-
padding: ((@computed-padding / 2) + 0em) 2% ((@computed-padding / 2) + 0em) 0;
40+
padding: ((@computed-padding / 2) + 0em) 10px ((@computed-padding / 2) + 0em) 0;
4141
text-align: left;
4242
font-weight: bold;
4343
}
@@ -46,7 +46,7 @@ td {
4646
empty-cells: show;
4747
border-bottom: ((@border-width / @body-font-size) + 0em) @border-style @border-color; /* Current color = color of text (inverted in night mode) */
4848
@computed-padding: (((@body-font-size * @body-line-height) - (@border-width * 2)) / @body-font-size);
49-
padding: (@base-margin / 2) 2% ((@computed-padding / 2) + 0em) 0;
49+
padding: (@base-margin / 2) 10px ((@computed-padding / 2) + 0em) 0;
5050
text-align: left;
5151
}
5252

Blitz_template/Blitz_epub3.epub

-143 Bytes
Binary file not shown.

Blitz_template/Blitz_epub3/OEBPS/Styles/blitz.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@charset "UTF-8";
22
/* blitz — CSS framework for reflowable eBooks
3-
Version 1.2.3 by Jiminy Panoz
4-
Codename: Dictator
3+
Version 1.2.4 by Jiminy Panoz
4+
Codename: Silicone on Sapphire
55
License: MIT (https://opensource.org/licenses/MIT) */
66
/* NAMESPACES */
77
@namespace h "http://www.w3.org/1999/xhtml/";
@@ -480,15 +480,15 @@ th {
480480
empty-cells: show;
481481
border-bottom: 0.125em solid currentColor;
482482
/* Current color = color of text (inverted in night mode) */
483-
padding: 0.6875em 2% 0.6875em 0;
483+
padding: 0.6875em 10px 0.6875em 0;
484484
text-align: left;
485485
font-weight: bold;
486486
}
487487
td {
488488
empty-cells: show;
489489
border-bottom: 0.0625em solid currentColor;
490490
/* Current color = color of text (inverted in night mode) */
491-
padding: 0.75em 2% 0.6875em 0;
491+
padding: 0.75em 10px 0.6875em 0;
492492
text-align: left;
493493
}
494494
.table-fixed {

Blitz_template/Blitz_epub3/OEBPS/content.opf

Lines changed: 121 additions & 106 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ When checking for support, you can simply click “Apply Filters” in order to
177177

178178
## Log
179179

180+
### 1.2.4
181+
182+
- Corrected tables’ `td` padding (switched back to `px` value instead of `%` as it depended on RSs’ forcing a relayout)
183+
- Disabled a11y metadata in an attempt to provide with a reasonable default
184+
180185
### 1.2.3
181186

182187
- Corrected KF8’s bug where `page-break-inside: avoid` can create a blank

package-lock.json

Lines changed: 11 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "blitz-ebook",
33
"description": "A CSS Framework for ebooks",
4-
"version": "1.2.3",
4+
"version": "1.2.4",
55
"homepage": "https://github.com/FriendsOfEpub/Blitz",
66
"license": "MIT",
77
"keywords": [

0 commit comments

Comments
 (0)