-
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.
Mobile menu now closes if you click menu item. Menu is now position: …
…sticky. Menu items are highlighted when active. Page headers briefly underline as you navigate to them
- Loading branch information
1 parent
42596a6
commit a809896
Showing
15 changed files
with
558 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.back-to-top { | ||
background-color: var(--clr-dark-green); | ||
position: fixed; | ||
right: 0; | ||
bottom: 0; | ||
clip: rect(1px, 1px, 1px, 1px); | ||
height: 1px; | ||
overflow: hidden; | ||
border-radius: 0.5rem 0 0 0; | ||
|
||
&.show { | ||
clip: auto; | ||
height: auto; | ||
overflow: visible; | ||
} | ||
& a { | ||
color: var(--clr-lightest); | ||
text-decoration: none; | ||
font-weight: 600; | ||
display: block; | ||
padding: 0.5rem 1rem; | ||
|
||
&::after { | ||
content: " \2191"; | ||
} | ||
|
||
&:hover { | ||
opacity: 0.8; | ||
} | ||
} | ||
} |
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,17 @@ | ||
.article h3 { | ||
padding-block-end: 0.5rem; | ||
border-bottom: 0.5rem solid transparent; | ||
|
||
&.highlight { | ||
animation: highlight 1s linear; | ||
} | ||
} | ||
|
||
@keyframes highlight { | ||
0% { | ||
border-bottom-color: transparent; | ||
} | ||
100% { | ||
border-bottom-color: var(--body-txt); | ||
} | ||
} |
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,6 +1,6 @@ | ||
@import "./theme.css"; | ||
@import "./base.css"; | ||
@import "./primary-navigation.css"; | ||
/* @import "./hamburger-button.css"; */ | ||
|
||
@import "./back-to-top.css"; | ||
@import "./theme-switcher.css"; | ||
@import "./primary-navigation.css"; | ||
@import "./highlight-headers.css"; |
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
Oops, something went wrong.