Why is Vuetify CSS applying outside of the Vue instance? - css

We are using Vuetify in a VueJS 2 app.
This Vue app is used inside another web application which doesn't use Vue.
However the CSS of Vuetify is leaking out of the Vue app. This causes the Vuetify CSS to apply styles to the web application and changes its styles, which is an undesired side effect.
How could we avoid the Vuetify CSS leaking out of Vue app?

Related

Which css class library goes well with Angular Material?

As title says, I want to know which css class can be paierd with angular material.
The purpose is to have simple classes just as column-md, row, paddings, margins, containers, avoiding confussion with the angular material classes.
I want to have just one css library to style things like colors and position and have my componens running well.
I thought that bootstrap could be a good pick, but I'm facing errors with the card styling because it conflicts with angular material cards.
I'm new to Angular, and when I was using Vue, we had a beautyful framework called Quasar (https://quasar.dev/) that brings components alongside with css classes, I want to have something similar in Angular but using Angular Material.

How Can I Add Autoprefix To Scoped Style In Vue

After deploying my vue app, I noticed the CSS doesn't behave uniformly across browsers, the CSS style used are in the Vue components, how can I apply Autoprefix to the style.

What's the difference between index.css and App.css?

I usually define global styles in index.css. What is the best practice to define global style? When should I put it in index.css vs App.css when I work on React app?
For a React app, the best practice is to put every component in its own directory containing its corresponding JS and CSS files. The App component is the topmost component in a React app for wrapping all components. There aren't any predefined rules for using App.css or index.css for global CSS.
Check out this article for React styling best practices: https://medium.com/the-non-traditional-developer/styling-best-practices-using-react-c37b96b8be9c
Relevant question: index.css vs. App.css in default app created by "create-react-app" -- what's the difference?

apply imported css to specific div VUEJS

I am using Vue and Vuetify inside a WooCommerce. Everything works fine, except the Vuetify css is applied to the entire page. I just want Vuetify css to be applied to the Vue app.
The Vue app is inside this div. I guess one way is to rebuild the Vuetify css by adding this woocommerce-MyAccount-content class. But I don't know how to do this. I use Vue CLI 3 to create my Vue project.
Do I need to configure the webpack?
Is there another way?
<div class="woocommerce-MyAccount-content">

Is it possible to include bootstrap css as well as semantic-ui css on the same page?

I am developing a SPA with rails as the back-end, angularjs for front-end, and using semantic-ui components for my user interface. But I want to use the modal provided by the angular-ui bootstrap http://angular-ui.github.io/bootstrap/#/modal which has a dependency for bootstrap's CSS.
Now when i include the bootstrap CSS from the CDN, it is overwriting my existing semantic-ui styles by making the component size smaller, changed font styles etc.
So is there any way to make both of these CSS co-exist happily?

Resources