Skip to content

Instantly share code, notes, and snippets.

@alienresident
Created July 10, 2014 20:43
Show Gist options
  • Save alienresident/f75aaf16f38991a82e94 to your computer and use it in GitHub Desktop.
Save alienresident/f75aaf16f38991a82e94 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
@import "compass";
//$supported-browsers: browsers() !default;
$graceful-usage-threshold: 0.1;
$critical-usage-threshold: 0.01;
$debug-browser-support: true;
$supported-browsers: (
// 'ie': "10"
);
$browser-minimum-versions: (
"ie": "8"
);
// @function support-legacy-browser($browser, $min-version, $max-version: null, $threshold: $critical-usage-threshold) {
// @if not index($supported-browsers, $browser) {
// @return false;
// }
// // Check against declared minimums.
// $min-required-version: map-get($browser-minimum-versions, $browser);
// @if $min-required-version {
// @return compare-browser-versions($browser, $max-version or $min-version, $min-required-version) >= 0;
// } @else {
// // Check against usage stats.
// $usage: if($max-version,
// omitted-usage($browser, $min-version, $max-version),
// omitted-usage($browser, $min-version));
// @return $usage > $threshold;
// }
// }
input[type="checkbox"],
input[type="radio"],
input[type="image"] {
margin: .25em .25em 0 .05em;
content: support-legacy-browser("ie", "8");
//@if support-legacy-browser("ie", "8") {
@include for-legacy-browser("ie", "8") {
background: transparent;
}
//}
+ label {
display: inline;
margin-right: 1em;
}
}
input[type="checkbox"],
input[type="radio"],
input[type="image"] {
margin: .25em .25em 0 .05em;
content: false;
/* Content for ie 8 omitted.
Not allowed in the current scope: ie is not listed as a supported browser. */
}
input[type="checkbox"] + label,
input[type="radio"] + label,
input[type="image"] + label {
display: inline;
margin-right: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment