State of the Sass - The Mixin (November 2016)

Post on 08-Jan-2017

532 views 0 download

Transcript of State of the Sass - The Mixin (November 2016)

State of the

November 15th, 2016 The Mixin

@kaelighttp://bit.ly/mixin112016

blog.sass-lang.com/posts/809572-sass-35-release-candidate

Custom property support

Custom property support

Sass variable in Custom property: interpolate!

https://github.com/davidkpiano/sass-v

New Syntax: Bracketed Lists

is-bracketed($list)

[foo bar baz][foo, bar, baz]

Smaller features

content-exists()

invert($color, $weight: 100%)

First-class Functions

In computer science, a programming language is said to have first-class functions

if it treats functions as first-class citizens. – Wikipedia (so you know it’s true)

First-class Functions (before 3.5)

@function my-function() { @return ‘Hello, world.’; } my-function(); // -> ‘Hello, world.’

call(‘my-function’) // -> ‘Hello, world.’

First-class Functions (after 3.5)

@function my-function() { @return ‘Hello, world.’; } my-function(); // -> ‘Hello, world.’

call(get-function(‘my-function’)) // -> ‘Hello, world.’

First-class Functions (after 3.5)

First-class Functions (after 3.5)

http://bit.ly/sass-first-class-functions

blog.sass-lang.com/posts/1022316-announcing-dart-sass

https://github.com/sasstools/sass-lint

sassnews.com

SUBSCRIBE

SUBSCRIBE

SUBSCRIBE

sassnews.com

@kaelighttp://bit.ly/mixin112016