Skip to content

Commit 236fe40

Browse files
author
russellgoldenberg
committed
nav on desktop
1 parent b0fd012 commit 236fe40

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/css/story/header.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ a.logo
186186
z-index set-index('overlay') + 1
187187
position absolute
188188
top 1rem
189-
right 1rem
189+
right 0.75rem
190190
background-color $off-black
191191
color $primary
192192
font-weight 700

src/css/story/story.styl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,11 @@ main
136136
font-size 24px
137137
line-height 26px
138138
width 26px
139-
height 26px
139+
height 26px
140+
141+
.mapboxgl-ctrl-top-right
142+
top 3.5rem
143+
right 0.2rem
144+
display none
145+
+mq('bp-5')
146+
display block

src/js/graphic.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ function setupMap() {
151151
map.on('mousedown', hideHeader);
152152
map.on('touchstart', hideHeader);
153153
map.on('load', addLocation);
154+
155+
map.addControl(new mapboxgl.NavigationControl({ showCompass: false }));
154156
}
155157

156158
function setupUI() {

0 commit comments

Comments
 (0)