Commit da80cfe25a201edb5ee684d9daae28b8874bba6c

Authored by Georg Hopp
1 parent c5f15563

don't activate menu link on click any more... it will be activated when section is reached

@@ -27,8 +27,6 @@ App.init = -> @@ -27,8 +27,6 @@ App.init = ->
27 targetOffset = $target.offset().top 27 targetOffset = $target.offset().top
28 28
29 $(this).click -> 29 $(this).click ->
30 - $("#nav li a").removeClass("active")  
31 - $(this).addClass('active')  
32 $('html, body').animate({scrollTop: targetOffset}, 1000) 30 $('html, body').animate({scrollTop: targetOffset}, 1000)
33 return false 31 return false
34 32
@@ -107,8 +107,10 @@ p { @@ -107,8 +107,10 @@ p {
107 font-size: 16px; 107 font-size: 16px;
108 text-decoration: none; 108 text-decoration: none;
109 font-weight: bold; 109 font-weight: bold;
  110 + outline: 0;
110 } 111 }
111 -#nav li a:hover { 112 +#nav li a:hover,
  113 +#nav li a:active {
112 color: rgba(255,255,255,0.7); 114 color: rgba(255,255,255,0.7);
113 } 115 }
114 #nav li a.active { 116 #nav li a.active {
Please register or login to post a comment