-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grid documentation, styleguide cleanup, added styleguide ordering
- Loading branch information
David Annez
committed
Feb 27, 2015
1 parent
0d8a235
commit 96c1768
Showing
9 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
code { | ||
padding: 2px 4px; | ||
font-size: 90%; | ||
font-family: Consolas, monospace; | ||
color: $c-typecyan; | ||
background-color: $c-cyan-light; | ||
border-radius: 3px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.col-example { | ||
padding-top: 1em; | ||
padding-bottom: 1em; | ||
background-color: $c-cyan-light; | ||
border: 1px solid $c-typecyan; | ||
} | ||
|
||
.grid-example { | ||
.us-grid-row { | ||
margin-bottom: $gutter-width/2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
{{> _head}} | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
{{> sidebar}} | ||
<div class="us-hero trailered"> | ||
<div class="container sidebar--push styleguide__header"> | ||
<h1 class="styleguide__title">{{page.name}}</h1> | ||
</div> | ||
</div> | ||
<div class="styleguide container sidebar--push"> | ||
<div class="styleguide__block"> | ||
<h2 class="styleguide__block-title">Introduction</h2> | ||
<p> | ||
Our grid is a 12 column grid, with similar sizes to that of Bootstrap. We also adhere to the same naming standards for device breakpoints. | ||
</p> | ||
<ul> | ||
<li>Default gutter width: <strong>15px either side</strong></li> | ||
<li>Large container width: <strong>1170px</strong></li> | ||
<li>Desktop container width: <strong>970px</strong></li> | ||
<li>Tablet container width: <strong>770px</strong></li> | ||
</ul> | ||
<ul> | ||
<li>The parent container is <code>.us-container</code>, you must have this to start building the uSwitch layouts.</li> | ||
<li><code>.us-grid-row</code> is then used when you are building rows of columns (gives a negative margin to the container so they align correctly)</li> | ||
<li>All grid class names are prefixed with <code>.us-col-</code></li> | ||
</ul> | ||
</div> | ||
<div class="styleguide__block"> | ||
<h2 class="styleguide__block-title">Example</h2> | ||
<p>Here is an example of a grid which will turn into 100% width columns on mobile.</p> | ||
<div class="grid-example"> | ||
<div class="us-grid-row"> | ||
<div class="col-example us-col-md-2">.us-col-md-2</div> | ||
<div class="col-example us-col-md-2">.us-col-md-2</div> | ||
<div class="col-example us-col-md-4">.us-col-md-4</div> | ||
<div class="col-example us-col-md-4">.us-col-md-4</div> | ||
</div> | ||
<div class="us-grid-row"> | ||
<div class="col-example us-col-md-8">.us-col-md-8</div> | ||
<div class="col-example us-col-md-4">.us-col-md-4</div> | ||
</div> | ||
<div class="us-grid-row"> | ||
<div class="col-example us-col-md-6">.us-col-md-6</div> | ||
<div class="col-example us-col-md-6">.us-col-md-6</div> | ||
</div> | ||
</div> | ||
<pre><code class="html"> | ||
<div class="us-grid-row"> | ||
<div class="us-col-md-2">.us-col-md-2</div> | ||
<div class="us-col-md-2">.us-col-md-2</div> | ||
<div class="us-col-md-4">.us-col-md-4</div> | ||
<div class="us-col-md-4">.us-col-md-4</div> | ||
</div> | ||
<div class="us-grid-row"> | ||
<div class="us-col-md-8">.us-col-md-8</div> | ||
<div class="us-col-md-4">.us-col-md-4</div> | ||
</div> | ||
<div class="us-grid-row"> | ||
<div class="us-col-md-6">.us-col-md-6</div> | ||
<div class="us-col-md-6">.us-col-md-6</div> | ||
</div> | ||
</code></pre> | ||
</div> | ||
<div class="styleguide__block"> | ||
<h2 class="styleguide__block-title">Example with mobile columns</h2> | ||
<div class="grid-example"> | ||
<div class="us-grid-row"> | ||
<div class="col-example us-col-xsm-6 us-col-md-2">.us-col-xsm-6.us-col-md-2</div> | ||
<div class="col-example us-col-xsm-6 us-col-md-2">.us-col-xsm-6.us-col-md-2</div> | ||
<div class="col-example us-col-sm-6 us-col-md-4">.us-col-sm-6.us-col-md-4</div> | ||
<div class="col-example us-col-sm-6 us-col-md-4">.us-col-sm-6.us-col-md-4</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{> _footer}} | ||
</body> | ||
</html> |
File renamed without changes.