Skip to content

Instantly share code, notes, and snippets.

View clintfisher's full-sized avatar

Clint Fisher clintfisher

  • Los Angeles Times
  • Los Angeles
View GitHub Profile
/**
* Vertical centering with inline-block + generated-content
* Julien Cabanès
* based on http://css-tricks.com/centering-in-the-unknown/
*/
html, body { height: 100%; }
body {
display: inline-block;
margin: 0;
@clintfisher
clintfisher / 320up.less
Created December 5, 2012 22:11 — forked from peterwilsoncc/320up.less
“Mobile first” CSS and getting LESS to help with legacy IE
.320up(){
.three20 {
color: #fff;
}
} /* end 320up mixin */
/*
@clintfisher
clintfisher / gist:3912411
Last active April 1, 2017 00:23
Textmate style selection reformat with Sublime Text 2
Preferences > Key Bindings - User
Add:
[
{ "keys": ["command+shift+r"], "command": "reindent" , "args": { "single_line": false } }
]
The argument allows the command to also work on the entire file in addition to a selection.