Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid needing to declare each side of the box model #1

Open
simonsmith opened this issue May 1, 2015 · 3 comments
Open

Avoid needing to declare each side of the box model #1

simonsmith opened this issue May 1, 2015 · 3 comments

Comments

@simonsmith
Copy link

Great plugin, very useful.

However with properties like margin, padding etc it would be great to use just margin and it cover off margin-top, margin-bottom etc without declaring them all. It gets quite verbose when you add padding in there too.

@cuth
Copy link
Owner

cuth commented May 1, 2015

That's a good point. Thanks for the idea. I think that can be done.

@cuth
Copy link
Owner

cuth commented May 4, 2015

It might be a little while before I get to this. For now, maybe hide the white list in a separate file.

// postcss-pxtorem white list
module.exports = [
  'font',
  'font-size',
  'line-height',
  'letter-spacing',
  'margin',
  'margin-top',
  'margin-right',
  'margin-bottom',
  'margin-left',
  'padding',
  'padding-top',
  'padding-right',
  'padding-bottom',
  'padding-left'
];

@simonsmith
Copy link
Author

Sure, it's not a big problem. Just a nice to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants