Skip to content

Instantly share code, notes, and snippets.

View KatieK2's full-sized avatar

KatieK KatieK2

View GitHub Profile
@KatieK2
KatieK2 / SassMeister-input.sass
Created December 6, 2013 22:11
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
=coloured-flyout($color)
border: solid tint($color, 10%) 1px
background-color: tint($color, 20%)
.flyout
<ul class="theme theme--crisp">
<li>#313340</li>
<li>#f0f0e3</li>
<li>#f9c27b</li>
<li>#ef8531</li>
<li>#f36519</li>
</ul>
<ul class="theme theme--funky">
<li>#da0054</li>
@KatieK2
KatieK2 / SassMeister-input-HTML.html
Created January 21, 2014 18:21
Generated by SassMeister.com.
<table>
<tr>
<td class="hulk1">70% highlight</td>
<td class="hulk2">50% highlight</td>
<td class="hulk3">30% highlight</td>
<td class="hulk4">$hulk</td>
<td class="hulk5">30% shadow</td>
<td class="hulk6">50% shadow</td>
<td class="hulk7">70% shadow</td>
</tr>
@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
Last active July 19, 2022 05:56
Demonstrates a list and random() to show a randomly generated background image. Generated by SassMeister.com.
// ----
// Sass (v3.3.0)
// Compass (v1.0.0.alpha.18)
// ----
$imgKey: random(5);
$list: apple, banana, cherry, durian, eggplant;
$nth: nth($list, $imgKey);
@KatieK2
KatieK2 / SassMeister-input.scss
Created March 13, 2014 17:37
Generated by SassMeister.com.
// ----
// Sass (v3.3.1)
// Compass (v1.0.0.alpha.18)
// ----
@import "compass";
@mixin post-link ($class, $color, $hover) {
a.#{$class}:link {
color: $color;
@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>