From 92049d8244ae5d7d664372b8299208d2d4650adf Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 12 Oct 2016 12:38:19 +0200 Subject: [PATCH] fix unclickable slides in overview when controls were edge-aligned --- css/reveal.css | 4 +++- css/reveal.scss | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/css/reveal.css b/css/reveal.css index db18bb0..8d1d405 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -197,7 +197,8 @@ body { bottom: 0; left: 0; z-index: 1; - color: #fff; } + color: #fff; + pointer-events: none; } .reveal .controls button { position: absolute; padding: 0; @@ -213,6 +214,7 @@ body { -webkit-transition: all 0.2s ease; transition: all 0.2s ease; z-index: 2; + pointer-events: auto; visibility: hidden; opacity: 0; -webkit-appearance: none; diff --git a/css/reveal.scss b/css/reveal.scss index 4a3c1a9..5a046d3 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -262,6 +262,7 @@ body { left: 0; z-index: 1; color: #fff; + pointer-events: none; button { position: absolute; @@ -276,6 +277,7 @@ body { transform: scale(.9999); transition: all 0.2s ease; z-index: 2; // above slides + pointer-events: auto; visibility: hidden; opacity: 0;