Skip to content

Commit

Permalink
use tailwind class
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and tiensonqin committed Mar 20, 2023
1 parent 9551d07 commit c6c512c
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions src/main/frontend/components/export.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@
[:label.mr-4
{:style {:visibility (if (= :text tp) "visible" "hidden")}}
"Indentation style:"]
[:select.block.my-2.text-lg.rounded.border
{:style {:padding "0 0 0 12px"
:visibility (if (= :text tp) "visible" "hidden")}
[:select.block.my-2.text-lg.rounded.border.py-0.px-1
{:style {:visibility (if (= :text tp) "visible" "hidden")}
:on-change (fn [e]
(let [value (util/evalue e)]
(state/set-export-block-text-indent-style! value)
Expand All @@ -136,8 +135,8 @@
(assoc :selected selected))
label])]]
[:div.flex.items-center
(ui/checkbox {:style {:margin-right 6
:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
(ui/checkbox {:class "mr-2"
:style {:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
:checked (contains? @*text-remove-options :page-ref)
:on-change (fn [e]
(state/update-export-block-text-remove-options! e :page-ref)
Expand All @@ -146,9 +145,8 @@
[:div {:style {:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}}
"[[text]] -> text"]

(ui/checkbox {:style {:margin-right 6
:margin-left "1em"
:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
(ui/checkbox {:class "mr-2 ml-4"
:style {:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
:checked (contains? @*text-remove-options :emphasis)
:on-change (fn [e]
(state/update-export-block-text-remove-options! e :emphasis)
Expand All @@ -158,9 +156,8 @@
[:div {:style {:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}}
"remove emphasis"]

(ui/checkbox {:style {:margin-right 6
:margin-left "1em"
:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
(ui/checkbox {:class "mr-2 ml-4"
:style {:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
:checked (contains? @*text-remove-options :tag)
:on-change (fn [e]
(state/update-export-block-text-remove-options! e :tag)
Expand All @@ -171,8 +168,8 @@
"remove #tags"]]

[:div.flex.items-center
(ui/checkbox {:style {:margin-right 6
:visibility (if (#{:text} tp) "visible" "hidden")}
(ui/checkbox {:class "mr-2"
:style {:visibility (if (#{:text} tp) "visible" "hidden")}
:checked (boolean (:newline-after-block @*text-other-options))
:on-change (fn [e]
(state/update-export-block-text-other-options!
Expand All @@ -182,9 +179,8 @@
[:div {:style {:visibility (if (#{:text} tp) "visible" "hidden")}}
"newline after block"]

(ui/checkbox {:style {:margin-right 6
:margin-left "1em"
:visibility (if (#{:text} tp) "visible" "hidden")}
(ui/checkbox {:class "mr-2 ml-4"
:style {:visibility (if (#{:text} tp) "visible" "hidden")}
:checked (contains? @*text-remove-options :property)
:on-change (fn [e]
(state/update-export-block-text-remove-options! e :property)
Expand All @@ -196,9 +192,8 @@
[:div.flex.items-center
[:label.mr-2 {:style {:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}}
"level <="]
[:select.block.my-2.text-lg.rounded.border
{:style {:padding "0 0 0 12px"
:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
[:select.block.my-2.text-lg.rounded.border.px-2.py-0
{:style {:visibility (if (#{:text :html :opml} tp) "visible" "hidden")}
:value (or (:keep-only-level<=N @*text-other-options) :all)
:on-change (fn [e]
(let [value (util/evalue e)
Expand Down

0 comments on commit c6c512c

Please sign in to comment.