summaryrefslogtreecommitdiff
path: root/bootstrap/fonts/less/mixins/opacity.less
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/fonts/less/mixins/opacity.less')
-rwxr-xr-xbootstrap/fonts/less/mixins/opacity.less7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstrap/fonts/less/mixins/opacity.less b/bootstrap/fonts/less/mixins/opacity.less
new file mode 100755
index 0000000..32cf411
--- /dev/null
+++ b/bootstrap/fonts/less/mixins/opacity.less
@@ -0,0 +1,7 @@
+// Opacity
+
+.opacity(@opacity) {
+ @opacity-ie: (@opacity * 100); // IE8 filter
+ filter: ~"alpha(opacity=@{opacity-ie})";
+ opacity: @opacity;
+}