Skip to content

Commit b74cad4

Browse files
committed
Fix blank bug in Kindle
Resolves FriendsOfEpub#29
1 parent 8eeb854 commit b74cad4

File tree

11 files changed

+31
-11
lines changed

11 files changed

+31
-11
lines changed

Blitz_framework/CSS/blitz-kindle.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ it is known to create issues with some devices/apps
2929
/* Because Kindle developers… */
3030
margin: 1.5em 11%;
3131
}
32+
figure,
33+
.no-break-inside {
34+
page-break-inside: auto;
35+
break-inside: auto;
36+
/* Fix blank bug because of page-break-inside: avoid… */
37+
}
3238
}
3339
@media amzn-mobi {
3440
body {

Blitz_framework/CSS/blitz.css

Lines changed: 2 additions & 2 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.2 by Jiminy Panoz
4-
Codename: Cheat
3+
Version 1.2.3 by Jiminy Panoz
4+
Codename: Dictator
55
License: MIT (https://opensource.org/licenses/MIT) */
66
/* NAMESPACES */
77
@namespace h "http://www.w3.org/1999/xhtml/";

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.2 by Jiminy Panoz
5-
Codename: Cheat
4+
Version 1.2.3 by Jiminy Panoz
5+
Codename: Dictator
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.2 by Jiminy Panoz
3-
Codename: Cheat
2+
Version 1.2.3 by Jiminy Panoz
3+
Codename: Dictator
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.2 by Jiminy Panoz
5-
Codename: Cheat
4+
Version 1.2.3 by Jiminy Panoz
5+
Codename: Dictator
66
License: MIT (https://opensource.org/licenses/MIT) */
77

88

Blitz_framework/LESS/plugins/blitz-kindle.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ it is known to create issues with some devices/apps
2525
width: 78%; /* Because Kindle developers… */
2626
margin: (@body-line-height + 0em) 11%;
2727
}
28+
figure,
29+
.no-break-inside {
30+
.break-inside; /* Fix blank bug because of page-break-inside: avoid… */
31+
}
2832
}
2933

3034
@media @mobi7 {

Blitz_template/Blitz_epub3.epub

60 Bytes
Binary file not shown.

Blitz_template/Blitz_epub3/OEBPS/Styles/blitz-kindle.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ it is known to create issues with some devices/apps
2929
/* Because Kindle developers… */
3030
margin: 1.5em 11%;
3131
}
32+
figure,
33+
.no-break-inside {
34+
page-break-inside: auto;
35+
break-inside: auto;
36+
/* Fix blank bug because of page-break-inside: avoid… */
37+
}
3238
}
3339
@media amzn-mobi {
3440
body {

Blitz_template/Blitz_epub3/OEBPS/Styles/blitz.css

Lines changed: 2 additions & 2 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.2 by Jiminy Panoz
4-
Codename: Cheat
3+
Version 1.2.3 by Jiminy Panoz
4+
Codename: Dictator
55
License: MIT (https://opensource.org/licenses/MIT) */
66
/* NAMESPACES */
77
@namespace h "http://www.w3.org/1999/xhtml/";

README.md

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

178178
## Log
179179

180+
### 1.2.3
181+
182+
- Corrected KF8’s bug where `page-break-inside: avoid` can create a blank
183+
180184
### 1.2.2
181185

182186
- Corrected Mobi7 font size for `.small-caps`

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.2",
4+
"version": "1.2.3",
55
"homepage": "https://github.com/FriendsOfEpub/Blitz",
66
"license": "MIT",
77
"keywords": [

0 commit comments

Comments
 (0)