Skip to content

Instantly share code, notes, and snippets.

@jbasoo
Created June 5, 2017 12:50
Show Gist options
  • Save jbasoo/7ef39f89fe115fa92e81600b7b4e5318 to your computer and use it in GitHub Desktop.
Save jbasoo/7ef39f89fe115fa92e81600b7b4e5318 to your computer and use it in GitHub Desktop.
Magento 2 Less file Atom scaffold snippet
'.less':
'm2less':
'prefix': 'm2less'
'body': """
/**
* _$1.less
*/
/* ==========================================================================
$1
========================================================================== */
// Common
& when (@media-common = true) {}
// Desktop
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {}
// Mobile
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment