O'Reilly logo

Sass and Compass Designer's Cookbook by Bass Jobsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Playing on SassMeister

SassMeister is a project of Jed Foster and Dale Sande. SassMeister is a playground for Sass, Compass, and LibSass. You can easily test and share your Sass code on SassMeister. In this recipe, you will be introduced to SassMeister.

Getting ready

For this recipe, you will only need a web browser to visit SassMeister at http://sassmeister.com.

How to do it...

The steps below demonstrate you how to test your code on the SassMeister playground for Sass:

  1. In your browser, navigate to http://sassmeister.com.
  2. You can directly start using SassMeister or you can log in with your GitHub account.
  3. Write down the following SCSS code in the upper-left SCSS input area of SassMeister:
    @mixin set-width($width) { @if $width < 50 { @error "width should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required