added license, added filter alpha in opacity for IE

This commit is contained in:
Dmitry Fadeev 2012-11-24 18:05:41 +00:00
parent ebdcd8ca09
commit 0f6f6f3b95
2 changed files with 7 additions and 1 deletions

View file

@ -6,3 +6,5 @@ A set of useful mixins for LESS, the CSS pre-processor: <http://lesscss.org>
More information and usage examples over at: <http://lesselements.com> More information and usage examples over at: <http://lesselements.com>
TextMate bundle: <https://github.com/juanghurtado/less-elements.tmbundle> TextMate bundle: <https://github.com/juanghurtado/less-elements.tmbundle>
License: This work is dedicated to the public domain and is free for all uses, commercial or otherwise. No credits required.

View file

@ -54,7 +54,9 @@
-webkit-border-radius: @radius; -webkit-border-radius: @radius;
-moz-border-radius: @radius; -moz-border-radius: @radius;
border-radius: @radius; border-radius: @radius;
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; -moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
} }
.border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) { .border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
-webkit-border-top-right-radius: @topright; -webkit-border-top-right-radius: @topright;
@ -76,6 +78,8 @@
-khtml-opacity: @opacity; -khtml-opacity: @opacity;
-webkit-opacity: @opacity; -webkit-opacity: @opacity;
opacity: @opacity; opacity: @opacity;
@opperc: @opacity * 100;
filter: ~"alpha(opacity=@{opperc})";
} }
.transition-duration(@duration: 0.2s) { .transition-duration(@duration: 0.2s) {
-moz-transition-duration: @duration; -moz-transition-duration: @duration;