Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap-vue: import specific css

I want to use a tooltip from the bootstrap-vue. When I add

import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'

to get the tooltip style, then the whole view of my application is changing. Is it possible to import css only to my tooltip?

like image 811
Flora Avatar asked Oct 18 '18 09:10

Flora


People also ask

What is BootstrapVue?

Bootstrap-Vue is a component library based entirely on the hugely popular Bootstrap frontend CSS framework. It provides a number of Vue. js components that ultimately render Bootstrap HTML markup decorated with the correct classes to be styled by the Bootstrap CSS files.


1 Answers

You can import the tooltip component from the src folder, like this

import 'bootstrap-vue/src/components/tooltip'
like image 194
waghcwb Avatar answered Sep 30 '22 18:09

waghcwb