From 4ba6ea933f9227dcff078fd95840da175a1e80ff Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Sat, 31 Oct 2015 16:10:49 +0100 Subject: [PATCH] fix Kindle images exceeding page limit --- css/base.css | 3 +++ sass/base.sass | 2 ++ 2 files changed, 5 insertions(+) diff --git a/css/base.css b/css/base.css index 9140e44..ff584f1 100644 --- a/css/base.css +++ b/css/base.css @@ -228,6 +228,9 @@ figure { background-color: #cccccc; border: 1px solid black; text-align: center; } + figure img { + max-width: 80%; + } figure figcaption { text-align: center; font-size: 0.8em; diff --git a/sass/base.sass b/sass/base.sass index 3594fab..d35fedb 100644 --- a/sass/base.sass +++ b/sass/base.sass @@ -251,6 +251,8 @@ figure background-color: $sidebar-border-color border: 1px solid black text-align: center + img + max-width: 80% figcaption text-align: center font-size: .8em