How do you remove the default Bootstrap 3 carousel control background gradients?

…衆ロ難τιáo~ 提交于 2019-12-02 15:45:58
.carousel-control.left, .carousel-control.right {
    background-image: none
}
fullgeek

IE has a weird filter and this worked when trying to fix it in IE9 (should work for all):

.carousel-control.left, .carousel-control.right{ 
    background: none !important;
    filter: progid:none !important;>
}

I notice that this will also have this annoying dotted line box when you click it unless you add this:

All in all, this makes the buttons beautiful:

.carousel-control.left, .carousel-control.right {
  background: none !important;
  filter: progid: none !important;
  outline: 0;
 }
.carousel .carousel-control {
  visibility: hidden;
}
.carousel:hover .carousel-control {
  visibility: visible;
}

There is specialized mixin for resetting IE gradient (Bootstrap 3).

SASS:

.carousel-control {
  &.left, &.right {
    background-image: none;
    @include reset-filter();
  }
}
.carousel-control {
        opacity:100;
    }

worked for me. Hope this can help someone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!