upsiflu / less-ui

Write your views across several screen regions, and hide all Ui state in the Url.
https://package.elm-lang.org/packages/upsiflu/less-ui/latest
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Make css transitions opt-in for Ui.Html #46

Closed upsiflu closed 1 year ago

upsiflu commented 1 year ago

As it stands, the Less.Ui.Html module is hard to style because it generates style tags. We can make a leaner version and put the fat transitions (which need some tuning anyways) into a module Less.Ui.Html.WithTransitions.

As we do that, we can rename functions that clash with Ui, such that users can import Ui as well as Ui.Html or Ui.Html.WithTransitions, or any future addition, under the same namespace as Ui. The type alias then should be Html, such that we can say view : Ui.Html