Skip to content

Instantly share code, notes, and snippets.

View mirisuzanne's full-sized avatar

Miriam Suzanne mirisuzanne

View GitHub Profile
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Last active August 29, 2015 14:08
Generated by SassMeister.com.
// ----
// libsass (v3.0)
// ----
$yep: 'yep';
$nope: 'nope';
$meh: 'not really';
@function yepnope($feature) {
@if function-exists(yn--#{$feature}) {
@mirisuzanne
mirisuzanne / SassMeister-input-HTML.html
Last active August 29, 2015 14:08
Generated by SassMeister.com.
<span class="spinner"></span>
@mirisuzanne
mirisuzanne / SassMeister-input-HTML.html
Last active August 29, 2015 14:08
Generated by SassMeister.com.
<span class="spinner"></span>
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Last active August 29, 2015 14:08
Generated by SassMeister.com.
// ----
// libsass (v3.0)
// ----
// Like yep/nope for Sass,
// but it only works on the latest releases... :P
$yep: 'yep';
$nope: 'nope';
$meh: 'not really';
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Created October 21, 2014 17:03
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
// test
.not-test {
@if function-exists('not') and not(true) {
not: error;
} @else {
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Last active August 29, 2015 14:07
Generated by SassMeister.com.
// ----
// 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.
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Created October 17, 2014 17:35
Generated by SassMeister.com.
// ----
// 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) {
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Created October 17, 2014 17:13
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
$expects: false not to be true;
.test {
length: length($expects);
}
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Created October 16, 2014 16:18
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
@function not($arg) {
@return if($arg, false, true);
}
@if true and not true {
.not-keyword { test: 'failure'; }
@mirisuzanne
mirisuzanne / SassMeister-input.scss
Last active August 29, 2015 14:07
Sass BDD syntax proposal
// ----
// 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)"