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:
In your browser, navigate to http://sassmeister.com.
You can directly start using SassMeister or you can log in with your GitHub account.
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 be >= 50"; $width: 1px * $width; } @if unit($width) not "px" { @warn "width (#{$width}) converted to pixels"; $width: 1px * $width; } $width: $width * 10; @debug "width: #{$width}"; width: $width; } div { ...