Skip to content

Instantly share code, notes, and snippets.

@gidhon
Created October 20, 2018 16:32
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 gidhon/f0cbbb07bdd5ded5315787eac263eeb6 to your computer and use it in GitHub Desktop.
Save gidhon/f0cbbb07bdd5ded5315787eac263eeb6 to your computer and use it in GitHub Desktop.
Stylus snippets for Platframe | editor: Atom
'.source.stylus':
'Set size: 2D (equilateral | [width, height])':
prefix: 'size'
body: 'size($1px)'
'Unit conversion: px ⟶ rem':
prefix: 'rem'
body: 'rem($0px)'
'@media: min-width':
prefix: 'Platframe: min-width'
body: '+min($1)'
'@media: max-width':
prefix: 'Platframe: max-width'
body: '+max($1)'
'@media: range':
prefix: 'Platframe: between'
body: '+between($1)'
'@media: min-resolution':
prefix: 'Platframe: min-resolution'
body: '+min-res($1dppx)'
'@media: max-resolution':
prefix: 'Platframe: max-resolution'
body: '+max-res($1dppx)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment