This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-28
Channels
- # 100-days-of-code (10)
- # announcements (2)
- # architecture (16)
- # beginners (51)
- # bitcoin (3)
- # calva (1)
- # cider (6)
- # cljdoc (8)
- # cljs-dev (14)
- # cljsrn (4)
- # clojure (59)
- # clojure-italy (26)
- # clojure-losangeles (1)
- # clojure-nl (13)
- # clojure-spec (54)
- # clojure-uk (81)
- # clojurebridge (4)
- # clojurescript (20)
- # core-async (16)
- # cursive (39)
- # datomic (27)
- # emacs (12)
- # events (1)
- # figwheel-main (20)
- # fulcro (35)
- # funcool (1)
- # graphql (9)
- # hyperfiddle (10)
- # jobs (1)
- # jobs-discuss (7)
- # keechma (10)
- # lumo (22)
- # nrepl (18)
- # off-topic (28)
- # onyx (3)
- # pedestal (4)
- # re-frame (8)
- # reagent (8)
- # ring (4)
- # rum (3)
- # shadow-cljs (29)
- # testing (5)
oh my god basic CSS question: How do you select the child of an element generically?
Like if I say .my-class::nth-child(1)
that targets the first my-class
element that is a child. how do I select the first child of the my-class
element???
@josh_tackett That's my bread and butter. I've written some Clojure for working with it (though the library is rather incomplete) https://github.com/d4hines/dynamics-clj . Are you On-Premise or Online?
@idiomancy, I think it's as easy as .my-class:first-child
. https://codepen.io/d4hines/pen/QZWVrg
>:first-child p:first-child Selects every <p> element that is the first child of its parent
Hmm, .my-class > :first-child
?
The >
works, it means "direct descendant of"
in my use case, I guess I can rely on there only ever being one, so I could do > *
, but its imprecise
I think what I gave you should select the first child element that is a direct descendant of .my-class (if I'm getting the pseudo-class syntax right)
woot, awesome! Thanks for letting me know.
Ah, woops! Good catch.
Day 4 with Clojure/Script: have learned how to separate logic with namespaces so everything isn't a big ugly mess in core.cljs, learned how to do routing with html5 pushState, learned how to do events. I'm pretty proud of today.
clojure itself is "The mess that rich writes and dont need to live in my code"
If you think that cljs.core
is a mess, dont look at clojure.RT
Where is that
Oh by core I meant namespace.core in CLJS. Did not know previously I can separate logic into different namespaces (files) so had a huge pile in one file.
First day was like "holy shit what did I get myself into by getting this job" 😄
@UCTNL1JNN also fell into the bait Clojure is a really high quality bait
@U2J4FRT2T I am liking it very much thus far
Oh I definitely do! Clojure is fun. First few days were dizzying as I'm merely a mediocre full-stack developer (php, js) as far as my background goes, but I'm increasingly so getting the hang of it. I have to thank @U06B8J0AJ who invited me to this slack as well, it has been helpful.