Hex: #009ADD
RGB: 0, 154, 221
Hex: #4D4D4D
RGB: 77, 77, 77
Hex: #00B6FF
RGB: 0, 182, 255
Hex: #7ABF78
RGB: 122, 191, 120
Hex: #F16148
RGB: 241, 97, 72
#000000
Hex: #333333
RGB: 51, 51, 51
Hex: #858585
RGB: 133, 133, 133
Hex: #C2C2C2
RGB: 194, 194, 194
Hex: #DADADA
RGB: 218, 218, 218
Hex: #F4F4F4
RGB: 244, 244, 244
#FFFFFF
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.
<div class="row custom-class"> <div>...</div> <div>...</div> <div>...</div> </div>
.custom-class {
$sizes: 4, 4, 4;
@include generate_cell_format(div, $sizes);
}
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).
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.
Using emphasis, addresses, & abbreviations
<strong>
<em>
<address>
<abbr>
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.
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.
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:
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.
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.
<blockquote>
<p>
<cite>
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 — 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>
<ul><ul .unstyled><ol><dl>
<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>.
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.
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>
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>
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>
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".
form tag displays a vertical form layout, we also provide a horizontal form layout for larger areas using the .ccHForm class.
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.
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.
Trigger the tooltip via javascript:
$('#example').tooltip(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: |
For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.
Attaches a tooltip handler to an element collection.
Reveals an elements tooltip.
$('#element').tooltip('show')
Hides an elements tooltip.
$('#element').tooltip('hide')
Toggles an elements tooltip.
$('#element').tooltip('toggle')
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.
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 |
An example of how to use buttons within the modal window.
Modal Window with Buttons
<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>
Modals can be fired by using a trigger, or programatically.
<a href="#" data-reveal-id="myModal"></a>
<script type="text/javascript">
$(document).ready(function() {
$('#myButton').click(function(e) {
e.preventDefault();
$('#myModal').reveal();
});
});
</script>
The icons below are pulled from the free font-awesome library. Place the font-icons just about anywhere with the <i> tag.
<i class="icon-gears"></i>
Any effect that can be applied to text, can be applied to these icons as well, such as font-size, color, text-shadows, etc.
<i class="icon-gears" style="color:#4b9ddc; font-size:44px; text-shadow:0 1px 1px rgba(0,0,0,.2); vertical-align:middle;"></i>