Skip to content

Commit

Permalink
Rename vars for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dhleong committed Jul 10, 2023
1 parent 9a43cdd commit fe69ec2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/spade/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -153,25 +153,25 @@
(let [[composition style] (extract-composes style)
style-var (gensym "style")
style (->> style prefix-at-media rename-vars)
[base-style-var name-var key-var name-let] (build-style-naming-let
style params style-name-var)
[base-style-var name-var key-var style-naming-let] (build-style-naming-let
style params style-name-var)
style-decl (if base-style-var
`(into [(str "." ~name-var)] ~base-style-var)
(into [`(str "." ~name-var)] style))]
`(let ~(vec (concat name-let
`(let ~(vec (concat style-naming-let
[style-var style-decl]))
~(with-composition composition name-var key-var style-var))))

(defn- transform-keyframes-style [style params style-name-var]
(let [style (->> style prefix-at-media rename-vars)
[style-var name-var key-var style-naming-let] (build-style-naming-let
style params style-name-var)
[base-style-var name-var key-var style-naming-let] (build-style-naming-let
style params style-name-var)
info-map (cond->
`{:css (when ~name-var
(spade.runtime/compile-css
(garden.stylesheet/at-keyframes
~name-var
~(or style-var (vec style)))))
~(or base-style-var (vec style)))))
:name ~name-var}

key-var (assoc ::key key-var))]
Expand Down

0 comments on commit fe69ec2

Please sign in to comment.