RamseyInHouse / scut

Sass utilities for the frontend laborer.
https://ramseyinhouse.github.io/scut/
MIT License
769 stars 61 forks source link

Border-radius shorthand for easy rounded corners #172

Closed aentan closed 9 years ago

aentan commented 9 years ago

Demo http://sassmeister.com/gist/881e68672287d08817dc

This mixin expands shorthand into longhand.

davidtheclark commented 9 years ago

Thanks @aentan.

Do you have other any sources for the "not supported by Webkit" suggestion?

How about changing the name of the mixin to border-radius. That would be consistent with other shorthands (border, padding, margin).

Also, have a look at, say, https://github.com/davidtheclark/scut/blob/master/src/layout/_padding.scss to pick some implementation details -- here's what I'd like in the mixin:

These shorthands are very simple, but one of their simple benefits over native shorthands is that they allow you to override several specific sides at once without having to override them all.