From 9a7d491ede20b123bcd2b425f6141cad674751cc Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 19 May 2017 09:51:01 +0200 Subject: [PATCH] adjust speaker notes layout on mobile devices --- css/reveal.css | 6 ++++++ css/reveal.scss | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/css/reveal.css b/css/reveal.css index a7d2f4a..8784dc1 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -1513,6 +1513,12 @@ body { height: 30vh; } } @media screen and (max-width: 600px) { + .reveal.show-notes { + max-height: 60vh; } + .reveal.show-notes .speaker-notes { + top: 60vh; + height: 40vh; + padding-bottom: 10vh; } .reveal .speaker-notes { font-size: 14px; } } diff --git a/css/reveal.scss b/css/reveal.scss index 6a5cc52..1353e5a 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -1655,6 +1655,16 @@ $controlsArrowAngleActive: 36deg; } @media screen and (max-width: 600px) { + .reveal.show-notes { + max-height: 60vh; + } + + .reveal.show-notes .speaker-notes { + top: 60vh; + height: 40vh; + padding-bottom: 10vh; // iOS :( + } + .reveal .speaker-notes { font-size: 14px; }