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 October 17, 2015 19:11
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
////
// I have written a lot of different `str-replace` Sass functions over
// the months yet none of my tries were succeeding in making the new substring
// able to contain the one to replace (e.g. `str-replace($str, "a", "ab")`).
// Thanks to Valérian Galliat (@valeriangalliat), I finally managed to build
@lunelson
lunelson / SassMeister-input.scss
Created October 7, 2015 09:57
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@import "sass-maps-plus";
$map1: (
alpha: (
beta: (
gamma: 3
@lunelson
lunelson / SassMeister-input.scss
Last active October 5, 2015 18:42
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@mixin foo($out: false) {
@if $out {
@at-root { @content; }
}
}
@lunelson
lunelson / introrx.md
Created October 5, 2015 09:06 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@lunelson
lunelson / SassMeister-input.scss
Last active October 1, 2015 08:30
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@function slice($list, $start: 1, $end: length($list), $sep: list-separator($list)) {
$output: ();
@if $start >= 1 and $end >= $start {
@for $i from $start through $end {
$output: append($output, nth($list, $i), $sep);
@lunelson
lunelson / SassMeister-input.scss
Last active September 30, 2015 14:22
How to get the current selector in Sass
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// SassyLists (v2.2.1)
// ----
@import "SassyLists";
@function last-sels() {
$sel: &; $out: ();
@lunelson
lunelson / SassMeister-input.scss
Created September 19, 2015 17:13
minimal test for self-extending mixin pattern
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// sass-maps-plus (ve4d32a1dc2)
// ----
@import "sass-maps-plus";
$mixins: ();
@lunelson
lunelson / SassMeister-input.scss
Last active August 27, 2021 11:21
Sass reset mixin, for resetting elements
// ----
// Sass (v3.3.14)
// Compass (v1.0.3)
// ----
@mixin reset($type){
$resets: (
ul: (
list-style: none,
margin: 0,
@lunelson
lunelson / SassMeister-input.scss
Last active September 18, 2015 08:26
RESET mixin
// ----
// Sass (v3.3.14)
// Compass (v1.0.3)
// ----
@mixin width($span: 1 1, $options: ()) {
@include width-helper(map-merge((span: $span), $options)...);
}
@mixin width-helper($span: 1 1, $right: null, $left: null, $cycle: null, $out: null) {
@lunelson
lunelson / SassMeister-input-HTML.jade
Created July 21, 2015 07:43
Generated by SassMeister.com.
p.red red
p.orange orange
p.yellow yellow
p.green green
p.blue1 blue1
p.blue2 blue2
p.purple1 purple1
p.purple2 purple2