Skip to content

Commit 7ecc79c

Browse files
jdahdahlord
authored andcommitted
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.
1 parent c8941b0 commit 7ecc79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/stylesheets/screen.css.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ html, body {
8888
padding: 6px 0 6px 20px;
8989
box-sizing: border-box;
9090
margin: $nav-v-padding $nav-padding;
91-
width: $nav-width - 30;
91+
width: $nav-width - ($nav-padding*2);
9292
outline: none;
9393
color: $nav-text;
9494
border-radius: 0; /* ios has a default border radius */

0 commit comments

Comments
 (0)