Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify v-tooltip unable to change css

I am using v-tooltip of Vuetify and I want to make minor changes in its CSS like opacity: 1 and inner padding: 0. But I am unable to changes any CSS on it. Can someone help please?

.v-tooltip {
    font-size: 50px !important;
    opacity: 1 !important;
}

And this is my vue code:

  <v-tooltip bottom>
    <template v-slot:activator="{ on }">
      <a
        v-on="on"
        @mouseover="mouseOver(item)"
        @mouseleave="mouseLeave(item)"
      >{{ item.name }}</a>
    ...continued
like image 276
BeaST 30 Avatar asked Jan 26 '23 00:01

BeaST 30


1 Answers

Content is under .v-tooltip__content. Also it is set on the element itself, so important is required as you already did to override the styling.

.v-tooltip__content {
  font-size: 50px !important;
  opacity: 1 !important;
  display: block !important;
}
like image 188
dreijntjens Avatar answered Jan 31 '23 07:01

dreijntjens