.block:has(a:visited) { opacity: 0.5; }
var ttl = 0;
var prevS, prevScrollDir;
$(window).on('scroll', function() {
var s = $(this).scrollTop();
var scrollDir = s > prevS;
if (scrollDir == prevScrollDir) {
ttl += (s-prevS);
if (ttl > 500) {
$(".m").removeClass('hide');
}
} else {
ttl = 0;
$(".m").addClass('hide');
}
prevS = s;
prevScrollDir = scrollDir;
});
my-app {
display: flex;
flex-direction: column;
}
html {
min-height: 100%;
height: 100%;
}
body {
min-height: 100%;
height: 100%;
padding: 0;
}
my-app {
height: 100%;
margin: 0;
padding: 0 15px;
display: -webkit-flex;
display: flex;
flex-direction: column;
flex: auto;
}