aboutsummaryrefslogtreecommitdiff
path: root/less/carousel.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-10-20 22:55:45 -0700
committerMark Otto <[email protected]>2013-10-20 22:55:45 -0700
commit2eec3f919e7bd7ee847c2631ae9c53515cac1c8f (patch)
treeb9dd9c6b61fcb72aafe47dd85beac8cfb9da4fe2 /less/carousel.less
parentab3d0a27b3d93eebff3852728f94ddc4fcb35199 (diff)
parent6585c5898a47deb2df5f7db4f9ef3fe8fa1e5a4a (diff)
downloadbootstrap-2eec3f919e7bd7ee847c2631ae9c53515cac1c8f.tar.xz
bootstrap-2eec3f919e7bd7ee847c2631ae9c53515cac1c8f.zip
Merge branch 'master' into pr/10656
Conflicts: dist/css/bootstrap.min.css
Diffstat (limited to 'less/carousel.less')
-rw-r--r--less/carousel.less15
1 files changed, 13 insertions, 2 deletions
diff --git a/less/carousel.less b/less/carousel.less
index 9fff41e73..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;
@@ -190,12 +201,12 @@
// Scale up controls for tablets and up
-@media screen and (min-width: @screen-sm) {
+@media screen and (min-width: @screen-sm-min) {
// Scale up the controls a smidge
.carousel-control {
.glyphicons-chevron-left,
- .glyphicons-chevron-right
+ .glyphicons-chevron-right,
.icon-prev,
.icon-next {
width: 30px;