mirror of https://github.com/twbs/ratchet.git
Build mobile apps with simple HTML, CSS, and JS components.
http://goratchet.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1471 lines
96 KiB
1471 lines
96 KiB
11 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<title>Components · Ratchet</title>
|
||
|
<meta name="description" content="Ratchet: Prototype mobile apps with simple HTML, CSS, and JS components.">
|
||
|
<meta name="author" content="Connor Sears">
|
||
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
|
||
|
<link rel="shortcut icon" href="/favicon.ico">
|
||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||
|
|
||
|
<!-- Google Web Fonts -->
|
||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,500,700|Open+Sans:300">
|
||
|
|
||
|
<link rel="stylesheet" href="/dist/css/ratchet.min.css">
|
||
|
<link rel="stylesheet" href="/assets/css/docs.min.css">
|
||
|
|
||
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/img/apple-touch-icon-114x114.png">
|
||
|
|
||
|
<script>
|
||
|
var _gaq = _gaq || [];
|
||
|
_gaq.push(['_setAccount', 'UA-36050008-1']);
|
||
|
_gaq.push(['_trackPageview']);
|
||
|
|
||
|
(function() {
|
||
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||
|
})();
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body ontouchstart="">
|
||
|
<!--[if lt IE 9]>
|
||
|
<div class="bs-callout bs-callout-danger">
|
||
|
<h4>Attention!</h4>
|
||
|
<p>
|
||
|
Looks like your current browser is old and doesn't support many features used in this page.
|
||
|
Please take a second to <a href="http://browsehappy.com/">upgrade to a more modern browser</a>.
|
||
|
</p>
|
||
|
</div>
|
||
|
<![endif]-->
|
||
|
|
||
|
<div class="docs-sub-header">
|
||
|
<header class="docs-masthead clearfix">
|
||
|
<div class="container">
|
||
|
<div class="column">
|
||
|
<h1 class="docs-title">
|
||
|
<a href="/" data-ignore="push">Ratchet</a>
|
||
|
</h1>
|
||
|
<nav class="docs-nav clearfix">
|
||
|
<a class="docs-nav-trigger icon icon-bars pull-right js-docs-nav-trigger" href="#"></a>
|
||
|
<div class="docs-nav-group">
|
||
|
<a class="docs-nav-item" href="/" data-ignore="push">Home</a>
|
||
|
<a class="docs-nav-item" href="/getting-started" data-ignore="push">Getting started</a>
|
||
|
<a class="docs-nav-item" href="/components" data-ignore="push">Components</a>
|
||
|
<a class="docs-nav-item" href="/examples" data-ignore="push">Examples</a>
|
||
|
<a class="docs-nav-item" href="/about" data-ignore="push">About</a>
|
||
|
<a class="docs-nav-item" href="https://github.com/twbs/ratchet" data-ignore="push">GitHub project</a>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</div>
|
||
|
</div>
|
||
|
</header>
|
||
|
|
||
|
<div class="container">
|
||
|
<div class="docs-sub-content">
|
||
|
<h2 class="page-title">Components</h2>
|
||
|
<p class="page-description">Design patterns that serve as basic building blocks.</p>
|
||
|
</div>
|
||
|
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/58147/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
|
||
|
|
||
|
</div>
|
||
|
<div class="docs-component-toolbar js-docs-component-toolbar">
|
||
|
<div class="container">
|
||
|
<div class="column units-2">
|
||
|
<span class="docs-jump-menu pull-left js-jump-menu">
|
||
|
<span class="icon icon-list"></span>
|
||
|
Jump to
|
||
|
<span class="icon icon-caret"></span>
|
||
|
</span>
|
||
|
|
||
|
<div class="docs-component-group js-component-group">
|
||
|
<a class="docs-component-item" href="#bars" data-ignore="push">Bars</a>
|
||
|
<a class="docs-component-item" href="#typography" data-ignore="push">Typography</a>
|
||
|
<a class="docs-component-item" href="#table-views" data-ignore="push">Table views</a>
|
||
|
<a class="docs-component-item" href="#buttons" data-ignore="push">Buttons</a>
|
||
|
<a class="docs-component-item" href="#segmentedControls" data-ignore="push">Segmented controls</a>
|
||
|
<a class="docs-component-item" href="#badges" data-ignore="push">Badges</a>
|
||
|
<a class="docs-component-item" href="#forms" data-ignore="push">Forms</a>
|
||
|
<a class="docs-component-item" href="#toggles" data-ignore="push">Toggles</a>
|
||
|
<a class="docs-component-item" href="#popovers" data-ignore="push">Popovers</a>
|
||
|
<a class="docs-component-item" href="#modals" data-ignore="push">Modals</a>
|
||
|
<a class="docs-component-item" href="#sliders" data-ignore="push">Sliders</a>
|
||
|
<a class="docs-component-item" href="#push" data-ignore="push">Push</a>
|
||
|
<a class="docs-component-item" href="#ratchicons" data-ignore="push">Ratchicons</a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="segmented-control">
|
||
|
<a class="platform-switch control-item active" data-platform="">
|
||
|
Base
|
||
|
</a>
|
||
|
<a class="platform-switch control-item" data-platform="platform-ios">
|
||
|
iOS
|
||
|
</a>
|
||
|
<a class="platform-switch control-item" data-platform="platform-android">
|
||
|
Android
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="container">
|
||
|
<!-- Components -->
|
||
|
<div class="docs-components column-group">
|
||
|
<div class="device-column column lg-units-5 pull-right">
|
||
|
<!-- In phone examples -->
|
||
|
<div class="device js-device">
|
||
|
<div class="device-content">
|
||
|
<div id="iwindow">
|
||
|
<header class="bar bar-nav">
|
||
|
<h1 class="title">Title</h1>
|
||
|
</header>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="column lg-units-7 docs-content">
|
||
|
<!-- Bars -->
|
||
|
<article class="component active" id="bars">
|
||
|
<h3 class="component-title">Title bar</h3>
|
||
|
<p class="component-description">Title bars are full width and docked to the top of the viewport.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<header class="bar bar-nav">
|
||
|
<h1 class="title">Title</h1>
|
||
|
</header>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>Title<span class="nt"></h1></span>
|
||
|
<span class="nt"></header></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Title bar with buttons</h3>
|
||
|
<p class="component-description">Buttons in a title bar are left or right aligned and should be used for actions. Use the <code>.pull-right</code> or <code>.pull-left</code> utility classes to float the buttons. Also, be sure to place any floated elements before the title.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<header class="bar bar-nav">
|
||
|
<button class="btn pull-left">
|
||
|
Left
|
||
|
</button>
|
||
|
<button class="btn pull-right">
|
||
|
Right
|
||
|
</button>
|
||
|
<h1 class="title">Title</h1>
|
||
|
</header>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn pull-left"</span><span class="nt">></span>
|
||
|
Left
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn pull-right"</span><span class="nt">></span>
|
||
|
Right
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>Title<span class="nt"></h1></span>
|
||
|
<span class="nt"></header></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Title bar with icons</h3>
|
||
|
<p class="component-description">Icons can also be used for actions in toolbars. Again, be sure to use utility classes to float the icons into position.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<header class="bar bar-nav">
|
||
|
<a class="icon icon-left-nav pull-left"></a>
|
||
|
<a class="icon icon-compose pull-right"></a>
|
||
|
<h1 class="title">Title</h1>
|
||
|
</header>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"icon icon-left-nav pull-left"</span><span class="nt">></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"icon icon-compose pull-right"</span><span class="nt">></a></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>Title<span class="nt"></h1></span>
|
||
|
<span class="nt"></header></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Title bar with link buttons and icons</h3>
|
||
|
<p class="component-description">Link buttons can be used in tool bars to remove the outline. Use these in conjuction with icons to recreate the nav feel from iOS7. Note the use of <code>.btn-nav</code> to bring the buttons a little bit closer to the edge of the viewport.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<header class="bar bar-nav">
|
||
|
<button class="btn btn-link btn-nav pull-left">
|
||
|
<span class="icon icon-left-nav"></span>
|
||
|
Left
|
||
|
</button>
|
||
|
<button class="btn btn-link btn-nav pull-right">
|
||
|
Right
|
||
|
<span class="icon icon-right-nav"></span>
|
||
|
</button>
|
||
|
<h1 class="title">Title</h1>
|
||
|
</header>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-link btn-nav pull-left"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-left-nav"</span><span class="nt">></span></span>
|
||
|
Left
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-link btn-nav pull-right"</span><span class="nt">></span>
|
||
|
Right
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-right-nav"</span><span class="nt">></span></span>
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>Title<span class="nt"></h1></span>
|
||
|
<span class="nt"></header></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Title bar with segmented control</h3>
|
||
|
<p class="component-description">Title bars can also house segmented controls. Feel free to add accompanying buttons too. The control will automatically layout itself out correctly.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<header class="bar bar-nav">
|
||
|
<button class="btn pull-left">
|
||
|
Left
|
||
|
</button>
|
||
|
<button class="btn pull-right">
|
||
|
Right
|
||
|
</button>
|
||
|
<div class="segmented-control">
|
||
|
<a class="control-item active">One</a>
|
||
|
<a class="control-item">Two</a>
|
||
|
<a class="control-item">Three</a>
|
||
|
</div>
|
||
|
</header>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn pull-left"</span><span class="nt">></span>
|
||
|
Left
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn pull-right"</span><span class="nt">></span>
|
||
|
Right
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"segmented-control"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item active"</span><span class="nt">></span>One<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item"</span><span class="nt">></span>Two<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item"</span><span class="nt">></span>Three<span class="nt"></a></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></header></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Tab bar</h3>
|
||
|
<p class="component-description">Use Ratchicons in the <code>.tab-bar</code> to represent different sections of your app.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<nav class="bar bar-tab">
|
||
|
<a class="tab-item active" href="#">
|
||
|
<span class="icon icon-home"></span>
|
||
|
<span class="tab-label">Label</span>
|
||
|
</a>
|
||
|
<a class="tab-item" href="#">
|
||
|
<span class="icon icon-person"></span>
|
||
|
<span class="tab-label">Label</span>
|
||
|
</a>
|
||
|
<a class="tab-item" href="#">
|
||
|
<span class="icon icon-star-filled"></span>
|
||
|
<span class="tab-label">Label</span>
|
||
|
</a>
|
||
|
<a class="tab-item" href="#">
|
||
|
<span class="icon icon-search"></span>
|
||
|
<span class="tab-label">Label</span>
|
||
|
</a>
|
||
|
<a class="tab-item" href="#">
|
||
|
<span class="icon icon-gear"></span>
|
||
|
<span class="tab-label">Label</span>
|
||
|
</a>
|
||
|
</nav>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><nav</span> <span class="na">class=</span><span class="s">"bar bar-tab"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item active"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-home"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"tab-label"</span><span class="nt">></span>Home<span class="nt"></span></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-person"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"tab-label"</span><span class="nt">></span>Profile<span class="nt"></span></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-star-filled"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"tab-label"</span><span class="nt">></span>Favorites<span class="nt"></span></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-search"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"tab-label"</span><span class="nt">></span>Search<span class="nt"></span></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-gear"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"tab-label"</span><span class="nt">></span>Settings<span class="nt"></span></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></nav></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-note touch-only"><strong>Note:</strong> Use push.js to actually change content.</p>
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Tab bar (labels only)</h3>
|
||
|
<p class="component-description">If you don't want to use icons, that's okay too. The text will appear larger to use the additional space.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<nav class="bar bar-tab">
|
||
|
<a class="tab-item active" href="#">
|
||
|
Label
|
||
|
</a>
|
||
|
<a class="tab-item" href="#">
|
||
|
Label
|
||
|
</a>
|
||
|
<a class="tab-item" href="#">
|
||
|
Label
|
||
|
</a>
|
||
|
</nav>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><nav</span> <span class="na">class=</span><span class="s">"bar bar-tab"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item active"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
Label
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
Label
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"tab-item"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>
|
||
|
Label
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></nav></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-note touch-only"><strong>Note:</strong> Use push.js to actually change content.</p>
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Standard bars</h3>
|
||
|
<p class="component-description">Standard bars are basic fixed elements that can be positioned in four places. These can be used to house buttons, icons, or segmented controls (see following examples).</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<!-- Segmented control in standard bar fixed to top -->
|
||
|
<nav class="bar bar-standard">
|
||
|
<div class="segmented-control">
|
||
|
<a class="control-item active">Thing one</a>
|
||
|
<a class="control-item">Thing two</a>
|
||
|
<a class="control-item">Thing three</a>
|
||
|
</div>
|
||
|
</nav>
|
||
|
|
||
|
<!-- Block button in standard bar fixed below top bar -->
|
||
|
<div class="bar bar-standard bar-header-secondary">
|
||
|
<button class="btn btn-block">Block level button</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="c"><!-- Segmented control in standard bar fixed to top --></span>
|
||
|
<span class="nt"><nav</span> <span class="na">class=</span><span class="s">"bar bar-standard"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"segmented-control"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item active"</span><span class="nt">></span>Thing one<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item"</span><span class="nt">></span>Thing two<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item"</span><span class="nt">></span>Thing three<span class="nt"></a></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></nav></span>
|
||
|
|
||
|
<span class="c"><!-- Block button in standard bar fixed below top bar --></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"bar bar-standard bar-header-secondary"</span><span class="nt">></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-block"</span><span class="nt">></span>Block level button<span class="nt"></button></span>
|
||
|
<span class="nt"></div></span>
|
||
|
|
||
|
<span class="c"><!-- Block button in standard bar fixed above the footer --></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"bar bar-standard bar-footer-secondary"</span><span class="nt">></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-block"</span><span class="nt">></span>Block level button<span class="nt"></button></span>
|
||
|
<span class="nt"></div></span>
|
||
|
|
||
|
<span class="c"><!-- Icons in standard bar fixed to the bottom of the screen --></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"bar bar-standard bar-footer"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"icon icon-compose pull-left"</span><span class="nt">></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"icon icon-gear pull-right"</span><span class="nt">></a></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Typography -->
|
||
|
<article class="component" id="typography">
|
||
|
<h3 class="component-title">Typography</h3>
|
||
|
<p class="component-description">Use headings and paragraphs to title and describe sections of your app. Apply or wrap elements with <code>.content-padded</code> to give the content space around the screen.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<div class="content-padded">
|
||
|
<h1>h1. Heading</h1>
|
||
|
<h2>h2. Heading</h2>
|
||
|
<h3>h3. Heading</h3>
|
||
|
<h4>h4. Heading</h4>
|
||
|
<h5>h5. Heading</h5>
|
||
|
<h6>h6. Heading</h6>
|
||
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||
|
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||
|
quis nostrud exercitation ullamco.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">class=</span><span class="s">"content-padded"</span><span class="nt">></span>
|
||
|
<span class="nt"><h1></span>h1. Heading<span class="nt"></h1></span>
|
||
|
<span class="nt"><h2></span>h2. Heading<span class="nt"></h2></span>
|
||
|
<span class="nt"><h3></span>h3. Heading<span class="nt"></h3></span>
|
||
|
<span class="nt"><h4></span>h4. Heading<span class="nt"></h4></span>
|
||
|
<span class="nt"><h5></span>h5. Heading<span class="nt"></h5></span>
|
||
|
<span class="nt"><h6></span>h6. Heading<span class="nt"></h6></span>
|
||
|
<span class="nt"><p></span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||
|
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||
|
quis nostrud exercitation ullamco.<span class="nt"></p></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Table views -->
|
||
|
<article class="component" id="table-views">
|
||
|
<h3 class="component-title">Table views</h3>
|
||
|
<p class="component-description">Table views can be used for organizing data, showing collections of links, or a series of controls.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">Item 1</li>
|
||
|
<li class="table-view-cell">Item 2</li>
|
||
|
<li class="table-view-cell table-view-divider">Divider</li>
|
||
|
<li class="table-view-cell">Item 3</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 1<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell table-view-cell"</span><span class="nt">></span>Item 2<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-divider"</span><span class="nt">></span>Divider<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 3<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Table view with chevrons</h3>
|
||
|
<p class="component-description">Chevrons should be used to indicate that the item is linked. Just apply the classes <code>.navigate-right</code> or <code>.navigate-left</code> to use a chevron.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">
|
||
|
<a class="navigate-right">
|
||
|
Item 1
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell">
|
||
|
<a class="navigate-right">
|
||
|
Item 2
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell">
|
||
|
<a class="navigate-right">
|
||
|
Item 3
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
Item 1
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
Item 2
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
Item 3
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
<p class="component-note touch-only"><strong>Note:</strong> Table views with the Android theme don't have chevrons to comply with Android Design guidelines. More information can be found <a href="http://developer.android.com/design/patterns/pure-android.html">here</a>.</p>
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Table view with badges</h3>
|
||
|
<p class="component-description">Badges are a great way of showing data.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">Item 1 <span class="badge">4</span></li>
|
||
|
<li class="table-view-cell">Item 2 <span class="badge">1</span></li>
|
||
|
<li class="table-view-cell">Item 3 <span class="badge">5</span></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 1 <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>4<span class="nt"></span></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 2 <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>1<span class="nt"></span></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 3 <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>5<span class="nt"></span></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Table view with badges and chevrons</h3>
|
||
|
<p class="component-description">Feel free to use chevrons and badges together. They'll automatically positon themselves correctly.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">
|
||
|
<a class="navigate-right">
|
||
|
<span class="badge">5</span>
|
||
|
Item 1
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell">
|
||
|
<a class="navigate-right">
|
||
|
<span class="badge">5</span>
|
||
|
Item 2
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell">
|
||
|
<a class="navigate-right">
|
||
|
<span class="badge">5</span>
|
||
|
Item 3
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>5<span class="nt"></span></span>
|
||
|
Item 1
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>5<span class="nt"></span></span>
|
||
|
Item 2
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>5<span class="nt"></span></span>
|
||
|
Item 3
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Table view with media (images)</h3>
|
||
|
<p class="component-description">Showing media inside table views is easy. This component to perfect for images and text.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell media">
|
||
|
<a class="navigate-right">
|
||
|
<img class="media-object pull-left" src="http://placehold.it/42x42" alt="Placeholder image">
|
||
|
<div class="media-body">
|
||
|
Item 1
|
||
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore. Lorem ipsum dolor sit amet.</p>
|
||
|
</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell media">
|
||
|
<a class="navigate-right">
|
||
|
<img class="media-object pull-left" src="http://placehold.it/42x42" alt="Placeholder image">
|
||
|
<div class="media-body">
|
||
|
Item 1
|
||
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore. Lorem ipsum dolor sit amet.</p>
|
||
|
</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell media">
|
||
|
<a class="navigate-right">
|
||
|
<img class="media-object pull-left" src="http://placehold.it/42x42" alt="Placeholder image">
|
||
|
<div class="media-body">
|
||
|
Item 1
|
||
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore. Lorem ipsum dolor sit amet.</p>
|
||
|
</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell media"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><img</span> <span class="na">class=</span><span class="s">"media-object pull-left"</span> <span class="na">src=</span><span class="s">"http://placehold.it/42x42"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"media-body"</span><span class="nt">></span>
|
||
|
Item 1
|
||
|
<span class="nt"><p></span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore. Lorem ipsum dolor sit amet.<span class="nt"></p></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell media"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><img</span> <span class="na">class=</span><span class="s">"media-object pull-left"</span> <span class="na">src=</span><span class="s">"http://placehold.it/42x42"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"media-body"</span><span class="nt">></span>
|
||
|
Item 1
|
||
|
<span class="nt"><p></span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore. Lorem ipsum dolor sit amet.<span class="nt"></p></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell media"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><img</span> <span class="na">class=</span><span class="s">"media-object pull-left"</span> <span class="na">src=</span><span class="s">"http://placehold.it/42x42"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"media-body"</span><span class="nt">></span>
|
||
|
Item 1
|
||
|
<span class="nt"><p></span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore. Lorem ipsum dolor sit amet.<span class="nt"></p></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Table view with media (icons)</h3>
|
||
|
<p class="component-description">Ratchicons can also used instead of images.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell media">
|
||
|
<a class="navigate-right">
|
||
|
<span class="media-object pull-left icon icon-trash"></span>
|
||
|
<div class="media-body">
|
||
|
Item 1
|
||
|
</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell media">
|
||
|
<a class="navigate-right">
|
||
|
<span class="media-object pull-left icon icon-gear"></span>
|
||
|
<div class="media-body">
|
||
|
Item 2
|
||
|
</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="table-view-cell media">
|
||
|
<a class="navigate-right">
|
||
|
<span class="media-object pull-left icon icon-pages"></span>
|
||
|
<div class="media-body">
|
||
|
Item 3
|
||
|
</div>
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell media"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"media-object pull-left icon icon-trash"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"media-body"</span><span class="nt">></span>
|
||
|
Item 1
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell media"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"media-object pull-left icon icon-gear"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"media-body"</span><span class="nt">></span>
|
||
|
Item 2
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell media"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"media-object pull-left icon icon-pages"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"media-body"</span><span class="nt">></span>
|
||
|
Item 3
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Table view with buttons</h3>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">Item 1 <button class="btn">Button</button></li>
|
||
|
<li class="table-view-cell">Item 2 <button class="btn btn-primary">Button</button></li>
|
||
|
<li class="table-view-cell">Item 3 <button class="btn btn-positive">Button</button></li>
|
||
|
<li class="table-view-cell">Item 4 <button class="btn btn-negative">Button</button></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 1 <span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn"</span><span class="nt">></span>Button<span class="nt"></button></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 2 <span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary"</span><span class="nt">></span>Button<span class="nt"></button></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 3 <span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive"</span><span class="nt">></span>Button<span class="nt"></button></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 4 <span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-negative"</span><span class="nt">></span>Button<span class="nt"></button></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Table view with toggles</h3>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">
|
||
|
Item 1
|
||
|
<div class="toggle">
|
||
|
<div class="toggle-handle"></div>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="table-view-cell">
|
||
|
Item 2
|
||
|
<div class="toggle active">
|
||
|
<div class="toggle-handle"></div>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="table-view-cell">
|
||
|
Item 3
|
||
|
<div class="toggle">
|
||
|
<div class="toggle-handle"></div>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
Item 1
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle-handle"</span><span class="nt">></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
Item 2
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle active"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle-handle"</span><span class="nt">></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
Item 3
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle-handle"</span><span class="nt">></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component">
|
||
|
<h3 class="component-title">Carded table views</h3>
|
||
|
<p class="component-description">Use <code>.card</code> to wrap any content in a padded element.</p>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<div class="card">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">Item 1</li>
|
||
|
<li class="table-view-cell">Item 2</li>
|
||
|
<li class="table-view-cell table-view-divider">Divider</li>
|
||
|
<li class="table-view-cell">Item 3</li>
|
||
|
<li class="table-view-cell">Item 4</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">></span>
|
||
|
<span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 1<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 2<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell table-view-divider"</span><span class="nt">></span>Divider<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 3<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item 4<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Buttons -->
|
||
|
<article class="component" id="buttons">
|
||
|
<h3 class="component-title">Buttons</h3>
|
||
|
<p class="component-description">Buttons come in many flavors and should be used for user actions.</p>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<button class="btn">Button</button>
|
||
|
<button class="btn btn-primary">Button</button>
|
||
|
<button class="btn btn-positive">Button</button>
|
||
|
<button class="btn btn-negative">Button</button>
|
||
|
<button class="btn btn-link">Button</button>
|
||
|
|
||
|
<button class="btn btn-outlined">Button</button>
|
||
|
<button class="btn btn-primary btn-outlined">Button</button>
|
||
|
<button class="btn btn-positive btn-outlined">Button</button>
|
||
|
<button class="btn btn-negative btn-outlined">Button</button>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-negative"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-link"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-outlined"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary btn-outlined"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive btn-outlined"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-negative btn-outlined"</span><span class="nt">></span>Button<span class="nt"></button></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Buttons -->
|
||
|
<article class="component" id="buttonsWithIcons">
|
||
|
<h3 class="component-title">Buttons with icons</h3>
|
||
|
<p class="component-description">Ratchicons work inside buttons too.</p>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<button class="btn">
|
||
|
<span class="icon icon-search"></span>
|
||
|
Button
|
||
|
</button>
|
||
|
<button class="btn btn-primary">
|
||
|
<span class="icon icon-search"></span>
|
||
|
Button
|
||
|
</button>
|
||
|
<button class="btn btn-positive">
|
||
|
<span class="icon icon-search"></span>
|
||
|
Button
|
||
|
</button>
|
||
|
<button class="btn btn-negative">
|
||
|
<span class="icon icon-search"></span>
|
||
|
Button
|
||
|
</button>
|
||
|
<button class="btn btn-link">
|
||
|
<span class="icon icon-left"></span>
|
||
|
Button
|
||
|
</button>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-search"</span><span class="nt">></span></span>
|
||
|
Button
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-search"</span><span class="nt">></span></span>
|
||
|
Button
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-search"</span><span class="nt">></span></span>
|
||
|
Button
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-negative"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-search"</span><span class="nt">></span></span>
|
||
|
Button
|
||
|
<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-link"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-left"</span><span class="nt">></span></span>
|
||
|
Button
|
||
|
<span class="nt"></button></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component" id="buttonsBadges">
|
||
|
<h3 class="component-title">Buttons with badges</h3>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<button class="btn">Badge button <span class="badge">1</span></button>
|
||
|
<button class="btn btn-primary">Badge button <span class="badge badge-primary">1</span></button>
|
||
|
<button class="btn btn-positive">Badge button <span class="badge badge-positive">1</span></button>
|
||
|
<button class="btn btn-negative">Badge button <span class="badge badge-negative">1</span></button>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-primary"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-positive"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-negative"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-negative"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-outlined"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-inverted"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-outlined btn-primary"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-primary badge-inverted"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-outlined btn-positive"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-positive badge-inverted"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-outlined btn-negative"</span><span class="nt">></span>Badge button <span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-negative badge-inverted"</span><span class="nt">></span>1<span class="nt"></span></button></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<article class="component" id="blockButtons">
|
||
|
<h3 class="component-title">Block buttons</h3>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<button class="btn btn-block">Block button</button>
|
||
|
<button class="btn btn-primary btn-block">Block button</button>
|
||
|
<button class="btn btn-positive btn-block">Block button</button>
|
||
|
<button class="btn btn-negative btn-block">Block button</button>
|
||
|
|
||
|
<button class="btn btn-block btn-outlined">Block button</button>
|
||
|
<button class="btn btn-primary btn-block btn-outlined">Block button</button>
|
||
|
<button class="btn btn-positive btn-block btn-outlined">Block button</button>
|
||
|
<button class="btn btn-negative btn-block btn-outlined">Block button</button>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-block"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary btn-block"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive btn-block"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-negative btn-block"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-block btn-outlined"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary btn-block btn-outlined"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive btn-block btn-outlined"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-negative btn-block btn-outlined"</span><span class="nt">></span>Block button<span class="nt"></button></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Segmented Control -->
|
||
|
<article class="component" id="segmentedControls">
|
||
|
<h3 class="component-title">Segmented control</h3>
|
||
|
<p class="component-description">Content sections that are to be swapped in and out by the controller should all be siblings and have the class <code>.control-content</code>. Then, just give each content section an id and point the link in the segmented control to that id.</p>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<div class="segmented-control">
|
||
|
<a class="control-item active" href="#item1mobile">
|
||
|
Thing one
|
||
|
</a>
|
||
|
<a class="control-item" href="#item2mobile">
|
||
|
Thing two
|
||
|
</a>
|
||
|
<a class="control-item" href="#item3mobile">
|
||
|
Thing three
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="card">
|
||
|
<span id="item1mobile" class="control-content active">Item 1</span>
|
||
|
<span id="item2mobile" class="control-content">Item 2</span>
|
||
|
<span id="item3mobile" class="control-content">Item 3</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">class=</span><span class="s">"segmented-control"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item active"</span> <span class="na">href=</span><span class="s">"#item1mobile"</span><span class="nt">></span>
|
||
|
Thing one
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item"</span> <span class="na">href=</span><span class="s">"#item2mobile"</span><span class="nt">></span>
|
||
|
Thing two
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"control-item"</span> <span class="na">href=</span><span class="s">"#item3mobile"</span><span class="nt">></span>
|
||
|
Thing three
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">id=</span><span class="s">"item1mobile"</span> <span class="na">class=</span><span class="s">"control-content active"</span><span class="nt">></span>Item 1<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">id=</span><span class="s">"item2mobile"</span> <span class="na">class=</span><span class="s">"control-content"</span><span class="nt">></span>Item 2<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">id=</span><span class="s">"item3mobile"</span> <span class="na">class=</span><span class="s">"control-content"</span><span class="nt">></span>Item 3<span class="nt"></span></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Badges -->
|
||
|
<article class="component" id="badges">
|
||
|
<h3 class="component-title">Badges</h3>
|
||
|
<p class="component-description">Badges come in four flavors and should be used to indicate "how many" of something there are. Adding the a class of <code>.badge-inverted</code> will remove the badges background color.</p>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<span class="badge">1</span>
|
||
|
<span class="badge badge-primary">2</span>
|
||
|
<span class="badge badge-positive">3</span>
|
||
|
<span class="badge badge-negative">4</span>
|
||
|
<span class="badge badge-inverted">1</span>
|
||
|
<span class="badge badge-primary badge-inverted">2</span>
|
||
|
<span class="badge badge-positive badge-inverted">3</span>
|
||
|
<span class="badge badge-negative badge-inverted">4</span>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge"</span><span class="nt">></span>1<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-primary"</span><span class="nt">></span>2<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-positive"</span><span class="nt">></span>3<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-negative"</span><span class="nt">></span>4<span class="nt"></span></span>
|
||
|
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-inverted"</span><span class="nt">></span>1<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-primary badge-inverted"</span><span class="nt">></span>2<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-positive badge-inverted"</span><span class="nt">></span>3<span class="nt"></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"badge badge-negative badge-inverted"</span><span class="nt">></span>4<span class="nt"></span></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Forms -->
|
||
|
<article class="component" id="forms">
|
||
|
<h3 class="component-title">Forms</h3>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<form>
|
||
|
<input type="text" placeholder="Full name">
|
||
|
<input type="search" placeholder="Search">
|
||
|
<textarea rows="5"></textarea>
|
||
|
<button class="btn btn-positive btn-block">Choose existing</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><form></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"Full name"</span><span class="nt">></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"search"</span> <span class="na">placeholder=</span><span class="s">"Search"</span><span class="nt">></span>
|
||
|
<span class="nt"><textarea</span> <span class="na">rows=</span><span class="s">"5"</span><span class="nt">></textarea></span>
|
||
|
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-positive btn-block"</span><span class="nt">></span>Choose existing<span class="nt"></button></span>
|
||
|
<span class="nt"></form></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Form with input group -->
|
||
|
<article class="component" id="formsWithInputGroup">
|
||
|
<h3 class="component-title">Form with input group</h3>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<form class="input-group">
|
||
|
<input type="text" placeholder="Full name">
|
||
|
<input type="email" placeholder="Email">
|
||
|
<input type="text" placeholder="Username">
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><form</span> <span class="na">class=</span><span class="s">"input-group"</span><span class="nt">></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"Full name"</span><span class="nt">></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"email"</span> <span class="na">placeholder=</span><span class="s">"Email"</span><span class="nt">></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"Username"</span><span class="nt">></span>
|
||
|
<span class="nt"></form></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Form with input group and labels -->
|
||
|
<article class="component" id="formsWithInputGroupAndLabels">
|
||
|
<h3 class="component-title">Form with input group and labels</h3>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<form class="input-group">
|
||
|
<div class="input-row">
|
||
|
<label>Full name</label>
|
||
|
<input type="text" placeholder="Mister Ratchet">
|
||
|
</div>
|
||
|
<div class="input-row">
|
||
|
<label>Email</label>
|
||
|
<input type="email" placeholder="ratchetframework@gmail.com">
|
||
|
</div>
|
||
|
<div class="input-row">
|
||
|
<label>Username</label>
|
||
|
<input type="text" placeholder="goRatchet">
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><form</span> <span class="na">class=</span><span class="s">"input-group"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"input-row"</span><span class="nt">></span>
|
||
|
<span class="nt"><label></span>Full name<span class="nt"></label></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"Mister Ratchet"</span><span class="nt">></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"input-row"</span><span class="nt">></span>
|
||
|
<span class="nt"><label></span>Email<span class="nt"></label></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"email"</span> <span class="na">placeholder=</span><span class="s">"ratchetframework@gmail.com"</span><span class="nt">></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"input-row"</span><span class="nt">></span>
|
||
|
<span class="nt"><label></span>Username<span class="nt"></label></span>
|
||
|
<span class="nt"><input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"goRatchet"</span><span class="nt">></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></form></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Toggle -->
|
||
|
<article class="component" id="toggles">
|
||
|
<h3 class="component-title">Toggles</h3>
|
||
|
<p class="component-description">Toggles can be used by sliding or tapping the control.</p>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<div class="toggle active">
|
||
|
<div class="toggle-handle"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle active"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle-handle"</span><span class="nt">></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"toggle-handle"</span><span class="nt">></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-description">Toggles.js binds an event to the document that returns a detail object and can be used to fire a callback.</p>
|
||
|
|
||
|
<div class="highlight"><pre><code class="js"><span class="c1">// Only needed if you want to fire a callback</span>
|
||
|
<span class="nb">document</span>
|
||
|
<span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="s1">'#myToggle'</span><span class="p">)</span>
|
||
|
<span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'toggle'</span><span class="p">,</span> <span class="nx">myFunction</span><span class="p">)</span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Popovers -->
|
||
|
<article class="component" id="popovers">
|
||
|
<h3 class="component-title">Popovers</h3>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">id=</span><span class="s">"popover"</span> <span class="na">class=</span><span class="s">"popover"</span><span class="nt">></span>
|
||
|
<span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>Popover title<span class="nt"></h1></span>
|
||
|
<span class="nt"></header></span>
|
||
|
<span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item1<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item2<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item3<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item4<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item5<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item6<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item7<span class="nt"></li></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>Item8<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-description">Popovers are designed to only fire from <a href="#bars">title bars</a>. Set the value of the title href to the id of a popover, like so:</p>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">href=</span><span class="s">"#myPopover"</span><span class="nt">></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>
|
||
|
Tap title
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-caret"</span><span class="nt">></span></span>
|
||
|
<span class="nt"></h1></span>
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></header></span>
|
||
|
</code></pre></div>
|
||
|
</article>
|
||
|
|
||
|
<!-- Modals -->
|
||
|
<article class="component" id="modals">
|
||
|
<h3 class="component-title">Modals</h3>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<a href="#myModalexample" class="btn">Open modal</a>
|
||
|
<div id="myModalexample" class="modal">
|
||
|
<header class="bar bar-nav">
|
||
|
<a class="icon icon-close pull-right" href="#myModalexample"></a>
|
||
|
<h1 class="title">Modal mobile</h1>
|
||
|
</header>
|
||
|
|
||
|
<p class="content-padded">The contents of my modal go here. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><a</span> <span class="na">href=</span><span class="s">"#myModalexample"</span> <span class="na">class=</span><span class="s">"btn"</span><span class="nt">></span>Open modal<span class="nt"></a></span>
|
||
|
<span class="nt"><div</span> <span class="na">id=</span><span class="s">"myModalexample"</span> <span class="na">class=</span><span class="s">"modal"</span><span class="nt">></span>
|
||
|
<span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"icon icon-close pull-right"</span> <span class="na">href=</span><span class="s">"#myModalexample"</span><span class="nt">></a></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>Modal<span class="nt"></h1></span>
|
||
|
<span class="nt"></header></span>
|
||
|
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"content"</span><span class="nt">></span>
|
||
|
<span class="nt"><p</span> <span class="na">class=</span><span class="s">"content-padded"</span><span class="nt">></span>The contents of my modal go here. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut.<span class="nt"></p></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-description">Modals are designed to only fire from links. Set the value of the toggle links href to the id of a modal.</p>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Slider -->
|
||
|
<article class="component" id="sliders">
|
||
|
<h3 class="component-title">Sliders</h3>
|
||
|
<p class="component-description">Can be used with any number of slides with any type of content.</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<div class="slider" id="mySlider">
|
||
|
<div class="slide-group">
|
||
|
<div class="slide">
|
||
|
<img src="/assets/img/slide-1.jpg" alt="Mountain and sky">
|
||
|
<span class="slide-text">
|
||
|
<span class="icon icon-left-nav"></span>
|
||
|
Slide me
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="slide">
|
||
|
<img src="/assets/img/slide-2.jpg" alt="Giant mecha">
|
||
|
</div>
|
||
|
<div class="slide">
|
||
|
<img src="/assets/img/slide-3.jpg" alt="Big Ben">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">class=</span><span class="s">"slider"</span> <span class="na">id=</span><span class="s">"mySlider"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"slide-group"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"slide"</span><span class="nt">></span>
|
||
|
<span class="nt"><img</span> <span class="na">src=</span><span class="s">"/assets/img/slide-1.jpg"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"slide-text"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-left-nav"</span><span class="nt">></span></span>
|
||
|
Slide me
|
||
|
<span class="nt"></span></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"slide"</span><span class="nt">></span>
|
||
|
<span class="nt"><img</span> <span class="na">src=</span><span class="s">"/assets/img/slide-2.jpg"</span><span class="nt">></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"slide"</span><span class="nt">></span>
|
||
|
<span class="nt"><img</span> <span class="na">src=</span><span class="s">"/assets/img/slide-3.jpg"</span><span class="nt">></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-description">Sliders.js binds an event to the document that returns a detail object and can be used to fire a callback.</p>
|
||
|
|
||
|
<div class="highlight"><pre><code class="js"><span class="c1">// Only needed if you want to fire a callback</span>
|
||
|
<span class="nb">document</span>
|
||
|
<span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="s1">'#mySlider'</span><span class="p">)</span>
|
||
|
<span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'slide'</span><span class="p">,</span> <span class="nx">myFunction</span><span class="p">)</span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Push docs -->
|
||
|
<article class="component" id="push">
|
||
|
<h3 class="component-title">Push</h3>
|
||
|
<p class="component-description">Push.js is the engine that connects Ratchet pages together with AJAX and the history api. Push.js is listening to all clicks on a page, so just make sure it's included and link something in your Ratchet project up.</p>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="c"><!-- A one.html link --></span>
|
||
|
<span class="nt"><a</span> <span class="na">href=</span><span class="s">"two.html"</span><span class="nt">></span>Two<span class="nt"></a></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-note">This will use push to replace everything in the .content div with the .content of two.html. Also, it will either update or remove .bar-nav and .bar-tab according to their presences in two.html.</p>
|
||
|
|
||
|
<p class="component-description">Now that pages are being loaded through push, it's easy to specify transitions for animations between pages. There are three different transitions to chose from: <code>fade</code>, <code>slide-in</code>, or <code>slide-out</code>.</p>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="c"><!-- An one.html link that animates to two.html --></span>
|
||
|
<span class="nt"><a</span> <span class="na">href=</span><span class="s">"two.html"</span> <span class="na">data-transition=</span><span class="s">"fade"</span><span class="nt">></span>Two<span class="nt"></a></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-description">A working version of push:</p>
|
||
|
|
||
|
<div class="component-example component-example-fullbleed">
|
||
|
<header class="bar bar-nav">
|
||
|
<h1 class="title">Push</h1>
|
||
|
</header>
|
||
|
<div class="content">
|
||
|
<div class="card">
|
||
|
<ul class="table-view">
|
||
|
<li class="table-view-cell">
|
||
|
<a class="navigate-right" href="../two.html" data-transition="slide-in">
|
||
|
Load new page with push
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><header</span> <span class="na">class=</span><span class="s">"bar bar-nav"</span><span class="nt">></span>
|
||
|
<span class="nt"><h1</span> <span class="na">class=</span><span class="s">"title"</span><span class="nt">></span>Push<span class="nt"></h1></span>
|
||
|
<span class="nt"></header></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"content"</span><span class="nt">></span>
|
||
|
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">></span>
|
||
|
<span class="nt"><ul</span> <span class="na">class=</span><span class="s">"table-view"</span><span class="nt">></span>
|
||
|
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"table-view-cell"</span><span class="nt">></span>
|
||
|
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"navigate-right"</span> <span class="na">href=</span><span class="s">"../two.html"</span> <span class="na">data-transition=</span><span class="s">"slide-in"</span><span class="nt">></span>
|
||
|
Load new page with push
|
||
|
<span class="nt"></a></span>
|
||
|
<span class="nt"></li></span>
|
||
|
<span class="nt"></ul></span>
|
||
|
<span class="nt"></div></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-description">Have a link you don't want to intercepted by push? Try this:</p>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="c"><!-- Use data-ignore="push" to prevent the push.js interception --></span>
|
||
|
<span class="nt"><a</span> <span class="na">href=</span><span class="s">"http://www.google.com"</span> <span class="na">data-ignore=</span><span class="s">"push"</span><span class="nt">></span>Google<span class="nt"><a></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
<p class="component-description">Push.js binds an event to the document that returns a detail object and can be used to fire a callback.</p>
|
||
|
|
||
|
<div class="highlight"><pre><code class="js"><span class="c1">// Only needed if you want to fire a callback</span>
|
||
|
<span class="nb">window</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'push'</span><span class="p">,</span> <span class="nx">myFunction</span><span class="p">);</span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Ratchicons -->
|
||
|
<article class="component no-border" id="ratchicons">
|
||
|
<h3 class="component-title">Ratchicons</h3>
|
||
|
<p class="component-description">Use Ratchicons in your application to help inform interactions.</p>
|
||
|
|
||
|
<div class="component-example">
|
||
|
<div class="content-padded">
|
||
|
<span class="icon icon-home"></span>
|
||
|
<span class="icon icon-person"></span>
|
||
|
<span class="icon icon-bars"></span>
|
||
|
<span class="icon icon-caret"></span>
|
||
|
<span class="icon icon-check"></span>
|
||
|
<span class="icon icon-close"></span>
|
||
|
<span class="icon icon-code"></span>
|
||
|
<span class="icon icon-compose"></span>
|
||
|
<span class="icon icon-edit"></span>
|
||
|
<span class="icon icon-gear"></span>
|
||
|
<span class="icon icon-info"></span>
|
||
|
<span class="icon icon-list"></span>
|
||
|
<span class="icon icon-more"></span>
|
||
|
<span class="icon icon-more-vertical"></span>
|
||
|
<span class="icon icon-pages"></span>
|
||
|
<span class="icon icon-play"></span>
|
||
|
<span class="icon icon-pause"></span>
|
||
|
<span class="icon icon-stop"></span>
|
||
|
<span class="icon icon-back"></span>
|
||
|
<span class="icon icon-forward"></span>
|
||
|
<span class="icon icon-plus"></span>
|
||
|
<span class="icon icon-refresh"></span>
|
||
|
<span class="icon icon-search"></span>
|
||
|
<span class="icon icon-download"></span>
|
||
|
<span class="icon icon-share"></span>
|
||
|
<span class="icon icon-sound"></span>
|
||
|
<span class="icon icon-sound2"></span>
|
||
|
<span class="icon icon-sound3"></span>
|
||
|
<span class="icon icon-sound4"></span>
|
||
|
<span class="icon icon-star-filled"></span>
|
||
|
<span class="icon icon-star"></span>
|
||
|
<span class="icon icon-trash"></span>
|
||
|
<span class="icon icon-down-nav"></span>
|
||
|
<span class="icon icon-down"></span>
|
||
|
<span class="icon icon-left-nav"></span>
|
||
|
<span class="icon icon-left"></span>
|
||
|
<span class="icon icon-right-nav"></span>
|
||
|
<span class="icon icon-right"></span>
|
||
|
<span class="icon icon-up-nav"></span>
|
||
|
<span class="icon icon-up"></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="highlight"><pre><code class="html"><span class="nt"><div</span> <span class="na">class=</span><span class="s">"content-padded"</span><span class="nt">></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-home"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-person"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-bars"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-caret"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-check"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-close"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-code"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-compose"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-edit"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-gear"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-info"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-list"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-more"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-more-vertical"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-pages"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-play"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-pause"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-stop"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-back"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-forward"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-plus"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-refresh"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-search"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-download"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-share"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-sound"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-sound2"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-sound3"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-sound4"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-star-filled"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-star"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-trash"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-down-nav"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-down"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-left-nav"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-left"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-right-nav"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-right"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-up-nav"</span><span class="nt">></span></span>
|
||
|
<span class="nt"><span</span> <span class="na">class=</span><span class="s">"icon icon-up"</span><span class="nt">></span></span>
|
||
|
<span class="nt"></div></span>
|
||
|
</code></pre></div>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<!-- Footer -->
|
||
|
<div class="docs-footer">
|
||
|
<!-- Social links -->
|
||
|
<ul class="social">
|
||
|
<li>
|
||
|
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=ratchet&type=watch&count=true" width="100" height="20"></iframe>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a data-ignore="push" href="https://twitter.com/share" class="twitter-share-button" data-url="http://goratchet.com" data-text="Ratchet – Build mobile apps with simple HTML, CSS, and JS components." data-via="GoRatchet">Tweet</a>
|
||
|
</li>
|
||
|
<li><a data-ignore="push" href="https://twitter.com/goratchet" class="twitter-follow-button" data-show-count="true">
|
||
|
Follow @GoRatchet</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<p class="docs-footer-text">Code licensed under the <a href="https://github.com/twbs/ratchet/blob/master/LICENSE" data-ignore="push">MIT License</a> and the docs are licensed under <a href="https://github.com/twbs/ratchet/blob/master/docs/LICENSE" data-ignore="push">CC BY 3.0</a>. Ratchet was lovingly crafted by <a href="https://twitter.com/connors" data-ignore="push">Connor Sears</a>.</p>
|
||
|
|
||
|
<ul class="docs-footer-links">
|
||
|
<li>Currently v2.0.1</li>
|
||
|
<li>·</li>
|
||
|
<li><a href="https://github.com/twbs/ratchet/issues" data-ignore="push">Issues</a></li>
|
||
|
<li>·</li>
|
||
|
<li><a href="https://github.com/twbs/ratchet/releases" data-ignore="push">Releases</a></li>
|
||
|
<li>·</li>
|
||
|
<li><a href="http://goratchet.com/1.0.2/" data-ignore="push">Legacy v1.0.2 Docs</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
window.twttr = (function (d,s,id) {
|
||
|
var t, js, fjs = d.getElementsByTagName(s)[0];
|
||
|
if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; js.async=1;
|
||
|
js.src="//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
|
||
|
return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
|
||
|
}(document, "script", "twitter-wjs"));
|
||
|
</script>
|
||
|
|
||
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||
|
<script src="/dist/js/ratchet.min.js"></script>
|
||
|
<script src="/assets/js/docs.min.js"></script>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|