aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2019-01-22 09:45:33 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2019-01-22 09:45:33 +0100
commit5002304fb119859fe0d115883acceb094bc41be0 (patch)
tree33c3d62636730efb7cf97801d59f1b88fefb9baa /css
parentc36caef5e7f2a448df8503ff8eb37defea297152 (diff)
downloadperl-software-in-gnu-guix-5002304fb119859fe0d115883acceb094bc41be0.tar
perl-software-in-gnu-guix-5002304fb119859fe0d115883acceb094bc41be0.tar.gz
correct height of reveal.js on mobile devices, fixes vertical overflow
Diffstat (limited to 'css')
-rw-r--r--css/reveal.css5
-rw-r--r--css/reveal.scss11
2 files changed, 2 insertions, 14 deletions
diff --git a/css/reveal.css b/css/reveal.css
index 5de7b4c..c685926 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -12,6 +12,7 @@ html,
body {
width: 100%;
height: 100%;
+ height: calc( var(--vh, 1vh) * 100);
overflow: hidden; }
body {
@@ -463,10 +464,6 @@ body {
-ms-touch-action: none;
touch-action: none; }
-@media only screen and (orientation: landscape) {
- .reveal.ua-iphone {
- position: fixed; } }
-
.reveal .slides {
position: absolute;
width: 100%;
diff --git a/css/reveal.scss b/css/reveal.scss
index 7e75dde..7bec964 100644
--- a/css/reveal.scss
+++ b/css/reveal.scss
@@ -15,6 +15,7 @@ html,
body {
width: 100%;
height: 100%;
+ height: calc( var(--vh, 1vh) * 100 );
overflow: hidden;
}
@@ -559,16 +560,6 @@ $controlsArrowAngleActive: 36deg;
touch-action: none;
}
-// Mobile Safari sometimes overlays a header at the top
-// of the page when in landscape mode. Using fixed
-// positioning ensures that reveal.js reduces its height
-// when this header is visible.
-@media only screen and (orientation : landscape) {
- .reveal.ua-iphone {
- position: fixed;
- }
-}
-
.reveal .slides {
position: absolute;
width: 100%;