Yes, it's fine and intended. - Nathan
Robin wrote: > Background: > > The project I'm working on involves many stylesheets which are slight > variations from each other. For example, only the colours change, or > the background image, etc. > > How I've implemented this: > > I have a file which is just a list of variable declarations > > constants.sass: > !forum_font = "Times New Roman" > !forum_font_size = 15px > !link_colour = #00f > > Then I've got a file that uses these variables for the stylesheet > > forum_base.sass: > #forum > :font > :family = !forum_font > :size = !forum_font_size > > And finally, I execute them through a third file, that allows any > particular variable to be overwritten: > > special_forum.sass: > @import constants.sass > > !forum_font = "Arial" > !forum_font_size = 25px > > @import forum_base.sass > > > Right now this works great. The variables are declared in constants, > overwritten in the special_forum, and then rendered out in a standard > format using forum_base. Variables that are unchanged (link_colour) > stay as defaults. > > My question is: is doing this okay? I am making some assumptions > about how Sass works with variables and overwriting them in the order > they're found that seems to work, but will this ever change in the > future? I don't want all of my code to suddenly break! > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
