Check out the @import directive: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#import
On Fri, Sep 24, 2010 at 3:38 AM, gmile <iamex...@gmail.com> wrote: > I want to implement a skin support in my Rails app. A typical style > sheet for a skin in my app should look like a list of color variables > (assuming that we're not changing structure or anything else). What I > want to do is to create a shared file called 'shared.scss' in which > i'll use variables, which are defined in a separate files > ('skin_a.scss', 'skin_b.scss'). So that to have the following picture: > > -- skin_a.scss -- > > $red: #900; > $blue: #009 > > -- skin_b.scss -- > > $red: #F00; > $blue: #00F > > -- shared.scss -- > > @include 'skin_a' /* if statement will here to conditionally load _a > or _b skin */ > > #header { > color: $red; > background-color: $blue > } > > I would expect @include to expand passed style-sheet (skin with > variables in my case) inside shared.scss to see the following picture: > > -- shared.scss (after parsing) -- > > $red: #900; > $blue: #009 > > #header { > color: $red; > background-color: $blue > } > > Or, for instance, imaginative @include could just grab values from the > 'skin_a' and put them instead of respective variables inside the file > (shared.scss), to have the following picture: > > -- shared.scss (after parsing with _a skin) -- > > #header { > color: #900; > background-color: #009 > } > > So is this currently possible? Is it possible to somehow share values > between SCSS files? > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to h...@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.