Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Hide menu on load
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed May 22, 2015
1 parent 7f306ce commit 7b6be81
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _assets/stylesheets/_sliding-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
height: 100%;
transform: translateX(100%);
transition: $sliding-menu-animation;
background: $sliding-menu-background; // fallback
// background: rgba($sliding-menu-background,0.85);
background: $sliding-menu-background;
opacity: 0; // hide menu on load
z-index: 50;
-webkit-overflow-scrolling: touch;
&.is-visible {
opacity: 1;
transform: translateX(0);
}
ul,
Expand Down
12 changes: 12 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@
{% javascript vendor/respond %}
<![endif]-->

<!-- menu fix for old IE -->
<!--[if lt IE 9]>
<style>
.sliding-menu-content {
display: none;
}
.sliding-menu-content.is-visible {
display: block;
}
</style>
<![endif]-->

<link rel="apple-touch-icon" sizes="57x57" href="{{ site.url }}/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="{{ site.url }}/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="{{ site.url }}/apple-touch-icon-72x72.png">
Expand Down

0 comments on commit 7b6be81

Please sign in to comment.