From 8e79f8592ac2374e4a68e69b77bd142f66f118a9 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 10 Nov 2012 20:09:12 -0500 Subject: fixes issue where italic fonts disappeared when printing to pdf (closes #230) --- css/reveal.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'css/reveal.css') diff --git a/css/reveal.css b/css/reveal.css index 7879bb6..d2d9779 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -169,8 +169,14 @@ body { * DEFAULT ELEMENT STYLES *********************************************/ +/* Fixes issue in Chrome where italic fonts did not appear when printing to PDF */ +.reveal:after { + content: ''; + font-style: italic; +} + +/* Preserve aspect ratio and scale image so it's bound within the section */ .reveal img { - /* preserve aspect ratio and scale image so it's bound within the section */ max-width: 100%; max-height: 100%; } -- cgit v1.2.3