Return to Snippet

Revision: 46153
at May 13, 2011 19:29 by track02


Updated Code
@mixin opacity($value)
  opacity: #{"." + $value}
  filter: alpha(opacity=$value)
  -ms-filter: "alpha(opacity=$value)"
  -khtml-opacity: #{"." + $value}
  -webkit-opacity: #{"." + $value}
  -moz-opacity: #{"." + $value}

.opacity
  @include opacity(80)

Revision: 46152
at May 13, 2011 18:00 by track02


Updated Code
@mixin transparenz($wert, $iewert)
// IE 8
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$wert)"
// IE 5-7
    filter: alpha(opacity=$wert)
    -webkit-opacity: $wert
    -moz-opacity: $wert
    -khtml-opacity: $wert
    opacity: $wert
//@include transparenz(0.5, 50)

Revision: 46151
at May 13, 2011 17:49 by track02


Initial Code
@mixin transparenz($wert, $iewert)
  // IE 8
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$wert)"
  // IE 5-7
  filter: alpha(opacity=$wert)
  -webkit-opacity: $wert
  -moz-opacity: $wert
  -khtml-opacity: $wert
  opacity: $wert
  //@include transparenz(0.5, 50)

Initial URL

                                

Initial Description

                                

Initial Title
Cross Browser Transparency SASS

Initial Tags
css, ie, browser

Initial Language
SASS