1
0
Fork 0
mirror of https://github.com/Oreolek/elements.git synced 2024-06-29 04:54:58 +03:00

added cross browser opacity rules

This commit is contained in:
collingo 2012-04-02 16:58:10 +01:00
parent ebdcd8ca09
commit 33cc13db4a

View file

@ -72,9 +72,18 @@
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
}
.opacity(@opacity: 0.5) {
@percent: @opacity * 100;
/* IE 8 */
-ms-filter: ~"progid:DXImageTransform.Microsoft.Alpha(opacity=(@{percentage}))";
/* IE 5-7 */
filter: ~"alpha(opacity = (@{percentage}))";
/* Netscape */
-moz-opacity: @opacity;
/* Safari 1.x */
-khtml-opacity: @opacity;
/* Webkit */
-webkit-opacity: @opacity;
/* Good browsers */
opacity: @opacity;
}
.transition-duration(@duration: 0.2s) {