Earlier 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.
Universal.css
41–50 of 118 posts
Re: Universal.css
#42Re: Universal.css
#43Earlier quoted context omitted.
Better caching, smaller HTML size and the ability to use inline styles if you do need to override something
Are `class` attributes cached more efficiently than `style` attributes for some reason?
Re: Universal.css
#44Earlier quoted context omitted.
I think I'd have to assume anyone using that on a project I was paying them for really was trying to be funny. I mean, really, take a look at this: https://github.com/tachyons-css/tachyons-visibility
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/
Re: Universal.css
#45Re: Universal.css
#46> Bootstrap V4 recently introduced spacing utility classes like m-t-1 (which translates to margin-top: 1rem!important), and we thought we'd expand this idea to more classes. Which is worse; when it's done as satire, or seriously?
Re: Universal.css
#47Earlier quoted context omitted.
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.
But how is that any more efficient than changing: style="margin-top: 1rem;" to style="margin-top: 2rem;" It's also two keystrokes, and is mathematically determined...
Re: Universal.css
#48> Bootstrap V4 recently introduced spacing utility classes like m-t-1 (which translates to margin-top: 1rem!important), and we thought we'd expand this idea to more classes. Which is worse; when it's done as satire, or seriously?