diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Haml/Sass 3 Beta released! – Give Sass a CSS-superset syntax

Nathan Weizenbaum released the first beta of Haml/Sass 3: Classy Cassidy. Here’s a very brief summary: new syntax is known as “SCSS”, for “Sassy CSS”; SCSS was built from ground up based on CSS3 spec, and is 100% CSS3-compatible; SCSS can do anything Sass can do; SCSS files can import Sass files, and vice versa; This means you can use Compass with SCSS right now. “Sass is valuable, and its value doesn’t lie in its syntax, it lies in its power. The success of compilers like Less make it clear that people want CSS compatible syntax, and it doesn’t make sense to keep them from using Sass because it doesn’t have it.”

// new way to default that mimics the look of !important
$var: 12px !default;
// $ not !
$width: 13px
  width: $width
// mixin definition
@mixin pretty-text
  color: $prettiest-color
  @include pretty-text

More info: Haml/Sass 3 Beta Released!

Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...