From d414d6237fdf96f5ae72515b5aa67d40701fb1a1 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Fri, 25 Aug 2017 14:27:50 +0200 Subject: [PATCH] Menu positioning adjustments. WIP #1501 @0.5 --- style/mmenu/mmenu.less | 2 +- style/nav-horizontal.less | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/style/mmenu/mmenu.less b/style/mmenu/mmenu.less index 25e40b36..90b7f34d 100644 --- a/style/mmenu/mmenu.less +++ b/style/mmenu/mmenu.less @@ -96,7 +96,7 @@ html.mm-opening .mm-menu.mm-opened[class*=mm-pagedim]~#mm-blocker { position: absolute; right: 20px; top: 50%; - margin-top: -10px; // Half height of opening icon for centering + transform: translateY(-50%); font-size: 16px; line-height: 1; color: @icon-color; diff --git a/style/nav-horizontal.less b/style/nav-horizontal.less index eacf9500..7954fed0 100644 --- a/style/nav-horizontal.less +++ b/style/nav-horizontal.less @@ -1,7 +1,8 @@ #horizontalNav { position: absolute; right: 0; - top: 18px; + top: 50%; + transform: translateY(-50%); @media all and (max-width: @menu-breakpoint) { display: none; -- 2.39.5