04 Apr '14, 9pm

Removing Sass Duplication Using Sass Maps

Removing Sass Duplication Using Sass Maps

Recently Dan asked me to get new icons for Raleigh , New York City , and Austin added to some of our landing pages. Once I created the icons, I checked out the site to put them in below the offices that have already been on the marketing pages. It looked like this: &#boston:after { background: url('/img/icon_boston.png') no-repeat center top; } &#denver:after { background: url('/img/icon_denver.png') no-repeat center 42px; } &#sanfran:after { background: url('/img/icon_sf.png') no-repeat center 54px; } &#philly:after { background: url('/img/icon_philly.png') no-repeat center 42px; } &#stockholm:after { background: url('/img/icon_stockholm.png') no-repeat center 45px; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { &#boston:after { background: url('/img/[email protected]') no-repeat center top; background-size: 97px 112px; } &#denver:after { backgr...

Full article: http://robots.thoughtbot.com/removing-sass-duplication

Tweets

@bechilandia es muy similar

sass-lang.com 09 Apr '14, 7pm

You can create partial Sass files that contain little snippets of CSS that you can include in other Sass files. This is a ...

Google Maps has added Cambodia’s ancient temples of Angkor...: Google Maps has added Cambodia’s ... #BreakingNews

Google Maps has added Cambodia’s ancient temple...

latimes.tumblr.com 06 Apr '14, 10pm

Cambodia’s ancient temples of Angkor to its

@samiullah1989

sass-lang.com 10 Apr '14, 10am

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

is using #Blockchain for the latest #bitcoin pr...

twitter.com 06 Apr '14, 9pm

To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content,...

GEAR CHECK: First look at a new GPS watch with color display and road maps:

GEAR CHECK: First look at a new GPS watch with ...

runnersworld.com 08 Apr '14, 2am

Wireless Sync and 3rd Party Integration Once configured with your wi-fi network credentials, workout history, routes, and ...