Re: [haml] Re: SCSS function to remove a portion of the sting #ffffff > ffffff

2011-03-04 Thread Mike Branderhorst
I run into another problem. ff is renamed to white. How can I prevent this? On Tue, Feb 22, 2011 at 3:30 AM, Mike Branderhorst < mikebranderho...@gmail.com> wrote: > Thx Chris, > > It works :-) > > I added the next lines to the bottom of my config.rb > > module Sass::Script::Functions > def

Re: [haml] Re: SCSS function to remove a portion of the sting #ffffff > ffffff

2011-02-21 Thread Mike Branderhorst
Thx Chris, It works :-) I added the next lines to the bottom of my config.rb module Sass::Script::Functions def gsub(string, regexp, replacement) Sass::Script::String.new(string.value.gsub(Regexp.new(regexp.value), replacement.value)) end end And used it like this: $someComputedColor:

Re: [haml] Re: SCSS function to remove a portion of the sting #ffffff > ffffff

2011-02-21 Thread Chris Eppstein
The simplest approach is to just drop that snippet into your compass config. You'll need to coerce your color to a string before passing it to that function. Any value can be coerced to a string like this: "#{$value}" chris On Mon, Feb 21, 2011 at 5:47 PM, Mike wrote: > Thx Chris, > > Do I put

[haml] Re: SCSS function to remove a portion of the sting #ffffff > ffffff

2011-02-21 Thread Mike
Thx Chris, Do I put gsub_ext.rb next to config.rb? I just made a simple example for my question. At the moment I make jQuery UI SASS ready. With a custom made themeroller but I still have to get the generated icons from themeroller. background: url("http://jqueryui.com/themeroller/images/? new=2