From 7ecc79c93bcd062b10c77a9ea83558ff93f22d23 Mon Sep 17 00:00:00 2001 From: Jerome Dahdah Date: Thu, 1 Mar 2018 17:33:14 +0100 Subject: [PATCH] Factor nav-padding into search input width (#967) Hardcoded value of 30px no longer works when navigation padding is changed. This is now calculated dynamically. --- source/stylesheets/screen.css.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/stylesheets/screen.css.scss b/source/stylesheets/screen.css.scss index 48dd009..83da68c 100644 --- a/source/stylesheets/screen.css.scss +++ b/source/stylesheets/screen.css.scss @@ -88,7 +88,7 @@ html, body { padding: 6px 0 6px 20px; box-sizing: border-box; margin: $nav-v-padding $nav-padding; - width: $nav-width - 30; + width: $nav-width - ($nav-padding*2); outline: none; color: $nav-text; border-radius: 0; /* ios has a default border radius */