Mixin for the background property to support gradients, multiple bgs, etc.
This commit is contained in:
parent
08d0d30c43
commit
009f4cea18
@ -21,6 +21,27 @@
|
||||
background-image: $images;
|
||||
}
|
||||
|
||||
@mixin background(
|
||||
$background-1,
|
||||
$background-2: false,
|
||||
$background-3: false,
|
||||
$background-4: false,
|
||||
$background-5: false,
|
||||
$background-6: false,
|
||||
$background-7: false,
|
||||
$background-8: false,
|
||||
$background-9: false,
|
||||
$background-10: false
|
||||
) {
|
||||
$backgrounds: compact($background-1, $background-2, $background-3, $background-4, $background-5,
|
||||
$background-6, $background-7, $background-8, $background-9, $background-10);
|
||||
|
||||
@if $experimental-support-for-svg and prefixed(-svg, $backgrounds) { background: -svg($backgrounds); }
|
||||
@if $experimental-support-for-webkit and prefixed(-webkit, $backgrounds) { background: -webkit($backgrounds); }
|
||||
@if $experimental-support-for-mozilla and prefixed(-moz, $backgrounds) { background: -moz($backgrounds); }
|
||||
background: $backgrounds;
|
||||
}
|
||||
|
||||
@mixin border-image($value) {
|
||||
@if $experimental-support-for-mozilla { -moz-border-image: -moz(-compass-list($value)); }
|
||||
@if $experimental-support-for-webkit { -webkit-border-image: -webkit(-compass-list($value)); }
|
||||
|
Loading…
Reference in New Issue
Block a user