Skip to content

Instantly share code, notes, and snippets.

View bhrnd's full-sized avatar
🏠
Working from home

Brian Behrend bhrnd

🏠
Working from home
View GitHub Profile
@bhrnd
bhrnd / text-styles.html
Last active August 29, 2015 14:02
HTML elements structure and examples to use to make sure all elements are styled.
<p>This document is a guide to the mark-up styles used throughout the site.</p>
<h2>Sections</h2>
<p>The main page header of this guide is an <code>h1</code> element. Any header elements may include links, as depicted in the example.</p>
<p>The secondary header above is an <code>h2</code> element, which may be used for any form of important page-level header. More than one may be used per page. Consider using an <code>h2</code> unless you need a header level of less importance, or as a sub-header to an existing <code>h2</code> element.</p>
<h3>Third-Level Header</h3>
<p>The header above is an <code>h3</code> element, which may be used for any form of page-level header which falls below the <code>h2</code> header in a document hierarchy.</p>
<h4>Fourth-Level Header</h4>
<p>The header above is an <code>h4</code> element, which may be used for any form of page-level header which falls below the <code>h3</code> header in a document hierarchy.</p>
<h5>Fifth-Level Header</h5>
<p>The header above is an <code>h5</cod
@bhrnd
bhrnd / get-viewport.js
Created April 22, 2014 14:56
Javascript function to return current viewport height and width (Source: Andy Langton, http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript)
function viewport() {
var e = window, a = 'inner';
if (!('innerWidth' in window )) {
a = 'client';
e = document.documentElement || document.body;
}
return { width : e[ a+'Width' ] , height : e[ a+'Height' ] };
}
@bhrnd
bhrnd / gitignore_global.txt
Created April 21, 2014 15:28
List of generated files (Windows, OS X, Sass, etc.) to exclude from Git commits. See https://github.com/github/gitignore for full list
# ignore generated folders
metadata
# sass cache extensions
*.scssc
.sass-cache
#ignore thumbnails created by windows