-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Description
We use the following mixin:
//
// Opacity
// Make the Bootstrap version of the opacity mixin more consistent with the
// original CSS property, which is defined in values from 0 to 1
@mixin opacity($opacity) {
// If the given opacity is smaller than 1, it is used directly, otherwise
// the value will be devided by 100
@if ($opacity < 1) {
opacity: $opacity;
filter: alpha(opacity=$opacity * 100);
} @else {
opacity: $opacity / 100;
filter: alpha(opacity=$opacity);
}
}
Unfortunately the opacity variable in filter: alpha(opacity=$opacity); will not get replaced.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels