-
-
Save KaiserEMP/f4b47f161e1bdb7833df968cacb15756 to your computer and use it in GitHub Desktop.
sdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function reserveHeaderSpace() { | |
| if (!$('body').hasClass('not-top')) { | |
| var headerHeight = $('header.header').outerHeight(); | |
| if (!$('body').hasClass("mobile-menu-visible")) { | |
| if (!$('body').hasClass("search-visible")) { | |
| $('.content-wrap').css('padding-top', headerHeight); | |
| } | |
| } | |
| } else { | |
| $('.content-wrap').css('padding-top', ''); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment