Skip to content

Commit fd41186

Browse files
committed
Remove gap after images
1 parent 01b95fc commit fd41186

File tree

9 files changed

+23
-12
lines changed

9 files changed

+23
-12
lines changed

Blitz_framework/CSS/AltStylesheets/blitz-lite/blitz-lite.css

Lines changed: 3 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.1.2 by Jiminy Panoz
5-
Codename: Idle in Kangaroo Court W1
4+
Version 1.1.3 by Jiminy Panoz
5+
Codename: Rebel Waltz
66
License: MIT (https://opensource.org/licenses/MIT) */
77

88
/* NAMESPACES */
@@ -237,6 +237,7 @@ img {
237237
max-width: 100%;
238238
height: auto;
239239
object-fit: contain;
240+
vertical-align: bottom;
240241
}
241242

242243
img.portrait {

Blitz_framework/CSS/AltStylesheets/blitz-reset/blitz-reset.css

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.1.2 by Jiminy Panoz
3-
Codename: Idle in Kangaroo Court W1
2+
Version 1.1.3 by Jiminy Panoz
3+
Codename: Rebel Waltz
44
License: MIT (https://opensource.org/licenses/MIT) */
55

66
article,address,aside,blockquote,canvas,dd,details,div,dl,dt,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hr,li,main,nav,ol,p,pre,section,summary,ul {

Blitz_framework/CSS/AltStylesheets/blitz.uncommented.css

Lines changed: 3 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.1.2 by Jiminy Panoz
5-
Codename: Idle in Kangaroo Court W1
4+
Version 1.1.3 by Jiminy Panoz
5+
Codename: Rebel Waltz
66
License: MIT (https://opensource.org/licenses/MIT) */
77

88
@namespace h "http://www.w3.org/1999/xhtml/";
@@ -205,6 +205,7 @@ img {
205205
max-width: 100%;
206206
height: auto;
207207
object-fit: contain;
208+
vertical-align: bottom;
208209
}
209210

210211
img.portrait {

Blitz_framework/CSS/blitz.css

Lines changed: 4 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.1.2 by Jiminy Panoz
4-
Codename: Idle in Kangaroo Court W1
3+
Version 1.1.3 by Jiminy Panoz
4+
Codename: Rebel Waltz
55
License: MIT (https://opensource.org/licenses/MIT) */
66
/* NAMESPACES */
77
@namespace h "http://www.w3.org/1999/xhtml/";
@@ -346,6 +346,8 @@ img {
346346
/* Note: KF8 doesn't support max-width hence "width: auto;" as fallback */
347347
height: auto;
348348
object-fit: contain;
349+
vertical-align: bottom;
350+
/* Remove gap after the image */
349351
}
350352
/* Note: portrait image styling + figcaption is a nightmare */
351353
/* See https://github.com/jstallent/ImagesSingleFile for the css hack */

Blitz_framework/LESS/base/image.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ img {
1616
max-width: 100%; /* Note: KF8 doesn't support max-width hence "width: auto;" as fallback */
1717
height: auto;
1818
object-fit: contain;
19+
vertical-align: bottom; /* Remove gap after the image */
1920
}
2021

2122
/* Note: portrait image styling + figcaption is a nightmare */

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.1.2 by Jiminy Panoz
5-
Codename: Idle in Kangaroo Court W1
4+
Version 1.1.3 by Jiminy Panoz
5+
Codename: Rebel Waltz
66
License: MIT (https://opensource.org/licenses/MIT) */
77

88

Blitz_template/Blitz_epub3.epub

13 Bytes
Binary file not shown.

Blitz_template/Blitz_epub3/OEBPS/Styles/blitz.css

Lines changed: 4 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.1.2 by Jiminy Panoz
4-
Codename: Idle in Kangaroo Court W1
3+
Version 1.1.3 by Jiminy Panoz
4+
Codename: Rebel Waltz
55
License: MIT (https://opensource.org/licenses/MIT) */
66
/* NAMESPACES */
77
@namespace h "http://www.w3.org/1999/xhtml/";
@@ -346,6 +346,8 @@ img {
346346
/* Note: KF8 doesn't support max-width hence "width: auto;" as fallback */
347347
height: auto;
348348
object-fit: contain;
349+
vertical-align: bottom;
350+
/* Remove gap after the image */
349351
}
350352
/* Note: portrait image styling + figcaption is a nightmare */
351353
/* See https://github.com/jstallent/ImagesSingleFile for the css hack */

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ To sum up, we’ve tried to find a balance and feel like Blitz defaults can help
104104

105105
## Log
106106

107+
### 1.1.3
108+
109+
- Removed gap after images
110+
107111
### 1.1.2
108112

109113
- Fixed hyphenation (limit chars)

0 commit comments

Comments
 (0)