Created
August 19, 2014 18:10
-
-
Save edwardoriordan/bcec264c3e8aff863d92 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
// ---- | |
// Sass (v3.4.0) | |
// Compass (v1.0.0) | |
// SassyJSON (v1.1.8) | |
// ---- | |
@import "SassyJSON"; | |
@mixin eq($add) { | |
$add: map-merge(('eq-' + inspect(&): &), $add); | |
@if ( variable-exists(map) ) { | |
$map: map-merge($map, $add) !global; | |
} @else { | |
$map: $add !global; | |
} | |
} | |
.edward { | |
@include eq( | |
('h': 300) | |
); | |
} | |
.laurie { | |
@include eq( | |
('w': 500) | |
); | |
} | |
@include json-encode($map); | |
This file contains 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
/*! json-encode: {"eq-(.edward,)": [[".edward"]], "h": 300, "eq-(.laurie,)": [[".laurie"]], "w": 500} */ | |
body::before { | |
content: '{"eq-(.edward,)": [[".edward"]], "h": 300, "eq-(.laurie,)": [[".laurie"]], "w": 500}'; | |
display: block; | |
height: 0; | |
overflow: hidden; | |
width: 0; | |
} | |
head { | |
font-family: '{"eq-(.edward,)": [[".edward"]], "h": 300, "eq-(.laurie,)": [[".laurie"]], "w": 500}'; | |
} | |
@media -json-encode { | |
json { | |
json: '{"eq-(.edward,)": [[".edward"]], "h": 300, "eq-(.laurie,)": [[".laurie"]], "w": 500}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment