aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-10-20 17:48:36 -0700
committerMark Otto <[email protected]>2013-10-20 17:48:36 -0700
commit6d5c5105fa4037604417972eb8d2ebfc766e9bc8 (patch)
tree0309596dcd3029a4a8b424f86fbfa9e2abb63440 /less
parentf45c05a97a4dda6a657ff89fcbfa283308d0b329 (diff)
parentbc76be5dcf0b872a736e0dbf2f2f373ca928234e (diff)
downloadbootstrap-6d5c5105fa4037604417972eb8d2ebfc766e9bc8.tar.xz
bootstrap-6d5c5105fa4037604417972eb8d2ebfc766e9bc8.zip
Merge pull request #11186 from twbs/carousel_indicators_ie
Carousel indicators for IE8-9
Diffstat (limited to 'less')
-rw-r--r--less/carousel.less11
1 files changed, 11 insertions, 0 deletions
diff --git a/less/carousel.less b/less/carousel.less
index 59e4fadf7..d0d90736f 100644
--- a/less/carousel.less
+++ b/less/carousel.less
@@ -160,6 +160,17 @@
border: 1px solid @carousel-indicator-border-color;
border-radius: 10px;
cursor: pointer;
+
+ // IE8-9 hack for event handling
+ //
+ // Internet Explorer 8-9 does not support clicks on elements without a set
+ // `background-color`. We cannot use `filter` since that's not viewed as a
+ // background color by the browser. Thus, a hack is needed.
+ //
+ // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
+ // set alpha transparency for the best results possible.
+ background-color: #000 \9; // IE8
+ background-color: rgba(0,0,0,0); // IE9
}
.active {
margin: 0;