fix derpy header

This commit is contained in:
Tommy Parnell
2015-06-29 10:04:08 -04:00
parent 0895f461d6
commit f3c46cd700
2 changed files with 12 additions and 8 deletions

View File

@@ -9,8 +9,8 @@
padding-right: 15px; padding-right: 15px;
} }
/* Override the default bootstrap behavior where horizontal description lists /* Override the default bootstrap behavior where horizontal description lists
will truncate terms that are too long to fit in the left column will truncate terms that are too long to fit in the left column
*/ */
.dl-horizontal dt { .dl-horizontal dt {
white-space: normal; white-space: normal;
@@ -33,7 +33,7 @@ textarea {
.profile-image{ .profile-image{
border-radius: 50% border-radius: 50%
} }
@@ -63,7 +63,7 @@ textarea {
position: fixed; position: fixed;
top: 0; top: 0;
width: 100%; width: 100%;
height: 15%; height: 130px;
z-index: 10000; z-index: 10000;
border-bottom: 1px solid #778492 border-bottom: 1px solid #778492
} }
@@ -75,14 +75,14 @@ textarea {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.stick #standardContainer > * > .social.list-inline{ .stick #standardContainer > * > .social.list-inline{
display: none; display: none;
} }
.stick ~.sections-wrapper{ .stick ~.sections-wrapper{
margin-top: 10%; margin-top: 270px;
} }
.stick > * > * > .profile-image{ .stick > * > * > .profile-image{
@@ -90,3 +90,7 @@ textarea {
} }
} }
body{
padding-top: 0px;
}

View File

@@ -80,12 +80,12 @@ jQuery(document).ready(function ($) {
$('.secondary').append(buildFinalFantasy(data)); $('.secondary').append(buildFinalFantasy(data));
} }
}); });
$(window).scroll(function () { $(window).scroll(function () {
var sticky = $('.header'), var sticky = $('.header'),
scroll = $(window).scrollTop(); scroll = $(window).scrollTop();
if (scroll >= 100) sticky.addClass('stick'); if (scroll >= 131) sticky.addClass('stick');
else sticky.removeClass('stick'); else sticky.removeClass('stick');
}); });