Closed wbehrens-on-gh closed 2 years ago
Perhaps something like this?
> (println
(garden.core/css [:.nav-button {:transition-duration "0.4s"}
:.nav-button:hover {:background-color :#222
:color :#f8f8f8}]))
.nav-button {
transition-duration: 0.4s;
background-color: #222;
color: #f8f8f8;
}
> (println
(garden.core/css [:.nav-button {:transition-duration "0.4s"}
[:&:hover {:background-color :#222
:color :#f8f8f8}]]))
.nav-button {
transition-duration: 0.4s;
}
.nav-button:hover {
background-color: #222;
color: #f8f8f8;
}
The clojure expression
evaluates to
rather than