Fix footer on mobile when menu is open

This commit is contained in:
Ryan Watters
2017-02-11 16:55:31 -08:00
parent 6384a53f3f
commit 212241b8c5
4 changed files with 24 additions and 16 deletions
@@ -2,11 +2,11 @@
$('#navigation-toggle').on('click', function(evt) {
evt.preventDefault();
evt.stopPropagation();
$('#site-navigation,.all-content-wrapper,#navigation-toggle').toggleClass('navigation-open');
$('#site-navigation,.all-content-wrapper,#navigation-toggle,#site-footer').toggleClass('navigation-open');
});
//close navigation if body content is clicked when docs are open
$('#all-content-wrapper').on('click', function() {
if ($('.site-navigation.navigation-open')) {
$('.site-navigation.navigation-open,.all-content-wrapper.navigation-open,#navigation-toggle').removeClass('navigation-open');
$('.site-navigation.navigation-open,.all-content-wrapper.navigation-open,#navigation-toggle,#site-footer').removeClass('navigation-open');
}
});
@@ -1,23 +1,31 @@
#site-footer {
position: relative;
display: flex;
align-items:center;
justify-content:space-around;
align-items: center;
justify-content: space-around;
background-color: $hugo-black;
min-height: 100px;
width: 100%;
color: $hugo-white;
transition: transform .3s ease-in-out;
div {
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
img {
max-width:200px;
}
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
img {
max-width: 200px;
}
}
&.navigation-open {
transition: transform .3s ease-in-out;
transform: translateX($site-navigation-width);
@include MQ(L){
transform: translateX(0);
}
}
i.icon-heart:before {
color:$hugo-pink;
color: $hugo-pink;
}
@include MQ(L) {
width:calc(100% - #{$site-navigation-width});
@@ -28,8 +36,8 @@
ul.footer-list {
color: $hugo-white;
list-style: none;
margin-left:0px;
padding-left:0px;
margin-left: 0px;
padding-left: 0px;
li a {
color: $hugo-white;
font-size: .9em;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long