Skip to content

Instantly share code, notes, and snippets.

@alice-liu
alice-liu / SassMeister-input.scss
Created April 23, 2014 21:06
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
@function get-value($list-map, $key) {
@each $pair in $list-map {
@if nth($pair, 1) == $key {
@return nth($pair, 2);
}
}
@alice-liu
alice-liu / SassMeister-input-HTML.haml
Created April 16, 2014 18:36
Generated by SassMeister.com.
.form
.cell1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed consequat, arcu at molestie iaculis, enim orci pharetra turpis, sed ultrices tortor nunc ac orci. Quisque pellentesque enim et euismod facilisis. Vestibulum sed urna vel dolor imperdiet consectetur nec non arcu. Nunc augue tortor, vulputate in sem vitae, vulputate bibendum tellus.
.cell2
blah blah
@alice-liu
alice-liu / SassMeister-input.scss
Created January 25, 2014 00:13
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$tooltip-arrow-width: 7px;
$tooltip-arrow-offset: $tooltip-arrow-width * 2;
$white: white;
$border-color: gray;
@alice-liu
alice-liu / SassMeister-input.scss
Created January 24, 2014 23:46
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$tooltip-arrow-width: 7px;
$tooltip-arrow-offset: $tooltip-arrow-width * 2;
$white: white;
$border-color: gray;
@alice-liu
alice-liu / SassMeister-input.scss
Created January 18, 2014 02:11
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
%foo {
color: bue;
}
.blah {
@alice-liu
alice-liu / SassMeister-input.scss
Created January 17, 2014 22:15
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@for $d from 1 to 10 {
%color-#{$d} {
color: scale(red, 10% * $d);
}
}
@alice-liu
alice-liu / SassMeister-input-HTML.html
Created January 13, 2014 19:14
String replace function
<div></div>
@alice-liu
alice-liu / SassMeister-input.scss
Created January 7, 2014 19:09
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// non-default var defined after
$foo: blue !default;
$foo: red;
.bar {
@alice-liu
alice-liu / SassMeister-input-HTML.haml
Created December 20, 2013 01:31
Generated by SassMeister.com.
.parent
.child boo
.child baz
.foo
.child blah
.child
bar
@alice-liu
alice-liu / SassMeister-input-HTML.haml
Created December 18, 2013 00:14
Generated by SassMeister.com.
%nav.vertical
%h1.header.vertical--first header
%ul.list.vertical--last
%li.item
%a.link blah
- for i in 1..2 do
%li.item__nested
%a.link nested!
%ul.list
%li.item