Skip to content

Commit

Permalink
Adjust menu bar spacing responsive.
Browse files Browse the repository at this point in the history
Makes it possible to read the upper buttons on mobile devices.
  • Loading branch information
soerface committed Sep 26, 2015
1 parent d0d6b21 commit f51adca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
1 change: 0 additions & 1 deletion controller/static/app/layout/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<div class="ui active inverted dimmer" ng-show="isLoadingView">
<div class="ui loader"></div>
</div>
<div id="menu-bar-spacer"></div>
<div id="content" ui-view>
</div>
</div>
Expand Down
24 changes: 22 additions & 2 deletions controller/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,28 @@
text-transform: none;
}

#menu-bar-spacer {
padding: 20px;
@media (min-width: 931px) {
#content {
margin-top: 3rem;
}
}

@media (max-width: 930px) {
#content {
margin-top: 5.5rem;
}
}

@media (max-width: 480px) {
#content {
margin-top: 8rem;
}
}

@media (max-width: 350px) {
#content {
margin-top: 10.5rem;
}
}

.ui.small.model.transition {
Expand Down

0 comments on commit f51adca

Please sign in to comment.