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
@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.
@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 */
/*
/**
* 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 / SassMeister-input.scss
Created August 5, 2014 15:20
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
.masthead {
width: 768px;
&.masthead-theme-standard {
background-color: #fff;
@clintfisher
clintfisher / SassMeister-input.scss
Created August 11, 2014 20:36
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
@mixin root-selector ($class) {
@at-root #{selector-append($class, &)} {
@content
}
@clintfisher
clintfisher / SassMeister-input.scss
Created August 20, 2014 01:33
If nested & use root-selector again - line 56
// ----
// Sass (v3.4.0)
// Compass (v1.0.0)
// ----
@mixin root-selector ($class) {
@at-root #{selector-append($class, &)} {
@content
}
@clintfisher
clintfisher / SassMeister-input.scss
Created August 30, 2014 03:33
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
// typography
// monochrome - dark to light
$black: #000;
$gray-10: #121212;
$gray-20: #333;
@clintfisher
clintfisher / SassMeister-input.scss
Last active August 29, 2015 14:05
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
// typography
// monochrome - dark to light
$black: #000;
$gray-10: #121212;
$gray-20: #333;
@clintfisher
clintfisher / minimal-template-SassMeister-input.scss
Last active August 29, 2015 14:05
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
// where to set the default
// Style shared component or Foundation?
$is-minimal-template: false !default;
// where to set this
@clintfisher
clintfisher / media-flattened-SassMeister-input.scss
Last active August 29, 2015 14:06
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
// typography
// monochrome - dark to light
$black: #000;
$gray-10: #121212;
$gray-20: #333;