function checkScroll() {
window.headerHeight = 134;
- if (document.documentElement.scrollTop > 200) {
+ var scroll = document.documentElement.scrollTop;
+ if (scroll > 200) {
document.getElementById('site-header').classList.add('minimized');
window.headerHeight = 60;
- } else {
+ } else if (scroll < 100) {
document.getElementById('site-header').classList.remove('minimized');
}
}
<div class="flex relative items-start sm:block">
<!-- Filters column -->
- <div class="products-filters-wrapper sticky sm:static top-0 mr-1v sm:mr-0 pt-4 whitespace-no-wrap">
+ <div class="products-filters-wrapper sticky sm:static top-60 mr-1v sm:mr-0 pt-4 whitespace-no-wrap">
<!-- Filters panel -->
<div class="bg-white p-4">
<div class="products-grid flex-grow">
<!-- Grid summary header -->
- <div class="products-grid-summary sticky sm:static top-0 z-10 bg-grey-100 pt-4 pb-4 flex justify-between sm:block">
+ <div class="products-grid-summary sticky sm:static top-60 z-10 bg-grey-100 pt-4 pb-4 flex justify-between sm:block">
<!-- Active filters -->
<div class="products-grid-active-filters flex-grow text-sm">
#header-placeholder
height 134px
+ .template-home &
+ background-color:theme('colors.navy')
.site-header
--transition-duration 500ms
-
- @apply bg-navy text-white text-lg font-display font-medium antialiased
- position fixed
+ @apply bg-navy text-white text-lg font-display font-medium antialiased sticky top-0
transition height var(--transition-duration)
width 100%
- z-index 10
+ z-index 100
height 134px
.container
@include('partials.nav-mobile')
-<div id="header-placeholder"></div>
<header id="site-header" class="site-header">
<div class="container flex items-center py-8 relative z-30">
padding: {
'100p': '100%', // Used for proportional padding to make a square
'25p':'25%',
+ },
+ inset:{
+ '60':'60px'
}
},
},