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
<div class="navigation"> | |
<input class="navigation__cbox" id="DrawerToggle" type="checkbox"/> | |
<label class="navigation__hamburger-box" for="DrawerToggle"> | |
<span class="navigation__hamburger"> </span> | |
</label> | |
</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
.navigation { | |
&__cbox { display: none; } | |
&__hamburger-box { | |
width: 4rem; | |
height: 4rem; | |
position: absolute; | |
top: 3rem; | |
left: 3rem; | |
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
<ul> | |
<li>sassy</li> | |
<li>sassy</li> | |
<li>boi</li> | |
</ul> | |
<style> | |
ul { list-style:none; } | |
li::before { content: "💅 "; } | |
li::after { content: "✨"; } |
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
.navigation { | |
// ... | |
&__hamburger { | |
margin-top: 2rem; | |
position: relative; | |
} | |
} |
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
.navigation { | |
// ... | |
&__hamburger { | |
margin-top: 2rem; // middle line 'meat' of burger | |
position: relative; | |
// this sets the style for all 3 lines | |
&, | |
&::before, | |
&::after { |
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
.navigation { | |
// ... | |
&__hamburger { | |
margin-top: 2rem; // middle line 'meat' of burger | |
position: relative; | |
// this sets the style for all 3 lines | |
&, | |
&::before, | |
&::after { |
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
$hamburger-height: 4rem; | |
.navigation { | |
&__cbox { display: none; } | |
&__hamburger-box { | |
width: $hamburger-height; | |
height: $hamburger-height; | |
position: absolute; | |
top: 3rem; |
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
<div class="navigation"> | |
<input class="navigation__cbox"/> | |
... | |
<nav class="navigation_nav"> | |
</nav> | |
</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
$drawer-width: 80vw; | |
.navigation { | |
&__nav { | |
height: 100%; | |
position: absolute; | |
top: 0; | |
left: 0; | |
z-index: 1000; | |
// this hides the navigation drawer |
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
// R defined elsewhere | |
function Node (value = null) { | |
this.value = value | |
this.next = new Array(R) | |
} |