-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move some less-used menu items to a new click-to-show menu at the top right.
- Loading branch information
Showing
15 changed files
with
165 additions
and
45 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,14 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.less] | ||
indent_style = space | ||
indent_size = 2 | ||
|
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,105 @@ | ||
body > header { | ||
flex: 2; | ||
text-align: center; | ||
border-bottom: @border-primary; | ||
padding: 0.5rem; | ||
background-color: #f1f8f2; | ||
|
||
a { | ||
color: @font-color; | ||
} | ||
|
||
h1 { | ||
color: @font-color; | ||
margin: 0; | ||
font-variant: small-caps; | ||
letter-spacing: 0.1em; | ||
} | ||
} | ||
|
||
nav.main-nav ul { | ||
display: flex; | ||
flex-wrap: wrap; | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
|
||
li { | ||
flex: 1; | ||
padding: 0 0.2em; | ||
} | ||
} | ||
|
||
.opaque-underlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-image: linear-gradient(326deg, #fdfbf9 0%, #f3f2f1 98%); | ||
opacity: 0.5; | ||
content: ''; | ||
z-index: 10; | ||
display: none; | ||
} | ||
|
||
nav.main-menu { | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
text-align: right; | ||
opacity: 0.6; | ||
z-index: 20; | ||
|
||
&.menu-open { | ||
background-color: white; | ||
box-shadow: -3px 3px 6px 0 rgba(212, 212, 212, 1); | ||
border: 1px solid #bbb; | ||
border-width: 0 0 1px 1px; | ||
opacity: 1; | ||
|
||
ul { | ||
display: block; | ||
} | ||
} | ||
|
||
&.menu-closed ul { | ||
display: none; | ||
} | ||
|
||
div { | ||
padding-right: 5px; | ||
text-align: right; | ||
} | ||
|
||
img { | ||
cursor: pointer; | ||
} | ||
|
||
ul { | ||
text-align: left; | ||
margin: 0; | ||
padding: 0; | ||
display: block; | ||
list-style-type: none; | ||
} | ||
|
||
li > * { | ||
display: block; | ||
padding: 5px 15px; | ||
border-bottom: 1px solid #bbb; | ||
} | ||
|
||
li:first-of-type > * { | ||
border-top: 1px solid #bbb; | ||
} | ||
|
||
li:last-of-type > * { | ||
border-bottom: 0; | ||
} | ||
|
||
li > *:hover { | ||
text-decoration: none; | ||
background-color: lightcyan; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 +1,4 @@ | ||
import '../css/app.less'; | ||
import './timezone-converter'; | ||
import './tags'; | ||
import './site-header'; |
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,15 @@ | ||
(function () { | ||
const mainMenu = document.querySelector('.main-menu'); | ||
const underlay = document.querySelector('.opaque-underlay'); | ||
document.querySelector('.main-menu img').onclick = () => { | ||
if (mainMenu.classList.contains('menu-closed')) { | ||
mainMenu.classList.add('menu-open'); | ||
mainMenu.classList.remove('menu-closed'); | ||
underlay.style.display = 'block'; | ||
} else { | ||
mainMenu.classList.remove('menu-open'); | ||
mainMenu.classList.add('menu-closed'); | ||
underlay.style.display = 'none'; | ||
} | ||
}; | ||
})(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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.
File renamed without changes.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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