diff --git a/_data/navigation.yml b/_data/navigation.yml new file mode 100644 index 00000000..ee7b8a2d --- /dev/null +++ b/_data/navigation.yml @@ -0,0 +1,6 @@ +- name: Releases + url: '/releases/' + external_site: false +- name: Log + url: /news/ + external_site: false diff --git a/_includes/navigation.html b/_includes/navigation.html index 45c18599..43aab80f 100644 --- a/_includes/navigation.html +++ b/_includes/navigation.html @@ -1,11 +1,29 @@ -{% if page.url == '/' %} - -{% elsif page.collection == 'tracks' %} - -{% else %} - - - -{% endif %} - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/_sass/_set.scss b/_sass/_set.scss index 41b09b5d..45d0eb7d 100644 --- a/_sass/_set.scss +++ b/_sass/_set.scss @@ -65,19 +65,21 @@ animation-play-state: paused; } -/* Navigation */ +/* NAVIGATION */ +/* Style the navbar */ +#logo { + padding:10px; + +} .logo { - z-index: 10; text-decoration: none; - position: absolute; + position: fixed; top:20px; left: 50%; transform: translateX(-50%); - width: 80%; - height: 15%; + width: 300px; background-color: transparent; - background-image: url('/assets/panix-logo.svg'); background-repeat: no-repeat; background-position: center center; background-size: 95% 95%; @@ -86,25 +88,18 @@ transition: all 400ms ease-in; box-shadow: none; border-radius: 20px; - -webkit-filter: blur(15px); - -moz-filter: blur(15px); - -ms-filter: blur(15px); - -o-filter: blur(15px); - filter: blur(15px); -} -.logo:hover { - -webkit-filter: blur(0px); - -moz-filter: blur(0px); - -ms-filter: blur(0px); - -o-filter: blur(0px); - filter: blur(0px); + display: flex; + flex-wrap: wrap; + justify-content: center; + align-content: space-evenly; + background-color: rgba(255, 255, 255, 0.5); } .sticky { position: fixed; top: 20px; - right: 20px; - width: 50%; - height: 10%; + left: 50%; + transform: translateX(-50%); + background-color: _palette(bg); background-repeat: no-repeat; background-position: center center; @@ -113,53 +108,8 @@ -moz-transition: all 400ms ease-in; transition: all 400ms ease-in; box-shadow: 0 0 10px 1px _palette(border-alt); - -webkit-filter: blur(0px); - -moz-filter: blur(0px); - -ms-filter: blur(0px); - -o-filter: blur(0px); - filter: blur(0px); } - .sticky:hover { - -webkit-filter: blur(0px); - -moz-filter: blur(0px); - -ms-filter: blur(0px); - -o-filter: blur(0px); - filter: blur(0px); - } - @media only screen and (min-width: 769px) { - .logo { - position: absolute; - top:20px; - right: 20px; - width: 25%; - height: 15%; - background-color: transparent; - background-image: url('/assets/panix-logo.svg'); - background-repeat: no-repeat; - background-position: center center; - background-size: 95% 95%; - -webkit-transition: all 400ms ease-in; - -moz-transition: all 400ms ease-in; - transition: all 400ms ease-in; - box-shadow: none; - border-radius: 20px; - } - .sticky { - position: fixed; - top: 20px; - right: 20px; - width: 20%; - height: 10%; - background-color: _palette(bg); - background-repeat: no-repeat; - background-position: center center; - background-size: 95% 95%; - -webkit-transition: all 400ms ease-in; - -moz-transition: all 400ms ease-in; - transition: all 400ms ease-in; - box-shadow: 0 0 10px 1px _palette(border-alt); - } -} + nav { position: absolute; @@ -175,6 +125,7 @@ nav { padding: 20px; display: flex; flex-wrap: wrap; + ul { margin: auto; @@ -207,17 +158,19 @@ nav { } .modalDialog { position: fixed; + font-family: Arial, Helvetica, sans-serif; top: 0; right: 0; bottom: 0; left: 0; - background: _palette(border-dark); + background: _palette(fg-light); z-index: 11; opacity:0; -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; pointer-events: none; + } .modalDialog:target { @@ -243,8 +196,8 @@ nav { .close-button { - background: _palette(fg); - color: _palette(bg); + background: _palette(accent-dark); + color: #FFFFFF; line-height: 48px; position: absolute; right: -12px; @@ -264,8 +217,8 @@ nav { } .close-button:hover { - background: _palette(accent); - color: _palette(fg); + background: _palette(bg_alt); + color: _palette(bg); } #closearea { @@ -275,6 +228,46 @@ nav { } +@media only screen and (min-width: 769px) { + .logo { + position: fixed; + top:20px; + left: 95%; + transform: translateX(-95%); + background-color: transparent; + background-repeat: no-repeat; + background-position: center center; + background-size: 95% 95%; + -webkit-transition: all 400ms ease-in; + -moz-transition: all 400ms ease-in; + transition: all 400ms ease-in; + box-shadow: none; + border-radius: 20px; + z-index: 90000; + + } + .sticky { + position: fixed; + top: 20px; + right: 20px; + + background-color: _palette(bg); + background-repeat: no-repeat; + background-position: center center; + background-size: 95% 95%; + -webkit-transition: all 400ms ease-in; + -moz-transition: all 400ms ease-in; + transition: all 400ms ease-in; + box-shadow: 0 0 10px 1px _palette(border-alt); + } + nav { + top: 120px; + left: 95%; + transform: translate(-95%); + } + +} + //* POSTS *// diff --git a/assets/js/set.js b/assets/js/set.js index 72e0c3b7..61007739 100644 --- a/assets/js/set.js +++ b/assets/js/set.js @@ -20,13 +20,13 @@ function scrollMenu() { } // Make a pretty background when menu is open -// var bodyBluring = document.getElementById("wrapper") +var bodyBluring = document.getElementById("wrapper") -// function blurBody() { -// bodyBluring.classList.toggle("blurredout"); -// } -// function removeBlur() { -// bodyBluring.classList.remove("blurredout") -// } +function blurBody() { + bodyBluring.classList.toggle("blurredout"); +} +function removeBlur() { + bodyBluring.classList.remove("blurredout") +} /// request permission to autoplay \ No newline at end of file