Show HN: Mimic – class-fied inline CSS
21–30 of 74 posts
Re: Show HN: Mimic – class-fied inline CSS
#22I don't think it's a joke. It contains some useful stuff like row and col which you can't do with inline CSS.
Re: Show HN: Mimic – class-fied inline CSS
#23How 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=…
Re: Show HN: Mimic – class-fied inline CSS
#24Re: Show HN: Mimic – class-fied inline CSS
#25This may take some getting used to, and a lot of debate if using this is really worth it, but it's something. Nice job! :)
Re: Show HN: Mimic – class-fied inline CSS
#26Re: Show HN: Mimic – class-fied inline CSS
#27Re: Show HN: Mimic – class-fied inline CSS
#28Urgh.
Also, you cannot use numbers as classes. That's not allowed and may mess up some browsers / devices.
Re: Show HN: Mimic – class-fied inline CSS
#29How 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=…
Although bear in mind that bootstrap still does class="alert alert-danger" so they disagree slightly on that point.
Re: Show HN: Mimic – class-fied inline CSS
#30How 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=…
Although bear in mind that bootstrap still does class="alert alert-danger" so they disagree slightly on that point.
However, it is not "alert alert-red"... What if your client wanted to never use the colour red again because his competition is branded red? You need to go through all the CSS (a few lines of :red needs to be changed to :yellow). You however also need to go through all your view, templates, possibly some hardcoded parts of the code, to change "alert-red" to "alert-yellow"... simply have it "alert-danger".