Created
October 20, 2018 16:32
-
-
Save gidhon/f0cbbb07bdd5ded5315787eac263eeb6 to your computer and use it in GitHub Desktop.
Stylus snippets for Platframe | editor: Atom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.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