1.
- Set a minimum page height, client doesn't want to see the next
section when tabing through pages.
- can the home page, which only has two sentence not have a minimum
height set? Yes
- home page graphic image doesn't seem to be wrapping correctly in
mobile view.
- Make site Nav titles (Home, Services, Portfolio, and Contact Us)
BOLD when in the sub pages for that section.
- Reduce the height vertical line separating the page titles, more
like the main nav.
2.
- scroll to page home Sub-level top of page position - when
clicking one of sub-nav tabs it will go to the same scroll position
that clicking on the primary navigation tab does (ie top of page).
*. An additional fix was needed for the header image which wasn't
properly resizing into mobile views
// Fire on document ready.
$( document ).ready( function() {
- $( '.panel-toggle').on('click',function() {
+ $( '.panel-toggle').on('click',function(e) {
+ e.preventDefault();
+ var scrollTarget = $($(this).attr("href"));
+ // console.log(scrollTarget);
+ if (scrollTarget) {
+ $('body, html').animate({
+ scrollTop: scrollTarget.offset().top-90
+ }, 300);
+ }
target = $(this).attr('id').split("-")[1];
parent_target = $(this).parents('.parent-container').attr('id').split("-")[1];
$('#nav-'+parent_target+' .page-nav-container li').removeClass("active");
// console.log($(window).width());
-// var myTopPosition = $(window).scrollTop() + 200;
+ var myTopPosition = $(window).scrollTop() + 100;
// setActiveNavItem();
// updateStaticNavPositions();
-//
-// $(window).scroll(function() {
-// myTopPosition = $(window).scrollTop() + 200;
-// //var myBottomPosition = $(window).scrollTop() + $(window).height();
-//
-// setActiveNavItem();
+
+ $(window).scroll(function() {
+ myTopPosition = $(window).scrollTop() + 100;
+ //var myBottomPosition = $(window).scrollTop() + $(window).height();
+
+ setActiveNavItem();
// updateStaticNavPositions();
-//
-// });
- $(".static-nav-link").click(function() {
+ });
+ $(".static-nav-link").click(function(e) {
+ e.preventDefault();
var scrollTarget = $($(this).attr("href"));
// console.log(scrollTarget);
if (scrollTarget) {
$('body, html').animate({
- scrollTop: scrollTarget.offset().top-100
+ scrollTop: scrollTarget.offset().top-90
}, 300);
}
});
- $(".static-home-link").click(function() {
-
- var scrollTarget = $('.home');
+ $(".static-home-link").click(function(e) {
+ e.preventDefault();
+ var scrollTarget = $('.home');
// console.log(scrollTarget);
if (scrollTarget) {
$('body, html').animate({
- scrollTop: scrollTarget.offset().top-100
+ scrollTop: scrollTarget.offset().top-90
}, 300);
}
});
function setActiveNavItem() {
-// $(".twentyseventeen-panel").each(function() {
-// if(myTopPosition > $(this).offset().top && ( $(this).offset().top + $(this).outerHeight() > myTopPosition) ) {
-// $("body, html").find("#static-nav-" + $(this).attr("id")).addClass("active");
-// } else {
-// $("body, html").find("#static-nav-" + $(this).attr("id")).removeClass("active");
-// }
-// });
+ console.log("here");
+ $(".nav-parent").each(function() {
+ if(myTopPosition > $(this).offset().top && ( $(this).offset().top + $(this).next().outerHeight() > myTopPosition-90) ) {
+
+ $('.top-nav-right-list a[href="#' + $(this).attr("id") +'"]').addClass("active");
+ } else {
+ //console.log("no");
+ $('.top-nav-right-list a[href="#' + $(this).attr("id") +'"]').removeClass("active");
+ }
+ });
}
function updateStaticNavPositions() {
foreach ($child_posts as $child_post) {
?>
<li <?php if ($nav_count == 0) { echo "class='active'";}?>>
- <span id='toggle-<?php echo $child_post->ID; ?>' class=" panel-toggle"><?php echo $child_post->post_title; ?></span>
+ <a id='toggle-<?php echo $child_post->ID; ?>' class="panel-toggle" href="#nav-<?php echo $a_parent->ID;?>"><?php echo $child_post->post_title; ?></a>
</li>
<?php
$nav_count++;
}
.static-nav-section .active {
+}
+.static-nav-link:hover {
+ text-decoration: underline;
+ font-weight: normal;
}
.static-nav-link.active {
color: black;
+ font-weight: bold;
+}
+.static-nav-link.active:hover {
text-decoration: underline;
+ font-weight: bold;
}
.static-nav-link.active::after {
text-decoration: none;
float: left;
}
.top-nav-left > img {
- height: 65px;
+ max-height: 65px;
}
.top-nav-right {
float: right;
margin-top: 30px;
}
.top-nav-left img {
- height: 65px;
+ max-height: 65px;
}
#masthead .wrap {
}
.site-header {
- background-color: #fafafa;
+ background-color: white;
position: relative;
}
.has-header-image .custom-header-media img,
.has-header-video .custom-header-media video,
.has-header-video .custom-header-media iframe {
- position: fixed;
+ position: relative;
height: auto;
left: 50%;
margin-top: 75px;
}
@media screen and (max-width: 1280px) {
.has-header-image .custom-header-media img {
- top: 70px;
+ top: 50px;
}
}
max-width: 1000px;
width: 100%;
}
+@media screen and (min-width: 320px) {
+ .parent-container.content-parent {
+ min-height: 400px;
+ }
+}
+@media screen and (min-width: 640px) {
+ .parent-container.content-parent {
+ min-height: 600px;
+ }
+}
+@media screen and (min-width: 1000px) {
+ .parent-container.content-parent {
+ min-height: 800px;
+ }
+}
.nav-parent {
}
.content-separator {
.page-nav-container li {
display: inline;
cursor: pointer;
-/* border-width: 0 1px;
- border-style: solid;
- border-color: lightgrey;*/
float: left;
list-style: outside none none;
text-transform: lowercase;
color: #666666
}
-
+@media screen and (min-width: 768px) {
+ .page-nav-container li::after {
+ content: "|";
+ padding: 7px 5px;
+ }
+ .page-nav-container li:last-child::after {
+ content: "";
+ }
+}
@media screen and (max-width: 768px) {
.page-nav-container li {
width: 100%;
}
.page-nav-container li:hover .panel-toggle {
color: black;
- font-weight: bold;
+ text-decoration: underline;
}
.page-nav-container li.active .panel-toggle {
color: black;
- text-decoration: underline;
font-weight: bold;
}
.page-content-container {
.panel-toggle {
float: left;
display: block;
- padding: 2px 10px;
+ padding: 2px 7px;
font-size: 18px;
-}
-.page-nav-container li .panel-toggle {
- border-right: 1px solid #666666;
-}
-.page-nav-container li:last-child .panel-toggle {
- border-right: 0;
+ margin-top: -2px;
}
@media screen and (max-width: 768px) {
.panel-toggle {
.home.blog.has-header-image .custom-header-media,
.home.blog.has-header-video .custom-header-media {
/* height: 1200px;*/
- height: 51vh;
+ height: auto;
max-height: 100%;
overflow: hidden;
}