This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80ee63f
commit 5ea8c88
Showing
17 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ | |
</head> | ||
<body> | ||
|
||
{% partial 'slideNav' %} | ||
|
||
<div class="site-wrapper"> | ||
|
||
{% partial 'topbar' %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="hamburger"> | ||
<img src="{{ 'assets/hamburger.svg' | theme }}" alt=""/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="slide-nav"> | ||
{% component 'mainMenu' %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$('<div class="slide-nav-overlay">').on('click', e => { | ||
global.$body.removeClass('slide-nav-is-open'); | ||
}).appendTo(global.$siteWrapper); | ||
|
||
global.$hamburger.on('click', e => { | ||
global.$body.addClass('slide-nav-is-open'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.hamburger | ||
margin-top .6em | ||
margin-left .5em | ||
+above('m') | ||
display none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.slide-nav | ||
position fixed | ||
left 0 | ||
width 280px | ||
height 100% | ||
overflow-y auto | ||
background #fafafa | ||
transform translate3d(-100%, 0, 0) | ||
|
||
.slide-nav-overlay | ||
opacity 0 | ||
background rgba(255, 255, 255, .6) | ||
pointer-events none | ||
position absolute | ||
width 100% | ||
height 100% | ||
top 0 | ||
left 0 | ||
|
||
.slide-nav, | ||
.site-wrapper, | ||
.slide-nav-overlay | ||
transition .2s ease-out | ||
transiton-property transform, opacity | ||
|
||
.slide-nav-is-open | ||
overflow hidden | ||
.site-wrapper | ||
transform translate3d(280px, 0, 0) | ||
.slide-nav | ||
transform translate3d(0, 0, 0) | ||
.slide-nav-overlay | ||
opacity 1 | ||
pointer-events all | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters