Sha256: 8378e50d0da3701e6a0efba4eac246e2a01288e801a3b46fffe917da1d29def4
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
@import "shared"; // Provides cross-browser CSS opacity. Takes a number between 0 and 1 as the argument, e.g. 0.5 for 50% opacity. // // @param $opacity // A number between 0 and 1, where 0 is transparent and 1 is opaque. @mixin opacity($opacity) { @if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 { filter: unquote("progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})"); } opacity: $opacity; } // Make an element completely transparent. @mixin transparent { @include opacity(0); } // Make an element completely opaque. @mixin opaque { @include opacity(1); }
Version data entries
2 entries across 2 versions & 1 rubygems