Skip to content

Instantly share code, notes, and snippets.

@stephenway
Created December 4, 2015 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenway/084d57c434faf34f25f6 to your computer and use it in GitHub Desktop.
Save stephenway/084d57c434faf34f25f6 to your computer and use it in GitHub Desktop.
PostCSS Padding Scale
.padding-class {
&__full { padding: 1em; }
&__half { padding: calc(1em / 2); }
&__quarter { padding: calc(1em / 4); }
&__double { padding: calc(1em * 2); }
&__treble { padding: calc(1em * 3); }
&__quadruple { padding: calc(1em * 4); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment