Skip to content

Instantly share code, notes, and snippets.

@xzyfer
Created September 3, 2015 13:43
Show Gist options
  • Save xzyfer/6f0cda31bf2728a6d95a to your computer and use it in GitHub Desktop.
Save xzyfer/6f0cda31bf2728a6d95a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@mixin prefixer-content($property, $prefixes, $pseudo: "") {
@each $prefix in $prefixes {
$pseudo: check-ms-content-prefix($prefix, $pseudo);
@if $prefix != spec {
#{$pseudo}-#{$prefix}-#{$property} {
@content;
}
}
@else if $prefix == spec {
#{$pseudo}#{$property} {
@content;
}
}
}
}
/// @param {String} $prefix
/// @param {String} $pseudo
///
/// @access private
@function check-ms-content-prefix($prefix, $pseudo) {
@if $prefix == "ms" {
@if $pseudo == "&::" {
$pseudo: "&:";
} @else if $pseudo == "::" {
$pseudo: ":";
}
}
@return $pseudo;
}
@include prefixer-content(keyframes identifier, (webkit, ms, spec), "@") {
0% {
top: 0;
left: 0;
}
30% {
top: 50px;
}
68%, 72% {
left: 50px;
}
100% {
top: 100px;
left: 100%;
}
}
Invalid CSS after "": expected selector, was "@-webkit-keyfra..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment