fixing the js and styles so that there is enough padding on the main page content in mobile
and tablet view
height: 300px; }
@media only screen and (max-width: 40em) {
- #slideshow {
- height: 270px; } }
-#slideshow li {
- list-style: none; }
- @media only screen and (min-width:40.063em) and (max-width:64em) {
- #slideshow li {
- height: 386px; } }
+ .page-inside, .page-front {
+ padding-top: 150px; } }
+@media only screen and (min-width:40.063em) and (max-width:64em) {
+ .page-inside, .page-front {
+ padding-top: 100px; } }
+
+#slideshow {
+ margin-top: 10px; }
@media only screen and (max-width: 40em) {
- #slideshow li {
+ #slideshow {
height: 270px; } }
- #slideshow li img {
- max-height: 386px; }
-#slideshow #caption {
- background: rgba(0, 0, 0, 0.75);
- color: #FFFFFF;
- margin-top: -51px; }
- #slideshow #caption p {
- padding: 10px 5px;
- font-size: 12px;
- margin: 0;
- text-align: right; }
+ #slideshow li {
+ list-style: none; }
+ @media only screen and (min-width:40.063em) and (max-width:64em) {
+ #slideshow li {
+ height: 386px; } }
+ @media only screen and (max-width: 40em) {
+ #slideshow li {
+ height: 270px; } }
+ #slideshow li img {
+ max-height: 386px; }
+ #slideshow #caption {
+ background: rgba(0, 0, 0, 0.75);
+ color: #FFFFFF;
+ margin-top: -51px; }
+ #slideshow #caption p {
+ padding: 10px 5px;
+ font-size: 12px;
+ margin: 0;
+ text-align: right; }
/* NextGen Gallery */
.ngg-gallery-thumbnail, .ngg-gallery-thumbnail-box {
<div class="off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">
<div id="page-wrapper">
- <header class="sticky">
+ <header class="sticky fixed">
<div class="row collapse">
<div id="logo" class="small-12 small-text-center large-text-left large-6 columns">
<a href="<?php bloginfo('url');?>"><img alt="Petoskey.com" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/petoskey-dot-com-logo.png"></a>
var slideshow = $("#slideshow");
var body = $("body");
+ var page = body.find('#page-wrapper main');
var sticky = $(".sticky");
var width;
var page_front = $(".page-front");
if($(window).width() > 1023){
sticky.addClass("fixed");
- $(page_front).css("padding-top", "53px");
+ page.css("padding-top", "53px");
// $(slideshow).css("margin-top", "20px");
+ } else if($(window).width() < 1023 && $(window).width() > 640){
+ page.css("padding-top", "100px");
+ } else {
+ page.css("padding-top", "150px");
}
$(window).resize( function () {
} else if(width > 639 && width < 1025){
// $(page_front).css("padding-top", "155px");
} else if(width > 1024){
- $(page_front).css("padding-top", "53px");
+ page.css("padding-top", "53px");
// $(slideshow).css("margin-top", "20px");
}
});
// if(width > 319 && width < 641 ){
// $(page_front).css("padding-top", "200px");
-// } else if(width > 639 && width < 1025){
-// $(page_front).css("padding-top", "155px");
+ if(width < 1024){
+ sticky.removeClass("fixed");
+ page.css("padding-top", "0px");
+ }
// } else if(width > 1024){
// $(page_front).css("padding-top", "65px");
// $(slideshow).css("margin-top", "20px");
var slideshow = $("#slideshow");
var body = $("body");
+ var page = body.find('#page-wrapper main');
var sticky = $(".sticky");
var width;
var page_front = $(".page-front");
if($(window).width() > 1023){
sticky.addClass("fixed");
- $(page_front).css("padding-top", "53px");
+ page.css("padding-top", "53px");
// $(slideshow).css("margin-top", "20px");
+ } else if($(window).width() < 1023 && $(window).width() > 640){
+ page.css("padding-top", "100px");
+ } else {
+ page.css("padding-top", "150px");
}
$(window).resize( function () {
} else if(width > 639 && width < 1025){
// $(page_front).css("padding-top", "155px");
} else if(width > 1024){
- $(page_front).css("padding-top", "53px");
+ page.css("padding-top", "53px");
// $(slideshow).css("margin-top", "20px");
}
});
// if(width > 319 && width < 641 ){
// $(page_front).css("padding-top", "200px");
-// } else if(width > 639 && width < 1025){
-// $(page_front).css("padding-top", "155px");
+ if(width < 1024){
+ sticky.removeClass("fixed");
+ page.css("padding-top", "0px");
+ }
// } else if(width > 1024){
// $(page_front).css("padding-top", "65px");
// $(slideshow).css("margin-top", "20px");
top: 150px;
height: 300px;
}
+.page-inside, .page-front{
+ @media#{$small-only}{
+ padding-top: 150px;
+ }
+ @media#{$medium-only}{
+ padding-top: 100px;
+ }
+}
\ No newline at end of file
#slideshow {
+ margin-top: 10px;
@media #{$small-only}{
height: 270px;
}