N
N
Nikita Ronzin2019-12-18 15:07:01
Owl Carousel
Nikita Ronzin, 2019-12-18 15:07:01

How to override vue-owl-carousel2 styles?

Trying to override styles for carousel

<style scoped lang="sass">
.owl-theme .owl-dots .owl-dot span
  width: 33px !important
  margin: 5px !important

.post-detail
  &-carousel
    & .owl-dots .owl-dot span
      width: 33px !important
      margin: 5px !important

As a result, nothing changes, the styles are not even registered, as if there were no selector matches. Who met with this? I use webPack 3, vue2, owl2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Koltunov, 2019-12-18
@Ababinili

Try adding styles globally rather than in the component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question