The following users have thanked you: Zesharck
// Gantry 5 custom CSS file
// import breakpoints
@import "nucleus/mixins/breakpoints";
// Typical values are the default breakpoints set in Gantry 5
// but these values are user definable in style settings
// so that is why the code below uses mixins to get the actual
// values from Gantry 5 template.
// commonly used media queries
// typically min 75rem
@include breakpoint(large-desktop-range) {
}
// typically range 60rem to 74.938rem
@include breakpoint(desktop-range) {
}
// typically 48rem to 59.938rem
@include breakpoint(tablet-range) {
}
// typically 30rem to 47.938rem
@include breakpoint(large-mobile-range) {
}
// typically max 30rem
@include breakpoint(small-mobile-range) {
}
// Less commonly used media queries
// typically min 60rem
@include breakpoint(desktop-only) {
}
// typically min 48rem
@include breakpoint(no-mobile) {
}
// typically max 47.938 rem
@include breakpoint(mobile-only) {
}
// typically max 59.938rem
@include breakpoint(no-desktop) {
}
.headroom--not-top.slideDown ~ section#g-navigation {
left: 0px;
right: 0px;
top: 99px;
z-index: 100;
}
.headroom.slideUp ~ section#g-navigation {
left: 0px;
position: fixed;
right: 0px;
top: 0px;
z-index: 100;
}
.headroom--not-top.slideDown ~ section#g-navigation {
left: 0px;
position: fixed;
right: 0px;
top: 99px;
z-index: 100;
max-height: 100px;
}
.headroom--not-top.slideUp {
-webkit-transform: translateY(-100%);
-ms-transform: translateY(-100%);
transform: translateY(-100%);
}
.headroom--not-top.slideDown {
left: 0px;
position: fixed;
right: 0px;
top: 0px;
z-index: 100;
max-height: 100px;
}
document.addEventListener("DOMContentLoaded", function(event) {
var myElement = document.querySelector(".headroom");
console.log(myElement); // is this null?
var headroom = new Headroom(myElement, {
"offset": 0,
"tolerance": 0,
"classes": {
"initial": "animated",
"pinned": "slideDown",
"unpinned": "slideUp"
}
});
headroom.init();
});
The following users have thanked you: Skylance
Time to create page: 0.074 seconds