From f3c46cd700f244430b99f5aeee108a71e12a4062 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Mon, 29 Jun 2015 10:04:08 -0400 Subject: [PATCH] fix derpy header --- src/AboutMe.Mvc.Web/Content/Site.css | 16 ++++++++++------ src/AboutMe.Mvc.Web/Scripts/main.js | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/AboutMe.Mvc.Web/Content/Site.css b/src/AboutMe.Mvc.Web/Content/Site.css index e57ef0e..aca59a6 100644 --- a/src/AboutMe.Mvc.Web/Content/Site.css +++ b/src/AboutMe.Mvc.Web/Content/Site.css @@ -9,8 +9,8 @@ padding-right: 15px; } -/* Override the default bootstrap behavior where horizontal description lists - will truncate terms that are too long to fit in the left column +/* Override the default bootstrap behavior where horizontal description lists + will truncate terms that are too long to fit in the left column */ .dl-horizontal dt { white-space: normal; @@ -33,7 +33,7 @@ textarea { .profile-image{ - + border-radius: 50% } @@ -63,7 +63,7 @@ textarea { position: fixed; top: 0; width: 100%; - height: 15%; + height: 130px; z-index: 10000; border-bottom: 1px solid #778492 } @@ -75,14 +75,14 @@ textarea { position: relative; width: 100%; height: 100%; - + } .stick #standardContainer > * > .social.list-inline{ display: none; } .stick ~.sections-wrapper{ - margin-top: 10%; + margin-top: 270px; } .stick > * > * > .profile-image{ @@ -90,3 +90,7 @@ textarea { } } + +body{ + padding-top: 0px; +} diff --git a/src/AboutMe.Mvc.Web/Scripts/main.js b/src/AboutMe.Mvc.Web/Scripts/main.js index d6b87b2..dbf87d0 100644 --- a/src/AboutMe.Mvc.Web/Scripts/main.js +++ b/src/AboutMe.Mvc.Web/Scripts/main.js @@ -80,12 +80,12 @@ jQuery(document).ready(function ($) { $('.secondary').append(buildFinalFantasy(data)); } }); - + $(window).scroll(function () { var sticky = $('.header'), scroll = $(window).scrollTop(); - if (scroll >= 100) sticky.addClass('stick'); + if (scroll >= 131) sticky.addClass('stick'); else sticky.removeClass('stick'); });