Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
refactor: CSS指定を移動
Browse files Browse the repository at this point in the history
  • Loading branch information
y047aka committed Feb 11, 2024
1 parent f9662f2 commit 119e933
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions example/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -667,19 +667,21 @@ playground { isDarkMode, preview, controlSections } =
, rowGap (Css.em 0.5)
, borderRadius (Css.em 1)
, palette (Palette.propsPanel isDarkMode)
, children
[ everything
[ padding (Css.em 0.75)
, borderRadius (Css.em 0.5)
, palette (Palette.propsField isDarkMode)
]
]
]
]
(List.map
(.controls
>> List.map Control.render
>> div [ css [ displayFlex, flexDirection column, rowGap (Css.em 1) ] ]
>> div
[ css
[ padding (Css.em 0.75)
, displayFlex
, flexDirection column
, rowGap (Css.em 1)
, borderRadius (Css.em 0.5)
, palette (Palette.propsField isDarkMode)
]
]
)
controlSections
)
Expand Down

0 comments on commit 119e933

Please sign in to comment.