浏览代码

fix unclickable slides in overview when controls were edge-aligned

Hakim El Hattab 8 年之前
父节点
当前提交
92049d8244
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 3 1
      css/reveal.css
  2. 2 0
      css/reveal.scss

+ 3 - 1
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;

+ 2 - 0
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;