Skip to content

Instantly share code, notes, and snippets.

View 8bitorange's full-sized avatar

Matt Caron 8bitorange

  • Hydrabot
  • Brooklyn, NY
View GitHub Profile
@8bitorange
8bitorange / Create Shade
Created December 14, 2012 22:42
A nice piece of LESS that outputs some good looking but excessive CSS which will loop through x times and create x variations of the base color descending.
// Generate our shades
.createShades (@index, @color, @base-color) when (@index > 0) {
@i: @index;
.createShade (@index, @i, @color, @base-color);
.createShades (@index - 1, @color, @base-color);
}
.createShades (0, "red", @base-color) {}
.createShade (@index, @i, @color, @base-color) when (@i > 0) {
@num: percentage((lightness(@base-color)/100) * (1 - (@i / @index)));
@8bitorange
8bitorange / gist:1119051
Created August 1, 2011 21:31
my hello world
/**
* Handling all dom and instantiation of all other js
*
*/
// Setup namespace
goog.provide('ee.ui');
// include dom
goog.require('goog.dom');