diff options
| author | Mark Otto <[email protected]> | 2013-10-20 16:46:38 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-10-20 16:46:38 -0700 |
| commit | 6a93a6b88a4b874fba5a1d1edd817cbd91ccfacc (patch) | |
| tree | 8cfb8e576efc82acbd8f9c165448289496b6ee7d /less | |
| parent | 32468b087b615d1ed710f9118ff4f669cc5ad5e8 (diff) | |
| download | bootstrap-6a93a6b88a4b874fba5a1d1edd817cbd91ccfacc.tar.xz bootstrap-6a93a6b88a4b874fba5a1d1edd817cbd91ccfacc.zip | |
Fixes #10903 and #10457: IE8-9 don't support events on elements without background-color, so we have to hack it
Diffstat (limited to 'less')
| -rw-r--r-- | less/carousel.less | 11 |
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; |
