From 9342d19b5adcd3eea1f2f16ba74ec2f83928efc5 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 12 Jun 2017 10:22:47 +0200 Subject: fix centering of edge-aligned controls --- css/reveal.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'css/reveal.css') diff --git a/css/reveal.css b/css/reveal.css index 5f549fe..625fe6f 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -400,16 +400,20 @@ body { right: auto; } .reveal .controls[data-controls-layout="edges"] .navigate-left { top: 50%; - left: 8px; } + left: 8px; + margin-top: -1.8em; } .reveal .controls[data-controls-layout="edges"] .navigate-right { top: 50%; - right: 8px; } + right: 8px; + margin-top: -1.8em; } .reveal .controls[data-controls-layout="edges"] .navigate-up { top: 8px; - left: 50%; } + left: 50%; + margin-left: -1.8em; } .reveal .controls[data-controls-layout="edges"] .navigate-down { bottom: 8px; - left: 50%; } } + left: 50%; + margin-left: -1.8em; } } /********************************************* * PROGRESS BAR -- cgit v1.2.3