Skip to content

Instantly share code, notes, and snippets.

@benknight
benknight / gist:8407644
Created January 13, 2014 20:37
How to restart a GIF animation

TODO

Symmetric animations versus asymmetric

@benknight
benknight / gist:8416098
Created January 14, 2014 10:09
Breakdown of how Chrome's download tab progress bars work
<canvas>, -webkit-image-set
@benknight
benknight / gist:8497929
Last active January 3, 2016 17:49
Full-width Yelp search with fixed map
.app-header {
top: 0;
width: 100%;
}
.app-header,
#dropper,
.autocomplete_choices {
z-index: 99999 !important; /* KAPOW! */
position: fixed !important;
@benknight
benknight / gist:8534607
Last active January 3, 2016 23:19
Yelp Fixed Header (Plain)
/* Prevent "jump" in content offset */
.fixed-header body {
padding-top: 77px;
}
.fixed-header .app-header {
position: fixed;
top: 0;
width: 100%;
}
@benknight
benknight / SassMeister-input.scss
Last active August 29, 2015 13:55
Yelp Fixed Header v1
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@import "compass/css3/transform";
@import "compass/css3/transition";
// Prevent "jump" in content offset
@benknight
benknight / SassMeister-input.scss
Last active August 29, 2015 13:55
Yelp Fixed Header v2
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
@import "compass/css3/transform";
$transition: all 0.5s ease;
@benknight
benknight / SassMeister-input.scss
Created February 8, 2014 01:24
Removes border from baz sidebar
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.17)
// ----
@import "compass/css3/box-shadow";
.siderbar .open-rail {
margin-left: 0;
@benknight
benknight / SassMeister-input.scss
Created February 8, 2014 01:30
"See all photos" tweaks
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
@import "compass/css3/images";
.showcase .show-all-overlay {
text-shadow:
@benknight
benknight / SassMeister-input.scss
Last active August 29, 2015 13:56
ReviewBoard CSS rewrites
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
@import "compass/css3/transition";
/** Stuff from normalize.css */
@benknight
benknight / SassMeister-input.scss
Created March 3, 2014 05:05
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
#container {
width: 500px;
margin: 20px auto;
img {