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;
}
/* 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;
}

View File

@@ -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');
});