Skip to content

Instantly share code, notes, and snippets.

@necolas
Created April 13, 2013 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save necolas/5379395 to your computer and use it in GitHub Desktop.
Save necolas/5379395 to your computer and use it in GitHub Desktop.
/**
* CSS modules required for this module to render correctly.
* Correct order for entire app is resolved by script.
*/
@require "normalize.css";
@require "vendor/button.css";
/**
* CSS component
*/
.Button {}
.Button--primary {}
/**
* Allow other modules to attach styles scoped to StreamItem.
*/
@provide "StreamItem";
/**
* CSS component
*/
.StreamItem {}
/**
* CSS modules required for this module to render correctly
*/
@require "normalize.css";
@require "vendor/utils-text/text.css";
@require "vendor/utils-layout/layout.css";
/**
* Allow other modules to attach styles scoped to Tweet.
*/
@provide "Tweet";
/**
* CSS modules this module attaches styles off.
* Build would fail if StreamItem no longer exists or is no longer provided by the StreamItem module.
*/
@use "StreamItem";
/**
* CSS component
*/
.Tweet {}
.Tweet-body {}
.StreamItem:hover .Tweet {}
@rafaelrinaldi
Copy link

This syntax is very interesting. Which pre-processor are you using?

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