Skip to content

Variables in alpha-filter not replaced #54

@cundd

Description

@cundd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions