thheller / shadow-css

CSS-in-CLJ(S)
https://github.com/thheller/shadow-css
Eclipse Public License 1.0
114 stars 10 forks source link

Update 'space between' functionality #10

Closed rmschindler closed 1 year ago

rmschindler commented 1 year ago

As per https://tailwindcss.com/docs/space, space-x- and space-y- should inform margins, not padding.

thheller commented 1 year ago

Hmm weird. Could have sworn I got these from the tailwind website? Did they change them?

rmschindler commented 1 year ago

Actually scratch this pull request, because it is incomplete: I see here that there is more to the story: the combinator Tailwind uses is not the adjacent sibling (+) but the general sibling combinator (~). But though this is in the code, it is not reflected in the docs. So... I am confused as to what the rule should be.

As far as whether Tailwind changed their rules, I haven’t been able to find out yet.