Commit 4a62f44a authored by Joachim Schunk's avatar Joachim Schunk

adjust color/style for discrete-phys-val-editor

parent eeebcaec
......@@ -6,7 +6,8 @@
(def color-blue "#2196F3")
(def color-green "#4CAF50")
(def color-grey "#9E9E9E")
(def disc-phys-val-r "6px")
(def color-grey-light "#B5B5B5")
(def disc-phys-val-r "4px")
(def disc-phys-val-icon-padding "4px")
(def disc-phys-val-latex-padding-vert "4px")
(def disc-phys-val-latex-padding-hor "6px")
......@@ -144,6 +145,7 @@
{:opacity 1.0}]]
[:.green-border {:border-color color-green}]
[:.grey-border {:border-color color-grey}]
[:.grey-border-light {:border-color color-grey-light}]
[:.pointer {:cursor "pointer"}]
[:div.disc-phys-val {:display "flex" :justify-content "center" :align-items "stretch"}
[:div {:display "flex" :align-items "center" :border-width "1px"}
......
......@@ -127,22 +127,22 @@
editable-units? (and assignment-type (not= context :edit))]
[:div.disc-phys-val
[:div.left-icon (if editable-number?
{:class "has-background-success green-border pointer"
{:class "has-background-success has-text-white green-border pointer"
:on-click (fn [] (reset! modal-state-atom
{:modal-visible? true
:path path
:type :number-only
:collats-fn collats-fn
:symbol-data symbol-data}))}
{:class "has-background-grey-light grey-border"})
{:class "has-background-grey-light has-text-white grey-border-light"})
[:span.icon [:i.far.fa-edit]]]
[:div.left-latex {:class (if editable-number? "green-border" "grey-border")}
[:div.left-latex {:class (if editable-number? "green-border" "grey-border-light")}
[latex-span latex-number-str]]
[:div.space]
[:div.right-latex {:class (if editable-units? "green-border" "grey-border")}
[:div.right-latex {:class (if editable-units? "green-border" "grey-border-light")}
[latex-span latex-units-str]]
[:div.right-icon (if editable-units?
{:class "has-background-success green-border pointer"
{:class "has-background-success has-text-white green-border pointer"
:on-click (fn []
(reset! modal-state-atom
{:modal-visible? true
......@@ -153,7 +153,7 @@
:type :units-only
:collats-fn collats-fn
:symbol-data symbol-data}))}
{:class "has-background-grey-light grey-border"})
{:class "has-background-grey-light has-text-white grey-border-light"})
[:span.icon [:i.far.fa-edit]]]]))
(defn step-config [{:keys [step vars path assocs params assignments steps change-fn collats-fn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment