This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.0) | |
// ---- | |
$yep: 'yep'; | |
$nope: 'nope'; | |
$meh: 'not really'; | |
@function yepnope($feature) { | |
@if function-exists(yn--#{$feature}) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="spinner"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="spinner"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.0) | |
// ---- | |
// Like yep/nope for Sass, | |
// but it only works on the latest releases... :P | |
$yep: 'yep'; | |
$nope: 'nope'; | |
$meh: 'not really'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
// test | |
.not-test { | |
@if function-exists('not') and not(true) { | |
not: error; | |
} @else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
// Font-Face Proposal | |
// ================== | |
// - Needs file access to check for available font files & svg names. | |
// - Needs browser-support integration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
@function map-append($map, $key, $value) { | |
@return map-merge($map, ($key: append(map-get($map, $key) or (), $value))); | |
} | |
@function parse-expects($expects) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
$expects: false not to be true; | |
.test { | |
length: length($expects); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
@function not($arg) { | |
@return if($arg, false, true); | |
} | |
@if true and not true { | |
.not-keyword { test: 'failure'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.5) | |
// Compass (v1.0.1) | |
// ---- | |
// Sass BDD syntax proposal | |
// ======================== | |
// - based on [Jasmine](http://jasmine.github.io/2.0/introduction.html) | |
// - comparitor may be easier to parse with dashes e.g. "not-to-be" | |
// - simplest parsing would use commas as well e.g. "expect($foo, to equal, 1)" |