Skip to content

Instantly share code, notes, and snippets.

<%= nav_link 'Button 1', '/salt', :id => 'fun' %>
<%= nav_link 'Button 2', '/pepper' %>
<%= nav_link 'Button 3', '/thyme' %>
@bearroast
bearroast / gist:3880174
Created October 12, 2012 16:43
Font smoothing
body {
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-webkit-text-size-adjust: 100%;
}
@bearroast
bearroast / gist:3875948
Created October 11, 2012 22:29
Simple retina mixin from 37signals
// Mixin (1.3 due to Nexus 7)
@mixin image-2x($image, $width, $height) {
@media (min--moz-device-pixel-ratio: 1.3),
(-o-min-device-pixel-ratio: 2.6/2),
(-webkit-min-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx) {
background-image: url($image);
background-size: $width $height;
}
@bearroast
bearroast / .gitignore
Created July 24, 2011 09:48 — forked from miles/.gitignore
augmented .gitignore file from Rails Tutorial
.bundle
db/*.sqlite3*
log/*.log
*.log
tmp/**/*
tmp/*
doc/api
doc/app
*.swp
*~