05 Feb '13, 3pm

If you aren't happy with the lighten/darken Sass functions, try scale_color. It gives much better results IMO.

# File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 969 def mix(color1, color2, weight = Number.new(50)) assert_type color1, :Color assert_type color2, :Color assert_type weight, :Number Sass::Util.check_range("Weight", 0..100, weight, '%') # This algorithm factors in both the user-provided weight (w) and the # difference between the alpha values of the two colors (a) to decide how # to perform the weighted average of the two RGB values. # # It works by first normalizing both parameters to be within [-1, 1], # where 1 indicates "only use color1", -1 indicates "only use color2", and # all values in between indicated a proportionately weighted average. # # Once we have the normalized variables w and a, we apply the formula # (w + a)/(1 + w*a) to get the combined weight (in [-1, 1]) of color1. # This formula has two especially nice properties: # # * When eit...

Full article: http://sass-lang.com/docs/yardoc/Sass/Script/Functions.ht...

Tweets

How much does it cost to charter a private jet?

How much does it cost to charter a private jet?

luxurytravelmagazine.com 05 Feb '13, 5pm

Air Charter Service has launched a new multiplatform mobile phone application allowing users instant access to current pri...

How much running is too much? Overtraining can ...

running.competitor.com 04 Feb '13, 10pm

How Much Running Is Too Much? By Mackenzie Lobby Published 1 hour ago comments Tweet Share Share Print Photo: www.shutters...

Too Much Monkey Business: January 23, 2013: Act...

strategypage.com 03 Feb '13, 12pm

February 3, 2013: The government is under pressure by Islamic radicals within its ranks to strike back at Israel, which ha...

ASCIIcast 402 Better Errors & RailsPanel

railscasts.com 03 Feb '13, 9pm

A useful side-effect of this is that it helps us to get a better understanding of how Rails works. For our error we can se...