Universal.css
21–30 of 118 posts
Re: Universal.css
#22Re: Universal.css
#23Re: Universal.css
#241. Bootstrap is partly for prototypes and quick interfaces where front end best practices don't matter.
2. If you're using a preprocessor, you can include Bootstrap's classes and rename/combine them to something semantic.
3. Something can be a good idea when done in small quantities, and a terrible idea when taken to extremes.
Re: Universal.css
#25Earlier quoted context omitted.
I used and am using this in production. So are others. It works really really well. Here's the rational: http://mrmrs.io/writing/2016/03/24/scalable-css/
In all seriousness, what advantages do you see over writing inline styles?
Re: Universal.css
#26Earlier quoted context omitted.
I used and am using this in production. So are others. It works really really well. Here's the rational: http://mrmrs.io/writing/2016/03/24/scalable-css/
In all seriousness, what advantages do you see over writing inline styles?
Practical example: I have a form with a header. I look at it and think "there needs to be more space below the header". So I change
className="mt0"
to className="mt1"
It hot-reloads etc. It took me exactly two keystrokes to change this and I know that the spacing is consistent with all the other spacing in my app.Re: Universal.css
#27No thanks.
Honestly I thought bootstrap was the only css I would ever need, and this hasn't changed my mind.
Re: Universal.css
#28Earlier quoted context omitted.
I used and am using this in production. So are others. It works really really well. Here's the rational: http://mrmrs.io/writing/2016/03/24/scalable-css/
In all seriousness, what advantages do you see over writing inline styles?
Re: Universal.css
#29Earlier quoted context omitted.
In all seriousness, what advantages do you see over writing inline styles?
Tachyons is based on mathematical scales: http://tachyons.io/docs/layout/spacing/ Practical example: I have a form with a header. I look at it and think "there needs to be more space below the header". So I change className="mt0" to className="mt1" It hot-reloads etc. It took me exactly two keystrokes to change this and I know that the spacing is consistent with all the other spacing in my app.
style="margin-top: 1rem;"
to style="margin-top: 2rem;"
It's also two keystrokes, and is mathematically determined...Re: Universal.css
#30Earlier quoted context omitted.
In all seriousness, what advantages do you see over writing inline styles?
It is much faster to type and maintain, easier to read, smaller document size and faster for the browser to parse.