Skip to content

Instantly share code, notes, and snippets.

View lunelson's full-sized avatar
👀
Reading

Lu Nelson lunelson

👀
Reading
View GitHub Profile
@lunelson
lunelson / SassMeister-input.scss
Created June 4, 2013 09:15
Contains and Contains-Any
// ---
// Sass (v3.2.9)
// ---
// testing containment of any of multiple keys in a complex list
@function contains-any($list, $keys...) {
$result: false;
@each $key in $keys {
@lunelson
lunelson / SassMeister-input.scss
Created June 7, 2013 08:29
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
@mixin intern($v,$n:$n) {
out: $v * $n;
}
@mixin test1($n){
@lunelson
lunelson / SassMeister-input.scss
Created September 15, 2013 10:04
Keyframe for "Step" animation
// ----
// Sass (v3.2.10)
// Compass (v0.13.alpha.4)
// ----
@import "compass";
@import "breakpoint";
// keyframes mixin
@lunelson
lunelson / SassMeister-input.scss
Created October 15, 2013 10:17
Modernizr and Yep / Nope functions
// ----
// Sass (v3.2.10)
// Compass (v0.13.alpha.4)
// ----
// MODERNIZR Checks following "yep" and "nope" conventions
@mixin modernizr($tests...) {
$selector: 'html';
@each $test in $tests { $selector: "#{$selector}.#{$test}"; }
@lunelson
lunelson / SassMeister-input.scss
Created October 19, 2013 10:00
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
$numerator: 5;
$demoninator: 8;
$test: (numerator: 5, denominator: 8);
.debug {
@lunelson
lunelson / SassMeister-input.scss
Created October 21, 2013 09:18
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
// a compound map value retrieval function, arbitrary level of depth
@function map-value($map, $keys...) {
@each $key in $keys { $map: map-get($map, $key); }
@return $map;
}
@lunelson
lunelson / SassMeister-input.scss
Created October 24, 2013 20:24
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@function has-any($map, $keys...) {
@each $key in $keys {
@if map-has-key($map, $key) { @return $key; }
}
@return false;
@lunelson
lunelson / SassMeister-input.scss
Created October 25, 2013 09:15
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@import "breakpoint";
@function str-remove($str, $sub) {
$i: str-index($str, $sub);
@if $i == 0 { @return $str; }
@lunelson
lunelson / SassMeister-input.scss
Created October 25, 2013 10:41
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@import "breakpoint";
@function str-remove($str, $sub) {
$i: str-index($str, $sub);
@if $i == 0 { @return $str; }
@lunelson
lunelson / SassMeister-input.scss
Created October 28, 2013 19:27
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$animation-data: (
fadeIn: (
from: (
opacity: 0
),