Skip to content

Instantly share code, notes, and snippets.

@include multi-shadow(0px 1px 2px 0px rgba(0, 0, 0, 0.296875) inset, 0px 1px 0px 0px rgba(255, 255, 255, 0.597656))
@mixin multi-shadow($shadow-1, $shadow-2: false, $shadow-3: false, $shadow-4: false, $shadow-5: false, $shadow-6: false, $shadow-7: false, $shadow-8: false, $shadow-9: false)
$full: $shadow-1
@if $shadow-2
$full: $full + "," + $shadow-2
@if $shadow-3
$full: $full + "," + $shadow-3
@if $shadow-4
$full: $full + "," + $shadow-4
@sentientmonkey
sentientmonkey / jquery.crossfade.js
Created August 19, 2011 21:55
javascript/jquery crossfader for tiled images
(function($) {
// crossfade takes an image list, which is an array of hashes with
// src: image url
// title: link title
// href: link url
//
// available options:
// fadeTime: time in msec of how long cross fade transition takes
// waitTime: time in msec of how long to wait between transitions
// imageHeight: height of each image
@sentientmonkey
sentientmonkey / pluralize.js
Created September 22, 2011 23:23
Pluralize for Javascript
Number.prototype.plural = function(){
if(this > 1 || this == 0){
return true;
} else {
return false;
}
}
String.prototype.pluralize_rules = function(){
return [[new RegExp('$', 'gi'), 's']];