diff --git a/_includes/navbar.html b/_includes/navbar.html
index e08a92f..8027e7c 100644
--- a/_includes/navbar.html
+++ b/_includes/navbar.html
@@ -11,7 +11,7 @@
- Watchout!
+ Watchout!
diff --git a/css/base.scss b/css/base.scss
index 798fcb9..11bd50d 100644
--- a/css/base.scss
+++ b/css/base.scss
@@ -102,8 +102,13 @@ body {
&.affix {
position: fixed;
- }
+ background: rgba(0, 0, 0, .6);
+ &.darken {
+ background: rgba(0, 0, 0, 1);
+ }
+
+ }
}
@@ -122,8 +127,8 @@ body {
border: none;
padding-top: 5px;
font-weight: bold;
- font-family: Merriweather;
- font-size: 25px;
+ font-family: montserrat;
+ font-size: 14px;
margin-bottom: 0px;
border-bottom: 0px;
@@ -131,11 +136,8 @@ body {
margin-top: 0.2em;
}
- .navbar-title {
+ .navbar-brand {
text-transform: uppercase;
- color: #ffffff;
- line-height: normal;
- padding-top: 5px;
}
.navbar-toggle {
@@ -152,7 +154,6 @@ body {
display: inline-block;
float: none;
vertical-align: top;
- font-size: 15px;
text-transform: uppercase;
}
diff --git a/js/application.js b/js/application.js
index f359344..f7de0f7 100644
--- a/js/application.js
+++ b/js/application.js
@@ -7,6 +7,18 @@ $(function() {
})
});
+$(window).scroll(function() {
+ var scroll = $(window).scrollTop();
+ var fTop = $('#new-articles').position().top + $('#new-articles').height();
+ if (scroll >= fTop) {
+ $(".navbar-wrapper").addClass("darken");
+
+ } else {
+ $(".navbar-wrapper").removeClass("darken");
+
+ }
+});
+
function onYouTubeIframeAPIReady() {
$('.youtube-video').each(function() {
var id = $(this).data('id');