diff options
| author | Mark Otto <[email protected]> | 2016-12-04 20:14:33 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-12-04 20:14:33 -0800 |
| commit | 6d28f07582f403d4214ef15781bb88668bfabc52 (patch) | |
| tree | b7cf7ca6d074d5c99fe5eff04810b13fe7850696 /scss/_carousel.scss | |
| parent | b0db5788dfee52cf0d52971938b5b1cbc4b7d3b9 (diff) | |
| download | bootstrap-6d28f07582f403d4214ef15781bb88668bfabc52.tar.xz bootstrap-6d28f07582f403d4214ef15781bb88668bfabc52.zip | |
redesign indicators
Diffstat (limited to 'scss/_carousel.scss')
| -rw-r--r-- | scss/_carousel.scss | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/scss/_carousel.scss b/scss/_carousel.scss index 12c7f38df..532f8d3a8 100644 --- a/scss/_carousel.scss +++ b/scss/_carousel.scss @@ -142,26 +142,36 @@ list-style: none; li { + position: relative; display: inline-block; - width: $carousel-indicator-size; - height: $carousel-indicator-size; - margin: 1px; + width: $carousel-indicator-width; + height: $carousel-indicator-height; text-indent: -999px; cursor: pointer; - // IE9 hack for event handling - // - // Internet Explorer 9 does not properly handle clicks on elements with a `background-color` of `transparent`, - // so we use `rgba(0,0,0,0)` instead since it's a non-buggy equivalent. - // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer - background-color: rgba(0,0,0,0); // IE9 - border: 1px solid $carousel-indicator-border-color; - border-radius: $carousel-indicator-size; + background-color: rgba($carousel-indicator-active-bg, .5); + + &::before { + position: absolute; + top: -10px; + left: 0; + display: inline-block; + content: ""; + width: 100%; + height: 10px; + } + + &::after { + position: absolute; + bottom: -10px; + left: 0; + display: inline-block; + content: ""; + width: 100%; + height: 10px; + } } .active { - width: $carousel-indicator-active-size; - height: $carousel-indicator-active-size; - margin: 0; background-color: $carousel-indicator-active-bg; } } |
