Fundamental markup for a Rackspace branded experience.
The basic layout of Canon consists of 5 parts: 3 layers of navigation within the header, the content area, and the footer.
Canon predefines options for page layout via the content area styles but sometimes a grid system is needed for content within those sections or for custom layouts. As such, Canon includes a responsive 12 column fluid grid.
rs-row
classspan-*
columns. As this is a 12-column grid, each span-*
spans a number of those 12 columns, and should always add up to 12 for each rowrs-row-collapse
as the row classoffset-*
span-*
columnResponsive Options
span-*
columns stack vertically for viewports under 768pxsmall-span-*
column classesDefault grid created with a rs-row
and span-*
columns
Column offsets via offset-*
Nested Grid
Grid without column gutters via rs-row-collapse
<!-- Default Grid -->
<div class="rs-row">
<div class="span-2">span-2</div>
<div class="span-10">span-10</div>
</div>
<div class="rs-row">
<div class="span-6">span-6</div>
<div class="span-6">span-6</div>
</div>
<div class="rs-row">
<div class="span-4">span-4</div>
<div class="span-8">span-8</div>
</div>
<!-- Grid Offset -->
<div class="rs-row">
<div class="span-6">span-6</div>
<div class="span-4 offset-2">span-4 offset-2</div>
</div>
<div class="rs-row">
<div class="span-8 offset-1">span-8 offset-1</div>
<div class="span-3">span-3</div>
</div>
<!-- Nesting Grid -->
<div class="rs-row">
<div class="span-4">span-4
<div class="rs-row">
<div class="span-6">span-6</div>
<div class="span-6">span-6</div>
</div>
</div>
<div class="span-8">span-8
<div class="rs-row">
<div class="span-4">span-4</div>
<div class="span-8">span-8</div>
</div>
</div>
</div>
<!-- Collapse Column Gutters -->
<div class="rs-row-collapse">
<div class="span-2">span-2</div>
<div class="span-10">span-10</div>
</div>
<div class="rs-row-collapse">
<div class="span-6">span-6</div>
<div class="span-6">span-6</div>
</div>
<div class="rs-row-collapse">
<div class="span-4">span-4</div>
<div class="span-8">span-8</div>
</div>
<div class="rs-wrapper">
<!-- Utility Nav -->
<div class="rs-nav-utility">
<div class="rs-container">
<ul class="rs-nav">
<li class="rs-nav-item active"><a class="rs-nav-link" href="">Public Cloud</a></li>
<li class="rs-nav-item"><a class="rs-nav-link" href="">Private Cloud</a></li>
<li class="rs-nav-item"><a class="rs-nav-link" href="">Dedicated</a></li>
</ul>
<ul class="rs-nav rs-pull-right">
<li class="rs-nav-item rs-dropdown rs-utility-dropdown">
<a class="rs-nav-link rs-dropdown-toggle" href="">Username123 <i class="rs-caret"></i></a>
</li>
</ul>
</div>
</div>
<!-- End Utility Nav -->
<!-- Primary Nav -->
<div class="rs-nav-primary">
<div class="rs-container">
<div class="rs-nav-brand">
<a href=""></a>
</div>
<ul class="rs-nav">
<li class="rs-nav-item active"><a class="rs-nav-link" href="">Section1</a></li>
<li class="rs-nav-item"><a class="rs-nav-link" href="">Section2</a></li>
<li class="rs-nav-item"><a class="rs-nav-link" href="">Section3</a></li>
<li class="rs-nav-item rs-dropdown rs-primary-dropdown">
<a class="rs-nav-link rs-dropdown-toggle" href="">More <i class="rs-caret"></i></a>
</li>
</ul>
</div>
</div>
<!-- End Primary Nav -->
<!-- Secondary Nav -->
<div class="rs-nav-secondary">
<div class="rs-container">
<ul class="rs-nav">
<li class="rs-nav-item"><a class="rs-nav-link" href="">SubSection1</a></li>
<li class="rs-nav-item hover"><a class="rs-nav-link" href="">SubSection2</a></li>
<li class="rs-nav-item active"><a class="rs-nav-link" href="">SubSection3</a></li>
</ul>
</div>
</div>
<!-- End Secondary Nav -->
</div>
The content area contains the primary information and functionality views for your application. Consistent layout is imperative so users always have a feel for where they are. For example, a List Table should use a different layout than a Detail View.
The position of the sidebars significantly changes based on the content.
Layout | Thumbnail | Markup |
---|---|---|
Full-Width |
|
|
Left Sidebar |
|
|
Right Help Panel |
|
The footer looks and behaves similar to the top navigation bar. Just like the top nav, the footer should be consistent across Rackspace applications. If you support multiple geographies, these may change between countries. Below is a list of what it should contain in the order they appear:
<div class="rs-nav-footer">
<div class="rs-container">
<ul class="rs-nav">
<li class="rs-nav-item">© 2013 Rackspace, US</li>
<li class="rs-nav-item"><a class="rs-nav-link" href="">Terms & Privacy</a></li>
<li class="rs-nav-item"><a class="rs-nav-link" href="">Application News</a></li>
</ul>
<ul class="rs-nav rs-pull-right">
<li class="rs-nav-item"><a class="rs-nav-link" href="#">Feedback</a></li>
</ul>
</div>
</div>