Skip to content

Instantly share code, notes, and snippets.

@edwardoriordan
Created August 19, 2014 18:10
Show Gist options
  • Save edwardoriordan/bcec264c3e8aff863d92 to your computer and use it in GitHub Desktop.
Save edwardoriordan/bcec264c3e8aff863d92 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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);
/*! 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