linuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacos
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
650 B
22 lines
650 B
9 years ago
|
// produces a partly opaque background using RGB alpha channel
|
||
|
// with a workaround for IE8 that doesn't support it
|
||
|
@mixin background-opacity(
|
||
|
$background-color: null,
|
||
|
$opacity: 1,
|
||
|
$include-ie: $include-ie
|
||
|
) {
|
||
|
$background-opaque: rgba($background-color, $opacity);
|
||
|
|
||
|
background-image: none;
|
||
|
background-color: $background-opaque;
|
||
|
|
||
|
@if $include-ie {
|
||
|
$ie-background-str: ie-hex-str($background-opaque);
|
||
|
|
||
|
.#{$prefix}ie8 & {
|
||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$ie-background-str}, endColorstr=#{$ie-background-str});
|
||
|
zoom: 1;
|
||
|
}
|
||
|
}
|
||
|
}
|