kriasoft / isomorphic-style-loader

CSS style loader for Webpack that is optimized for isomorphic (universal) web apps.

Home Page:https://reactstarter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do i override styles from third party libraries?

damiangreen opened this issue · comments

e.g. dashboardWidgetContainer is a class that I own, react-grid-item and react-resizable-handle i don't

I'd like to be able to do something like this:

.dashboardWidgetContainer .react-grid-item > .react-resizable-handle::after {
  content: '';
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}

Looks like you are asking in a wrong place. This loader does nothing with your styles, it just allows it ti use them on the server.

well it kinda does do stuff to your styles, it mangles class names

Nope, this loader does not modify class names.
You are probably talking about css-loader and its CSS Modules related option: https://github.com/webpack-contrib/css-loader#modules

My apologies. thanks for the link