This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-11
Channels
- # beginners (57)
- # boot (9)
- # clara (9)
- # cljs-dev (12)
- # clojure (98)
- # clojure-boston (1)
- # clojure-dusseldorf (12)
- # clojure-france (1)
- # clojure-greece (1)
- # clojure-spec (41)
- # clojure-uk (86)
- # clojurescript (60)
- # code-art (2)
- # data-science (5)
- # datomic (5)
- # duct (1)
- # fulcro (14)
- # graphql (2)
- # lein-figwheel (4)
- # luminus (1)
- # midje (1)
- # off-topic (19)
- # om (10)
- # onyx (13)
- # pedestal (5)
- # portkey (59)
- # re-frame (31)
- # reagent (1)
- # ring (14)
- # ring-swagger (1)
- # rum (5)
- # shadow-cljs (90)
- # spacemacs (5)
- # specter (47)
- # sql (9)
- # uncomplicate (95)
- # vim (32)
Any fulcro and fulcro-css users out there in Om Next land? Having trouble writing the local-rules css for nested selectors, e.g. “.main-nav li a:hover {… }”
@eugekev also, check Garden documentation, fulcro-css generates de styles using that
Ah, thanks @U61HA86AG Hadn’t seen the different channel
[:.main-nav [:li [:a [:&:hover {}]]]] is a nested css rule to target the “a” tags within your main-nav’s list items
[:.main-nav [:li [:a [:&:hover {}]]]] is a nested css rule to target the “a” tags within your main-nav’s list items
Thanks @timovanderkamp - that does indeed work. As an aside, and having worked with straight React/ES6 to better understand it first, I agree its nice to embed markup with the component. I have to say though that this nested garden syntax for CSS is a certainly bit more complex to grok than separate entries in a normal CSS file. Will have to see how easy this gets as I get better at it.
Would love to hear what people feel is the best routing for Om Next. Are people mostly using Compassus? Or rolling their own ala https://anmonteiro.com/2016/02/routing-in-om-next-a-catalog-of-approaches/
for what I've seem, most people are rolling their own. since you are using Fulcro I recommend you check the approach suggested there, since it's one already tested with this stack