27 May '14, 9pm

I learned about the !default feature in SASS today:

You can assign to variables if they aren’t already assigned by adding the !default flag to the end of the value. This means that if the variable has already been assigned to, it won’t be re-assigned, but if it doesn’t have a value yet, it will be given one. This is what it looks like: $example: 'value' !default; So using Sass !default is like adding an “unless this is already assigned” qualifier to your variable assignments. But what’s the use case for this? Example: custom styles for a white label app Recently, a client asked us to create a white label app: they wanted their customers to be able to customize things like colors, logo, background, etc., but to have fallbacks for customers who wouldn’t use custom branding. How do you handle this with Sass? Let’s step through it. First, all of these customizable parts are defined in variables. $brand: company-name; $brand-col...

Full article: http://robots.thoughtbot.com/sass-default

Tweets

Sanity check: does @SassCSS compile HSLA values...

sass-lang.com 27 May '14, 6pm

# File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/functions.rb', line 1235 def mix(color1, color2, weight =...

dzslides-sass (0.0.1): A SASS version of the dz...

rubygems.org 25 May '14, 4am

dzslides-sass 0.0.1 A SASS version of the dzslides css install gem install dzslides-sass Download Documentation Badge Subs...

Todo front end deve ler esta page!

sass-lang.com 03 Jun '14, 1pm

Whether an error in the Sass code should cause Sass to provide a detailed description within the generated CSS file. If se...

injectorize (0.0.1): Like attr_accessor with de...

rubygems.org 01 Jun '14, 1pm

injectorize 0.0.1 Like attr_accessor with default creation install gem install injectorize Download Documentation Badge Su...

How to: Override devise default routes for sign...

rubyflow.com 25 May '14, 6am

How to: Override devise default routes for sign in and sign out Posted by rahul100885 on May 25, 2014 — 0 comments Checkou...