From da80cfe25a201edb5ee684d9daae28b8874bba6c Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Sat, 17 Sep 2016 03:13:50 +0200 Subject: [PATCH] don't activate menu link on click any more... it will be activated when section is reached --- app/assets/javascripts/parallax.coffee | 2 -- app/assets/stylesheets/welcome.scss | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/parallax.coffee b/app/assets/javascripts/parallax.coffee index eea187d..c60d40f 100644 --- a/app/assets/javascripts/parallax.coffee +++ b/app/assets/javascripts/parallax.coffee @@ -27,8 +27,6 @@ App.init = -> targetOffset = $target.offset().top $(this).click -> - $("#nav li a").removeClass("active") - $(this).addClass('active') $('html, body').animate({scrollTop: targetOffset}, 1000) return false diff --git a/app/assets/stylesheets/welcome.scss b/app/assets/stylesheets/welcome.scss index 4a4efc4..ce7b023 100644 --- a/app/assets/stylesheets/welcome.scss +++ b/app/assets/stylesheets/welcome.scss @@ -107,8 +107,10 @@ p { font-size: 16px; text-decoration: none; font-weight: bold; + outline: 0; } -#nav li a:hover { +#nav li a:hover, +#nav li a:active { color: rgba(255,255,255,0.7); } #nav li a.active {