Live data from Hacker News

Show HN: Mimic – class-fied inline CSS

peterchon.github.io

1–10 of 74 posts

Re: Show HN: Mimic – class-fied inline CSS

#7
post #2

Could you please elaborate a bit more on how a class "padding:10" is better than just adding an inline style "padding:10px"?

I'd presume because you can do browser-specific hacks/normalization with classes but not inline styles.

I don't really see the point of all of this, either, though. Maybe it's satire?

Re: Show HN: Mimic – class-fied inline CSS

#8
post #7
post #2

Could you please elaborate a bit more on how a class "padding:10" is better than just adding an inline style "padding:10px"?

I'd presume because you can do browser-specific hacks/normalization with classes but not inline styles. I don't really see the point of all of this, either, though. Maybe it's satire?

It must be effective satire, my blood boils with the possibility it's an honest attempt.

Re: Show HN: Mimic – class-fied inline CSS

#9
How do you handle advanced selectors? Or hover states? Or priority? Or inheritance?

There is a lot of reasons why separating content and styling is benefitial to both the designer and the developer. And why semantic classes, especially with tools like Sass where abstraction and reusability are key, allow to describe the content, not define its looks.

That's why we went from color="red" to style="color:red;" to class="red-text" to class="alert alert-red" to class="alert-danger".

Post reply on HN