From 5976923f23efe231dc9322d6fc0ee6112befbd17 Mon Sep 17 00:00:00 2001 From: Thomas Pritchard Date: Wed, 4 Sep 2019 10:19:50 +0100 Subject: [PATCH 1/3] Add figures to Mac detail stylesheet --- Mac/MainWindow/Detail/styleSheet.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Mac/MainWindow/Detail/styleSheet.css b/Mac/MainWindow/Detail/styleSheet.css index e3e2d7e7f..374bacd2c 100644 --- a/Mac/MainWindow/Detail/styleSheet.css +++ b/Mac/MainWindow/Detail/styleSheet.css @@ -122,9 +122,15 @@ code, pre { pre { white-space: pre-wrap; } -img, video { +img, figure, video { max-width: 100%; height: auto; + margin: 0 auto; +} + +figcaption { + font-size: 14px; + padding: 0; } /*Block ads and junk*/ From d3ad4b52a33dd625a6319139adb31a0b2b15b8a3 Mon Sep 17 00:00:00 2001 From: Thomas Pritchard Date: Wed, 4 Sep 2019 10:51:47 +0100 Subject: [PATCH 2/3] Set a sensible line height for figure captions --- Mac/MainWindow/Detail/styleSheet.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/MainWindow/Detail/styleSheet.css b/Mac/MainWindow/Detail/styleSheet.css index 374bacd2c..e1e6f7f44 100644 --- a/Mac/MainWindow/Detail/styleSheet.css +++ b/Mac/MainWindow/Detail/styleSheet.css @@ -130,7 +130,7 @@ img, figure, video { figcaption { font-size: 14px; - padding: 0; + line-height: 1.3em; } /*Block ads and junk*/ From 091b43a9fbb08f25c53a8a69b7957626e081427c Mon Sep 17 00:00:00 2001 From: Thomas Pritchard Date: Wed, 4 Sep 2019 11:24:19 +0100 Subject: [PATCH 3/3] Apply figure styles to iOS as well --- iOS/Resources/styleSheet.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/iOS/Resources/styleSheet.css b/iOS/Resources/styleSheet.css index 41bf84199..f46b94deb 100644 --- a/iOS/Resources/styleSheet.css +++ b/iOS/Resources/styleSheet.css @@ -125,9 +125,15 @@ code, pre { pre { white-space: pre-wrap; } -img, video { +img, figure, video { max-width: 100%; height: auto; + margin: 0 auto; +} + +figcaption { + font-size: 14px; + line-height: 1.3em; } /*Block ads and junk*/