mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 03:32:38 +00:00
Fix footer on mobile when menu is open
This commit is contained in:
@@ -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;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user