Pattern Library

Grid

.full-width
.half-width
.half-width
.two-thirds-width
.two-thirds-width
.a-quarter-width
.a-quarter-width
.a-quarter-width
.a-quarter-width
<div class="row">
	<div class="full-width">
		.full-width
	</div>
</div>

<div class="row">
	<div class="half-width">
		.half-width
	</div>
	<div class="half-width">
		.half-width
	</div>
</div>

<div class="row">
	<div class="one-third-width">
		.one-third-width
	</div>
	<div class="two-thirds-width">
		.two-thirds-width
	</div>
</div>

<div class="row">
	<div class="two-thirds-width">
		.two-thirds-width
	</div>
	<div class="one-third-width">
		.one-third-width
	</div>
</div>

<div class="row">
	<div class="one-third-width">
		.one-third-width
	</div>
	<div class="one-third-width">
		.one-third-width
	</div>
	<div class="one-third-width">
		.one-third-width
	</div>
</div>

<div class="row">
	<div class="a-quarter-width">
		.a-quarter-width
	</div>
	<div class="a-quarter-width">
		.a-quarter-width
	</div>
	<div class="a-quarter-width">
		.a-quarter-width
	</div>
	<div class="a-quarter-width">
		.a-quarter-width
	</div>
</div>


Modules

Module Title

Module content goes here

Module Title

Module content goes here

Module Title

Module content goes here

Module Title

Module content goes here

Module Title

Module content goes here

Module Title

Module content goes here

Module Title

Module content goes here

Module Title

Module content goes here

Module Title

Module content goes here

<div class="row">
	<div class="module full-width">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
</div>

<div class="row">
	<div class="module half-width blue-var">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module half-width dark-blue-var">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
</div>

<div class="row">
	<div class="module one-third-width">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module two-thirds-width">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
</div>

<div class="row">
	<div class="module two-thirds-width dark-blue-var">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module one-third-width">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
</div>

<div class="row">
	<div class="module one-third-width blue-var">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module one-third-width dark-blue-var">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module one-third-width blue-var">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
</div>

<div class="row">
	<div class="module a-quarter-width dark-blue">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module a-quarter-width">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module a-quarter-width blue-var">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
	<div class="module a-quarter-width">
		<header class="block-module-header">
			<h3>Sidebar Module</h3>
		</header>
		<div class="module-body">
			<p>Sidebar Module content</p>
		</div>
	</div>
</div>


Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

Blockquote

Not all those who wander are lost.
J.R.R Tolkien
<blockquote>
	Not all those who wander are lost.
	<footer class="blockquote-footer">
		J.R.R Tolkien
	</footer>
</blockquote>

Unordered List

  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
<ul>
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
	<li>Item 4</li>
	<li>Item 5</li>
</ul>

Ordered List

  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4
  5. Item 5
<ol>
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
	<li>Item 4</li>
	<li>Item 5</li>
</ol>

Buttons


Forms

Text inputs

Help text for the text input above

Please provide a password

Error text for the text input above

<div class="row">
	<label class="form-label" for="input-text">Text input label:</label>
	<input type="text" name="input-text" placeholder="Text input">
</div>
<p class="help-msg">Help text for the text input above</p>

<div class="row">
	<label class="form-label" for="password-text">Password label:</label>
	<input type="password" name="password-text" placeholder="Password input">
</div>
<p class="help-msg">Please provide a password</p>

<div class="row">
	<label class="form-label error-label" for="input-error-text">Error text input label:</label>
	<input class="error-field" type="text" name="input-error-text" placeholder="Error text input">
</div>
<p class="error-msg">Error text for the text input above</p>

<div class="row">
	<label class="form-label" for="textarea">Textarea:</label>
	<textarea cols="40" rows="8" name="textarea" placeholder="Type your text here"></textarea>
</div>

Various widths

<div class="row">
	<input class="full-width" type="text" name="input-text" placeholder="Full width Text input">
</div>

<div class="row">
	<input class="two-thirds-width" type="text" name="input-text" placeholder="Two thirds width Text input">
</div>

<div class="row">
	<input class="half-width" type="text" name="input-text" placeholder="Half width Text input">
</div>

<div class="row">
	<input class="one-third-width" type="text" name="input-text" placeholder="One third width Text input">
</div>

<div class="row">
	<input class="a-quarter-width" type="text" name="input-text" placeholder="A quarter width Text input">
</div>

Syntax Highlighting

Yellowblue uses Prism, a lightweight, extensible syntax highlighter, built with modern web standards in mind.


Icons

Yellowblue uses IcoMoon, a collection of free and quality icons. The icons come as SVG sprites.

  • SVG means vector based shapes, which do not lose quality no matter how large they are. Oh, and they look great on retina screens.
  • Sprites means that the icons are all squished inside a single file. This file is included in the html file, which means no extra http requests.

Notifications

Information

I would like to inform you that information text goes here.

<div class="alert-info">
	<div class="line1"></div>
	<div class="line2"></div>
	<h3>Information</h3>
	<p>I would like to inform you that information text goes here.</p>
</div>

Success

You have successfully acknowledged that success text goes here.

<div class="alert-success">
	<div class="line1"></div>
	<div class="line2"></div>
	<h3>Success</h3>
	<p>You have successfully acknowledged that success text goes here.</p>
</div>

Warning

Warning: Warning text may not not go here.

<div class="alert-warning">
	<div class="line1"></div>
	<div class="line2"></div>
	<h3>Warning</h3>
	<p>Warning: Warning text may not <span class="bold">not</span> go here.</p>
</div>

Error

Error! Error text does definitely not not go here!

<div class="alert-error">
	<div class="line1"></div>
	<div class="line2"></div>
	<h3>Error</h3>
	<p>Error! Error text does definitely not <span class="bold">not</span> go here!</p>
</div>

Tables

I really like the tables from Pure CSS, so the basic styling for tables is taken from there.

Default Table

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010

Bordered Table

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010

Table with Horizontal Borders

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010

Striped Table

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010
<div class="row">
	<div class="half-width" >
		<h3>Default Table</h3>
		<div class="table-container">
			<table class="pure-table full-width">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>

	<div class="half-width">
		<h3>Bordered Table</h3>
		<div class="table-container">
			<table class="pure-table pure-table-bordered full-width">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>
</div>

<div class="row">
	<div class="half-width">
		<h3>Table with Horizontal Borders</h3>
		<div class="table-container">
			<table class="pure-table pure-table-horizontal full-width">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>

	<div class="half-width">
		<h3>Striped Table</h3>
		<div class="table-container">
			<table class="pure-table pure-table-striped full-width">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>
</div>

Default Table (Yellow Variation)

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010

Bordered Table (Blue Variation)

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010

Table with Horizontal Borders (Light Blue Variation)

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010

Striped Table (Blue Variation)

# Make Model Year
1 Honda Accord 2009
2 Toyota Camry 2012
3 Hyundai Elantra 2010
<div class="row">
	<div class="half-width">
		<h3>Default Table (Yellow Variation)</h3>
		<div class="table-container">
			<table class="pure-table full-width yellow-var">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>

	<div class="half-width">
		<h3>Bordered Table (Blue Variation)</h3>
		<div class="table-container">
			<table class="pure-table pure-table-bordered full-width blue-var">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>
</div>

<div class="row">
	<div class="half-width">
		<h3>Table with Horizontal Borders (Light Blue Variation)</h3>
		<div class="table-container">
			<table class="pure-table pure-table-horizontal full-width light-blue-var">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>

	<div class="half-width">
		<h3>Striped Table (Blue Variation)</h3>
		<div class="table-container">
			<table class="pure-table pure-table-striped full-width blue-var">
			    <thead>
			        <tr>
			            <th>#</th>
			            <th>Make</th>
			            <th>Model</th>
			            <th>Year</th>
			        </tr>
			    </thead>
			    <tbody>
			        <tr>
			            <td>1</td>
			            <td>Honda</td>
			            <td>Accord</td>
			            <td>2009</td>
			        </tr>
			        <tr>
			            <td>2</td>
			            <td>Toyota</td>
			            <td>Camry</td>
			            <td>2012</td>
			        </tr>
			        <tr>
			            <td>3</td>
			            <td>Hyundai</td>
			            <td>Elantra</td>
			            <td>2010</td>
			        </tr>
			    </tbody>
			</table>
		</div>
	</div>
</div>