Skip to content

Instantly share code, notes, and snippets.

@xgqfrms-GitHub
Created March 10, 2017 09:11
Show Gist options
  • Save xgqfrms-GitHub/fe74994dfa2e8bba14b0a6412217f154 to your computer and use it in GitHub Desktop.
Save xgqfrms-GitHub/fe74994dfa2e8bba14b0a6412217f154 to your computer and use it in GitHub Desktop.
CSS Modules & Webpack
@xgqfrms-GitHub
Copy link
Author

@xgqfrms-GitHub
Copy link
Author

Class Composition

.box {
    width: 100px;
    height: 100px;
}

.empty {
    composes: box;
    background: #4CAF50;
}

.full {
    composes: box;
    background: #F44336;
}

===

.empty {
    width: 100px;
    height: 100px;
    background: #4CAF50;
}

.full {
    width: 100px;
    height: 100px;
    background: #F44336;
}

https://github.com/gajus/react-css-modules/issues/218

css-modules/css-modules#218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment