From d527ccd8f579be3888cbdde1b4fe7ba7fab0c6a0 Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Sun, 17 Nov 2019 07:46:29 +0000 Subject: [PATCH] Layout mobile navbar nicely with Flexbox (#1497) Before hamburger menu was floated to the right with a fixed margin-top, which means that it probably wasn't perfectly centered and if we would change logo image size, we would have to edit that margin manually. --- _includes/nav.html | 20 ++++++++++---------- assets/css/style.scss | 3 +-- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/_includes/nav.html b/_includes/nav.html index 461457a2..3f9960df 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -1,14 +1,14 @@ -
-
+ + diff --git a/assets/css/style.scss b/assets/css/style.scss index 8b969301..a83d9cf2 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -340,8 +340,7 @@ input#nav-toggle, input#nav-toggle + label { display: block; cursor: pointer; - margin-top: 0.25rem; - float: right; + margin-bottom: 0; } .nav-dropdown { display: block;