Created
September 3, 2015 13:43
-
-
Save xzyfer/6f0cda31bf2728a6d95a 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.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%; | |
} | |
} |
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
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