سؤال

How do you remove the gradient background from the carousel-control in a carousel without overwriting but replacing in the .less files?

هل كانت مفيدة؟

المحلول

Just override the corresponding properties (see https://github.com/twbs/bootstrap/blob/v3.1.1/less/carousel.less#L81-L89), e.g.:

@import ".../bootstrap.less";

.carousel-control {
    &.left, &.right {
        background-image: none;
       .reset-filter(); // reset IE gradient filters
    }
}

نصائح أخرى

For me, this worked (I needed orange color):

 .carousel-control.left, .carousel-control.right {
  background: orange !important;
  filter: progid: none !important;
  filter:none !important;
  background-image:none;
  outline: 0;
  opacity: 1;
 }
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top