Skip to content

Instantly share code, notes, and snippets.

@sno2
Created January 22, 2020 03:52
Show Gist options
  • Save sno2/c6e7c12da264c26529d58611dac3ca75 to your computer and use it in GitHub Desktop.
Save sno2/c6e7c12da264c26529d58611dac3ca75 to your computer and use it in GitHub Desktop.
/* Sass Code */
@mixin vendor-prefix($name, $value) { /* Copy this mixin for your own use! */
@each $vendor in ('-webkit-', '-moz-', '-ms-', '-o-', '') {
#{$vendor}#{$name}: #{$value};
}
}
* {
@include vendor-prefix('box-sizing', 'border-box');
}
/* Compiled CSS Code */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment