The best way to go about this is to define a custom Sass function. See http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#adding_custom_functionsfor more details.
On Tue, Feb 2, 2010 at 2:19 PM, Chris Eppstein <ch...@eppsteins.net> wrote: > I'd make a debug stylesheet that only get's included into your layout(s) > when in development mode. > > chris > > > On Tue, Feb 2, 2010 at 2:11 PM, Josh <josh.j.h...@gmail.com> wrote: > >> Ok, I know this is probably a super rare situation, so I understand if >> there isn't a way to do it. >> >> Here's the issue. To get my elements arranged correctly with some >> overlapping transparencies (png background images), I need to set the >> z-index of one of my divs to -1. No big deal. Not ideal, but it gets >> the job done fairly well. >> >> The problem is this means that div, along with it's contents, will >> fall below container divs on the z-axis. Doesn't affect the display >> or rendering, but means can't diagnose problems easily with tools like >> CSS Edit (which I love). >> >> I'd like to set it up so my z-index is set to -1 in the Rails >> production and test environments, but set to 0 in the development >> environment. >> >> Is there a way to do this? Does anybody have a better solution that >> I've missed? >> >> Thanks for your assistance. >> >> Josh >> >> -- >> 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 <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.