mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
26 lines
1.1 KiB
SCSS
26 lines
1.1 KiB
SCSS
//************************************************************************//
|
|
// Default: Webkit, moz, spec
|
|
// Example: @include prefixer(border-radius, $radii, $o: true);
|
|
//
|
|
// Source : https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_prefixer.scss
|
|
//************************************************************************//
|
|
@mixin prefixer ($property, $value,
|
|
$webkit: true,
|
|
$moz: true,
|
|
$ms: false,
|
|
$o: false,
|
|
$spec: true) {
|
|
@if $webkit { -webkit-#{$property}: $value; }
|
|
@if $moz { -moz-#{$property}: $value; }
|
|
@if $ms { -ms-#{$property}: $value; }
|
|
@if $o { -o-#{$property}: $value; }
|
|
@if $spec { #{$property}: $value; }
|
|
}
|
|
|
|
//************************************************************************//
|
|
// Source : https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_border-radius.scss
|
|
//************************************************************************//
|
|
@mixin border-radius ($radii) {
|
|
@include prefixer(border-radius, $radii, webkit, moz, ms, o);
|
|
}
|