Skip to content

Instantly share code, notes, and snippets.

@ravinggenius
Created April 25, 2010 01:26
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 ravinggenius/378081 to your computer and use it in GitHub Desktop.
Save ravinggenius/378081 to your computer and use it in GitHub Desktop.
/
This is dynamically generated. node_extensions and templates are located in
the lib/ directory of a Rails application. I don't want the styles that apply
to specific node_extensions to be allowed to "bleed". I know I can use mixins
that get around the problem, but the the styles have to be written just so
for everything to work. You can find the application at
http://github.com/ravinggenius/scratch_pad
Maybe a second boolean parameter (on @import) could be used to override the
current behavior?
@import 'reset'
@media print
.post
@import 'node_extensions/post/stylesheets/print'
.text_block
@import 'node_extensions/text_block/stylesheets/print'
.list
@import 'node_extensions/list/stylesheets/print'
@media screen
.post
@import 'node_extensions/post/stylesheets/screen'
.text_block
@import 'node_extensions/text_block/stylesheets/screen'
.table
@import 'node_extensions/table/stylesheets/screen'
.list
@import 'node_extensions/list/stylesheets/screen'
@media screen
@import 'templates/default/stylesheets/screen'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment