Skip to content

Instantly share code, notes, and snippets.

View KatieK2's full-sized avatar

KatieK KatieK2

View GitHub Profile
@KatieK2
KatieK2 / SassMeister-input.scss
Last active August 29, 2015 13:56
Demonstrates how differing color values are compiled when `compressed`. Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$red: red;
$FF0000: #FF0000;
$fuchsia: fuchsia;
$f0f: #f0f;

Sass mixin using if/else default arguments, and variable interpolation

Sass mixin uses arguments, if/else, and variable interpolation to update mixin with dynamic background image.

A Pen by KatieK on CodePen.

License.

@KatieK2
KatieK2 / SassMeister-input.scss
Created February 11, 2014 05:28
Demonstrates passing a variable into a mixin. Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
@mixin quotenote($bgimage: none) {
width: 80%;
background-color: #333;
padding: 1%;
@KatieK2
KatieK2 / SassMeister-input.scss
Created March 20, 2014 21:51
Generated by SassMeister.com.
// ----
// Sass (v3.3.3)
// Compass (v1.0.0.alpha.18)
// ----
@function genRandom($int) {
$random: random(210);
$random2: ($int * $random);
@return $random2;
@debug $random2;
@KatieK2
KatieK2 / SassMeister-input-HTML.html
Created May 13, 2014 18:00
Generated by SassMeister.com.
<h1>Lorem Ipsum</h1>
<h2>Is super fabulous</h2>
@KatieK2
KatieK2 / SassMeister-input-HTML.html
Created May 29, 2014 03:58
Generated by SassMeister.com.
<p>
With Sass 3.3.3 (Maptastic Maple) and
Compass 0.12.3 (Alnilam), maps compile to errors:
</p>
<code> error demo/sass/screen.scss (Line 5: Invalid CSS after "$map: (key1": expected ")", was ": white, key2: ...")</code>
@KatieK2
KatieK2 / SassMeister-input.scss
Created June 16, 2014 23:52
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
$bgcolor: #C6538C;
$text-color: black;
$alt-text: white;
$second-bg: #73264C;
@KatieK2
KatieK2 / SassMeister-input.scss
Created June 16, 2014 23:58
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
$text-dark: #492a35;
$text-light: #bdc1ad;
$border-light: #bdc1ad;
$rgba-lighten: rgba(255, 255, 255, 0.4);
$rgba-darken: rgba(0, 0, 0, 0.65);
@KatieK2
KatieK2 / SassMeister-input-HTML.html
Created June 17, 2014 04:16
Generated by SassMeister.com.
<p>
With Sass 3.3.3 (Maptastic Maple) and
Compass 0.12.3 (Alnilam), maps compile to errors:
</p>
<code> error demo/sass/screen.scss (Line 5: Invalid CSS after "$map: (key1": expected ")", was ": white, key2: ...")</code>
@KatieK2
KatieK2 / SassMeister-input.scss
Created July 18, 2014 20:40
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
@import "compass";
h1 {
@include transition-property(width);
@include transition-duration(.2s);