Skip to content

Commit

Permalink
Better mobile button styling and placement
Browse files Browse the repository at this point in the history
Closes #152
  • Loading branch information
stdavis committed Jun 13, 2017
1 parent 17f81c3 commit 82155d3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
2 changes: 2 additions & 0 deletions lib/app/App.js
Expand Up @@ -121,6 +121,8 @@ define([

domClass.toggle(this.sideBar, 'expanded');
domClass.toggle(this.mapDiv, 'hidden');
domClass.toggle(this.mobileBtnSpan, 'glyphicon-menu-hamburger');
domClass.toggle(this.mobileBtnSpan, 'glyphicon-globe');
},
startup: function () {
// summary:
Expand Down
27 changes: 15 additions & 12 deletions lib/app/resources/App.styl
Expand Up @@ -55,18 +55,6 @@ html, body, .app
color @color
img.logo
padding-top 10px
>p
text-align center
.mobile-menu-btn
display none
visibility hidden
@media $mobile-media-query
display inline-block
visibility visible
float right
background transparent
border none
color #FFFFFF
@media $mobile-media-query
width 100%
max-height $mobile-header-height
Expand All @@ -76,6 +64,21 @@ html, body, .app
&.expanded
max-height 100%
overflow-y scroll
.help-container
display flex
align-items center
justify-content space-between
.mobile-menu-btn
display none
visibility hidden
@media $mobile-media-query
visibility visible
display inherit
font-size 17px
padding 6px 7px
border-color #57585A
border-radius 5px
margin 10px 0 10px 10px
.footer-links
display flex
font-size .8em
Expand Down
23 changes: 15 additions & 8 deletions lib/app/templates/App.html
Expand Up @@ -8,13 +8,19 @@
</ul>
<hr>

<button type='button' class='btn btn-default btn-xs mobile-menu-btn'
data-dojo-attach-event='click: toggleMobilePane'>
<span class="glyphicon glyphicon-menu-hamburger"></span>
</button>
<p>
Click on the map to get information about the current location.
</p>
<div class='help-container'>
<p class='map-help'>
Click on the map to get information about the current location.
</p>
<button type='button' class='btn btn-default btn-xs mobile-menu-btn'
data-dojo-attach-event='click: toggleMobilePane'>
<span data-dojo-attach-point='mobileBtnSpan'
class="glyphicon glyphicon-menu-hamburger"></span>
</button>
</div>
<!-- <p class='mobile-menu-help'>
Click on the
</p> -->
<div data-dojo-attach-point='layersDiv' class='layers'></div>

<ul>
Expand Down Expand Up @@ -45,6 +51,7 @@
<li><a href="http://www.utah.gov/translate.html" target='_blank'>Translate</a></li>
</ul>
</div>
<div data-dojo-attach-point="mapDiv" class='map'></div>
<div data-dojo-attach-point="mapDiv" class='map'>
</div>
<div data-dojo-attach-point='sherlockMatchesTableContainer' class='sherlock'></div>
</div>

0 comments on commit 82155d3

Please sign in to comment.