rtfeldman / elm-css

Typed CSS in Elm.
https://package.elm-lang.org/packages/rtfeldman/elm-css/latest
BSD 3-Clause "New" or "Revised" License
1.23k stars 196 forks source link

Add `paddingBlock`/`Inline` and generic `marginBlock`/`Inline` properties #549

Open dzuk-mutant opened 2 years ago

dzuk-mutant commented 2 years ago

Adds properties from the padding-block and padding-inline group for creating paddings that are relative to reading direction.

paddingBlock (px 10)

paddingBlock2 (px 10) (px 10)

paddingBlockStart (px 10)

paddingBlockEnd (px 10)

paddingInline (px 10)

paddingInline2 (px 10) (px 10)

paddingInlineStart (px 10)

paddingInlineEnd (px 10)

Also adds implementations of margin-inline and margin-block since the specific start and end versions were already made but the broad one-liner versions were not.

marginBlock (px 10)

marginBlock2 (px 10) (px 10)

marginInline (px 10)

marginInline2 (px 10) (px 10)
Confidenceman02 commented 2 years ago

@rtfeldman Any reason this was not merged? Would be a nice one to have IMO.