Framework

The hatches are battoned down, the riggin' is stowed, and we've got a strong wind. Let's set sail.

Colors

Brand Colors

Brand Blue (Glacier)

Hex: #009ADD
RGB: 0, 154, 221

Brand Grey

Hex: #4D4D4D
RGB: 77, 77, 77

Alternate Colors

Light Blue

Hex: #00B6FF
RGB: 0, 182, 255

Green (Pistachio)

Hex: #7ABF78
RGB: 122, 191, 120

Red (Salmon)

Hex: #F16148
RGB: 241, 97, 72

Greyscale Colors

Black

#000000

Darker Grey

Hex: #333333
RGB: 51, 51, 51

Dark Grey

Hex: #858585
RGB: 133, 133, 133

Grey

Hex: #C2C2C2
RGB: 194, 194, 194

Light Grey

Hex: #DADADA
RGB: 218, 218, 218

Lighter Grey

Hex: #F4F4F4
RGB: 244, 244, 244

White

#FFFFFF

Grid System

Default Grid

The site adheres to a 960px grid containing 12 columns. Roll over each column to view the pixel width. The grid is responsive, fluid (uses percentages), and can accommodate nested columns.

IE8 issue: Because the grid structure uses nth-child sudo selectors, it does not work in IE8 and below. We're working on a way to remedy this by possibly using a polyfill.

View demo

Example of grid markup

<div class="row custom-class">
  <div>...</div>
  <div>...</div>
  <div>...</div>
</div>

Example of Sass

.custom-class { 
  $sizes: 4, 4, 4;
  @include generate_cell_format(div, $sizes);
}
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
3
3
3
3
4
4
4
6
6
8
4
1
10
1
12
6
3
3

Typography

Typographic scale

The entire typographic grid is based on two Sass variables in our variables.scss file: $baseFontSize and $baseLineHeight. The first is the base font-size which is equal to 14px, and the second is the base line-height which is equal to 1.45 (a unit-less measurement).

h1. Heading 1

h2. Heading 2

h3. Heading 3

h4. Heading 4

h5. Heading 5
h6. Heading 6

Example body text

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.

Vestibulum sit amet tempor mi. Etiam imperdiet hendrerit laoreet. Curabitur aliquam scelerisque ultrices. Proin dictum arcu ac dui tristique vitae lacinia sapien semper.

Misc. elements

Using emphasis, addresses, & abbreviations

<strong> <em> <address> <abbr>

When to use

Emphasis tags (<strong> and <em>) should be used to indicate additional importance or emphasis of a word or phrase relative to its surrounding copy. Use <strong> for importance and <em> for stress emphasis.

Emphasis in a paragraph

Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.

Note: It's still okay to use <b> and <i> tags in HTML5 and they don't have to be styled bold and italic, respectively (although if there is a more semantic element, use it). <b> is meant to highlight words or phrases without conveying additional importance, while <i> is mostly for voice, technical terms, etc.

Addresses

The <address> element is used for contact information for its nearest ancestor, or the entire body of work. Here are two examples of how it could be used:

Cash Call
800 West Olympic Blvd., Suite 406
Los Angeles, CA 90015
P: (310) 410-9600

Note: Each line in an <address> must end with a line-break (<br />) or be wrapped in a block-level tag (e.g., <p>) to properly structure the content.

Abbreviations

For abbreviations and acronyms, use the <abbr> tag (<acronym> is deprecated in HTML5). Put the shorthand form within the tag and set a title for the complete name.

Blockquotes

<blockquote> <p> <cite>

How to quote

To include a blockquote, wrap <blockquote> around <p> and <cite> tags. Use the <cite> element to cite your source and you'll get an em dash &mdash; before it.

This is Cash Call. Have you had your shake today?

Mark Uraine, Lover of good things
<blockquote>
  <p>This is Cash Call. Have you had your shake today?</p>
  <cite>Mark Uraine, Lover of good things</cite>
</blockquote>

Lists

Unordered <ul>

  • Lorem ipsum dolor sit
  • Consectetur adipiscing
  • Integer molestie lorem ata
  • Facilisis in pretium nislt
  • Nulla volutpat aliquam
    • Phasellus iaculis
    • Purus sodales
    • Vestibulum laoreet
    • Ac tristique libero
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem

Unstyled <ul .unstyled>

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at
  • Facilisis in pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet
    • Ac tristique libero volutpat
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem

Ordered <ol>

  1. Lorem ipsum dolor sit
  2. Consectetur adipiscing
  3. Integer molestie lorem at
  4. Facilisis in pretium nisl
  5. Nulla volutpat aliquam
    1. Phasellus iaculis neque
    2. Purus sodales ultricies
    3. Vestibulum laoreet
  6. Faucibus porta lacus vel
  7. Aenean sit amet erat nunc
  8. Eget porttitor lorem
  9. Etiam porta sem malesuada
  10. Magna mollis euismod

Definition <dl>

Definition lists
A definition list is perfect for defining terms.
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.

Tables

Building tables

<table> <thead> <tbody> <tr> <th> <td> <colspan> <caption>

Tables are great for a lot of things. Great tables, however, need a bit of markup love to be useful, scalable, and readable (at the code level). Here are a few tips to help.

Always wrap your column headers in a <thead> such that hierarchy is <thead> > <tr> > <th>.

Similar to the column headers, all your table’s body content should be wrapped in a <tbody> so your hierarchy is <tbody> > <tr> > <td>.

Customizing tables

You can change the styling of a table by adding a simple class name to the <table> tag to achieve the appearance in the examples to the right.

Example of default table

All tables will be automatically styled with only the essential borders to ensure readability and maintain structure. No need to add extra classes or attributes.

# First Name Last Name Language
1 Some One English
2 Joe Sixpack English
3 Ben Dover Code
<table>
  ...
</table>

Example of a table with borders

Use the .bordered class to achieve the affects below.

# First Name Last Name Language
1 Some One English
2 Joe Sixpack English
3 Ben Dover Code
<table class="bordered">
  ...
</table>

Example of a table with stripes

Use the .striped class to achieve the affects below.

# First Name Last Name Language
1 Some One English
2 Joe Sixpack English
3 Ben Dover Code
<table class="striped">
  ...
</table>

Buttons

Default buttons

Buttons are intended for action and thus should have appropriate weight while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.. The standard button is given that weight with a little bit of depth and a strong hover.

Example buttons

Button styles can be applied to anything with the .btn class applied. Typically you’ll want to apply these to only <a>, <button>, and select <input> elements. Here’s how it looks:

Button Button Type Description
Click Me <a class="btn"></a> An anchor tag with the class
<button class="btn"></button> A button element with the class
<input type="submit" class="btn" /> An input element with the class

There are three different appearances for buttons. The default style is applied simply with the .btn class and can be used on standard elements that do not require immmediate attention. The .btn-primary class is utilized for primary call to action that leads the user forward through the process. The .btn-secondary class is reserved for the secondary call to action and is applied for that purpose. See the examples below:

Button Class Description
Default .btn Standard gray button with gradient
Primary .btn .btn-primary Provides extra visual weight and identifies the primary action in a set of buttons
Secondary .btn .btn-secondary Provides extra visual weight and identifies the secondary action in a set of buttons

Button Sizes

Larger or smaller buttons can be utilized as well by using the .btn-large, .btn-small or .full-width classes.

Click Me   Click Me

Click Me

Disabled Buttons

For disabled buttons, use .btn .disabled for links and :disabled for <button> elements.

Click Me

Forms

Default forms

Styles provided for text inputs, select lists, textareas, radio buttons and checkboxes, and buttons.

The form style to the right is considered best by usability standards, however forms are often modified for special purposes such as "search forms", "horizontal layout forms", or even "inline layout forms".

Default Example

Please be sure to fill out the correct information.
Checkboxes
Radio Buttons

Horizontal forms

While the default form tag displays a vertical form layout, we also provide a horizontal form layout for larger areas using the .ccHForm class.

Horizontal Example

Please be sure to fill out the correct information.
Checkboxes
Radio Buttons

Search forms

A typical search form.

Search Example

Tooltips

About Tooltips

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.

Example use of Tooltips

Hover over the links below to see tooltips:

First, I believe that this nation should commit itself to achieving the goal, before this decade is out, of landing a man on the moon and returning him safely to the earth. No single space project in this period will be more impressive to mankind, or more important for the long-range exploration of space; and none will be so difficult or expensive to accomplish.


Using tooltip.js

Trigger the tooltip via javascript:

$('#example').tooltip(options)

Options

Name type default description
animation boolean true apply a css fade transition to the tooltip
placement string 'top' how to position the tooltip - top | bottom | left | right
selector string false If a selector is provided, tooltip objects will be delegated to the specified targets.
title string | function '' default title value if `title` tag isn't present
trigger string 'hover' how tooltip is triggered - hover | focus | manual
delay number | object 0

delay showing and hiding the tooltip (ms)

If a number is supplied, delay is applied to both hide/show

Object structure is: delay: { show: 500, hide: 100 }

Heads up! Options for individual tooltips can alternatively be specified through the use of data attributes.

Markup

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

Methods

$().tooltip(options)

Attaches a tooltip handler to an element collection.

.tooltip('show')

Reveals an elements tooltip.
$('#element').tooltip('show')

.tooltip('hide')

Hides an elements tooltip.
$('#element').tooltip('hide')

.tooltip('toggle')

Toggles an elements tooltip.
$('#element').tooltip('toggle')

Modals

Customizable modals

Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.

Modals require the _reveal.css and the reveal.js files.

Examples

The size of the modals can be changed by adding a class name to the modal window.

Trigger Classes Modal Width
Small .small 220px
Medium .medium 380px
Default n/a 540px
Large .large 700px
X-Large .xlarge 860px

Modal with buttons

An example of how to use buttons within the modal window.

Modal Window with Buttons

The modal markup

<div id="myModal" class="reveal-modal">
  <h4>...</h4>
  <div class="modal-content">...</div>
  <div class="button-row">...</div>
  <a class="close-reveal-modal dismiss"><i class="icon-x"></i></a>
</div>

Firing the modal

Modals can be fired by using a trigger, or programatically.

Fire using a trigger
  <a href="#" data-reveal-id="myModal"></a>
Fire programatically
  <script type="text/javascript">
	$(document).ready(function() {
	  $('#myButton').click(function(e) {
		e.preventDefault();
		$('#myModal').reveal();
	  });
	});
  </script>

Icons

Inline Icons

The icons below are pulled from the free font-awesome library. Place the font-icons just about anywhere with the <i> tag.

Example

icon-gears
<i class="icon-gears"></i>

Icon Effects

Any effect that can be applied to text, can be applied to these icons as well, such as font-size, color, text-shadows, etc.

icon-gears
<i class="icon-gears" style="color:#4b9ddc; font-size:44px; text-shadow:0 1px 1px rgba(0,0,0,.2); vertical-align:middle;"></i>
  • All brand icons are trademarks of their respective owners.
  • The use of these trademarks does not indicate endorsement of the trademark holder by Font Awesome, nor vice versa.