Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active November 21, 2015 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikat/ce162aa79ca5c94b3392 to your computer and use it in GitHub Desktop.
Save srikat/ce162aa79ca5c94b3392 to your computer and use it in GitHub Desktop.
.footer-widgets {
background: #fff url(images/lines.png);
background-size: 6px 6px;
color: #999;
clear: both;
font-size: 14px;
margin-bottom: 5px;
padding: 60px 60px 16px;
}
.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3 {
width: 310px;
}
.footer-widgets-1 {
margin-right: 40px;
}
.footer-widgets-1,
.footer-widgets-2 {
float: left;
}
.footer-widgets-3 {
float: right;
}
.footer-widgets .widget {
margin-bottom: 24px;
}
.footer-widgets {
background: #fff url(images/lines.png);
background-size: 6px 6px;
color: #999;
clear: both;
font-size: 14px;
margin-bottom: 5px;
/*padding: 60px 60px 16px;*/
}
/*.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3 {
width: 310px;
}
.footer-widgets-1 {
margin-right: 40px;
}
.footer-widgets-1,
.footer-widgets-2 {
float: left;
}
.footer-widgets-3 {
float: right;
}
.footer-widgets .widget {
margin-bottom: 24px;
}*/
.nav-footer {
overflow: hidden;
margin-bottom: 5px;
}
.footer-widgets .widget {
margin-bottom: 0;
}
.footer-widgets .widget ul > li::before {
content: normal;
}
.footer-widgets .widget ul > li {
border-bottom: none;
margin: 0;
padding: 0;
}
.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3,
.sidebar-primary {
width: 250px;
}
.footer-widgets {
padding: 40px 5% 16px;
}
jQuery(function( $ ){
$( ".footer-widgets .menu" ).addClass( "genesis-nav-menu" );
$("header .genesis-nav-menu, .nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu, .footer-widgets .menu").addClass("responsive-menu").before('<div class="responsive-menu-icon"></div>');
$(".responsive-menu-icon").click(function(){
$(this).next("header .genesis-nav-menu, .nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu, .footer-widgets .menu").slideToggle();
});
$(window).resize(function(){
if(window.innerWidth > 767) {
$("header .genesis-nav-menu, .nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu, .footer-widgets .menu, nav .sub-menu").removeAttr("style");
$(".responsive-menu > .menu-item").removeClass("menu-open");
}
});
$(".responsive-menu > .menu-item").click(function(event){
if (event.target !== this)
return;
$(this).find(".sub-menu:first").slideToggle(function() {
$(this).parent().toggleClass("menu-open");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment