Permalink
Browse files

Use opacity only via JavaScript (#10568).

  • Loading branch information...
1 parent 9b1ba10 commit 5a3fe3a326071e2a5b89b405db3b7044797de07a @vanderhoorn vanderhoorn committed Nov 8, 2012
@@ -0,0 +1,13 @@
+function setOpacity() {
+ $$('.carousel-wrapper .carousel-control').each(function (elem) {
+ $(elem).setStyle({
+ '-ms-filter': "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)",
+ 'filter': 'alpha(opacity=50)',
+ 'opacity': '0.5'
+ });
+ });
+}
+
+document.observe('dom:loaded', function () {
+ setOpacity();
+});
@@ -39,13 +39,10 @@
color: white
cursor: pointer
display: block
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"
- filter: alpha(opacity=50)
font-size: 20px
height: 25px
line-height: 20px
margin-top: -15px
- opacity: 0.5
position: absolute
text-align: center
text-decoration: none

0 comments on commit 5a3fe3a

Please sign in to comment.