This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.border-radius(@radius:15px) | |
{ | |
-webkit-border-radius:@radius; | |
-moz-border-radius:@radius; | |
border-radius:@radius; | |
} | |
.multi-rounded-corners(@topLeft: 5px, @topRight: 5px, @bottomRight: 5px, @bottomLeft: 5px) | |
{ | |
-webkit-border-radius: @topLeft @topRight @bottomRight @bottomLeft; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.fn.uberCheckbox = function(options){ | |
// Default On / Off labels: | |
options = $.extend({ | |
labels : ['ON','OFF'] | |
},options); | |
return this.each(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.fn.uberSelect = function(options){ | |
options = $.extend({ | |
render : function(option){ | |
return $('<li>',{ | |
html : option.text() | |
}); | |
}, | |
className : '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function timeago($timestamp) | |
{ | |
$distance = ( round( abs( time() - $timestamp ) / 60 ) ); | |
switch($distance): | |
case <= 1: | |
$return = ($distance == 0) ? 'less than a minute ago' : '1 minute ago'; | |
break; | |
case < 60: | |
$return = $distance . ' minutes ago'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Basic Shadow */ | |
h1 { | |
text-shadow: 2px 4px 3px rgba(0,0,0,0.3); | |
} | |
/* Quick and Dirty Letterpress */ | |
h1 { | |
color: rgba(0,0,0,0.6); | |
text-shadow: 2px 2px 3px rgba(255,255,255,0.1); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function ($) { | |
$.event.special.textchange = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('[id]').each(function() | |
{ | |
var ids = $('[id='+this.id+']'); | |
if(ids.length>1 && ids[0]==this) | |
{ | |
alert('Multiple IDs #'+this.id); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
______██████████████ | |
-____██▓▓▓▓▓▓▓▓▓ L ▓████ | |
-__██▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ | |
-__██████░░░░██░░██████ | |
██░░░░████░░██░░░░░░░░██ | |
██░░░░████░░░░██░░░░░░██ | |
-__████░░░░░░██████████ | |
-__██░░░░░░░░░░░░░██ | |
_____██░░░░░░░░░██ | |
-______██░░░░░░██ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input[type=checkbox] + label:before{ | |
content: "Please check the checkbox."; | |
} | |
input[type=checkbox]:checked + label:before{ | |
content: "Thanks! :)"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input[type=checkbox] { | |
display: none; | |
} | |
input[type=checkbox] + label:before{ | |
display: block; | |
content: ""; | |
width:10px; | |
height:10px; | |
line-height: 10px; | |
padding: 3px; |