Border Radius SCSS Mixin

/* [ Browser Prefix ] ------------------------ */ @mixin css3-prefix($property, $value) { -webkit-#{$property}: #{$value}; -khtml-#{$property}: #{$value}; -moz-#{$property}: #{$value}; -ms-#{$property}: #{$value}; -o-#{$property}: #{$value}; #{$property}: #{$value}; } @mixin border-radius($radius: 2px) { @include css3-prefix('border-radius', $radius); }

1 Response

Nice, but most of CSS3 didnt use prefix "-o-" "-ms-", and some of them didnt use "-moz-" and "-webkit-"

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.