mdgriffith / style-elements

Create styles that don't mysteriously break!
http://package.elm-lang.org/packages/mdgriffith/style-elements/latest
BSD 3-Clause "New" or "Revised" License
445 stars 49 forks source link

Contents of column not left-aligned #119

Open ivnsch opened 6 years ago

ivnsch commented 6 years ago

The big picture of what I'm trying to do

Have a column with contents left aligned.

What I did

https://ellie-app.com/6DLpJpY3sa1/2

What I Expected To Happen

The contents are left aligned, also when some of them are html and the column has a spacing attribute.

What Actually Happened

The html element is shifted to the left, when setting a spacing attribute in the column. Because of this the contents of the column are not left aligned anymore.

More exactly, the contents of the column seem to get a margin of 10px by default (maybe this is the bug?) and the html element doesn't have it - but only when using spacing! When not using spacing, the elements don't have margin but there's a default 8px margin in body instead (the latest coming from "user agent stylesheet" meaning no margin from style-elements).