-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
81 additions
and
116 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,13 +1,67 @@ | ||
--- | ||
--- | ||
<div class="nav-links"> | ||
<div class="group"> | ||
<a href="/about"> About </a> | ||
<div class="nav-seperator">|</div> | ||
<a href="/docs"> Docs </a> | ||
<div class="nav-seperator">|</div> | ||
<a href="/blog"> Blog </a> | ||
</div> | ||
<div class="group"> | ||
<div class="nav-seperator">|</div> | ||
<a href="/tutorials"> Tutorials </a> | ||
<div class="nav-seperator">|</div> | ||
<a href="/docs"> Docs </a> | ||
<div class="nav-seperator">|</div> | ||
<a href="/languages"> Languages </a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<style> | ||
.nav-links a { | ||
padding: 5px 10px; | ||
text-decoration: none; | ||
font-size: 1.2rem; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
color: var(--accent-text); | ||
} | ||
|
||
.nav-links .group { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
} | ||
|
||
.nav-links a:hover, | ||
a:focus { | ||
text-decoration: underline; | ||
} | ||
|
||
.nav-seperator { | ||
display: none; | ||
} | ||
|
||
@media screen and (min-width: 636px) { | ||
.nav-links { | ||
display: inline-flex; | ||
position: static; | ||
background: none; | ||
} | ||
|
||
.nav-links a { | ||
display: inline-block; | ||
padding: 15px 20px; | ||
} | ||
.nav-seperator { | ||
display: block; | ||
color: var(--accent-text); | ||
font-size: 40px; | ||
font-weight: 200; | ||
} | ||
.link-container { | ||
padding-bottom: 4rem; | ||
width: 680px; | ||
margin: auto; | ||
} | ||
} | ||
</style> |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
document.querySelector(".hamburger").addEventListener("click", () => { | ||
document.querySelector(".nav-links").classList.toggle("expanded"); | ||
// document.querySelector(".hamburger").addEventListener("click", () => { | ||
// document.querySelector(".nav-links").classList.toggle("expanded"); | ||
|
||
let seperators = document.querySelectorAll(".nav-seperator"); | ||
for (let seperator of seperators) { | ||
seperator.classList.toggle("nav-seperator-expanded"); | ||
} | ||
}); | ||
// let seperators = document.querySelectorAll(".nav-seperator"); | ||
// for (let seperator of seperators) { | ||
// seperator.classList.toggle("nav-seperator-expanded"); | ||
// } | ||
// }); |
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 |
---|---|---|
@@ -1,72 +1 @@ | ||
/* nav styles */ | ||
.hamburger { | ||
padding-right: 20px; | ||
cursor: pointer; | ||
} | ||
|
||
.hamburger .line { | ||
display: block; | ||
width: 40px; | ||
height: 5px; | ||
margin-bottom: 10px; | ||
background-color: grey; | ||
} | ||
|
||
.nav-links { | ||
width: 100%; | ||
top: 5rem; | ||
left: 48px; | ||
background-color: #ff9776; | ||
display: none; | ||
margin: 0; | ||
} | ||
|
||
.nav-links a { | ||
display: block; | ||
text-align: center; | ||
padding: 10px 0; | ||
text-decoration: none; | ||
font-size: 1.2rem; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
color: var(--accent-text); | ||
} | ||
|
||
.nav-links a:hover, | ||
a:focus { | ||
text-decoration: underline; | ||
} | ||
|
||
.expanded { | ||
display: unset; | ||
} | ||
|
||
.nav-seperator-expanded { | ||
display: none; | ||
} | ||
|
||
@media screen and (min-width: 636px) { | ||
.nav-links { | ||
display: inline-flex; | ||
position: static; | ||
background: none; | ||
} | ||
|
||
.nav-links a { | ||
display: inline-block; | ||
padding: 15px 20px; | ||
} | ||
.hamburger { | ||
display: none; | ||
} | ||
.nav-seperator { | ||
color: var(--accent-text); | ||
font-size: 40px; | ||
font-weight: 200; | ||
} | ||
.link-container { | ||
padding-bottom: 4rem; | ||
width: 680px; | ||
margin: auto; | ||
} | ||
} |