Skip to content

Instantly share code, notes, and snippets.

View JoshuaJones's full-sized avatar
:shipit:

Joshua Jones JoshuaJones

:shipit:
View GitHub Profile
<div class="progress_bar_container">
<div class="progress_bar"></div>
</div>
$(function(){
$('.block-grid').each(function(index){
var $this = $(this),
blocks = $.makeArray($this.find('.block')).sort(sortByHeight)[0];
$this.find('.block').height($(blocks).height());
});
});
function sortByHeight(a,b) {
return ($(b).height() - $(a).height());
}
@JoshuaJones
JoshuaJones / form_reset.sass
Created November 26, 2012 21:35 — forked from nathansmith/1_form-reset.scss
Form "Reset"
// Note: This file is dependent on Sass and Compass.
// Sass = http://sass-lang.com
// Compass = http://compass-style.org
@import "compass/css3"
// `Form Element Reset.
//----------------------------------------------------------------------------------------------------
input[type="search"]::-webkit-search-decoration
@JoshuaJones
JoshuaJones / compass-retina-sprites.scss
Created October 6, 2012 20:42 — forked from thulstrup/compass-retina-sprites.scss
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));