godismyjudge95 / shorthand

A Brackets extension for expanding shorthand css properties in the inline editor.
MIT License
4 stars 5 forks source link

Add padding support #7

Closed redmunds closed 10 years ago

redmunds commented 10 years ago

I realized that the "padding" CSS shorthand property is almost identical to "margin", so I refactored the margin provider to make padding easy to add.

Note that I renamed margin.js to trbl.js.

Unfortunately, this pattern does not work with: border-width shorthand because longhand values are border-[side]-width (as opposed to border-width-[side]). Sigh.

There may be others that would be easy to add here, but I couldn't think of any.

redmunds commented 10 years ago

Don't merge this yet. I just realized this can be simplified much more...

redmunds commented 10 years ago

OK, ready for review.