Answer the question
In order to leave comments, you need to log in
How to isolate a component from external styles (css-framework'a)?
For example, I have the following component structure:
<App>
<Layout>
<Component1>
<Component2>
<!-- Внутри компонента App -->
<style>
@import 'materialize-css/dist/css/materialize.min.css';
</style>
<style scoped src="materialize-css/dist/css/materialize.min.css"></style>
<!-- Внутри компонента App -->
<style>
#app, #layout { /* или с псевдо-селектором /deep/ */
@import 'materialize-css/dist/css/materialize.min.css';
}
</style>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question