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
function Behavior(PSD){ | |
var _BehaviorNames = Object.keys(Behavior.behaviors) | |
.filter(function(BehaviorName){ return !!Behavior.behaviors[BehaviorName].namingPattern }); | |
Object.keys(PSD).forEach(function(layerName){ | |
var layer = PSD[layerName]; | |
_BehaviorNames.forEach(function(BehaviorName){ | |
var match = layerName.match(Behavior.behaviors[BehaviorName].namingPattern); | |
try { |
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
//Support 1 and 2x image sizes | |
@mixin 2xBackground($url) | |
background-image: url($url + ".png") | |
@media only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3) | |
background-image: url($url + "@2x.png") | |
background-size: 200% |