Is there a way to confine the global styles of a module to just one file?
For example, I want to adjust the width of an element in a react module but only within one specific file. Unfortunately, inline styles are not an option :/
Edit for clarification: In my case, I am utilizing 'react-multi-carousel' and in order to customize the behavior at breakpoints, I have added
.react-multi-carousel-item { width: 310px !important; }
. However, I would like this style to only affect a single component rather than affecting my entire project (where the carousel is used in multiple places). Is there a method to localize a global style (from a CSS file)?