This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-02
Channels
- # arachne (8)
- # beginners (48)
- # carry (4)
- # chestnut (2)
- # cider (12)
- # cljs-dev (3)
- # clojure (28)
- # clojure-belgium (2)
- # clojure-brasil (1)
- # clojure-greece (4)
- # clojure-russia (6)
- # clojure-spec (1)
- # clojurescript (32)
- # cursive (11)
- # defnpodcast (2)
- # euroclojure (1)
- # hoplon (43)
- # jobs (2)
- # jobs-rus (10)
- # off-topic (11)
- # om (32)
- # onyx (28)
- # overtone (5)
- # parinfer (4)
- # planck (11)
- # protorepl (2)
- # reagent (2)
- # spacemacs (3)
- # yada (5)
bwhahahaha I gotta share this insane hack. I just used a little bit of reagent to implement a floating top navbar from scratch without changing more than a single CSS property. The strategy is just to hook an event listener on scroll that updates a ratom containing the y-axis position, and then make the position property of the div containing the navbar depend on that. Which is nutty, and makes the navbar appear to jump around a teensy bit, but is so so so so much nicer than having to fight with css to get the elements under the navbar positions correctly with respect to it.