Skip to content

Instantly share code, notes, and snippets.

@IainIsCreative
IainIsCreative / _baseline.scss
Created November 26, 2014 14:02
A very simple Baseline SCSS mixin for providing a visual baseline in your project, in CSS.
// Set up line-height and colour defaults for this mixin.
$line-height: 20px!default;
$line-color: #94d4ff!default;
/**
*
* Baseline Mixin
* Handy dandy mixin to provide a baseline for your typography.
*
* The mixin carries two arguments — the $baseline, which should match your line-height, and $baseline-color, the colour you want the lines to be.
@mikedamage
mikedamage / jquery.climb-ancestry.js
Created March 31, 2014 20:51
Ancestry climber plugin in plain JS
/*
jQuery Ancestry Climber Plugin
Defines a class that traces an element's ancestry, executing
a callback on each ancestor.
*/
(function() {
var AncestryClimber;