mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Fixed nav dropdown bg
This commit is contained in:
@ -102,10 +102,10 @@ body {
|
|||||||
|
|
||||||
&.affix {
|
&.affix {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: rgba(0, 0, 0, .6);
|
background: rgba(45, 44, 40, 0.6);
|
||||||
|
|
||||||
&.darken {
|
&.darken {
|
||||||
background: rgba(0, 0, 0, 1);
|
background: rgba(45, 44, 40, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -145,8 +145,13 @@ body {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active a {
|
.active a, .open a {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu {
|
||||||
|
background-color: #565553;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: $screen-sm-min) {
|
@media (min-width: $screen-sm-min) {
|
||||||
|
|||||||
@ -5,18 +5,18 @@ $(function() {
|
|||||||
var imgClass = (this.width/this.height > parent.width()/parent.height()) ? 'wide' : 'tall';
|
var imgClass = (this.width/this.height > parent.width()/parent.height()) ? 'wide' : 'tall';
|
||||||
$(this).addClass(imgClass);
|
$(this).addClass(imgClass);
|
||||||
})
|
})
|
||||||
});
|
|
||||||
|
|
||||||
$(window).scroll(function() {
|
var switchPos = $('#new-articles').position().top + $('#new-articles').height();
|
||||||
var scroll = $(window).scrollTop();
|
|
||||||
var fTop = $('#new-articles').position().top + $('#new-articles').height();
|
|
||||||
if (scroll >= fTop) {
|
|
||||||
$(".navbar-wrapper").addClass("darken");
|
|
||||||
|
|
||||||
} else {
|
$(window).scroll(function() {
|
||||||
$(".navbar-wrapper").removeClass("darken");
|
var scroll = $(window).scrollTop();
|
||||||
|
if (scroll >= switchPos) {
|
||||||
|
$(".navbar-wrapper").addClass("darken");
|
||||||
|
|
||||||
}
|
} else {
|
||||||
|
$(".navbar-wrapper").removeClass("darken");
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function onYouTubeIframeAPIReady() {
|
function onYouTubeIframeAPIReady() {
|
||||||
|
|||||||
Reference in New Issue
Block a user