mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 17:26:38 +02:00
🐛 Fix problem with inspect
This commit is contained in:
parent
69c8845ac8
commit
5a9421a1e2
4 changed files with 84 additions and 74 deletions
|
@ -16,7 +16,7 @@
|
|||
[app.common.types.shape.layout :as ctl]
|
||||
[app.main.ui.shapes.text.styles :as sts]
|
||||
[app.util.code-gen.common :as cgc]
|
||||
[app.util.code-gen.style-css-formats :refer [format-value]]
|
||||
[app.util.code-gen.style-css-formats :refer [format-value format-shadow]]
|
||||
[app.util.code-gen.style-css-values :refer [get-value]]
|
||||
[cuerdas.core :as str]))
|
||||
|
||||
|
@ -117,17 +117,6 @@ body {
|
|||
:grid-row
|
||||
:grid-area])
|
||||
|
||||
(def text-node-css-properties
|
||||
[:font-family
|
||||
:font-style
|
||||
:font-size
|
||||
:font-weight
|
||||
:line-height
|
||||
:letter-spacing
|
||||
:text-decoration
|
||||
:text-transform
|
||||
:color])
|
||||
|
||||
(defn shape->css-property
|
||||
[shape objects property]
|
||||
(when-let [value (get-value property shape objects)]
|
||||
|
@ -317,3 +306,7 @@ body {
|
|||
(->> shapes
|
||||
(keep #(get-shape-css-selector % objects options))
|
||||
(str/join "\n\n")))))
|
||||
|
||||
(defn shadow->css
|
||||
[shadow]
|
||||
(dm/str "box-shadow: " (format-shadow shadow {})))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue