Skip to content

Commit

Permalink
Allow anonymous submit
Browse files Browse the repository at this point in the history
Css fixes
  • Loading branch information
edwini committed Sep 6, 2022
1 parent 666151a commit 253b243
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 7 deletions.
41 changes: 41 additions & 0 deletions src/css/helios-gcx.css
Original file line number Diff line number Diff line change
Expand Up @@ -1494,4 +1494,45 @@ li.nav-item[data-depth="2"]:hover a {

code::before{
content:''!important;
}

@media only screen and (max-width: 600px) {
.navbar-brand img {
height: 30px;
}

.nav-toggle.is-active{
position: absolute;
z-index: 99999;
top: 10px;
left: 15px;
}
.nav-container.is-active{
width: 100%;
height: 100%;
}

.collapse[type=checkbox]+label{
display: none;
}

.nav, .nav-container{
background: white;
z-index: 9999;
}

.dark-mode .nav, .dark-mode .nav-container {
background: #20293a;
z-index: 9999;
}
}

.dark-mode .nav-toggle {
background: url(../img/menu-white.svg) no-repeat 50% 47.5%;
background-size: 49%;
}

.dark-mode .nav-toggle.is-active {
background: url(../img/back-white.svg) no-repeat 50% 47.5%;
background-size: 49%;
}
39 changes: 39 additions & 0 deletions src/img/back-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 19 additions & 5 deletions src/js/08-gcx-helios.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/*Dark theme verification*/
var theme = window.localStorage.getItem('theme')

function isMobile () {
// eslint-disable-next-line no-undef
if (sessionStorage.desktop) return false
// eslint-disable-next-line no-undef
else if (localStorage.mobile) return true
// eslint-disable-next-line max-len
var mobile = ['iphone', 'ipad', 'android', 'blackberry', 'nokia', 'opera mini', 'windows mobile', 'windows phone', 'iemobile']
for (var i in mobile) if (navigator.userAgent.toLowerCase().indexOf(mobile[i].toLowerCase()) > 0) return true
return false
}

window.addEventListener('DOMContentLoaded', (event) => {
var path = window.location.pathname
var page = path.split('/').pop()
Expand All @@ -16,7 +28,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
checkbox.checked = false
}

if (name === 'landing') {
if (name === 'landing' && !isMobile()) {
col.checked = true
sidebar.classList.add('small-container')
}
Expand Down Expand Up @@ -62,9 +74,11 @@ window.addEventListener('DOMContentLoaded', (event) => {

document.querySelector('#collapse').addEventListener('click', function (event) {
const sidebar = document.querySelector('.sidebar')
if (event.target.checked) {
sidebar.classList.add('small-container')
} else {
sidebar.classList.remove('small-container')
if (!isMobile()) {
if (event.target.checked) {
sidebar.classList.add('small-container')
} else {
sidebar.classList.remove('small-container')
}
}
})
2 changes: 1 addition & 1 deletion src/js/vendor/gcx-contact-form/gcx-contact-form.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/js/vendor/gcx-contact-form/p-c96a46d5.entry.js

This file was deleted.

1 change: 1 addition & 0 deletions src/js/vendor/gcx-contact-form/p-cc459cc2.entry.js

Large diffs are not rendered by default.

0 comments on commit 253b243

Please sign in to comment.