]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Add a the class 'fixed' when navigation is 'stuck' 5522/head
authorLarzans <larzans@gmail.com>
Wed, 30 Jul 2014 14:50:46 +0000 (16:50 +0200)
committerLarzans <larzans@gmail.com>
Wed, 30 Jul 2014 14:50:46 +0000 (16:50 +0200)
commitfe656731844fc98db649bd2b5df327058c76b713
tree759882b13ca36c47b2d61387f1020795629bb4a5
parentf88a293e93928ccea8c12af16369abf9a816e215
Add a the class 'fixed' when navigation is 'stuck'

In line 117 the class 'fixed' is removed from the navigation without ever being added.

I assume the intention was to add a class to the navigation when it is stuck to the window so that additional skinning via CSS can be done (thats what i actually wanted to do but didn't find this functionality yet).
Browsing through the code i saw that you REMOVE a class 'fixed' when the navigation is 'unstuck' but you never add it.
This fixes that.

When the navigation sticks to the top it has the class 'fixed', as soon as it gets 'unstuck' the class is removed.
js/foundation/foundation.magellan.js