Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Sears <connors@users.noreply.github.com>2014-02-25 08:39:14 +0400
committerConnor Sears <connors@users.noreply.github.com>2014-02-25 08:39:14 +0400
commit51706c1ff8ad81e1874bd82ba2b6f9439c7f3925 (patch)
treebfa4cac24ddf6441848758cf56d1637c11e42997
parent1f0f5fda6d81deb4b640efbdb586f011d5fb61ae (diff)
parent3af992fc0d3b3eea475c71985bfb9e98b01e1f06 (diff)
Merge pull request #213 from maker/2.0.0-wip
WIP: Ratchet 2
-rw-r--r--.gitignore6
-rw-r--r--CNAME1
-rw-r--r--CONTRIBUTING.md4
-rw-r--r--Gruntfile.js92
-rw-r--r--LICENSE21
-rw-r--r--Makefile69
-rw-r--r--README.md42
-rw-r--r--_config.yml12
-rw-r--r--bower.json16
-rw-r--r--component.json5
-rw-r--r--dist/ratchet-theme-android.css578
-rw-r--r--dist/ratchet-theme-ios.css477
-rw-r--r--dist/ratchet.css2008
-rw-r--r--dist/ratchet.js107
-rw-r--r--dist/ratchicons/ratchicons.eotbin0 -> 11688 bytes
-rw-r--r--dist/ratchicons/ratchicons.svg61
-rw-r--r--dist/ratchicons/ratchicons.ttfbin0 -> 11512 bytes
-rw-r--r--dist/ratchicons/ratchicons.woffbin0 -> 6780 bytes
-rw-r--r--dist/template.html66
-rw-r--r--docs/LICENSE319
-rw-r--r--docs/_includes/ad.html1
-rw-r--r--docs/_includes/download-module.html5
-rw-r--r--docs/_includes/footer.html18
-rw-r--r--docs/_includes/header.html43
-rw-r--r--docs/_includes/jump.html21
-rw-r--r--docs/_includes/masthead.html19
-rw-r--r--docs/_includes/toolbar.html19
-rw-r--r--docs/_layouts/default.html9
-rw-r--r--docs/_layouts/home.html9
-rw-r--r--docs/assets/css/docs.css2087
-rw-r--r--docs/assets/css/pygments.css61
-rw-r--r--docs/assets/img/android.pngbin0 -> 102811 bytes
-rw-r--r--docs/assets/img/apple-touch-icon-114x114.png (renamed from docs/img/apple-touch-icon-114x114.png)bin15538 -> 15538 bytes
-rw-r--r--docs/assets/img/apple-touch-icon-57x57.png (renamed from docs/img/apple-touch-icon-57x57.png)bin5276 -> 5276 bytes
-rw-r--r--docs/assets/img/apple-touch-icon-72x72.png (renamed from docs/img/apple-touch-icon-72x72.png)bin7362 -> 7362 bytes
-rw-r--r--docs/assets/img/example-android.pngbin0 -> 23343 bytes
-rw-r--r--docs/assets/img/example-ios.pngbin0 -> 23987 bytes
-rw-r--r--docs/assets/img/example.pngbin0 -> 272124 bytes
-rw-r--r--docs/assets/img/iphone5c.pngbin0 -> 68816 bytes
-rw-r--r--docs/assets/img/iphone5s.pngbin0 -> 95740 bytes
-rw-r--r--docs/assets/img/pattern.pngbin0 -> 226169 bytes
-rw-r--r--docs/assets/img/slide-1.pngbin0 -> 1630638 bytes
-rw-r--r--docs/assets/img/slide-2.pngbin0 -> 1687943 bytes
-rw-r--r--docs/assets/img/slide-3.pngbin0 -> 1457539 bytes
-rw-r--r--docs/assets/js/docs.js172
-rw-r--r--docs/assets/js/fingerblast.js (renamed from docs/js/fingerblast.js)0
-rw-r--r--docs/components.html1371
-rw-r--r--docs/css/docs.css1146
-rw-r--r--docs/css/prettify.css1
-rw-r--r--docs/dist/ratchet-theme-android.css578
-rw-r--r--docs/dist/ratchet-theme-ios.css477
-rw-r--r--docs/dist/ratchet.css1414
-rw-r--r--docs/dist/ratchet.js784
-rw-r--r--docs/dist/ratchicons/ratchicons.eotbin0 -> 11688 bytes
-rw-r--r--docs/dist/ratchicons/ratchicons.svg61
-rw-r--r--docs/dist/ratchicons/ratchicons.ttfbin0 -> 11512 bytes
-rw-r--r--docs/dist/ratchicons/ratchicons.woffbin0 -> 6780 bytes
-rw-r--r--docs/dist/template.html74
-rw-r--r--docs/examples.html56
-rw-r--r--docs/examples/app-android-notes/css/app.css5
-rw-r--r--docs/examples/app-android-notes/index.html178
-rw-r--r--docs/examples/app-ios-mail/css/app.css12
-rw-r--r--docs/examples/app-ios-mail/inbox.html118
-rw-r--r--docs/examples/app-ios-mail/index.html98
-rw-r--r--docs/examples/app-movies/choose-theater.html85
-rw-r--r--docs/examples/app-movies/css/app.css8
-rw-r--r--docs/examples/app-movies/img/argo.png (renamed from test/app/img/argo.png)bin262758 -> 262758 bytes
-rw-r--r--docs/examples/app-movies/img/ralph.png (renamed from test/app/img/ralph.png)bin50442 -> 50442 bytes
-rw-r--r--docs/examples/app-movies/img/skyfall.png (renamed from test/app/img/skyfall.png)bin30885 -> 30885 bytes
-rw-r--r--docs/examples/app-movies/index.html170
-rw-r--r--docs/getting-started.html134
-rw-r--r--docs/img/avatar-connors.pngbin57769 -> 0 bytes
-rw-r--r--docs/img/avatar-dhg.pngbin50286 -> 0 bytes
-rw-r--r--docs/img/avatar-fat.pngbin46550 -> 0 bytes
-rw-r--r--docs/img/header-bg.jpgbin43559 -> 0 bytes
-rw-r--r--docs/img/icon-hamburger.pngbin1870 -> 0 bytes
-rw-r--r--docs/img/icon-home.pngbin1723 -> 0 bytes
-rw-r--r--docs/img/icon-messages.pngbin2261 -> 0 bytes
-rw-r--r--docs/img/icon-profile.pngbin2034 -> 0 bytes
-rw-r--r--docs/img/icon-settings.pngbin2719 -> 0 bytes
-rw-r--r--docs/img/icon-share.pngbin1129 -> 0 bytes
-rw-r--r--docs/img/iphone.pngbin57248 -> 0 bytes
-rw-r--r--docs/img/noise.pngbin23823 -> 0 bytes
-rw-r--r--docs/img/slide-1.jpgbin49507 -> 0 bytes
-rw-r--r--docs/img/slide-2.jpgbin48610 -> 0 bytes
-rw-r--r--docs/img/slide-3.jpgbin45855 -> 0 bytes
-rw-r--r--docs/index.html1214
-rwxr-xr-xdocs/js/docs.js128
-rw-r--r--docs/js/prettify.js28
-rw-r--r--docs/one.html45
-rw-r--r--docs/two.html46
-rw-r--r--js/modals.js (renamed from lib/js/modals.js)9
-rw-r--r--js/popovers.js (renamed from lib/js/popovers.js)15
-rw-r--r--js/push.js (renamed from lib/js/push.js)15
-rw-r--r--js/segmented-controllers.js (renamed from lib/js/segmented-controllers.js)16
-rw-r--r--js/sliders.js (renamed from lib/js/sliders.js)10
-rw-r--r--js/toggles.js (renamed from lib/js/toggles.js)21
-rw-r--r--lib/css/bars.css332
-rw-r--r--lib/css/base.css153
-rw-r--r--lib/css/buttons.css126
-rw-r--r--lib/css/chevrons.css30
-rw-r--r--lib/css/counts.css45
-rw-r--r--lib/css/forms.css121
-rw-r--r--lib/css/lists.css115
-rw-r--r--lib/css/modals.css27
-rw-r--r--lib/css/popovers.css153
-rw-r--r--lib/css/push.css29
-rw-r--r--lib/css/segmented-controllers.css62
-rw-r--r--lib/css/sliders.css37
-rw-r--r--lib/css/toggles.css66
-rw-r--r--package.json39
-rw-r--r--sass/badges.scss53
-rw-r--r--sass/bars.scss236
-rw-r--r--sass/base.scss92
-rw-r--r--sass/buttons.scss172
-rw-r--r--sass/cards.scss37
-rw-r--r--sass/docs.scss1097
-rw-r--r--sass/forms.scss111
-rw-r--r--sass/mixins.scss118
-rw-r--r--sass/modals.scss28
-rw-r--r--sass/normalize.scss385
-rw-r--r--sass/popovers.scss97
-rw-r--r--sass/push.scss60
-rw-r--r--sass/ratchet.scss30
-rw-r--r--sass/ratchicons.scss64
-rw-r--r--sass/segmented-controls.scss110
-rw-r--r--sass/sliders.scss31
-rw-r--r--sass/table-views.scss107
-rw-r--r--sass/theme-android.scss724
-rw-r--r--sass/theme-ios.scss591
-rw-r--r--sass/toggles.scss62
-rw-r--r--sass/type.scss23
-rw-r--r--sass/variables.scss58
-rw-r--r--test/app/checkout.html81
-rw-r--r--test/app/choose-movie.html125
-rw-r--r--test/app/choose-theater.html110
-rw-r--r--test/app/css/app.css12
-rw-r--r--test/app/index.html160
-rw-r--r--test/app/settings.html73
-rw-r--r--test/app/theaters.html131
-rw-r--r--test/components/index.html549
-rw-r--r--test/components/modals.html73
142 files changed, 15252 insertions, 6348 deletions
diff --git a/.gitignore b/.gitignore
index 0a1ab68..9436b70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,8 +29,6 @@ nbproject
.komodotools
# Folders to ignore
-.hg
-.svn
-.CVS
.idea
-node_modules \ No newline at end of file
+node_modules
+_site
diff --git a/CNAME b/CNAME
new file mode 100644
index 0000000..987e0cb
--- /dev/null
+++ b/CNAME
@@ -0,0 +1 @@
+goratchet.com \ No newline at end of file
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index c61c4f3..70bb83f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -146,6 +146,8 @@ project:
If you have any other questions about contributing, please feel free to contact
us.
+**Don't edit files in `dist/`.** You should edit files in `lib/`.
+
## Special thanks to @necolas
-For writing the original [issue-guidelines](https://github.com/necolas/issue-guidelines/) from which these were adapted. \ No newline at end of file
+For writing the original [issue-guidelines](https://github.com/necolas/issue-guidelines/) from which these were adapted.
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..fa20531
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,92 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+
+ // Metadata.
+ meta: {
+ distPath: 'dist/',
+ docsPath: 'docs/dist/',
+ docsAssetsPath: 'docs/assets/'
+ },
+
+ banner: '/*\n' +
+ ' * =====================================================\n' +
+ ' * Ratchet v<%= pkg.version %>\n' +
+ ' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
+ ' * Licensed under <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' +
+ ' *\n' +
+ ' * V<%= pkg.version %> designed by @connors.\n' +
+ ' * =====================================================\n' +
+ ' */\n',
+
+ concat: {
+ options: {
+ banner: '<%= banner %>'
+ },
+ ratchet: {
+ src: [
+ 'js/modals.js',
+ 'js/popovers.js',
+ 'js/push.js',
+ 'js/segmented-controllers.js',
+ 'js/sliders.js',
+ 'js/toggles.js'
+ ],
+ dest: '<%= meta.distPath %><%= pkg.name %>.js'
+ },
+ docs: {
+ src: '<%= meta.distPath %><%= pkg.name %>.js',
+ dest: '<%= meta.docsPath %><%= pkg.name %>.js'
+ }
+ },
+
+ sass: {
+ options: {
+ banner: '<%= banner %>',
+ style: 'expanded',
+ },
+ dist: {
+ files: {
+ '<%= meta.distPath %><%= pkg.name %>.css': 'sass/ratchet.scss',
+ '<%= meta.distPath %><%= pkg.name %>-theme-ios.css': 'sass/theme-ios.scss',
+ '<%= meta.distPath %><%= pkg.name %>-theme-android.css': 'sass/theme-android.scss',
+ '<%= meta.docsAssetsPath %>css/docs.css': 'sass/docs.scss'
+ }
+ }
+ },
+
+ copy: {
+ docs: {
+ expand: true,
+ cwd: 'dist',
+ src: [
+ '*'
+ ],
+ dest: 'docs/dist'
+ }
+ },
+
+ watch: {
+ scripts: {
+ files: [
+ '<%= meta.srcPath %>/**/*.scss'
+ ],
+ tasks: ['sass']
+ }
+ }
+ });
+
+ // Load the plugins
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-sass');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-jekyll');
+
+
+ // Default task(s).
+ grunt.registerTask('default', ['sass', 'concat', 'copy']);
+ grunt.registerTask('build', ['sass', 'concat', 'copy']);
+};
diff --git a/LICENSE b/LICENSE
index 1c5c409..6897301 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,7 +1,20 @@
-Copyright (c) 2012 DHG, CONNORS, FAT and other contributors
+The MIT License (MIT)
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+Copyright (c) 2014 connors and other contributors
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 9f52a77..0000000
--- a/Makefile
+++ /dev/null
@@ -1,69 +0,0 @@
-#
-# BUILD LIB FILES
-#
-
-build:
- mkdir -p dist
- cat lib/css/base.css lib/css/bars.css lib/css/lists.css lib/css/forms.css lib/css/buttons.css lib/css/chevrons.css lib/css/counts.css lib/css/segmented-controllers.css lib/css/popovers.css lib/css/modals.css lib/css/sliders.css lib/css/toggles.css lib/css/push.css > ./dist/ratchet.tmp.css
- cat lib/js/*.js > ./dist/ratchet.tmp.js
- @echo "/**\n * ==================================\n * Ratchet v1.0.2\n * Licensed under The MIT License\n * http://opensource.org/licenses/MIT\n * ==================================\n */\n" > ./dist/copywrite.txt
- cat ./dist/copywrite.txt ./dist/ratchet.tmp.js > ./dist/ratchet.js
- cat ./dist/copywrite.txt ./dist/ratchet.tmp.css > ./dist/ratchet.css
- rm ./dist/ratchet.tmp.css ./dist/ratchet.tmp.js ./dist/copywrite.txt
-
-
-#
-# START DOCS SERVER
-#
-
-docs:
- open http://localhost:8000/docs
- python -m SimpleHTTPServer
-
-
-#
-# BUILDS GH-PAGES BRANCH
-#
-
-gh-pages: build
- mkdir -p gh-pages
- cp -r docs/ gh-pages/
- cp -r lib gh-pages/lib
- cp -r dist gh-pages/dist
- cd gh-pages
- cp -r dist ratchet
- zip -r ratchet.zip ratchet
- rm -rf ratchet
- cd ..
- git fetch origin
- git checkout gh-pages
- sed -i -e 's/\.\.\//\.\//g' gh-pages/index.html
- sed -i -e 's/\.\.\//\.\//g' gh-pages/one.html
- sed -i -e 's/\.\.\//\.\//g' gh-pages/two.html
- rm -rf ./css
- rm -rf ./img
- rm -rf ./js
- rm -rf ./lib
- rm -rf ./dist
- mv gh-pages/* .
- rm -rf ./*-e
- rm -rf gh-pages
-
-#
-# START DEMO SERVER
-#
-
-demo: build_demo
- open http://localhost:8000/test/app
- python -m SimpleHTTPServer
-
-#
-# START TEST SERVER
-#
-
-test:
- open http://localhost:8000/test
- python -m SimpleHTTPServer
-
-
-.PHONY: docs demo test gh-pages \ No newline at end of file
diff --git a/README.md b/README.md
index 36c0f89..2dcbfe9 100644
--- a/README.md
+++ b/README.md
@@ -1,22 +1,34 @@
-# Ratchet v1.0.2
+# Ratchet v2.0 [![devDependencies](https://david-dm.org/maker/ratchet/dev-status.png?theme=shields.io)](https://david-dm.org/maker/ratchet#info=devDependencies)
-Prototype mobile apps with simple HTML, CSS and JS components.
+Build mobile apps with simple HTML, CSS, and JS components.
## Getting Started
-- Clone the repo `git clone git@github.com:maker/ratchet.git` or just [download](http://maker.github.com/ratchet/ratchet.zip) the bundled CSS and JS
-- [Read the docs](http://maker.github.com/ratchet) to learn about the components and how to get a prototype on your phone
+- Clone the repo with `git clone https://github.com/twbs/ratchet.git` or just [download](http://github.com/twbs/ratchet/archive/v2.0.0.zip) the bundled CSS and JS
+- [Read the docs](http://goratchet.com) to learn about the components and how to get a prototype on your phone
- We will have example apps to check out very soon!
-Take note that our master branch is our active, unstable development branch and that if you're looking to download a stable copy of the repo, check the [tagged downloads](https://github.com/maker/ratchet/tags).
+Take note that our master branch is our active, unstable development branch and that if you're looking to download a stable copy of the repo, check the [tagged downloads](https://github.com/twbs/ratchet/tags).
+
+## Documentation
+
+Ratchet's documentation is built with [Jekyll](http://jekyllrb.com) and publicly hosted on GitHub Pages at <http://goratchet.com>. The docs may also be run locally.
+
+### Running documentation locally
+
+1. If necessary, [install Jekyll](http://jekyllrb.com/docs/installation).
+2. From the root `/ratchet/docs` directory, run `jekyll serve` in the command line.
+3. Open <http://localhost:4000> in your browser, and boom!
+
+Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com/docs/home/).
## Support
-Ratchet was developed to support iOS 5+ for iPhone. Questions or discussions about Ratchet should happen in the [Google group](https://groups.google.com/forum/#!forum/goratchet) or hit us up on Twitter [@goRatchet](http://www.twitter.com/goratchet).
+Questions or discussions about Ratchet should happen in the [Google group](https://groups.google.com/forum/#!forum/goratchet) or hit us up on Twitter [@GoRatchet](https://twitter.com/goratchet).
## Reporting bugs & contributing
-Please file a GitHub issue to [report a bug](http://github.com/maker/ratchet/issues). When reporting a bug, be sure to follow the [contributor guidelines](https://github.com/maker/ratchet/blob/master/CONTRIBUTING.md).
+Please file a GitHub issue to [report a bug](https://github.com/twbs/ratchet/issues). When reporting a bug, be sure to follow the [contributor guidelines](https://github.com/twbs/ratchet/blob/master/CONTRIBUTING.md).
## Troubleshooting
@@ -29,22 +41,16 @@ A small list of "gotchas" are provided below for designers and developers starti
- Ratchet uses XHR requests to fetch additional pages inside the application. Due to security concerns, modern browsers prevent XHR requests when opening files locally (aka using the file:/// protocol); consequently, Ratchet does not work when opened directly as a file.
- A common solution to this is to simply serve the files from a local server. One convenient way to achieve this is to run ```python -m SimpleHTTPServer <port>``` to serve up the files in the current directory to ```http://localhost:<port>```
-## Authors
-
-Dave Gamache
-
-- http://twitter.com/dhg
-- http://github.com/dhg
+## Maintainer
Connor Sears
-- http://twitter.com/connors
-- http://github.com/connors
+- <https://twitter.com/connors>
+- <https://github.com/connors>
+
-Jacob Thornton
-- http://twitter.com/fat
-- http://github.com/fat
+Created by Connor Sears, Dave Gamache, and Jacob Thornton
## License
diff --git a/_config.yml b/_config.yml
new file mode 100644
index 0000000..fa6400f
--- /dev/null
+++ b/_config.yml
@@ -0,0 +1,12 @@
+name: Ratchet
+authors: Connor Sears
+description: Prototype mobile apps with simple HTML, CSS, and JS components.
+
+pygments: true
+permalink: pretty
+
+# Server
+source: ./docs
+port: 4000
+baseurl: /
+url: http://localhost:4000
diff --git a/bower.json b/bower.json
new file mode 100644
index 0000000..72540b4
--- /dev/null
+++ b/bower.json
@@ -0,0 +1,16 @@
+{
+ "name": "ratchet",
+ "version": "2.0.0",
+ "main": [
+ "./dist/ratchet.css",
+ "./dist/ratchet.js"
+ ],
+ "ignore": [
+ "_config.yml",
+ "CNAME",
+ "CONTRIBUTING.md",
+ "docs-assets"
+ ],
+ "dependencies": {
+ }
+}
diff --git a/component.json b/component.json
deleted file mode 100644
index aa8637c..0000000
--- a/component.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "ratchet",
- "version": "1.0.2",
- "main": ["./dist/ratchet.js", "./dist/ratchet.css"]
-}
diff --git a/dist/ratchet-theme-android.css b/dist/ratchet-theme-android.css
new file mode 100644
index 0000000..571b459
--- /dev/null
+++ b/dist/ratchet-theme-android.css
@@ -0,0 +1,578 @@
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
+ */
+
+body {
+ font-family: "Roboto", sans-serif;
+ font-size: 18px;
+ line-height: 22px;
+ color: #222222;
+}
+
+a {
+ color: #33b5e5;
+}
+a:active {
+ color: #1a9bcb;
+}
+
+.content {
+ background-color: #f2f2f2;
+}
+
+.bar-nav ~ .content {
+ padding-top: 50px;
+}
+
+.bar-tab ~ .content {
+ padding-bottom: 50px;
+}
+
+.bar-header-secondary ~ .content {
+ padding-top: 100px;
+}
+
+.btn {
+ padding: 8px 15px;
+ font-size: 14px;
+ color: #222222;
+ background-color: #cecece;
+ border: 0;
+ border-radius: 2px;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
+}
+.btn:active, .btn.active {
+ color: #222222;
+ border: 0;
+ background-color: #999999;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+}
+
+.btn-primary {
+ color: #fff;
+ border: 0;
+ background-color: #33b5e5;
+}
+.btn-primary:active, .btn-primary.active {
+ color: #fff;
+ border: 0;
+ background-color: #1a9bcb;
+}
+
+.btn-positive {
+ color: #fff;
+ border: 0;
+ background-color: #99cc00;
+}
+.btn-positive:active, .btn-positive.active {
+ color: #fff;
+ border: 0;
+ background-color: #739900;
+}
+
+.btn-negative {
+ color: #fff;
+ border: 0;
+ background-color: #ff4444;
+}
+.btn-negative:active, .btn-negative.active {
+ color: #fff;
+ border: 0;
+ background-color: #ff1111;
+}
+
+.btn-outlined {
+ border: 1px solid #999999;
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-outlined.btn-primary {
+ border: 1px solid #33b5e5;
+ color: #33b5e5;
+}
+.btn-outlined.btn-primary:active {
+ border: 1px solid #33b5e5;
+ background-color: #33b5e5;
+}
+.btn-outlined.btn-positive {
+ border: 1px solid #99cc00;
+ color: #99cc00;
+}
+.btn-outlined.btn-positive:active {
+ border: 1px solid #99cc00;
+ background-color: #99cc00;
+}
+.btn-outlined.btn-negative {
+ border: 1px solid #ff4444;
+ color: #ff4444;
+}
+.btn-outlined.btn-negative:active {
+ border: 1px solid #ff4444;
+ background-color: #ff4444;
+}
+.btn-outlined:active {
+ border: 1px solid #999999;
+ background-color: #999999;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
+ color: #fff;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.btn-link {
+ color: #33b5e5;
+ background-color: transparent;
+ border: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-link:active, .btn-link.active {
+ color: #1a9bcb;
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.btn-block {
+ padding: 15px 0;
+ font-size: 18px;
+}
+
+.btn .badge {
+ background-color: rgba(0, 0, 0, 0.15);
+}
+.btn .badge.badge-inverted {
+ background-color: transparent;
+}
+.btn:active .badge {
+ color: #fff;
+}
+
+.bar {
+ height: 50px;
+ background-color: #dddddd;
+ border-bottom: 1px solid #b1b1b1;
+ -webkit-box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
+ box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
+}
+.bar.bar-header-secondary {
+ top: 50px;
+}
+.bar.bar-footer-secondary {
+ bottom: 50px;
+}
+.bar.bar-footer-secondary-tab {
+ bottom: 50px;
+}
+.bar .bar-footer,
+.bar .bar-footer-secondary,
+.bar .bar-footer-secondary-tab {
+ border-bottom: 0;
+ border-top: 1px solid #b1b1b1;
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
+ box-shadow: inset 0 -2px 0 #33b5e5;
+}
+
+.bar-tab {
+ top: 0;
+ bottom: auto;
+ height: 50px;
+ border-top: 0;
+}
+.bar-tab .tab-item {
+ color: #929292;
+}
+.bar-tab .tab-item.active {
+ color: #33b5e5;
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
+ box-shadow: inset 0 -2px 0 #33b5e5;
+}
+.bar-tab .tab-item:active {
+ color: #929292;
+ background-color: #78c6e3;
+}
+.bar-tab .tab-item .icon {
+ top: 3px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+
+.title {
+ position: static;
+ padding-left: 15px;
+ font-size: 18px;
+ line-height: 49px;
+ text-align: left;
+}
+
+.bar .btn {
+ top: 7px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+.bar .btn-link {
+ top: 0;
+ padding: 0;
+ color: #33b5e5;
+ font-size: 18px;
+ line-height: 49px;
+}
+.bar .btn-link:active, .bar .btn-link.active {
+ color: #1a9bcb;
+}
+.bar .btn-link .icon {
+ top: 2px;
+ padding: 0;
+}
+.bar .btn-block {
+ top: 4px;
+}
+
+.bar .segmented-control {
+ top: 7px;
+}
+
+.bar .icon {
+ padding-top: 13px;
+ padding-bottom: 13px;
+}
+.bar .title .icon {
+ padding: 0;
+}
+.bar .title .icon.icon-caret {
+ top: 10px;
+ color: #777;
+}
+
+.bar input[type="search"] {
+ height: 35px;
+}
+
+.badge.badge-inverted {
+ color: #999999;
+ background-color: transparent;
+}
+
+.badge-primary {
+ color: #fff;
+ background-color: #33b5e5;
+}
+.badge-primary.badge-inverted {
+ color: #33b5e5;
+ background-color: transparent;
+}
+
+.badge-positive {
+ color: #fff;
+ background-color: #99cc00;
+}
+.badge-positive.badge-inverted {
+ color: #99cc00;
+ background-color: transparent;
+}
+
+.badge-negative {
+ color: #fff;
+ background-color: #ff4444;
+}
+.badge-negative.badge-inverted {
+ color: #ff4444;
+ background-color: transparent;
+}
+
+.card {
+ border-color: #d9d9d9;
+ border-radius: 2px;
+ background-color: transparent;
+}
+
+.table-view {
+ background-color: transparent;
+}
+.table-view .table-view-cell {
+ border-bottom: 1px solid #d9d9d9;
+}
+.table-view .table-view-cell:last-child {
+ background-image: none;
+}
+.table-view .table-view-cell > a:not(.btn):active {
+ background-color: #e0e0e0;
+}
+.table-view .table-view-cell > a:not(.btn):active .icon {
+ color: #fff;
+}
+.table-view .table-view-divider {
+ padding-top: 25px;
+ font-size: 12px;
+ font-weight: bold;
+ text-transform: uppercase;
+ border-top: 0;
+ border-bottom: 2px solid #a9a9a9;
+ background-color: transparent;
+}
+
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"],
+.input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+}
+
+input[type="search"] {
+ border-radius: 2px;
+}
+
+select,
+textarea,
+.input-group {
+ height: auto;
+}
+
+.input-group {
+ padding: 0;
+ border: 0;
+}
+
+.input-group input {
+ border: 0;
+ border-bottom: 1px solid #d9d9d9;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.input-group input:last-child {
+ background-image: none;
+}
+
+.input-row {
+ border-bottom: 1px solid #d9d9d9;
+}
+
+.input-row label + input {
+ background-image: none;
+ border-bottom: 0;
+}
+
+.segmented-control {
+ font-size: 14px;
+ background-color: #cecece;
+ border: 0;
+ border-radius: 2px;
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
+}
+.segmented-control .control-item {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ color: #222222;
+ border-left: 1px solid #999;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+}
+.segmented-control .control-item:first-child {
+ border-left-width: 0;
+}
+.segmented-control .control-item:active, .segmented-control .control-item.active {
+ background-color: #999999;
+}
+
+.segmented-control-primary {
+ border: 0;
+}
+.segmented-control-primary .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.segmented-control-primary .control-item:active, .segmented-control-primary .control-item.active {
+ color: #fff;
+ background-color: #33b5e5;
+}
+
+.segmented-control-positive {
+ border: 0;
+}
+.segmented-control-positive .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.segmented-control-positive .control-item:active, .segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #99cc00;
+}
+
+.segmented-control-negative {
+ border: 0;
+}
+.segmented-control-negative .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.segmented-control-negative .control-item:active, .segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #ff4444;
+}
+
+.popover {
+ top: 47px;
+ left: 15px;
+ width: 200px;
+ margin-left: 0;
+ border: 1px solid #9b9b9b;
+ border-radius: 0;
+ -webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .1s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .1s ease-in-out, opacity .2s ease-in-out;
+ -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
+ -webkit-transform: scale(0.75);
+ -ms-transform: scale(0.75);
+ transform: scale(0.75);
+}
+.popover:before {
+ display: none;
+}
+.popover.visible {
+ -webkit-transform: scale(1);
+ -ms-transform: scale(1);
+ transform: scale(1);
+}
+
+.backdrop {
+ background-color: none;
+}
+
+.popover .bar {
+ border-radius: 0;
+}
+.popover .bar-nav ~ .table-view {
+ padding-top: 50px;
+}
+
+.popover .table-view {
+ border-radius: 12px;
+}
+
+.toggle {
+ width: 104px;
+ height: 28px;
+ border: 2px solid #d7d7d7;
+ border-radius: 0;
+ background-color: #d7d7d7;
+}
+.toggle .toggle-handle {
+ top: 0;
+ left: 0;
+ width: 50px;
+ height: 24px;
+ border: 1px solid #b5b5b5;
+ border-radius: 2px;
+ background-color: #bebebe;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
+}
+.toggle:before {
+ top: 1px;
+ right: auto;
+ left: 11px;
+ z-index: 3;
+ color: #fff;
+}
+.toggle.active {
+ border: 2px solid #d7d7d7;
+ background-color: #d7d7d7;
+}
+.toggle.active .toggle-handle {
+ margin-right: 2px;
+ background-color: #33b5e5;
+ border-color: #33b5e5;
+ -webkit-transform: translate3d(50px, 0, 0);
+ -ms-transform: translate3d(50px, 0, 0);
+ transform: translate3d(50px, 0, 0);
+}
+.toggle.active:before {
+ left: auto;
+ right: 14px;
+ color: #fff;
+ content: "On";
+}
+
+.push-left:after {
+ content: '\e803';
+}
+
+.push-right:after {
+ content: '\e806';
+}
+
+.icon-caret:before {
+ content: '\e800';
+}
+
+.icon-down:before,
+.icon-down-nav:before {
+ content: '\e801';
+}
+
+.icon-download:before {
+ content: '\e802';
+}
+
+.icon-left:before,
+.icon-left-nav:before {
+ content: '\e803';
+}
+
+.icon-more-vertical:before {
+ content: '\e804';
+}
+
+.icon-more:before {
+ content: '\e805';
+}
+
+.icon-right:before,
+.icon-right-nav:before {
+ content: '\e806';
+}
+
+.icon-search:before {
+ content: '\e807';
+}
+
+.icon-share:before {
+ content: '\e808';
+}
+
+.icon-up:before,
+.icon-up-nav:before {
+ content: '\e809';
+}
diff --git a/dist/ratchet-theme-ios.css b/dist/ratchet-theme-ios.css
new file mode 100644
index 0000000..71893b7
--- /dev/null
+++ b/dist/ratchet-theme-ios.css
@@ -0,0 +1,477 @@
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
+ */
+
+a {
+ color: #007aff;
+}
+a:active {
+ color: #0062cc;
+}
+
+.content {
+ background-color: #efeff4;
+}
+
+.h5, h5,
+.h6, h6,
+p {
+ color: #8f8f94;
+}
+
+.h5, h5,
+.h6, h6 {
+ font-weight: normal;
+ text-transform: uppercase;
+}
+
+.btn {
+ border: 1px solid #929292;
+ color: #929292;
+ background-color: rgba(247, 247, 247, 0.98);
+ -webkit-transition: all;
+ -moz-transition: all;
+ transition: all;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+ -webkit-transition-timing-function: linear;
+ -moz-transition-timing-function: linear;
+ transition-timing-function: linear;
+}
+.btn:active, .btn.active {
+ color: #fff;
+ background-color: #929292;
+}
+
+.btn-primary {
+ color: #fff;
+ border: 1px solid #007aff;
+ background-color: #007aff;
+}
+.btn-primary:active, .btn-primary.active {
+ border: 1px solid #0062cc;
+ background-color: #0062cc;
+}
+
+.btn-positive {
+ color: #fff;
+ border: 1px solid #4cd964;
+ background-color: #4cd964;
+}
+.btn-positive:active, .btn-positive.active {
+ border: 1px solid #2ac845;
+ background-color: #2ac845;
+}
+
+.btn-negative {
+ color: #fff;
+ border: 1px solid #dd524d;
+ background-color: #dd524d;
+}
+.btn-negative:active, .btn-negative.active {
+ border: 1px solid #cf2d28;
+ background-color: #cf2d28;
+}
+
+.btn-outlined {
+ background-color: transparent;
+}
+.btn-outlined.btn-primary {
+ color: #007aff;
+}
+.btn-outlined.btn-positive {
+ color: #4cd964;
+}
+.btn-outlined.btn-negative {
+ color: #dd524d;
+}
+.btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
+ color: #fff;
+}
+
+.btn-link {
+ color: #007aff;
+ background-color: transparent;
+ border: none;
+}
+.btn-link:active, .btn-link.active {
+ color: #0062cc;
+ background-color: transparent;
+}
+
+.btn .badge {
+ background-color: rgba(0, 0, 0, 0.15);
+}
+.btn .badge.badge-inverted {
+ background-color: transparent;
+}
+.btn:active .badge {
+ color: #fff;
+}
+
+.bar {
+ border-bottom: 0;
+ background-color: rgba(247, 247, 247, 0.98);
+ -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.85);
+}
+.bar.bar-header-secondary {
+ top: 44px;
+}
+.bar.bar-footer-secondary {
+ bottom: 44px;
+}
+.bar.bar-footer-secondary-tab {
+ bottom: 50px;
+}
+.bar .bar-footer,
+.bar .bar-footer-secondary,
+.bar .bar-footer-secondary-tab {
+ border-top: 0;
+ -webkit-box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+}
+
+.bar-tab {
+ border-top: 0;
+ -webkit-box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+}
+
+.tab-item {
+ color: #929292;
+}
+.tab-item.active, .tab-item:active {
+ color: #007aff;
+}
+
+.bar-nav .btn-link {
+ color: #007aff;
+}
+.bar-nav .btn-link:active {
+ color: #007aff;
+ opacity: .6;
+}
+
+.badge.badge-inverted {
+ color: #929292;
+ background-color: transparent;
+}
+
+.badge-primary {
+ color: #fff;
+ background-color: #007aff;
+}
+.badge-primary.badge-inverted {
+ color: #007aff;
+ background-color: transparent;
+}
+
+.badge-positive {
+ color: #fff;
+ background-color: #4cd964;
+}
+.badge-positive.badge-inverted {
+ color: #4cd964;
+ background-color: transparent;
+}
+
+.badge-negative {
+ color: #fff;
+ background-color: #dd524d;
+}
+.badge-negative.badge-inverted {
+ color: #dd524d;
+ background-color: transparent;
+}
+
+.card .table-view {
+ background-image: none;
+}
+
+.card .table-view-cell:last-child {
+ background-image: none;
+}
+
+.table-view {
+ border-top: 0;
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+.table-view .table-view-cell {
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+.table-view .table-view-cell:last-child {
+ background-image: none;
+}
+.table-view .table-view-divider {
+ border-top: 0;
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"],
+.input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+}
+
+input[type="search"] {
+ height: 34px;
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.1);
+ border: 0;
+ border-radius: 6px;
+}
+
+input[type="search"]:focus {
+ text-align: left;
+}
+
+select,
+textarea,
+.input-group {
+ height: auto;
+}
+
+.input-group {
+ padding: 0;
+ border: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+
+.input-group input {
+ border: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+
+.input-group input:last-child {
+ background-image: none;
+}
+
+.input-row {
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+
+.input-row:last-child,
+.input-row label + input {
+ background-image: none;
+}
+
+.segmented-control {
+ background-color: transparent;
+ border: 1px solid #929292;
+}
+.segmented-control .control-item {
+ color: #929292;
+ border-color: #929292;
+ -webkit-transition: background-color 0.1s linear;
+ -moz-transition: background-color 0.1s linear;
+ transition: background-color 0.1s linear;
+}
+.segmented-control .control-item:active {
+ background-color: #ebebeb;
+}
+.segmented-control .control-item.active {
+ color: #fff;
+ background-color: #929292;
+}
+
+.segmented-control-primary {
+ border: 1px solid #007aff;
+}
+.segmented-control-primary .control-item {
+ color: #007aff;
+ border-color: inherit;
+}
+.segmented-control-primary .control-item:active {
+ background-color: #b3d7ff;
+}
+.segmented-control-primary .control-item.active {
+ color: #fff;
+ background-color: #007aff;
+}
+
+.segmented-control-positive {
+ border: 1px solid #4cd964;
+}
+.segmented-control-positive .control-item {
+ color: #4cd964;
+ border-color: inherit;
+}
+.segmented-control-positive .control-item:active {
+ background-color: #dff8e3;
+}
+.segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #4cd964;
+}
+
+.segmented-control-negative {
+ border: 1px solid #dd524d;
+}
+.segmented-control-negative .control-item {
+ color: #dd524d;
+ border-color: inherit;
+}
+.segmented-control-negative .control-item:active {
+ background-color: #fae4e3;
+}
+.segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #dd524d;
+}
+
+.popover {
+ border-radius: 12px;
+ -webkit-transition: -webkit-transform .2s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .2s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .2s ease-in-out, opacity .2s ease-in-out;
+ -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+ -moz-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+ transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+}
+.popover:before {
+ border-bottom: 15px solid rgba(247, 247, 247, 0.98);
+}
+
+.popover .bar {
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.popover .bar-nav {
+ border-bottom: 1px solid rgba(0, 0, 0, 0.15);
+}
+
+.popover .table-view {
+ border-radius: 12px;
+ background-image: none;
+}
+
+.modal {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+.modal.active {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+
+.toggle {
+ width: 47px;
+ border: 2px solid #e6e6e6;
+ -webkit-box-shadow: inset 0 0 0 0 #e1e1e1;
+ box-shadow: inset 0 0 0 0 #e1e1e1;
+ -webkit-transition-property: box-shadow, border;
+ -moz-transition-property: box-shadow, border;
+ transition-property: box-shadow, border;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+.toggle .toggle-handle {
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ -webkit-transition-property: -webkit-transform, border, width;
+ -moz-transition-property: -moz-transform, border, width;
+ transition-property: transform, border, width;
+ -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08);
+ box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08);
+}
+.toggle:before {
+ display: none;
+}
+.toggle.active {
+ border: 2px solid #4cd964;
+ background-color: transparent;
+ -webkit-box-shadow: inset 0 0 0 13px #4cd964;
+ box-shadow: inset 0 0 0 13px #4cd964;
+}
+.toggle.active .toggle-handle {
+ -webkit-transform: translate3d(17px, 0, 0);
+ -ms-transform: translate3d(17px, 0, 0);
+ transform: translate3d(17px, 0, 0);
+}
+.toggle.active .toggle-handle {
+ border-color: #4cd964;
+}
+
+.content.fade {
+ -webkit-transition: opacity 0.2s ease-in-out;
+ -moz-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+}
+.content.sliding {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+.content.sliding.sliding-in, .content.sliding.right:not([class*="sliding-in"]) {
+ -webkit-animation-name: fadeOverlay;
+ -moz-animation-name: fadeOverlay;
+ animation-name: fadeOverlay;
+ -webkit-animation-duration: 0.4s;
+ -moz-animation-duration: 0.4s;
+ animation-duration: 0.4s;
+}
+.content.sliding.right:not([class*="sliding-in"]) {
+ -webkit-animation-direction: reverse;
+ -moz-animation-direction: reverse;
+ animation-direction: reverse;
+}
+.content.sliding.left {
+ -webkit-transform: translate3d(-20%, 0, 0);
+ -ms-transform: translate3d(-20%, 0, 0);
+ transform: translate3d(-20%, 0, 0);
+}
+
+@-webkit-keyframes fadeOverlay {
+ from {
+ -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0);
+ }
+
+ to {
+ -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1);
+ }
+}
diff --git a/dist/ratchet.css b/dist/ratchet.css
index 93421b8..b83e3bc 100644
--- a/dist/ratchet.css
+++ b/dist/ratchet.css
@@ -1,104 +1,238 @@
-/**
- * ==================================
- * Ratchet v1.0.2
- * Licensed under The MIT License
- * http://opensource.org/licenses/MIT
- * ==================================
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
*/
-/* Hard reset
--------------------------------------------------- */
-
-html,
-body,
-div,
-span,
-iframe,
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-p,
-blockquote,
-pre,
-a,
-abbr,
-acronym,
-address,
-big,
-cite,
-code,
-del,
-dfn,
-em,
-img,
-ins,
-kbd,
-q,
-s,
-samp,
-small,
-strike,
-strong,
-sub,
-sup,
-tt,
-var,
-b,
-u,
-i,
-center,
-dl,
-dt,
-dd,
-ol,
-ul,
-li,
-fieldset,
-form,
-label,
-legend,
-table,
-caption,
-tbody,
-tfoot,
-thead,
-tr,
-th,
-td,
+/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
+html {
+ font-family: sans-serif;
+ -ms-text-size-adjust: 100%;
+ -webkit-text-size-adjust: 100%;
+}
+
+body {
+ margin: 0;
+}
+
article,
aside,
-canvas,
details,
-embed,
-figure,
figcaption,
+figure,
footer,
header,
hgroup,
-menu,
+main,
nav,
-output,
section,
-summary,
-time,
+summary {
+ display: block;
+}
+
audio,
+canvas,
+progress,
video {
- padding: 0;
+ display: inline-block;
+ vertical-align: baseline;
+}
+
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+
+[hidden],
+template {
+ display: none;
+}
+
+a {
+ background: transparent;
+}
+
+a:active,
+a:hover {
+ outline: 0;
+}
+
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+b,
+strong {
+ font-weight: bold;
+}
+
+dfn {
+ font-style: italic;
+}
+
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+mark {
+ background: #ff0;
+ color: #000;
+}
+
+small {
+ font-size: 80%;
+}
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sup {
+ top: -0.5em;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+img {
+ border: 0;
+}
+
+svg:not(:root) {
+ overflow: hidden;
+}
+
+figure {
+ margin: 1em 40px;
+}
+
+hr {
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+ height: 0;
+}
+
+pre {
+ overflow: auto;
+}
+
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace, monospace;
+ font-size: 1em;
+}
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ color: inherit;
+ font: inherit;
margin: 0;
+}
+
+button {
+ overflow: visible;
+}
+
+button,
+select {
+ text-transform: none;
+}
+
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ -webkit-appearance: button;
+ cursor: pointer;
+}
+
+button[disabled],
+html input[disabled] {
+ cursor: default;
+}
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
border: 0;
+ padding: 0;
}
-/* Prevents iOS text size adjust after orientation change, without disabling (Thanks to @necolas) */
-html {
- -webkit-text-size-adjust: 100%;
- -ms-text-size-adjust: 100%;
+input {
+ line-height: normal;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box;
+ padding: 0;
+}
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+
+input[type="search"] {
+ -webkit-appearance: textfield;
+ -moz-box-sizing: content-box;
+ -webkit-box-sizing: content-box;
+ box-sizing: content-box;
+}
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+fieldset {
+ border: 1px solid #c0c0c0;
+ margin: 0 2px;
+ padding: 0.35em 0.625em 0.75em;
+}
+
+legend {
+ border: 0;
+ padding: 0;
+}
+
+textarea {
+ overflow: auto;
+}
+
+optgroup {
+ font-weight: bold;
+}
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+td,
+th {
+ padding: 0;
}
-/* Base styles
--------------------------------------------------- */
+* {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
body {
position: fixed;
@@ -106,19 +240,22 @@ body {
right: 0;
bottom: 0;
left: 0;
- font: 14px/1.25 "Helvetica Neue", sans-serif;
- color: #222;
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ font-size: 17px;
+ line-height: 21px;
+ color: #000;
background-color: #fff;
}
-/* Universal link styling */
a {
- color: #0882f0;
+ color: #428bca;
text-decoration: none;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Removes the dark touch outlines on links */
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+a:active {
+ color: #3071a9;
}
-/* Wrapper to be used around all content not in .bar-title and .bar-tab */
.content {
position: fixed;
top: 0;
@@ -127,499 +264,558 @@ a {
left: 0;
overflow: auto;
background-color: #fff;
- -webkit-transition-property: top, bottom;
- transition-property: top, bottom;
- -webkit-transition-duration: .2s, .2s;
- transition-duration: .2s, .2s;
- -webkit-transition-timing-function: linear, linear;
- transition-timing-function: linear, linear;
-webkit-overflow-scrolling: touch;
}
-/* Hack to force all relatively and absolutely positioned elements still render while scrolling
- Note: This is a bug for "-webkit-overflow-scrolling: touch" */
.content > * {
- -webkit-transform: translateZ(0px);
- transform: translateZ(0px);
+ -webkit-transform: translateZ(0);
+ -ms-transform: translateZ(0);
+ transform: translateZ(0);
}
-/* Utility wrapper to pad in components like forms, block buttons and segmented-controllers so they're not full-bleed */
-.content-padded {
- padding: 10px;
+.bar-nav ~ .content {
+ padding-top: 44px;
}
-/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
- Note: For these to work, content must come after both bars in the markup */
-.bar-title ~ .content {
- top: 44px;
-}
-.bar-tab ~ .content {
- bottom: 51px;
-}
.bar-header-secondary ~ .content {
- top: 88px;
-}/* General bar styles
--------------------------------------------------- */
+ padding-top: 88px;
+}
-[class*="bar-"] {
- position: fixed;
- right: 0;
- left: 0;
- z-index: 10;
- height: 44px;
- padding: 5px;
- box-sizing: border-box;
+.bar-footer ~ .content {
+ padding-bottom: 44px;
}
-/* Modifier class to dock any bar below .bar-title */
-.bar-header-secondary {
- top: 45px;
+.bar-footer-secondary ~ .content {
+ padding-bottom: 88px;
}
-/* Modifier class to dock any bar to bottom of viewport */
-.bar-footer {
- bottom: 0;
+.bar-tab ~ .content {
+ padding-bottom: 50px;
}
-/* Generic bar for wrapping buttons, segmented controllers, etc. */
-.bar-standard {
- background-color: #f2f2f2;
- background-image: -webkit-linear-gradient(top, #f2f2f2 0, #e5e5e5 100%);
- background-image: linear-gradient(to bottom, #f2f2f2 0, #e5e5e5 100%);
- border-bottom: 1px solid #aaa;
- box-shadow: inset 0 1px 1px -1px #fff;
+.bar-footer-secondary-tab ~ .content {
+ padding-bottom: 94px;
}
-/* Flip border position to top for footer bars */
-.bar-footer.bar-standard,
-.bar-footer-secondary.bar-standard {
- border-top: 1px solid #aaa;
- border-bottom-width: 0;
+.content-padded {
+ margin: 10px;
}
-/* Title bar
--------------------------------------------------- */
+.pull-left {
+ float: left;
+}
-/* Bar docked to top of viewport for showing page title and actions */
-.bar-title {
- top: 0;
- display: -webkit-box;
- display: box;
- background-color: #1eb0e9;
- background-image: -webkit-linear-gradient(top, #1eb0e9 0, #109adc 100%);
- background-image: linear-gradient(to bottom, #1eb0e9 0, #109adc 100%);
- border-bottom: 1px solid #0e5895;
- box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .8);
- -webkit-box-orient: horizontal;
- box-orient: horizontal;
-}
-
-/* Centered text in the .bar-title */
-.bar-title .title {
- position: absolute;
- top: 0;
- left: 0;
- display: block;
- width: 100%;
- font-size: 20px;
- font-weight: bold;
- line-height: 44px;
- color: #fff;
- text-align: center;
- text-shadow: 0 -1px rgba(0, 0, 0, .5);
- white-space: nowrap;
+.pull-right {
+ float: right;
}
-.bar-title > a:not([class*="button"]) {
- display: block;
- width: 100%;
- height: 100%;
+.clearfix:before, .clearfix:after {
+ content: " ";
+ display: table;
+}
+.clearfix:after {
+ clear: both;
}
-/* Retain specified title color */
-.bar-title .title a {
- color: inherit;
+h1, h2, h3, h4, h5, h6 {
+ margin-top: 0;
+ margin-bottom: 10px;
+ line-height: 1;
}
-/* Tab bar
--------------------------------------------------- */
+h1, .h1 {
+ font-size: 36px;
+}
-/* Bar docked to bottom used for primary app navigation */
-.bar-tab {
- bottom: 0;
- height: 50px;
- padding: 0;
- background-color: #393939;
- background-image: -webkit-linear-gradient(top, #393939 0, #2b2b2b 100%);
- background-image: linear-gradient(to bottom, #393939 0, #2b2b2b 100%);
- border-top: 1px solid #000;
- border-bottom-width: 0;
- box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .6);
-}
-
-/* Wrapper for individual tab */
-.tab-inner {
- display: -webkit-box;
- display: box;
- height: 100%;
- list-style: none;
- -webkit-box-orient: horizontal;
- box-orient: horizontal;
+h2, .h2 {
+ font-size: 30px;
}
-/* Navigational tab */
-.tab-item {
- height: 100%;
- padding-top: 9px;
- text-align: center;
- box-sizing: border-box;
- -webkit-box-flex: 1;
- box-flex: 1;
+h3, .h3 {
+ font-size: 24px;
}
-/* Active state for tab */
-.tab-item.active {
- box-shadow: inset 0 0 20px rgba(0, 0, 0, .5);
+h4, .h4 {
+ font-size: 18px;
}
-/* Icon for tab */
-.tab-icon {
- display: block;
- height: 18px;
- margin: 0 auto;
+h5, .h5 {
+ font-size: 14px;
+ margin-top: 20px;
}
-/* Label for tab */
-.tab-label {
- margin-top: 1px;
- font-size: 10px;
- font-weight: bold;
- color: #fff;
- text-shadow: 0 1px rgba(0, 0, 0, .3);
+h6, .h6 {
+ font-size: 12px;
+ margin-top: 20px;
}
-/* Buttons in title bars
--------------------------------------------------- */
+p {
+ margin-top: 0;
+ margin-bottom: 10px;
+ font-size: 14px;
+ color: #777;
+}
-/* Generic style for all buttons in .bar-title */
-.bar-title [class*="button"] {
+.btn {
position: relative;
- z-index: 10; /* Places buttons over full width title */
+ display: inline-block;
+ padding: 6px 8px 7px;
+ margin-bottom: 0;
font-size: 12px;
- line-height: 23px;
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
- background-color: #1eb0e9;
- background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%);
- background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%);
- border: 1px solid #0e5895;
- box-shadow: 0 1px rgba(255, 255, 255, .25);
- -webkit-box-flex: 0;
- box-flex: 0;
-}
-
-
-/* Hacky way to right align buttons outside of flex-box system
- Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */
-.bar-title .title + [class*="button"]:last-child,
-.bar-title .button + [class*="button"]:last-child,
-.bar-title [class*="button"].pull-right {
- position: absolute;
- top: 5px;
- right: 5px;
+ font-weight: 400;
+ line-height: 1;
+ color: #333;
+ text-align: center;
+ vertical-align: top;
+ cursor: pointer;
+ background-color: white;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+}
+.btn:active, .btn.active {
+ color: inherit;
+ background-color: #ccc;
+}
+.btn:disabled, .btn.disabled {
+ opacity: .6;
}
-/* Override standard button active states */
-.bar-title .button:active {
+.btn-primary {
color: #fff;
- background-color: #0876b1;
+ border: 1px solid #428bca;
+ background-color: #428bca;
}
-
-/* Directional buttons in title bars (thanks to @GregorAdams for solution - http://cssnerd.com/2011/11/30/the-best-pure-css3-ios-style-arrow-back-button/)
--------------------------------------------------- */
-
-/* Add relative positioning so :before content is positioned properly */
-.bar-title .button-prev,
-.bar-title .button-next {
- position: relative;
+.btn-primary:active, .btn-primary.active {
+ color: #fff;
+ border: 1px solid #3071a9;
+ background-color: #3071a9;
}
-/* Prev/next button base styles */
-.bar-title .button-prev {
- margin-left: 7px; /* Push over to make room for :before content */
- border-left: 0;
- border-bottom-left-radius: 10px 15px;
- border-top-left-radius: 10px 15px;
+.btn-positive {
+ color: #fff;
+ border: 1px solid #5cb85c;
+ background-color: #5cb85c;
}
-.bar-title .button-next {
- margin-right: 7px; /* Push over to make room for :before content */
- border-right: 0;
- border-top-right-radius: 10px 15px;
- border-bottom-right-radius: 10px 15px;
+.btn-positive:active, .btn-positive.active {
+ color: #fff;
+ border: 1px solid #449d44;
+ background-color: #449d44;
}
-/* Pointed part of directional button */
-.bar-title .button-prev:before,
-.bar-title .button-next:before {
- position: absolute;
- top: 2px;
- width: 27px;
- height: 27px;
- border-radius: 30px 100px 2px 40px / 2px 40px 30px 100px;
- content: '';
- box-shadow: inset 1px 0 #0e5895, inset 0 1px #0e5895;
- -webkit-mask-image: -webkit-gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent));
- mask-image: gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent));
-}
-.bar-title .button-prev:before {
- left: -5px;
- background-image: -webkit-gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9));
- background-image: gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9));
- border-left: 1.5px solid rgba(255, 255, 255, .25);
- -webkit-transform: rotate(-45deg) skew(-10deg, -10deg);
- transform: rotate(-45deg) skew(-10deg, -10deg);
-}
-.bar-title .button-next:before {
- right: -5px;
- background-image: -webkit-gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6));
- background-image: gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6));
- border-top: 1.5px solid rgba(255, 255, 255, .25);
- -webkit-transform: rotate(135deg) skew(-10deg, -10deg);
- transform: rotate(135deg) skew(-10deg, -10deg);
-}
-
-/* Active states for the directional buttons */
-.bar-title .button-prev:active,
-.bar-title .button-next:active,
-.bar-title .button-prev:active:before,
-.bar-title .button-next:active:before {
+.btn-negative {
color: #fff;
- background-color: #0876b1;
- background-image: none;
+ border: 1px solid #d9534f;
+ background-color: #d9534f;
}
-.bar-title .button-prev:active:before,
-.bar-title .button-next:active:before {
- content: '';
+.btn-negative:active, .btn-negative.active {
+ color: #fff;
+ border: 1px solid #c9302c;
+ background-color: #c9302c;
+}
+
+.btn-outlined {
+ background-color: transparent;
+}
+.btn-outlined.btn-primary {
+ color: #428bca;
}
-.bar-title .button-prev:active:before {
- box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2);
+.btn-outlined.btn-positive {
+ color: #5cb85c;
}
-.bar-title .button-next:active:before {
- box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .2);
+.btn-outlined.btn-negative {
+ color: #d9534f;
+}
+.btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
+ color: #fff;
}
-/* Block buttons in any bar
--------------------------------------------------- */
+.btn-link {
+ padding-top: 6px;
+ padding-bottom: 6px;
+ color: #428bca;
+ background-color: transparent;
+ border: 0;
+}
+.btn-link:active, .btn-link.active {
+ color: #3071a9;
+ background-color: transparent;
+}
-/* Add proper padding and replace buttons normal dropshadow with a shine from bar */
-[class*="bar"] .button-block {
- padding: 7px 0;
- margin-bottom: 0;
- box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px rgba(255, 255, 255, .8);
+.btn-block {
+ display: block;
+ padding: 15px 0;
+ margin-bottom: 10px;
+ font-size: 18px;
}
-/* Override standard padding changes for .button-blocks */
-[class*="bar"] .button-block:active {
- padding: 7px 0;
+input[type="submit"],
+input[type="reset"],
+input[type="button"] {
+ width: 100%;
}
-/* Segmented controller in any bar
--------------------------------------------------- */
+.btn .badge {
+ font-size: 12px;
+ margin: -2px -4px -2px 4px;
+ background-color: rgba(0, 0, 0, 0.15);
+}
-/* Remove standard segmented bottom margin */
-[class*="bar-"] .segmented-controller {
- margin-bottom: 0;
+.btn .badge-inverted,
+.btn:active .badge-inverted {
+ background-color: transparent;
}
-/* Add margins between segmented controllers and buttons */
-[class*="bar-"] .segmented-controller + [class*="button"],
-[class*="bar-"] [class*="button"] + .segmented-controller {
- margin-left: 5px;
+.btn-primary:active .badge-inverted,
+.btn-positive:active .badge-inverted,
+.btn-negative:active .badge-inverted {
+ color: #fff;
}
-/* Segmented controller in a title bar
--------------------------------------------------- */
+.btn-block .badge {
+ position: absolute;
+ right: 0;
+ margin-right: 10px;
+}
-.bar-title .segmented-controller {
- line-height: 18px;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
- background-color: #1eb0e9;
- background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%);
- background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%);
- border: 1px solid #0e5895;
- border-radius: 3px;
- box-shadow: 0 1px rgba(255, 255, 255, .25);
- -webkit-box-flex: 1;
- box-flex: 1;
+.btn .icon {
+ font-size: inherit;
}
-/* Set color for tab border and highlight */
-.bar-title .segmented-controller li {
- border-left: 1px solid #0e5895;
- box-shadow: inset 1px 0 rgba(255, 255, 255, .25);
+.bar {
+ position: fixed;
+ right: 0;
+ left: 0;
+ z-index: 10;
+ height: 44px;
+ padding-right: 10px;
+ padding-left: 10px;
+ border-bottom: 1px solid #dddddd;
+ background-color: white;
}
-/* Remove inset shadow from first tab or one to the right of the active tab */
-.bar-title .segmented-controller .active + li,
-.bar-title .segmented-controller li:first-child {
- box-shadow: none;
+.bar-header-secondary {
+ top: 44px;
}
-/* Remove left-hand border from first tab */
-.bar-title .segmented-controller li:first-child {
- border-left-width: 0;
+.bar-footer {
+ bottom: 0;
}
-/* Depressed state (active) */
-.bar-title .segmented-controller li.active {
- background-color: #0082c4;
- box-shadow: inset 0 1px 6px rgba(0, 0, 0, .3);
+.bar-footer-secondary {
+ bottom: 44px;
}
-/* Set color of links to white */
-.bar-title .segmented-controller li > a {
- color: #fff;
+.bar-footer-secondary-tab {
+ bottom: 50px;
}
+.bar-footer,
+.bar-footer-secondary,
+.bar-footer-secondary-tab {
+ border-bottom: 0;
+ border-top: 1px solid #dddddd;
+}
-/* Search forms in standard bar
--------------------------------------------------- */
+.bar-nav {
+ top: 0;
+}
-/* Position/size search bar within the bar */
-.bar-standard input[type=search] {
- height: 32px;
- margin: 0;
-}/* Lists
--------------------------------------------------- */
+.title {
+ position: absolute;
+ display: block;
+ width: 100%;
+ padding: 0;
+ margin: 0 -10px;
+ font-size: 17px;
+ font-weight: 500;
+ line-height: 44px;
+ color: #000;
+ text-align: center;
+ white-space: nowrap;
+}
-/* Remove usual bullet styles from list */
-.list {
- margin-bottom: 10px;
- list-style: none;
- background-color: #fff;
+.title a {
+ color: inherit;
}
-/* Pad each list item and add dividers */
-.list li {
+.bar-tab {
+ display: table;
+ bottom: 0;
+ width: 100%;
+ height: 50px;
+ padding: 0;
+ border-top: 1px solid #dddddd;
+ border-bottom: 0;
+ table-layout: fixed;
+}
+.bar-tab .tab-item {
+ display: table-cell;
+ width: 1%;
+ height: 50px;
+ vertical-align: middle;
+ color: #929292;
+ text-align: center;
+}
+.bar-tab .tab-item.active, .bar-tab .tab-item:active {
+ color: #428bca;
+}
+.bar-tab .tab-item .icon {
+ top: 3px;
+ width: 24px;
+ height: 24px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+.bar-tab .tab-item .icon ~ .tab-label {
+ display: block;
+ font-size: 11px;
+}
+
+.bar .btn {
position: relative;
- padding: 11px 60px 11px 10px; /* Given extra right padding to accomodate counts, chevrons or buttons */
- border-bottom: 1px solid rgba(0, 0, 0, .1);
+ top: 7px;
+ z-index: 20;
+ padding: 6px 12px 7px;
+ margin-top: 0;
+ font-weight: 400;
+}
+.bar .btn.pull-right {
+ margin-left: 10px;
+}
+.bar .btn.pull-left {
+ margin-right: 10px;
}
-/* Give top border to first list items */
-.list li:first-child {
- border-top: 1px solid rgba(0, 0, 0, .1);
+.bar .btn-link {
+ top: 0;
+ padding: 0;
+ font-size: 16px;
+ color: #428bca;
+ line-height: 44px;
+ border: 0;
+}
+.bar .btn-link:active, .bar .btn-link.active {
+ color: #3071a9;
+}
+
+.bar .btn-block {
+ top: 6px;
+ padding: 7px 0;
+ margin-bottom: 0;
+ font-size: 16px;
+}
+
+.bar .btn-nav.pull-left {
+ margin-left: -5px;
+}
+.bar .btn-nav.pull-left .icon-left-nav {
+ margin-right: -3px;
+}
+.bar .btn-nav.pull-right {
+ margin-right: -5px;
+}
+.bar .btn-nav.pull-right .icon-right-nav {
+ margin-left: -3px;
}
-/* If a list of links, make sure the child <a> takes up full list item tap area (want to avoid selecting child buttons though) */
-.list li > a:not([class*="button"]) {
+.bar .icon {
position: relative;
- display: block;
- padding: inherit;
- margin: -11px -60px -11px -10px;
- color: inherit;
+ z-index: 20;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ font-size: 24px;
+}
+.bar .btn .icon {
+ top: 3px;
+ padding: 0;
+}
+.bar .title .icon {
+ padding: 0;
+}
+.bar .title .icon.icon-caret {
+ top: 4px;
+ margin-left: -5px;
}
-/* Inset list
--------------------------------------------------- */
+.bar input[type="search"] {
+ height: 29px;
+ margin: 6px 0;
+}
-.list.inset {
- width: auto;
- margin-right: 10px;
- margin-left: 10px;
- border: 1px solid rgba(0, 0, 0, .1);
- border-radius: 6px;
- box-sizing: border-box;
+.bar .segmented-control {
+ top: 7px;
+ margin: 0 auto;
}
-/* Remove border from first/last standard list items to avoid double border at top/bottom of lists */
-.list.inset li:first-child {
- border-top-width: 0;
+.badge {
+ display: inline-block;
+ padding: 2px 9px 3px;
+ font-size: 12px;
+ line-height: 1;
+ color: #333;
+ background-color: rgba(0, 0, 0, 0.15);
+ border-radius: 100px;
}
-.list.inset li:last-child {
- border-bottom-width: 0;
+.badge.badge-inverted {
+ padding: 0 5px 0 0;
+ background-color: transparent;
}
+.badge-primary {
+ color: #fff;
+ background-color: #428bca;
+}
+.badge-primary.badge-inverted {
+ color: #428bca;
+}
-/* List dividers
--------------------------------------------------- */
+.badge-positive {
+ color: #fff;
+ background-color: #5cb85c;
+}
+.badge-positive.badge-inverted {
+ color: #5cb85c;
+}
-.list .list-divider {
- position: relative;
- top: -1px;
- padding-top: 6px;
- padding-bottom: 6px;
- font-size: 12px;
- font-weight: bold;
- line-height: 18px;
- text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
- background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0, #eee 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0, #eee 100%);
- border-top: 1px solid rgba(0, 0, 0, .1);
- border-bottom: 1px solid rgba(0, 0, 0, .1);
- box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4);
+.badge-negative {
+ color: #fff;
+ background-color: #d9534f;
+}
+.badge-negative.badge-inverted {
+ color: #d9534f;
}
-/* Rounding first divider on inset lists and remove border on the top */
-.list.inset .list-divider:first-child {
+.card {
+ overflow: hidden;
+ margin: 10px;
+ background-color: white;
+ border: 1px solid #dddddd;
+ border-radius: 6px;
+}
+
+.card .table-view {
+ margin-bottom: 0;
+ border-top: 0;
+ border-bottom: 0;
+}
+.card .table-view .table-view-divider:first-child {
top: 0;
- border-top-width: 0;
- border-radius: 6px 6px 0 0;
+ border-top-right-radius: 6px;
+ border-top-left-radius: 6px;
+}
+.card .table-view .table-view-divider:last-child {
+ border-bottom-right-radius: 6px;
+ border-bottom-left-radius: 6px;
}
-/* Rounding last divider on inset lists */
-.list.inset .list-divider:last-child {
- border-radius: 0 0 6px 6px;
+.card .table-view-cell:last-child {
+ border-bottom: 0;
}
-/* Right-aligned subcontent in lists (chevrons, buttons, counts and toggles)
--------------------------------------------------- */
-.list .chevron,
-.list [class*="button"],
-.list [class*="count"],
-.list .toggle {
- position: absolute;
- top: 50%;
- right: 10px;
+.table-view {
+ padding-left: 0;
+ margin-top: 0;
+ margin-bottom: 15px;
+ list-style: none;
+ background-color: #fff;
+ border-top: 1px solid #dddddd;
+ border-bottom: 1px solid #dddddd;
}
- /* Position chevrons/counts vertically centered on the right in list items */
-.list .chevron,
-.list [class*="count"] {
- margin-top: -10px; /* Half height of chevron */
+.table-view-cell {
+ position: relative;
+ overflow: hidden;
+ padding: 11px 65px 11px 15px;
+ border-bottom: 1px solid #dddddd;
+}
+.table-view-cell:last-child {
+ border-bottom: 0;
+}
+.table-view-cell > a:not(.btn) {
+ position: relative;
+ display: block;
+ overflow: hidden;
+ padding: inherit;
+ margin: -11px -65px -11px -15px;
+ color: inherit;
+}
+.table-view-cell > a:not(.btn):active {
+ background-color: #eee;
+}
+.table-view-cell p {
+ margin-bottom: 0;
}
-/* Push count over if there's a sibling chevron */
-.list .chevron + [class*="count"] {
- right: 30px;
+.table-view-divider {
+ padding-top: 6px;
+ padding-bottom: 6px;
+ padding-left: 15px;
+ margin-top: -1px;
+ margin-left: 0;
+ color: #999;
+ font-weight: 500;
+ border-top: 1px solid #dddddd;
+ border-bottom: 1px solid #dddddd;
+ background-color: #fafafa;
+}
+
+.table-view .media,
+.table-view .media-body {
+ overflow: hidden;
+ zoom: 1;
}
-/* Position buttons vertically centered on the right in list items */
-.list [class*="button"] {
- left: auto;
- margin-top: -14px; /* Half height of button */
+.table-view .media-object.pull-left {
+ margin-right: 10px;
+}
+.table-view .media-object.pull-right {
+ margin-left: 10px;
}
-.list .toggle {
- margin-top: -15px; /* Half height of toggle */
-}/* Forms
--------------------------------------------------- */
+.table-view-cell > .btn,
+.table-view-cell > .badge,
+.table-view-cell > .toggle,
+.table-view-cell > a > .btn,
+.table-view-cell > a > .badge,
+.table-view-cell > a > .toggle {
+ position: absolute;
+ top: 50%;
+ right: 15px;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+}
+.table-view-cell .push-left > .btn,
+.table-view-cell .push-left > .badge,
+.table-view-cell .push-left > .toggle,
+.table-view-cell .push-right > .btn,
+.table-view-cell .push-right > .badge,
+.table-view-cell .push-right > .toggle,
+.table-view-cell > a .push-left > .btn,
+.table-view-cell > a .push-left > .badge,
+.table-view-cell > a .push-left > .toggle,
+.table-view-cell > a .push-right > .btn,
+.table-view-cell > a .push-right > .badge,
+.table-view-cell > a .push-right > .toggle {
+ right: 35px;
+}
+
+.content > .table-view:first-child {
+ margin-top: 15px;
+}
-/* Force form elements to inherit font styles */
input,
textarea,
button,
select {
- font-family: inherit;
- font-size: inherit;
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ font-size: 17px;
}
-/* Stretch inputs/textareas to full width and add height to maintain a consistent baseline */
select,
textarea,
input[type="text"],
-input[type=search],
+input[type="search"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
@@ -631,359 +827,163 @@ input[type="number"],
input[type="email"],
input[type="url"],
input[type="tel"],
-input[type="color"],
-.input-group {
+input[type="color"] {
width: 100%;
- height: 40px;
- padding: 10px;
- margin-bottom: 10px;
+ height: 35px;
+ padding: 0 15px;
+ margin-bottom: 15px;
+ line-height: 21px;
background-color: #fff;
- border: 1px solid rgba(0, 0, 0, .2);
+ border: 1px solid #dddddd;
border-radius: 3px;
- box-shadow: 0 1px 1px rgba(255, 255, 255, .2), inset 0 1px 1px rgba(0, 0, 0, .1);
+ outline: none;
-webkit-appearance: none;
+}
+
+input[type="search"] {
+ padding: 0 10px;
+ font-size: 16px;
+ border-radius: 20px;
box-sizing: border-box;
- outline: none;
}
-/* Fully round search input */
-input[type=search] {
- height: 34px;
- font-size: 14px;
- border-radius: 30px;
+input[type="search"]:focus {
+ text-align: left;
}
-/* Allow text area's height to grow larger than a normal input */
textarea {
height: auto;
}
-/* Style select button to look like part of the Ratchet's style */
select {
height: auto;
font-size: 14px;
background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0%, #d4d4d4 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0%, #d4d4d4 100%);
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}
-
-/* Input groups (cluster multiple inputs together into a single group)
--------------------------------------------------- */
-
-/* Reset from initial form setup styles */
.input-group {
- width: auto;
- height: auto;
- padding: 0;
+ background-color: #fff;
}
-/* Remove spacing, borders, shadows and rounding since it all belongs on the .input-group not the input */
-.input-group input {
+.input-group input,
+.input-group textarea {
margin-bottom: 0;
background-color: transparent;
- border: 0;
- border-bottom: 1px solid rgba(0, 0, 0, .2);
+ border-top: 0;
+ border-left: 0;
+ border-right: 0;
border-radius: 0;
+ -webkit-box-shadow: none;
box-shadow: none;
}
-/* Remove bottom border on last input to avoid double bottom border */
-.input-group input:last-child {
- border-bottom-width: 0;
-}
-
-/* Input groups with labels
--------------------------------------------------- */
-
-/* To use labels with input groups, wrap a label and an input in an .input-row */
.input-row {
overflow: hidden;
- border-bottom: 1px solid rgba(0, 0, 0, .2);
-}
-
-/* Remove bottom border on last input-row to avoid double bottom border */
-.input-row:last-child {
- border-bottom-width: 0;
+ border-bottom: 1px solid #dddddd;
}
-/* Labels get floated left with a set percentage width */
.input-row label {
float: left;
- width: 25%;
- padding: 11px 10px 9px 13px; /* Optimizing the baseline for mobile. */
- font-weight: bold;
+ width: 35%;
+ padding: 10px 15px;
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ line-height: 1.1;
}
-/* Actual inputs float to right of labels and also have a set percentage */
-.input-row label + input {
+.input-row input {
float: right;
width: 65%;
padding-left: 0;
margin-bottom: 0;
- border-bottom: 0;
-}/* General button styles
--------------------------------------------------- */
+ border: 0;
+}
-[class*="button"] {
+.segmented-control {
position: relative;
- display: inline-block;
- padding: 4px 12px;
- margin: 0;
- font-weight: bold;
- line-height: 18px;
- color: #333;
- text-align: center;
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
- vertical-align: top;
- cursor: pointer;
- background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%);
- border: 1px solid rgba(0, 0, 0, .3);
+ display: table;
+ overflow: hidden;
+ font-size: 12px;
+ font-weight: 400;
+ background-color: white;
+ border: 1px solid #ccc;
border-radius: 3px;
- box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05);
}
-
-/* Active */
-[class*="button"]:active {
- padding-top: 5px;
- padding-bottom: 3px;
+.segmented-control .control-item {
+ display: table-cell;
+ overflow: hidden;
+ width: 1%;
+ padding-top: 6px;
+ padding-bottom: 7px;
+ line-height: 1;
color: #333;
- background-color: #ccc;
- background-image: none;
- box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2);
-}
-
-/* Button modifiers
--------------------------------------------------- */
-
-/* Overriding styles for buttons with modifiers */
-.button-main,
-.button-positive,
-.button-negative {
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
-}
-
-/* Main button */
-.button-main {
- background-color: #1eafe7;
- background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%);
- background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%);
- border: 1px solid #117aaa;
-}
-
-/* Positive button */
-.button-positive {
- background-color: #34ba15;
- background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%);
- background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%);
- border: 1px solid #278f0f;
-}
-
-/* Negative button */
-.button-negative {
- background-color: #e71e1e;
- background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%);
- background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%);
- border: 1px solid #b51a1a;
-}
-
-/* Active state for buttons with modifiers */
-.button-main:active,
-.button-positive:active,
-.button-negative:active {
- color: #fff;
-}
-.button-main:active {
- background-color: #0876b1;
-}
-.button-positive:active {
- background-color: #298f11;
-}
-.button-negative:active {
- background-color: #b21a1a;
-}
-
-/* Block level buttons (full width buttons) */
-.button-block {
- display: block;
- padding: 11px 0 13px;
- margin-bottom: 10px;
- font-size: 16px;
+ text-align: center;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ border-left: 1px solid #ccc;
}
-
-/* Active state for block level buttons */
-.button-block:active {
- padding: 12px 0;
+.segmented-control .control-item:first-child {
+ border-left-width: 0;
}
-
-/* Make button elements go full width when given .button-block class */
-button.button-block {
- width: 100%;
+.segmented-control .control-item:active {
+ background-color: #eee;
}
-
-/* Counts in buttons
--------------------------------------------------- */
-
-/* Generic styles for all counts within buttons */
-[class*="button"] [class*="count"] {
- padding-top: 2px;
- padding-bottom: 2px;
- margin-right: -4px;
- margin-left: 4px;
- text-shadow: none;
- background-color: rgba(0, 0, 0, .2);
- box-shadow: inset 0 1px 1px -1px #000000, 0 1px 1px -1px #fff;
+.segmented-control .control-item.active {
+ background-color: #ccc;
}
-/* Position counts within block level buttons
- Note: These are absolutely positioned so that text of button isn't "pushed" by count and always
- stays at true center of button */
-.button-block [class*="count"] {
- position: absolute;
- right: 0;
- padding-top: 4px;
- padding-bottom: 4px;
- margin-right: 10px;
-}/* Chevrons
--------------------------------------------------- */
-
-.chevron {
- display: block;
- height: 20px;
+.segmented-control-primary {
+ border-color: #428bca;
}
-
-/* Base styles for both 1/2's of the chevron */
-.chevron:before,
-.chevron:after {
- position: relative;
- display: block;
- width: 12px;
- height: 4px;
- background-color: #999;
- content: '';
+.segmented-control-primary .control-item {
+ color: #428bca;
+ border-color: inherit;
}
-
-/* Position and rotate respective 1/2's of the chevron */
-.chevron:before {
- top: 5px;
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
+.segmented-control-primary .control-item:active {
+ background-color: #cde1f1;
}
-.chevron:after {
- top: 7px;
- -webkit-transform: rotate(-45deg);
- transform: rotate(-45deg);
-}/* General count styles
--------------------------------------------------- */
-
-[class*="count"] {
- display: inline-block;
- padding: 4px 9px;
- font-size: 12px;
- font-weight: bold;
- line-height: 13px;
+.segmented-control-primary .control-item.active {
color: #fff;
- background-color: rgba(0, 0, 0, .3);
- border-radius: 100px;
+ background-color: #428bca;
}
-/* Count modifiers
--------------------------------------------------- */
-
-/* Overriding styles for counts with modifiers */
-.count-main,
-.count-positive,
-.count-negative {
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
+.segmented-control-positive {
+ border-color: #5cb85c;
}
-
-/* Main count */
-.count-main {
- background-color: #1eafe7;
- background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%);
- background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%);
+.segmented-control-positive .control-item {
+ color: #5cb85c;
+ border-color: inherit;
}
-
-/* Positive count */
-.count-positive {
- background-color: #34ba15;
- background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%);
- background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%);
+.segmented-control-positive .control-item:active {
+ background-color: #d8eed8;
}
-
-/* Negative count */
-.count-negative {
- background-color: #e71e1e;
- background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%);
- background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%);
-}/* Segmented controllers
--------------------------------------------------- */
-
-.segmented-controller {
- display: -webkit-box;
- display: box;
- margin-bottom: 10px;
- overflow: hidden;
- font-size: 12px;
- font-weight: bold;
- text-shadow: 0 1px rgba(255, 255, 255, .5);
- list-style: none;
- background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%);
- border: 1px solid #aaa;
- border-radius: 3px;
- box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(255, 255, 255, .8);
- -webkit-box-orient: horizontal;
- box-orient: horizontal;
+.segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #5cb85c;
}
-/* Section within controller */
-.segmented-controller li {
- overflow: hidden;
- text-align: center;
- white-space: nowrap;
- border-left: 1px solid #aaa;
- box-shadow: inset 1px 0 rgba(255, 255, 255, .5);
- -webkit-box-flex: 1;
- box-flex: 1;
+.segmented-control-negative {
+ border-color: #d9534f;
}
-
-/* Link that fills each section */
-.segmented-controller li > a {
- display: block;
- padding: 8px 16px;
- overflow: hidden;
- line-height: 15px;
- color: #333;
- text-overflow: ellipsis;
+.segmented-control-negative .control-item {
+ color: #d9534f;
+ border-color: inherit;
}
-
-/* Remove border-left and shadow from first section */
-.segmented-controller li:first-child {
- border-left-width: 0;
- box-shadow: none;
+.segmented-control-negative .control-item:active {
+ background-color: #f9e2e2;
}
-
-/* Active segment of controller */
-.segmented-controller li.active {
- background-color: #ccc;
- box-shadow: inset 0 1px 5px rgba(0, 0, 0, .3);
+.segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #d9534f;
}
-.segmented-controller-item {
+.control-content {
display: none;
}
-
-.segmented-controller-item.active {
+.control-content.active {
display: block;
-}/* Popovers (to be used with popovers.js)
--------------------------------------------------- */
+}
.popover {
position: fixed;
@@ -992,110 +992,40 @@ button.button-block {
z-index: 20;
display: none;
width: 280px;
- padding: 5px;
- margin-left: -146px;
- background-color: #555;
- background-image: -webkit-linear-gradient(top, #555 5%, #555 6%, #111 30%);
- background-image: linear-gradient(to bottom, #555 5%, #555 6%,#111 30%);
- border: 1px solid #111;
+ margin-left: -140px;
+ background-color: white;
border-radius: 6px;
opacity: 0;
- box-shadow: inset 0 1px 1px -1px #fff, 0 3px 10px rgba(0, 0, 0, .3);
+ -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
-webkit-transform: translate3d(0, -15px, 0);
- transform: translate3d(0, -15px, 0);
- -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
- transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+ -ms-transform: translate3d(0, -15px, 0);
+ transform: translate3d(0, -15px, 0);
+ -webkit-transition: all 0.25s linear;
+ -moz-transition: all 0.25s linear;
+ transition: all 0.25s linear;
}
-
-/* Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution) */
-.popover:before,
-.popover:after {
+.popover:before {
position: absolute;
+ top: -15px;
left: 50%;
width: 0;
height: 0;
+ margin-left: -15px;
+ border-right: 15px solid transparent;
+ border-bottom: 15px solid white;
+ border-left: 15px solid transparent;
content: '';
}
-.popover:before {
- top: -20px;
- margin-left: -21px;
- border-right: 21px solid transparent;
- border-bottom: 21px solid #111;
- border-left: 21px solid transparent;
-}
-.popover:after {
- top: -19px;
- margin-left: -20px;
- border-right: 20px solid transparent;
- border-bottom: 20px solid #555;
- border-left: 20px solid transparent;
-}
-
-/* Wrapper for a title and buttons */
-.popover-header {
- display: -webkit-box;
- display: box;
- height: 34px;
- margin-bottom: 5px;
-}
-
-/* Centered title for popover */
-.popover-header .title {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- margin: 15px 0;
- font-size: 16px;
- font-weight: bold;
- line-height: 12px;
- color: #fff;
- text-align: center;
- text-shadow: 0 -1px rgba(0, 0, 0, .5);
-}
-
-/* Generic style for all buttons in .popover-header */
-.popover-header [class*="button"] {
- z-index: 25;
- font-size: 12px;
- line-height: 22px;
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
- background-color: #454545;
- background-image: -webkit-linear-gradient(top, #454545 0, #353535 100%);
- background-image: linear-gradient(to bottom, #454545 0, #353535 100%);
- border: 1px solid #111;
- -webkit-box-flex: 0;
- box-flex: 0;
-}
-
-/* Hacky way to right align buttons outside of flex-box system
- Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */
-.popover-header .title + [class*="button"]:last-child,
-.popover-header .button + [class*="button"]:last-child,
-.popover-header [class*="button"].pull-right {
- position: absolute;
- top: 5px;
- right: 5px;
-}
-
-/* Active state for popover header buttons */
-.popover-header .button:active {
- color: #fff;
- background-color: #0876b1;
-}
-
-/* Popover animation
--------------------------------------------------- */
-
.popover.visible {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
+ -ms-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+}
+.popover .bar ~ .table-view {
+ padding-top: 44px;
}
-
-/* Backdrop (used as invisible touch escape)
--------------------------------------------------- */
.backdrop {
position: fixed;
@@ -1103,126 +1033,103 @@ button.button-block {
right: 0;
bottom: 0;
left: 0;
- z-index: 10;
+ z-index: 15;
+ background-color: rgba(0, 0, 0, 0.3);
}
-/* Block level buttons in popovers
--------------------------------------------------- */
-
-/* Positioning and giving darker border to look sharp against dark popover */
-.popover .button-block {
+.popover .btn-block {
margin-bottom: 5px;
- border: 1px solid #111;
}
-
-/* Remove extra margin on bottom of last button */
-.popover .button-block:last-child {
+.popover .btn-block:last-child {
margin-bottom: 0;
}
-/* Lists in popovers
--------------------------------------------------- */
+.popover .bar-nav {
+ border-bottom: 1px solid #dddddd;
+ border-top-right-radius: 12px;
+ border-top-left-radius: 12px;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
-.popover .list {
- width: auto;
- max-height: 250px;
- margin-right: 0;
+.popover .table-view {
+ max-height: 300px;
margin-bottom: 0;
- margin-left: 0;
overflow: auto;
background-color: #fff;
- border: 1px solid #000;
- border-radius: 3px;
+ border-top: 0;
+ border-bottom: 0;
+ border-radius: 6px;
-webkit-overflow-scrolling: touch;
-}/* Modals
--------------------------------------------------- */
+}
+
.modal {
- position: fixed;
+ position: fixed;
top: 0;
opacity: 0;
- z-index: 11;
+ z-index: 11;
width: 100%;
min-height: 100%;
overflow: hidden;
- background-color: #fff;
+ background-color: #fff;
+ -webkit-transition: -webkit-transform .25s, opacity 1ms .25s;
+ -moz-transition: -moz-transform .25s, opacity 1ms .25s;
+ transition: transform .25s, opacity 1ms .25s;
-webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0);
- -webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s;
- transition: transform .25s ease-in-out, opacity 1ms .25s;
+ -ms-transform: translate3d(0, 100%, 0);
+ transform: translate3d(0, 100%, 0);
}
-
-/* Modal - When active
--------------------------------------------------- */
.modal.active {
opacity: 1;
height: 100%;
- -webkit-transition: -webkit-transform .25s ease-in-out;
- transition: transform .25 ease-in-out;
+ -webkit-transition: -webkit-transform .25s;
+ -moz-transition: -moz-transform .25s;
+ transition: transform .25s;
-webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
-}/* Slider styles (to be used with sliders.js)
--------------------------------------------------- */
+ -ms-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+}
-/* Width/height of slider */
-.slider,
-.slider > li {
+.slider {
width: 100%;
- height: 200px;
}
-/* Outer wrapper for slider */
.slider {
overflow: hidden;
background-color: #000;
}
-
-/* Inner wrapper for slider (width of all slides together) */
-.slider > ul {
+.slider .slide-group {
position: relative;
- font-size: 0; /* Remove spaces from inline-block children */
+ font-size: 0;
white-space: nowrap;
-webkit-transition: all 0 linear;
- transition: all 0 linear;
+ -moz-transition: all 0 linear;
+ transition: all 0 linear;
}
-
-/* Individual slide */
-.slider > ul > li {
+.slider .slide-group .slide {
display: inline-block;
- vertical-align: top; /* Ensure that li always aligns to top */
- width: 100%;
+ vertical-align: top;
+ width: 100%;
height: 100%;
-}
-
-/* Required reset of font-size to same as standard body */
-.slider > ul > li > * {
font-size: 14px;
-}/* Toggle styles (to be used with toggles.js)
--------------------------------------------------- */
+}
.toggle {
+ display: block;
position: relative;
- width: 75px;
- height: 28px;
- background-color: #eee;
- border: 1px solid #bbb;
+ width: 74px;
+ height: 30px;
+ background-color: #fff;
+ border: 2px solid #ddd;
border-radius: 20px;
- box-shadow: inset 0 0 4px rgba(0, 0, 0, .1);
-}
-
-/* Text indicating "on" or "off". Default is "off" */
-.toggle:before {
- position: absolute;
- right: 13px;
- font-weight: bold;
- line-height: 28px;
- color: #777;
- text-shadow: 0 1px #fff;
- text-transform: uppercase;
- content: "Off";
-}
-
-/* Sliding handle */
-.toggle-handle {
+ -webkit-transition-property: background-color, border;
+ -moz-transition-property: background-color, border;
+ transition-property: background-color, border;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+.toggle .toggle-handle {
position: absolute;
top: -1px;
left: -1px;
@@ -1230,63 +1137,278 @@ button.button-block {
width: 28px;
height: 28px;
background-color: #fff;
- background-image: -webkit-linear-gradient(top, #fff 0, #f2f2f2 100%);
- background-image: linear-gradient(to bottom, #fff 0, #f2f2f2 100%);
- border: 1px solid rgba(0, 0, 0, .2);
+ border: 1px solid #ddd;
border-radius: 100px;
- -webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out;
- transition: transform 0.1s ease-in-out, border 0.1s ease-in-out;
+ -webkit-transition-property: -webkit-transform, border, width;
+ -moz-transition-property: -moz-transform, border, width;
+ transition-property: transform, border, width;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+.toggle:before {
+ position: absolute;
+ top: 3px;
+ right: 11px;
+ color: #999;
+ font-size: 13px;
+ text-transform: uppercase;
+ content: "Off";
}
-
-/* Active state for toggle */
.toggle.active {
- background-color: #19a8e4;
- background-image: -webkit-linear-gradient(top, #088cd4 0, #19a8e4 100%);
- background-image: linear-gradient(to bottom, #088cd4 0, #19a8e4 100%);
- border: 1px solid #096c9d;
- box-shadow: inset 0 0 15px rgba(255, 255, 255, .25);
+ border: 2px solid #5cb85c;
+ background-color: #5cb85c;
}
-
-/* Active state for toggle handle */
.toggle.active .toggle-handle {
- border-color: #0a76ad;
- -webkit-transform: translate3d(48px,0,0);
- transform: translate3d(48px,0,0);
+ border-color: #5cb85c;
+ -webkit-transform: translate3d(44px, 0, 0);
+ -ms-transform: translate3d(44px, 0, 0);
+ transform: translate3d(44px, 0, 0);
}
-
-/* Change "off" to "on" for active state */
.toggle.active:before {
right: auto;
left: 15px;
color: #fff;
- text-shadow: 0 -1px rgba(0, 0, 0, 0.25);
content: "On";
-}/* Push styles (to be used with push.js)
--------------------------------------------------- */
+}
+.toggle input[type="checkbox"] {
+ display: none;
+}
-/* Fade animation */
.content.fade {
left: 0;
opacity: 0;
- -webkit-transition: opacity .2s ease-in-out;
- transition: opacity .2s ease-in-out;
}
.content.fade.in {
opacity: 1;
}
-
-/* Slide animation */
-.content.slide {
+.content.sliding {
+ z-index: 2;
+ -webkit-transition: -webkit-transform .4s;
+ -moz-transition: -moz-transform .4s;
+ transition: transform .4s;
-webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- -webkit-transition: -webkit-transform .25s ease-in-out;
- transition: transform .25s ease-in-out;
+ -ms-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
}
-.content.slide.left {
+.content.sliding.left {
+ z-index: 1;
-webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0);
+ -ms-transform: translate3d(-100%, 0, 0);
+ transform: translate3d(-100%, 0, 0);
}
-.content.slide.right {
+.content.sliding.right {
+ z-index: 3;
-webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0);
-} \ No newline at end of file
+ -ms-transform: translate3d(100%, 0, 0);
+ transform: translate3d(100%, 0, 0);
+}
+
+.push-left:after,
+.push-right:after {
+ position: absolute;
+ top: 50%;
+ display: inline-block;
+ color: #bbb;
+ font-family: Ratchicons;
+ font-size: inherit;
+ text-decoration: none;
+ line-height: 1;
+ cursor: default;
+ -webkit-font-smoothing: antialiased;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+}
+
+.push-left:after {
+ left: 15px;
+ content: '\e822';
+}
+
+.push-right:after {
+ right: 15px;
+ content: '\e826';
+}
+
+@font-face {
+ font-family: Ratchicons;
+ src: url("ratchicons/ratchicons.eot");
+ src: url("ratchicons/ratchicons.eot?#iefix") format("embedded-opentype"), url("ratchicons/ratchicons.woff") format("woff"), url("ratchicons/ratchicons.ttf") format("truetype"), url("ratchicons/ratchicons.svg#svgFontName") format("svg");
+ font-weight: normal;
+ font-style: normal;
+}
+
+.icon {
+ display: inline-block;
+ font-family: Ratchicons;
+ font-size: 24px;
+ text-decoration: none;
+ line-height: 1;
+ cursor: default;
+ -webkit-font-smoothing: antialiased;
+}
+
+.icon-and-up:before {
+ content: '\e809';
+}
+
+.icon-back:before {
+ content: '\e80a';
+}
+
+.icon-bars:before {
+ content: '\e80e';
+}
+
+.icon-caret:before {
+ content: '\e80f';
+}
+
+.icon-check:before {
+ content: '\e810';
+}
+
+.icon-close:before {
+ content: '\e811';
+}
+
+.icon-code:before {
+ content: '\e812';
+}
+
+.icon-compose:before {
+ content: '\e813';
+}
+
+.icon-down-nav:before {
+ content: '\e814';
+}
+
+.icon-down:before {
+ content: '\e820';
+}
+
+.icon-download:before {
+ content: '\e815';
+}
+
+.icon-edit:before {
+ content: '\e829';
+}
+
+.icon-forward:before {
+ content: '\e82a';
+}
+
+.icon-gear:before {
+ content: '\e821';
+}
+
+.icon-home:before {
+ content: '\e82b';
+}
+
+.icon-info:before {
+ content: '\e82c';
+}
+
+.icon-left-nav:before {
+ content: '\e82d';
+}
+
+.icon-left:before {
+ content: '\e822';
+}
+
+.icon-list:before {
+ content: '\e823';
+}
+
+.icon-more-vertical:before {
+ content: '\e82e';
+}
+
+.icon-more:before {
+ content: '\e82f';
+}
+
+.icon-pages:before {
+ content: '\e824';
+}
+
+.icon-pause:before {
+ content: '\e830';
+}
+
+.icon-person:before {
+ content: '\e832';
+}
+
+.icon-play:before {
+ content: '\e816';
+}
+
+.icon-plus:before {
+ content: '\e817';
+}
+
+.icon-refresh:before {
+ content: '\e825';
+}
+
+.icon-right-nav:before {
+ content: '\e818';
+}
+
+.icon-right:before {
+ content: '\e826';
+}
+
+.icon-search:before {
+ content: '\e819';
+}
+
+.icon-share:before {
+ content: '\e81a';
+}
+
+.icon-sound2:before {
+ content: '\e828';
+}
+
+.icon-sound3:before {
+ content: '\e80b';
+}
+
+.icon-sound4:before {
+ content: '\e80c';
+}
+
+.icon-sound:before {
+ content: '\e827';
+}
+
+.icon-star-filled:before {
+ content: '\e81b';
+}
+
+.icon-star:before {
+ content: '\e81c';
+}
+
+.icon-stop:before {
+ content: '\e81d';
+}
+
+.icon-trash:before {
+ content: '\e81e';
+}
+
+.icon-up-nav:before {
+ content: '\e81f';
+}
+
+.icon-up:before {
+ content: '\e80d';
+}
diff --git a/dist/ratchet.js b/dist/ratchet.js
index 2ff2bfc..3c37ab6 100644
--- a/dist/ratchet.js
+++ b/dist/ratchet.js
@@ -1,21 +1,21 @@
-/**
- * ==================================
- * Ratchet v1.0.2
- * Licensed under The MIT License
- * http://opensource.org/licenses/MIT
- * ==================================
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
*/
-
/* ----------------------------------
- * MODAL v1.0.0
+ * MODAL v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
!function () {
var findModals = function (target) {
- var i;
- var modals = document.querySelectorAll('a');
+ var i, modals = document.querySelectorAll('a');
for (; target && target !== document; target = target.parentNode) {
for (i = modals.length; i--;) { if (modals[i] === target) return target; }
}
@@ -29,12 +29,14 @@
window.addEventListener('touchend', function (event) {
var modal = getModal(event);
if (modal) {
- modal.classList.toggle('active');
+ if (modal && modal.classList.contains('modal')) modal.classList.toggle('active');
event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
}
});
-}();/* ----------------------------------
- * POPOVER v1.0.0
+}();
+
+/* ----------------------------------
+ * POPOVER v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
@@ -51,7 +53,6 @@
};
var onPopoverHidden = function () {
- popover.parentNode.removeChild(backdrop);
popover.style.display = 'none';
popover.removeEventListener('webkitTransitionEnd', onPopoverHidden);
}
@@ -64,6 +65,7 @@
element.addEventListener('touchend', function () {
popover.addEventListener('webkitTransitionEnd', onPopoverHidden);
popover.classList.remove('visible');
+ popover.parentNode.removeChild(backdrop);
});
return element;
@@ -72,9 +74,16 @@
var getPopover = function (e) {
var anchor = findPopovers(e.target);
- if (!anchor || !anchor.hash) return;
+ if (!anchor || !anchor.hash || (anchor.hash.indexOf("/") > 0)) return;
+
+ try {
+ popover = document.querySelector(anchor.hash);
+ }
+ catch (error) {
+ popover = null;
+ }
- popover = document.querySelector(anchor.hash);
+ if (popover == null) return;
if (!popover || !popover.classList.contains('popover')) return;
@@ -97,8 +106,9 @@
window.addEventListener('click', showHidePopover);
}();
+
/* ----------------------------------
- * PUSH v1.0.0
+ * PUSH v2.0.0
* Licensed under The MIT License
* inspired by chris's jquery.pjax.js
* http://opensource.org/licenses/MIT
@@ -124,7 +134,7 @@
var bars = {
bartab : '.bar-tab',
- bartitle : '.bar-title',
+ barnav : '.bar-nav',
barfooter : '.bar-footer',
barheadersecondary : '.bar-header-secondary'
};
@@ -385,9 +395,9 @@
}
if (/slide/.test(transition)) {
- swap.classList.add(enter ? 'right' : 'left');
- swap.classList.add('slide');
- container.classList.add('slide');
+ swap.classList.add('sliding-in', enter ? 'right' : 'left');
+ swap.classList.add('sliding');
+ container.classList.add('sliding');
}
container.parentNode.insertBefore(swap, container);
@@ -424,7 +434,7 @@
function slideEnd() {
swap.removeEventListener('webkitTransitionEnd', slideEnd);
- swap.classList.remove('slide');
+ swap.classList.remove('sliding', 'sliding-in');
swap.classList.remove(swapDirection);
container.parentNode.removeChild(container);
complete && complete();
@@ -496,7 +506,7 @@
}
data.title = head.querySelector('title');
- data.title = data.title && data.title.innerText && data.title.innerText.trim();
+ data.title = data.title && data.title.innerText.trim();
if (options.transition) data = extendWithDom(data, '.content', body);
else data.contents = body;
@@ -513,19 +523,21 @@
window.addEventListener('touchend', touchend);
window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); });
window.addEventListener('popstate', popstate);
+ window.PUSH = PUSH;
}();
+
/* ----------------------------------
- * TABS v1.0.0
+ * Segmented controls v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
!function () {
var getTarget = function (target) {
- var i, popovers = document.querySelectorAll('.segmented-controller li a');
+ var i, segmentedControls = document.querySelectorAll('.segmented-control .control-item');
for (; target && target !== document; target = target.parentNode) {
- for (i = popovers.length; i--;) { if (popovers[i] === target) return target; }
+ for (i = segmentedControls.length; i--;) { if (segmentedControls[i] === target) return target; }
}
};
@@ -533,23 +545,21 @@
var activeTab;
var activeBodies;
var targetBody;
- var targetTab;
+ var targetTab = getTarget(e.target);
var className = 'active';
var classSelector = '.' + className;
- var targetAnchor = getTarget(e.target);
- if (!targetAnchor) return;
+ if (!targetTab) return;
- targetTab = targetAnchor.parentNode;
activeTab = targetTab.parentNode.querySelector(classSelector);
if (activeTab) activeTab.classList.remove(className);
targetTab.classList.add(className);
- if (!targetAnchor.hash) return;
+ if (!targetTab.hash) return;
- targetBody = document.querySelector(targetAnchor.hash);
+ targetBody = document.querySelector(targetTab.hash);
if (!targetBody) return;
@@ -563,8 +573,9 @@
});
window.addEventListener('click', function (e) { if (getTarget(e.target)) e.preventDefault(); });
-}();/* ----------------------------------
- * SLIDER v1.0.1
+}();
+/* ----------------------------------
+ * SLIDER v2.0.0
* Licensed under The MIT License
* Adapted from Brad Birdsall's swipe
* http://opensource.org/licenses/MIT
@@ -587,7 +598,7 @@
var scrollableArea;
var getSlider = function (target) {
- var i, sliders = document.querySelectorAll('.slider > ul');
+ var i, sliders = document.querySelectorAll('.slider > .slide-group');
for (; target && target !== document; target = target.parentNode) {
for (i = sliders.length; i--;) { if (sliders[i] === target) return target; }
}
@@ -611,7 +622,7 @@
if (!slider) return;
- var firstItem = slider.querySelector('li');
+ var firstItem = slider.querySelector('.slide');
scrollableArea = firstItem.offsetWidth * slider.children.length;
isScrolling = undefined;
@@ -621,6 +632,8 @@
startTime = +new Date;
pageX = e.touches[0].pageX;
pageY = e.touches[0].pageY;
+ deltaX = 0;
+ deltaY = 0;
setSlideNumber(0);
@@ -677,8 +690,9 @@
window.addEventListener('touchend', onTouchEnd);
}();
+
/* ----------------------------------
- * TOGGLE v1.0.0
+ * TOGGLE v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
@@ -705,15 +719,12 @@
if (!toggle) return;
var handle = toggle.querySelector('.toggle-handle');
- var toggleWidth = toggle.offsetWidth;
- var handleWidth = handle.offsetWidth;
- var offset = toggle.classList.contains('active') ? toggleWidth - handleWidth : 0;
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
+ var offset = toggle.classList.contains('active') ? (toggleWidth - handleWidth) : 0;
start = { pageX : e.touches[0].pageX - offset, pageY : e.touches[0].pageY };
touchMove = false;
-
- // todo: probably should be moved to the css
- toggle.style['-webkit-transition-duration'] = 0;
});
window.addEventListener('touchmove', function (e) {
@@ -725,8 +736,8 @@
var handle = toggle.querySelector('.toggle-handle');
var current = e.touches[0];
- var toggleWidth = toggle.offsetWidth;
- var handleWidth = handle.offsetWidth;
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
var offset = toggleWidth - handleWidth;
touchMove = true;
@@ -748,9 +759,9 @@
if (!toggle) return;
var handle = toggle.querySelector('.toggle-handle');
- var toggleWidth = toggle.offsetWidth;
- var handleWidth = handle.offsetWidth;
- var offset = toggleWidth - handleWidth;
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
+ var offset = (toggleWidth - handleWidth);
var slideOn = (!touchMove && !toggle.classList.contains('active')) || (touchMove && (distanceX > (toggleWidth/2 - handleWidth/2)));
if (slideOn) handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)';
diff --git a/dist/ratchicons/ratchicons.eot b/dist/ratchicons/ratchicons.eot
new file mode 100644
index 0000000..536e572
--- /dev/null
+++ b/dist/ratchicons/ratchicons.eot
Binary files differ
diff --git a/dist/ratchicons/ratchicons.svg b/dist/ratchicons/ratchicons.svg
new file mode 100644
index 0000000..3abf5dd
--- /dev/null
+++ b/dist/ratchicons/ratchicons.svg
@@ -0,0 +1,61 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg">
+<metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
+<defs>
+<font id="ratchicons" horiz-adv-x="1000" >
+<font-face font-family="ratchicons" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
+<missing-glyph horiz-adv-x="1000" />
+<glyph glyph-name="and-caret" unicode="&#xe800;" d="m313 225l375 0v376" horiz-adv-x="1000" />
+<glyph glyph-name="up-nav" unicode="&#xe81f;" d="m65 146l81-83l354 372l353-372l81 83l-434 456l-435-456z" horiz-adv-x="1000" />
+<glyph glyph-name="and-download" unicode="&#xe802;" d="m875 38h-750v62h750v-62z m-312 375v250h-125v-250h-125l187-250l188 250h-125z" horiz-adv-x="1000" />
+<glyph glyph-name="and-left" unicode="&#xe803;" d="m306 349l325 373l67-59l-273-314l273-315l-67-59l-325 373l0 1z" horiz-adv-x="1000" />
+<glyph glyph-name="and-more-vertical" unicode="&#xe804;" d="m406-25v188h188v-188h-188z m0 563h188v188h-188v-188z m188-281v188h-188v-188h188z" horiz-adv-x="1000" />
+<glyph glyph-name="and-more" unicode="&#xe805;" d="m125 444h188v-187h-188v187z m563 0v-187h187v187h-187z m-281-187h187v187h-187v-187z" horiz-adv-x="1000" />
+<glyph glyph-name="and-right" unicode="&#xe806;" d="m698 348l-325-373l-67 59l274 315l-274 314l68 59l324-373l0-1z" horiz-adv-x="1000" />
+<glyph glyph-name="and-search" unicode="&#xe807;" d="m928 51l-167 167c-17 17-47 15-66-4l-3-3l-69 69c42 54 67 121 67 194c0 173-140 313-314 313s-313-140-313-313s140-314 313-314c71 0 137 24 190 64l69-70c-18-19-19-48-2-65l166-166c17-17 47-16 66 4l59 58c19 19 21 49 4 66z m-801 423c0 137 112 249 249 249s249-112 249-249s-111-249-249-249s-249 111-249 249z" horiz-adv-x="1000" />
+<glyph glyph-name="and-share" unicode="&#xe808;" d="m728 215c-33 0-63-14-84-36l-263 153c1 6 2 12 2 18c0 6-1 12-2 18l263 152c21-23 51-37 84-37c62 0 113 51 113 113s-51 114-113 114s-114-51-114-114c0-7 1-14 2-21l-261-150c-21 23-51 38-85 38c-63 0-114-50-114-113s51-113 114-113c33 0 64 15 85 38l261-151c-1-7-2-14-2-22c0-62 51-113 114-113s113 51 113 113s-51 113-113 113z" horiz-adv-x="1000" />
+<glyph glyph-name="and-up" unicode="&#xe809;" d="m500 548l374-325l-59-67l-315 273l-314-273l-59 67l373 325l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="back" unicode="&#xe80a;" d="m500 174l-313 176l313 176m312-352l-312 176l312 176" horiz-adv-x="1000" />
+<glyph glyph-name="down" unicode="&#xe820;" d="m941 479l-124 127l-317-315l-318 315l-124-127l442-441l441 441z" horiz-adv-x="1000" />
+<glyph glyph-name="gear" unicode="&#xe821;" d="m820 274l118 40l0 72l-118 40c-8 34-22 67-40 97l55 111l-51 51l-111-55c-30 18-62 32-97 40l-39 118l-73 0l-40-118c-34-8-67-22-97-40l-111 55l-51-51l55-111c-18-30-32-62-40-97l-117-39l0-73l117-40c9-34 22-67 41-96l-56-111l52-52l111 56c29-19 62-32 96-40l40-119l73 0l39 119c35 8 67 21 97 40l111-56l51 52l-55 111c18 29 32 62 40 96z m-320-174c-139 0-251 112-251 251s112 250 251 250s250-112 250-250s-112-251-250-251z" horiz-adv-x="1000" />
+<glyph glyph-name="left" unicode="&#xe822;" d="m628-91l127 123l-314 318l314 318l-127 124l-441-442l441-441z" horiz-adv-x="1000" />
+<glyph glyph-name="list" unicode="&#xe823;" d="m1000 632h-750v-62l750-1v63z m0-314v63h-750v-63h750z m-750-187v-61h750v61h-750z m-250 406l125 1v125l-125 0v-126z m0-249h125v125h-125v-125z m0-250h125v125h-125v-125z" horiz-adv-x="1000" />
+<glyph glyph-name="pages" unicode="&#xe824;" d="m63 601v-689h687l0 688l-687 1z m625-63v-563h-563v563h563z m-500 250v-125h62v62h625v-625l-62 0v-62h125v750h-750z" horiz-adv-x="1000" />
+<glyph glyph-name="refresh" unicode="&#xe825;" d="m813 288c-28-145-161-250-313-250c-172 0-312 139-312 312c0 173 141 312 312 313v-98l221 129l-221 128v-95c0-2 0-2 0-2c-206 0-375-167-375-375s169-375 375-375c187 0 347 133 375 313h-62z" horiz-adv-x="1000" />
+<glyph glyph-name="right" unicode="&#xe826;" d="m372 792l-127-124l314-318l-314-318l127-123l441 441l-441 442z" horiz-adv-x="1000" />
+<glyph glyph-name="sound" unicode="&#xe827;" d="m825-22c-2 0-3 0-5 0l-16 7c0 0 0 0 0 1c-5 1-8 3-10 6c-1 3-1 7 1 12c1 1 22 40 43 101c20 58 44 147 44 244c0 98-24 186-44 243c-21 61-42 100-43 102c-4 11-2 15 8 21l17 8c2 1 5 2 7 2c7 0 12-5 17-16c1-2 2-4 4-8c10-19 32-63 52-125c25-78 37-156 37-232c0-94-24-182-44-240c-22-63-44-104-45-104l-1-2c-5-11-9-20-22-20c0 0 0 0 0 0z m-574 248c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z m474-124c-2 0-4 0-6 0l-16 8c0 0 0 0 0 0c-5 1-8 3-9 6c-2 3-2 7 0 12c1 1 16 26 30 64c14 37 30 94 30 157c0 65-16 121-30 157c-14 38-29 62-30 63c-4 11-2 15 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 5-11c17-31 61-115 61-229c0-63-16-120-30-156c-16-39-31-64-31-64c0 0 0 0 0 0l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z m-84 127c-2 0-4 0-6 0l-15 7c0 1 0 1 0 1c-5 1-8 3-9 6c-2 3-2 7 0 12c0 0 20 43 20 94c0 53-20 91-21 93c-4 11-2 16 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 4-9c10-19 23-45 23-104c0-33-21-91-22-93l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="sound2" unicode="&#xe828;" d="m251 226c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z m474-124c-2 0-4 0-6 0l-16 8c0 0 0 0 0 0c-5 1-8 3-9 6c-2 3-2 7 0 12c1 1 16 26 30 64c14 37 30 94 30 157c0 65-16 121-30 157c-14 38-29 62-30 63c-4 11-2 15 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 5-11c17-31 61-115 61-229c0-63-16-120-30-156c-16-39-31-64-31-64c0 0 0 0 0 0l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z m-84 127c-2 0-4 0-6 0l-15 7c0 1 0 1 0 1c-5 1-8 3-9 6c-2 3-2 7 0 12c0 0 20 43 20 94c0 53-20 91-21 93c-4 11-2 16 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 4-9c10-19 23-45 23-104c0-33-21-91-22-93l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="sound3" unicode="&#xe80b;" d="m251 226c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z m390 3c-2 0-4 0-6 0l-15 7c0 1 0 1 0 1c-5 1-8 3-9 6c-2 3-2 7 0 12c0 0 20 43 20 94c0 53-20 91-21 93c-4 11-2 16 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 4-9c10-19 23-45 23-104c0-33-21-91-22-93l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="sound4" unicode="&#xe80c;" d="m251 226c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z" horiz-adv-x="1000" />
+<glyph glyph-name="up" unicode="&#xe80d;" d="m58 222l124-126l318 314l317-314l124 126l-441 441l-442-441z" horiz-adv-x="1000" />
+<glyph glyph-name="bars" unicode="&#xe80e;" d="m875 632h-750v-62l750-1l0 63l0 0z m0-314v63h-750v-63h750z m-750-187v-61h750v61h-750z" horiz-adv-x="1000" />
+<glyph glyph-name="caret" unicode="&#xe80f;" d="m438 475h-125l187-250l188 250h-125" horiz-adv-x="1000" />
+<glyph glyph-name="and-down" unicode="&#xe801;" d="m500 156l-373 325l59 67l314-273l315 273l59-67l-374-325l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="close" unicode="&#xe811;" d="m213 593l530-530l43 44l-529 530l-44-44l0 0z m530 44l-530-530l43-44l531 530l-44 44l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="code" unicode="&#xe812;" d="m680 608l-74-72l184-186l-184-185l74-73l257 258l-257 258z m-360-516l74 72l-184 186l184 186l-74 72l-258-258l258-258z" horiz-adv-x="1000" />
+<glyph glyph-name="compose" unicode="&#xe813;" d="m890 651l-405-404l-110-22l22 110l404 405l17-17l-405-404l56-56l404 405l17-17z m15 16l20 20c14 13 14 35 0 48l-40 40c-13 14-35 14-48 0l-20-20m-4-272v-445h-625v625h440l63 62h-566v-750h750v570l-62-62z" horiz-adv-x="1000" />
+<glyph glyph-name="down-nav" unicode="&#xe814;" d="m934 537l-81 83l-354-372l-353 372l-81-83l435-455l434 455z" horiz-adv-x="1000" />
+<glyph glyph-name="download" unicode="&#xe815;" d="m875 538h-187v-63h125v-500h-625v500h125v63h-188v-626h750v626z m-344-323v635l-62 0v-635l-115 112l-41-39l187-188l188 188l-42 40l-115-113z" horiz-adv-x="1000" />
+<glyph glyph-name="edit" unicode="&#xe829;" d="m749 511l-404-404l-110-22l22 110l404 404l16-16l-404-405l56-55l404 404l16-16z m16 16l20 20c14 13 14 35 0 48l-40 40c-13 14-35 14-48 0l-20-20" horiz-adv-x="1000" />
+<glyph glyph-name="forward" unicode="&#xe82a;" d="m500 526l313-176l-313-176m-312 352l312-176l-312-176" horiz-adv-x="1000" />
+<glyph glyph-name="home" unicode="&#xe82b;" d="m939 350l-438 438l0 0l0 0l-438-438l48-47l54 54v-444h16h51h168h47h109h46h168h55h12v444l54-54l48 47z m-501-370v245h125v-245h-125z m332 444v-444h-161v291h-16h-30h-125h-34h-12v-291h-160v444h0l269 269l269-269h0z" horiz-adv-x="1000" />
+<glyph glyph-name="info" unicode="&#xe82c;" d="m500 725c-207 0-375-168-375-375s168-375 375-375s375 168 375 375s-168 375-375 375z m63-625h-125v313h125v-313z m-63 375c-34 0-62 28-62 63c0 34 28 62 62 62s63-28 63-62c0-35-28-63-63-63z" horiz-adv-x="1000" />
+<glyph glyph-name="left-nav" unicode="&#xe82d;" d="m663-84l83 81l-372 354l372 354l-83 81l-455-435l455-435z" horiz-adv-x="1000" />
+<glyph glyph-name="more-vertical" unicode="&#xe82e;" d="m500 163c52 0 94-42 94-94c0-52-42-94-94-94s-94 42-94 94c0 52 42 94 94 94z m-94 468c0-51 42-93 94-93s94 42 94 93s-42 94-94 94s-94-42-94-94z m0-281c0-52 42-94 94-94s94 42 94 94s-42 94-94 94s-94-42-94-94z" horiz-adv-x="1000" />
+<glyph glyph-name="more" unicode="&#xe82f;" d="m313 350c0-52-42-94-94-94s-94 42-94 94s42 94 94 94s94-42 94-94z m468 94c-52 0-93-42-93-94s41-94 93-94s94 42 94 94s-42 94-94 94z m-281 0c-52 0-94-42-94-94c0-52 42-94 94-94s94 42 94 94c0 52-42 94-94 94z" horiz-adv-x="1000" />
+<glyph glyph-name="pause" unicode="&#xe830;" d="m438 37h-188v625h188v-625z m312 1h-187v625h187v-625z" horiz-adv-x="1000" />
+<glyph glyph-name="person" unicode="&#xe832;" d="m501 847c-275 0-497-222-497-497s222-496 497-496s496 222 496 496s-222 497-496 497z m315-801c-25 11-53 26-79 28c-149 12-152 43-152 106c0 47 30 8 52 118c8 36 15 29 36 95c13 47-12 41-12 41s8 35 12 72c10 96-32 187-175 187c-64 0-94-27-133-57c-41-32-55-76-44-130c7-39 21-77 12-72c0 0-22 6-12-41c21-59 32-59 38-95c18-107 47-70 53-118c6-63-7-94-148-106c-25-2-55-16-79-27c-76 79-123 186-123 303c0 242 197 439 439 439s438-197 438-439c0-118-47-226-123-304z" horiz-adv-x="1000" />
+<glyph glyph-name="play" unicode="&#xe816;" d="m250 663l567-313l-567-312" horiz-adv-x="1000" />
+<glyph glyph-name="plus" unicode="&#xe817;" d="m469 725v-750h61l1 750l-62 0l0 0z m406-344h-750v-61l750-1l0 62l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="right-nav" unicode="&#xe818;" d="m291 786l-83-81l372-354l-372-354l83-81l455 435l-455 435z" horiz-adv-x="1000" />
+<glyph glyph-name="search" unicode="&#xe819;" d="m935-10l-279 279c39 54 62 120 62 191c0 181-147 328-328 328s-327-147-327-328s147-327 327-327c71 0 136 22 190 61l279-280l76 76z m-808 470c0 146 118 263 263 263s264-117 264-263s-118-263-264-263s-263 118-263 263z" horiz-adv-x="1000" />
+<glyph glyph-name="share" unicode="&#xe81a;" d="m875 538h-187v-63h125v-500h-625v500h125v63h-188v-626h750v626z m-406 197v-572h62v572l115-112l42 40l-188 187l-187-187l41-41l115 113z" horiz-adv-x="1000" />
+<glyph glyph-name="star-filled" unicode="&#xe81b;" d="m500 812l116-354l371 0l-300-218l115-353l-301 218l-300-218l114 353l-300 218l371 0l114 354z" horiz-adv-x="1000" />
+<glyph glyph-name="star" unicode="&#xe81c;" d="m987 458l-372 0l-115 354l-114-354l-371 0l301-218l-115-353l301 218l299-218l-115 353l301 218z m-252-478l-234 174l-234-174l99 274l-252 171l295 0l92 290l91-290l296 0l-253-175l100-270z" horiz-adv-x="1000" />
+<glyph glyph-name="stop" unicode="&#xe81d;" d="m812 37h-625v625h625v-625z" horiz-adv-x="1000" />
+<glyph glyph-name="trash" unicode="&#xe81e;" d="m875 725h-250c0 22 0 50 0 62c0 18-15 34-34 34h-182c-19 0-34-16-34-34c0-14 0-41 0-62h-250v-63h69l57-715c0-19 16-34 34-34h432c19 0 34 15 34 34l58 715h66v63z m-459 33c0 14 11 25 24 25h120c13 0 24-11 24-25c0-6 0-20 0-33h-168c0 12 0 26 0 33z m287-757c0-15-11-26-26-26h-355c-14 0-25 11-25 26l-42 661h490l-42-661z m-273 37h-47l-39 562l46 0l40-562z m187 0l-46 0l39 562l47 0l-40-562z m-94 0h-47v562h47v-562z" horiz-adv-x="1000" />
+<glyph glyph-name="check" unicode="&#xe810;" d="m857 537l-81 83l-354-372l-135 128l-81-83l216-211l435 455z" horiz-adv-x="1000" />
+</font>
+</defs>
+</svg> \ No newline at end of file
diff --git a/dist/ratchicons/ratchicons.ttf b/dist/ratchicons/ratchicons.ttf
new file mode 100644
index 0000000..927eb58
--- /dev/null
+++ b/dist/ratchicons/ratchicons.ttf
Binary files differ
diff --git a/dist/ratchicons/ratchicons.woff b/dist/ratchicons/ratchicons.woff
new file mode 100644
index 0000000..25f1e75
--- /dev/null
+++ b/dist/ratchicons/ratchicons.woff
Binary files differ
diff --git a/dist/template.html b/dist/template.html
index 887c766..3dae6f6 100644
--- a/dist/template.html
+++ b/dist/template.html
@@ -36,45 +36,39 @@
</head>
<body>
- <!-- Make sure all your bars are the first things in your <body> -->
- <header class="bar-title">
- <h1 class="title">Ratchet</h1>
- </header>
+ <!-- Make sure all your bars are the first things in your <body> -->
+ <header class="bar bar-nav">
+ <h1 class="title">Ratchet</h1>
+ </header>
- <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
- <div class="content">
- <div class="content-padded">
+ <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
+ <div class="content">
<p class="welcome">Thanks for downloading Ratchet. This is an example HTML page that's linked up to compiled Ratchet CSS and JS, has the proper meta tags and the HTML structure. Need some more help before you start filling this with your own content? Check out some Ratchet resources:</p>
+ <div class="card">
+ <ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right" href="http://goratchet.com">
+ <strong>Ratchet documentation</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="https://goratchet.com">
+ <strong>Ratchet on Github</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="https://groups.google.com/forum/#!forum/goratchet">
+ <strong>Ratchet Google group</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="http://www.twitter.com/GoRatchet">
+ <strong>Ratchet on Twitter</strong>
+ </a>
+ </li>
+ </ul>
+ </div>
</div>
- <ul class="list inset">
- <li>
- <a href="http://maker.github.com/ratchet/">
- <strong>Ratchet documentation</strong>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="http://www.github.com/maker/ratchet/">
- <strong>Ratchet on Github</strong>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="https://groups.google.com/forum/#!forum/goratchet">
- <strong>Ratchet Google group</strong>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="http://www.twitter.com/GoRatchet">
- <strong>Ratchet on Twitter</strong>
- <span class="chevron"></span>
- </a>
- </li>
- </ul>
-
- </div>
-
</body>
</html> \ No newline at end of file
diff --git a/docs/LICENSE b/docs/LICENSE
new file mode 100644
index 0000000..0334caf
--- /dev/null
+++ b/docs/LICENSE
@@ -0,0 +1,319 @@
+Creative Commons Legal Code
+
+Attribution 3.0 Unported
+
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+ LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+ REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
+ DAMAGES RESULTING FROM ITS USE.
+
+License
+
+THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
+COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
+COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
+AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+
+BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
+TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
+BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
+CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
+CONDITIONS.
+
+1. Definitions
+
+ a. "Adaptation" means a work based upon the Work, or upon the Work and
+ other pre-existing works, such as a translation, adaptation,
+ derivative work, arrangement of music or other alterations of a
+ literary or artistic work, or phonogram or performance and includes
+ cinematographic adaptations or any other form in which the Work may be
+ recast, transformed, or adapted including in any form recognizably
+ derived from the original, except that a work that constitutes a
+ Collection will not be considered an Adaptation for the purpose of
+ this License. For the avoidance of doubt, where the Work is a musical
+ work, performance or phonogram, the synchronization of the Work in
+ timed-relation with a moving image ("synching") will be considered an
+ Adaptation for the purpose of this License.
+ b. "Collection" means a collection of literary or artistic works, such as
+ encyclopedias and anthologies, or performances, phonograms or
+ broadcasts, or other works or subject matter other than works listed
+ in Section 1(f) below, which, by reason of the selection and
+ arrangement of their contents, constitute intellectual creations, in
+ which the Work is included in its entirety in unmodified form along
+ with one or more other contributions, each constituting separate and
+ independent works in themselves, which together are assembled into a
+ collective whole. A work that constitutes a Collection will not be
+ considered an Adaptation (as defined above) for the purposes of this
+ License.
+ c. "Distribute" means to make available to the public the original and
+ copies of the Work or Adaptation, as appropriate, through sale or
+ other transfer of ownership.
+ d. "Licensor" means the individual, individuals, entity or entities that
+ offer(s) the Work under the terms of this License.
+ e. "Original Author" means, in the case of a literary or artistic work,
+ the individual, individuals, entity or entities who created the Work
+ or if no individual or entity can be identified, the publisher; and in
+ addition (i) in the case of a performance the actors, singers,
+ musicians, dancers, and other persons who act, sing, deliver, declaim,
+ play in, interpret or otherwise perform literary or artistic works or
+ expressions of folklore; (ii) in the case of a phonogram the producer
+ being the person or legal entity who first fixes the sounds of a
+ performance or other sounds; and, (iii) in the case of broadcasts, the
+ organization that transmits the broadcast.
+ f. "Work" means the literary and/or artistic work offered under the terms
+ of this License including without limitation any production in the
+ literary, scientific and artistic domain, whatever may be the mode or
+ form of its expression including digital form, such as a book,
+ pamphlet and other writing; a lecture, address, sermon or other work
+ of the same nature; a dramatic or dramatico-musical work; a
+ choreographic work or entertainment in dumb show; a musical
+ composition with or without words; a cinematographic work to which are
+ assimilated works expressed by a process analogous to cinematography;
+ a work of drawing, painting, architecture, sculpture, engraving or
+ lithography; a photographic work to which are assimilated works
+ expressed by a process analogous to photography; a work of applied
+ art; an illustration, map, plan, sketch or three-dimensional work
+ relative to geography, topography, architecture or science; a
+ performance; a broadcast; a phonogram; a compilation of data to the
+ extent it is protected as a copyrightable work; or a work performed by
+ a variety or circus performer to the extent it is not otherwise
+ considered a literary or artistic work.
+ g. "You" means an individual or entity exercising rights under this
+ License who has not previously violated the terms of this License with
+ respect to the Work, or who has received express permission from the
+ Licensor to exercise rights under this License despite a previous
+ violation.
+ h. "Publicly Perform" means to perform public recitations of the Work and
+ to communicate to the public those public recitations, by any means or
+ process, including by wire or wireless means or public digital
+ performances; to make available to the public Works in such a way that
+ members of the public may access these Works from a place and at a
+ place individually chosen by them; to perform the Work to the public
+ by any means or process and the communication to the public of the
+ performances of the Work, including by public digital performance; to
+ broadcast and rebroadcast the Work by any means including signs,
+ sounds or images.
+ i. "Reproduce" means to make copies of the Work by any means including
+ without limitation by sound or visual recordings and the right of
+ fixation and reproducing fixations of the Work, including storage of a
+ protected performance or phonogram in digital form or other electronic
+ medium.
+
+2. Fair Dealing Rights. Nothing in this License is intended to reduce,
+limit, or restrict any uses free from copyright or rights arising from
+limitations or exceptions that are provided for in connection with the
+copyright protection under copyright law or other applicable laws.
+
+3. License Grant. Subject to the terms and conditions of this License,
+Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
+perpetual (for the duration of the applicable copyright) license to
+exercise the rights in the Work as stated below:
+
+ a. to Reproduce the Work, to incorporate the Work into one or more
+ Collections, and to Reproduce the Work as incorporated in the
+ Collections;
+ b. to create and Reproduce Adaptations provided that any such Adaptation,
+ including any translation in any medium, takes reasonable steps to
+ clearly label, demarcate or otherwise identify that changes were made
+ to the original Work. For example, a translation could be marked "The
+ original work was translated from English to Spanish," or a
+ modification could indicate "The original work has been modified.";
+ c. to Distribute and Publicly Perform the Work including as incorporated
+ in Collections; and,
+ d. to Distribute and Publicly Perform Adaptations.
+ e. For the avoidance of doubt:
+
+ i. Non-waivable Compulsory License Schemes. In those jurisdictions in
+ which the right to collect royalties through any statutory or
+ compulsory licensing scheme cannot be waived, the Licensor
+ reserves the exclusive right to collect such royalties for any
+ exercise by You of the rights granted under this License;
+ ii. Waivable Compulsory License Schemes. In those jurisdictions in
+ which the right to collect royalties through any statutory or
+ compulsory licensing scheme can be waived, the Licensor waives the
+ exclusive right to collect such royalties for any exercise by You
+ of the rights granted under this License; and,
+ iii. Voluntary License Schemes. The Licensor waives the right to
+ collect royalties, whether individually or, in the event that the
+ Licensor is a member of a collecting society that administers
+ voluntary licensing schemes, via that society, from any exercise
+ by You of the rights granted under this License.
+
+The above rights may be exercised in all media and formats whether now
+known or hereafter devised. The above rights include the right to make
+such modifications as are technically necessary to exercise the rights in
+other media and formats. Subject to Section 8(f), all rights not expressly
+granted by Licensor are hereby reserved.
+
+4. Restrictions. The license granted in Section 3 above is expressly made
+subject to and limited by the following restrictions:
+
+ a. You may Distribute or Publicly Perform the Work only under the terms
+ of this License. You must include a copy of, or the Uniform Resource
+ Identifier (URI) for, this License with every copy of the Work You
+ Distribute or Publicly Perform. You may not offer or impose any terms
+ on the Work that restrict the terms of this License or the ability of
+ the recipient of the Work to exercise the rights granted to that
+ recipient under the terms of the License. You may not sublicense the
+ Work. You must keep intact all notices that refer to this License and
+ to the disclaimer of warranties with every copy of the Work You
+ Distribute or Publicly Perform. When You Distribute or Publicly
+ Perform the Work, You may not impose any effective technological
+ measures on the Work that restrict the ability of a recipient of the
+ Work from You to exercise the rights granted to that recipient under
+ the terms of the License. This Section 4(a) applies to the Work as
+ incorporated in a Collection, but this does not require the Collection
+ apart from the Work itself to be made subject to the terms of this
+ License. If You create a Collection, upon notice from any Licensor You
+ must, to the extent practicable, remove from the Collection any credit
+ as required by Section 4(b), as requested. If You create an
+ Adaptation, upon notice from any Licensor You must, to the extent
+ practicable, remove from the Adaptation any credit as required by
+ Section 4(b), as requested.
+ b. If You Distribute, or Publicly Perform the Work or any Adaptations or
+ Collections, You must, unless a request has been made pursuant to
+ Section 4(a), keep intact all copyright notices for the Work and
+ provide, reasonable to the medium or means You are utilizing: (i) the
+ name of the Original Author (or pseudonym, if applicable) if supplied,
+ and/or if the Original Author and/or Licensor designate another party
+ or parties (e.g., a sponsor institute, publishing entity, journal) for
+ attribution ("Attribution Parties") in Licensor's copyright notice,
+ terms of service or by other reasonable means, the name of such party
+ or parties; (ii) the title of the Work if supplied; (iii) to the
+ extent reasonably practicable, the URI, if any, that Licensor
+ specifies to be associated with the Work, unless such URI does not
+ refer to the copyright notice or licensing information for the Work;
+ and (iv) , consistent with Section 3(b), in the case of an Adaptation,
+ a credit identifying the use of the Work in the Adaptation (e.g.,
+ "French translation of the Work by Original Author," or "Screenplay
+ based on original Work by Original Author"). The credit required by
+ this Section 4 (b) may be implemented in any reasonable manner;
+ provided, however, that in the case of a Adaptation or Collection, at
+ a minimum such credit will appear, if a credit for all contributing
+ authors of the Adaptation or Collection appears, then as part of these
+ credits and in a manner at least as prominent as the credits for the
+ other contributing authors. For the avoidance of doubt, You may only
+ use the credit required by this Section for the purpose of attribution
+ in the manner set out above and, by exercising Your rights under this
+ License, You may not implicitly or explicitly assert or imply any
+ connection with, sponsorship or endorsement by the Original Author,
+ Licensor and/or Attribution Parties, as appropriate, of You or Your
+ use of the Work, without the separate, express prior written
+ permission of the Original Author, Licensor and/or Attribution
+ Parties.
+ c. Except as otherwise agreed in writing by the Licensor or as may be
+ otherwise permitted by applicable law, if You Reproduce, Distribute or
+ Publicly Perform the Work either by itself or as part of any
+ Adaptations or Collections, You must not distort, mutilate, modify or
+ take other derogatory action in relation to the Work which would be
+ prejudicial to the Original Author's honor or reputation. Licensor
+ agrees that in those jurisdictions (e.g. Japan), in which any exercise
+ of the right granted in Section 3(b) of this License (the right to
+ make Adaptations) would be deemed to be a distortion, mutilation,
+ modification or other derogatory action prejudicial to the Original
+ Author's honor and reputation, the Licensor will waive or not assert,
+ as appropriate, this Section, to the fullest extent permitted by the
+ applicable national law, to enable You to reasonably exercise Your
+ right under Section 3(b) of this License (right to make Adaptations)
+ but not otherwise.
+
+5. Representations, Warranties and Disclaimer
+
+UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
+OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
+KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
+INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
+FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF
+LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
+WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION
+OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
+
+6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE
+LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR
+ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
+ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
+BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+7. Termination
+
+ a. This License and the rights granted hereunder will terminate
+ automatically upon any breach by You of the terms of this License.
+ Individuals or entities who have received Adaptations or Collections
+ from You under this License, however, will not have their licenses
+ terminated provided such individuals or entities remain in full
+ compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
+ survive any termination of this License.
+ b. Subject to the above terms and conditions, the license granted here is
+ perpetual (for the duration of the applicable copyright in the Work).
+ Notwithstanding the above, Licensor reserves the right to release the
+ Work under different license terms or to stop distributing the Work at
+ any time; provided, however that any such election will not serve to
+ withdraw this License (or any other license that has been, or is
+ required to be, granted under the terms of this License), and this
+ License will continue in full force and effect unless terminated as
+ stated above.
+
+8. Miscellaneous
+
+ a. Each time You Distribute or Publicly Perform the Work or a Collection,
+ the Licensor offers to the recipient a license to the Work on the same
+ terms and conditions as the license granted to You under this License.
+ b. Each time You Distribute or Publicly Perform an Adaptation, Licensor
+ offers to the recipient a license to the original Work on the same
+ terms and conditions as the license granted to You under this License.
+ c. If any provision of this License is invalid or unenforceable under
+ applicable law, it shall not affect the validity or enforceability of
+ the remainder of the terms of this License, and without further action
+ by the parties to this agreement, such provision shall be reformed to
+ the minimum extent necessary to make such provision valid and
+ enforceable.
+ d. No term or provision of this License shall be deemed waived and no
+ breach consented to unless such waiver or consent shall be in writing
+ and signed by the party to be charged with such waiver or consent.
+ e. This License constitutes the entire agreement between the parties with
+ respect to the Work licensed here. There are no understandings,
+ agreements or representations with respect to the Work not specified
+ here. Licensor shall not be bound by any additional provisions that
+ may appear in any communication from You. This License may not be
+ modified without the mutual written agreement of the Licensor and You.
+ f. The rights granted under, and the subject matter referenced, in this
+ License were drafted utilizing the terminology of the Berne Convention
+ for the Protection of Literary and Artistic Works (as amended on
+ September 28, 1979), the Rome Convention of 1961, the WIPO Copyright
+ Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996
+ and the Universal Copyright Convention (as revised on July 24, 1971).
+ These rights and subject matter take effect in the relevant
+ jurisdiction in which the License terms are sought to be enforced
+ according to the corresponding provisions of the implementation of
+ those treaty provisions in the applicable national law. If the
+ standard suite of rights granted under applicable copyright law
+ includes additional rights not granted under this License, such
+ additional rights are deemed to be included in the License; this
+ License is not intended to restrict the license of any rights under
+ applicable law.
+
+
+Creative Commons Notice
+
+ Creative Commons is not a party to this License, and makes no warranty
+ whatsoever in connection with the Work. Creative Commons will not be
+ liable to You or any party on any legal theory for any damages
+ whatsoever, including without limitation any general, special,
+ incidental or consequential damages arising in connection to this
+ license. Notwithstanding the foregoing two (2) sentences, if Creative
+ Commons has expressly identified itself as the Licensor hereunder, it
+ shall have all rights and obligations of Licensor.
+
+ Except for the limited purpose of indicating to the public that the
+ Work is licensed under the CCPL, Creative Commons does not authorize
+ the use by either party of the trademark "Creative Commons" or any
+ related trademark or logo of Creative Commons without the prior
+ written consent of Creative Commons. Any permitted use will be in
+ compliance with Creative Commons' then-current trademark usage
+ guidelines, as may be published on its website or otherwise made
+ available upon request from time to time. For the avoidance of doubt,
+ this trademark restriction does not form part of this License.
+
+ Creative Commons may be contacted at http://creativecommons.org/. \ No newline at end of file
diff --git a/docs/_includes/ad.html b/docs/_includes/ad.html
new file mode 100644
index 0000000..7487341
--- /dev/null
+++ b/docs/_includes/ad.html
@@ -0,0 +1 @@
+<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> \ No newline at end of file
diff --git a/docs/_includes/download-module.html b/docs/_includes/download-module.html
new file mode 100644
index 0000000..47d27df
--- /dev/null
+++ b/docs/_includes/download-module.html
@@ -0,0 +1,5 @@
+<div class="docs-module">
+ <h4 class="docs-module-title">Download Ratchet</h4>
+ <p>If you haven't already, download the cource code for Ratchet.</p>
+ <a href="https://github.com/twbs/ratchet/archive/v2.0.0.zip" class="btn btn-block btn-primary" data-ignore="push" onClick="_gaq.push(['_trackEvent', 'Downloads', 'V2.0']);">Download Ratchet</a>
+</div> \ No newline at end of file
diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html
new file mode 100644
index 0000000..d3987fc
--- /dev/null
+++ b/docs/_includes/footer.html
@@ -0,0 +1,18 @@
+<div class="docs-footer">
+ <!-- Social links -->
+ <ul class="social">
+ <li>
+ <iframe src="http://ghbtns.com/github-btn.html?user=twbs&repo=ratchet&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
+ </li>
+ <li>
+ <a data-ignore="push" href="https://twitter.com/share" class="twitter-share-button" data-url="http://goratchet.com" data-text="Ratchet &#8211; Build mobile apps with simple HTML, CSS, and JS components." data-via="GoRatchet">Tweet</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </li>
+ <li><a data-ignore="push" href="https://twitter.com/GoRatchet" class="twitter-follow-button" data-show-count="true">
+ Follow @GoRatchet</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </li>
+ </ul>
+
+ <p class="docs-footer-content">Code licensed under the MIT license and the docs are licensed under CC BY 3.0. Ratchet version 2.0.0 was lovingly crafted by <a href="https://twitter.com/connors" data-ignore="push">Connor Sears</a>.</p>
+</div>
diff --git a/docs/_includes/header.html b/docs/_includes/header.html
new file mode 100644
index 0000000..dd3885f
--- /dev/null
+++ b/docs/_includes/header.html
@@ -0,0 +1,43 @@
+<meta charset="utf-8">
+<title>{{ page.title }}</title>
+<meta name="description" content="{{ site.name }}: {{ site.description }}">
+<meta name="author" content="{{ site.authors }}">
+<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">
+
+<link rel="stylesheet" href="../dist/ratchet.css">
+<link rel="stylesheet" href="../assets/css/docs.css">
+<link rel="stylesheet" href="../assets/css/pygments.css">
+<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+
+<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/img/apple-touch-icon-114x114.png">
+
+<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
+<script src="../dist/ratchet.js"></script>
+<script src="../assets/js/docs.js"></script>
+<script src="../assets/js/fingerblast.js"></script>
+
+<!-- Typekit -->
+<script type="text/javascript" src="//use.typekit.net/asj6ttm.js"></script>
+<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
+
+<!-- Roboto -->
+<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,500' rel='stylesheet' type='text/css'>
+
+<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);
+ })();
+ // Remove once I add back in the docs.js
+ // $(function() {
+ // $(window).on('load', function () { new FingerBlast('.body'); });
+ // });
+</script> \ No newline at end of file
diff --git a/docs/_includes/jump.html b/docs/_includes/jump.html
new file mode 100644
index 0000000..ddc0bfe
--- /dev/null
+++ b/docs/_includes/jump.html
@@ -0,0 +1,21 @@
+<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> \ No newline at end of file
diff --git a/docs/_includes/masthead.html b/docs/_includes/masthead.html
new file mode 100644
index 0000000..04e9e86
--- /dev/null
+++ b/docs/_includes/masthead.html
@@ -0,0 +1,19 @@
+<header class="docs-masthead clearfix">
+ <div class="container">
+ <div class="column units-2">
+ <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="https://github.com/twbs/ratchet" data-ignore="push">GitHub project</a>
+ </div>
+ </nav>
+ </div>
+ </div>
+</header>
diff --git a/docs/_includes/toolbar.html b/docs/_includes/toolbar.html
new file mode 100644
index 0000000..d04c043
--- /dev/null
+++ b/docs/_includes/toolbar.html
@@ -0,0 +1,19 @@
+<div class="docs-component-toolbar js-docs-component-toolbar">
+ <div class="container">
+ <div class="column units-2">
+ {% include jump.html %}
+
+ <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>
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
new file mode 100644
index 0000000..fa4e0fa
--- /dev/null
+++ b/docs/_layouts/default.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ {% include header.html %}
+ </head>
+ <body ontouchstart="">
+ {{ content }}
+ </body>
+ </html> \ No newline at end of file
diff --git a/docs/_layouts/home.html b/docs/_layouts/home.html
new file mode 100644
index 0000000..a4e6b5c
--- /dev/null
+++ b/docs/_layouts/home.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ {% include header.html %}
+ </head>
+ <body class="docs-home" ontouchstart="">
+ {{ content }}
+ </body>
+ </html> \ No newline at end of file
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
new file mode 100644
index 0000000..40021be
--- /dev/null
+++ b/docs/assets/css/docs.css
@@ -0,0 +1,2087 @@
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
+ */
+
+html,
+body {
+ width: 100%;
+ height: 100%;
+}
+
+body {
+ position: relative !important;
+ font: 14px/1.5 "adelle-sans",sans-serif;
+ color: #333;
+ background-color: #fff;
+ -webkit-font-smoothing: antialiased;
+ -webkit-text-size-adjust: 100%;
+}
+
+.docs-header,
+.docs-sub-header {
+ position: relative;
+ background-image: linear-gradient(45deg, #0a1855 0%, #da0024 100%);
+}
+.docs-header:before,
+.docs-sub-header:before {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ left: 0;
+ background-image: url(../img/pattern.png);
+ background-size: 30%;
+ background-position: center center;
+ opacity: .038;
+}
+
+.docs-header {
+ height: 100vh;
+ min-height: 700px;
+}
+.docs-header .carbonad {
+ position: absolute !important;
+ bottom: 180px !important;
+ margin-top: 0 !important;
+ -webkit-animation-name: fadeintext;
+ -moz-animation-name: fadeintext;
+ animation-name: fadeintext;
+ -webkit-animation-duration: 2s;
+ -moz-animation-duration: 2s;
+ animation-duration: 2s;
+}
+
+.docs-masthead {
+ position: relative;
+ padding-top: 15px;
+ padding-bottom: 15px;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.docs-title {
+ position: absolute;
+ left: 50%;
+ margin-bottom: 0;
+ font-size: 22px;
+ font-weight: 100;
+ z-index: 20;
+ -webkit-transform: translateX(-50%);
+ -ms-transform: translateX(-50%);
+ transform: translateX(-50%);
+}
+
+.docs-nav .docs-nav-trigger {
+ color: #fff;
+ cursor: pointer;
+ opacity: .7;
+}
+.docs-nav .docs-nav-trigger.active {
+ opacity: 1;
+}
+.docs-nav .docs-nav-group {
+ position: absolute;
+ top: 40px;
+ left: 0;
+ right: 0;
+ z-index: 20;
+ overflow: hidden;
+ height: 0;
+ background-color: rgba(0, 0, 0, 0.9);
+ opacity: 0;
+}
+.docs-nav .docs-nav-group.active {
+ height: auto;
+ opacity: 1;
+}
+.docs-nav .docs-nav-item {
+ display: block;
+ padding: 20px 15px;
+ font-weight: 100;
+ font-size: 22px;
+}
+
+.docs-jump-menu,
+.docs-component-group {
+ display: none;
+}
+
+.docs-title a,
+.docs-nav-item {
+ color: #fff;
+ -webkit-transition: opacity 0.2s linear;
+ -moz-transition: opacity 0.2s linear;
+ transition: opacity 0.2s linear;
+}
+.docs-title a:active, .docs-title a:focus,
+.docs-nav-item:active,
+.docs-nav-item:focus {
+ color: #fff;
+ opacity: .5;
+}
+
+.docs-header-content {
+ position: relative;
+ top: 30px;
+ text-align: center;
+ padding: 50px 10px;
+ -webkit-animation-name: fadeintext;
+ -moz-animation-name: fadeintext;
+ animation-name: fadeintext;
+ -webkit-animation-duration: 2s;
+ -moz-animation-duration: 2s;
+ animation-duration: 2s;
+}
+.docs-header-content .btn {
+ display: block;
+ padding: 15px 60px 16px;
+ font-size: 18px;
+ margin-bottom: 0;
+ color: #0a1855;
+ background-color: #fff;
+ border: 0;
+ -webkit-transition: all 0.2s linear;
+ -moz-transition: all 0.2s linear;
+ transition: all 0.2s linear;
+}
+.docs-header-content .btn:hover {
+ background-color: #fff;
+ -webkit-box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
+ box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
+}
+.docs-header-content .btn:active {
+ opacity: .5;
+}
+
+.docs-subtitle {
+ max-width: 750px;
+ margin: 0 auto 20px;
+ font-size: 28px;
+ font-weight: 100;
+ color: #fff;
+ line-height: 38px;
+}
+
+.carbonad {
+ width: 100% !important;
+ height: auto !important;
+ padding: 15px !important;
+ font-size: 13px !important;
+ line-height: 18px !important;
+ background: transparent !important;
+ border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
+ border-right: 0 !important;
+ border-bottom: 0 !important;
+ border-left: 0 !important;
+}
+
+.carbonad-img {
+ margin: 0 !important;
+}
+
+.carbonad-text,
+.carbonad-tag {
+ display: block !important;
+ float: none !important;
+ width: auto !important;
+ height: auto !important;
+ margin-left: 145px !important;
+ color: rgba(255, 255, 255, 0.65) !important;
+ font-family: "adelle-sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
+}
+
+.carbonad-text {
+ padding-top: 0 !important;
+}
+
+.carbonad-tag {
+ text-align: left !important;
+}
+
+.carbonad-text a,
+.carbonad-tag a {
+ color: #fff !important;
+}
+
+.carbonad #azcarbon > img {
+ display: none;
+}
+
+.docs-sub-content {
+ position: relative;
+ overflow: hidden;
+ padding-top: 55px;
+ padding-bottom: 65px;
+ color: #fff;
+ text-align: center;
+}
+.docs-sub-content .page-title,
+.docs-sub-content .page-description {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-weight: 100;
+}
+.docs-sub-content .page-title {
+ font-size: 40px;
+ margin-bottom: 5px;
+}
+.docs-sub-content .page-description {
+ color: #fff;
+ font-size: 24px;
+ opacity: .7;
+}
+
+.docs-section {
+ padding-top: 80px;
+ padding-bottom: 80px;
+}
+
+.section-heading,
+.section-lead {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+.section-heading {
+ font-size: 22px;
+ font-weight: 300;
+}
+
+.section-lead {
+ font-size: 18px;
+ color: #777;
+ font-weight: 100;
+}
+
+.docs-steps {
+ margin-top: 20px;
+ padding: 0;
+ list-style: none;
+}
+
+.step {
+ padding-top: 30px;
+ padding-bottom: 30px;
+}
+
+.step-title,
+.step-description {
+ font-weight: 300;
+}
+
+.step-title {
+ font-size: 18px;
+}
+
+.step-title code {
+ font-size: 14px;
+}
+
+.step-description {
+ font-size: 14px;
+}
+
+.docs-module {
+ margin-top: 20px;
+ padding: 20px;
+ border: 1px solid #dddddd;
+ border-radius: 3px;
+}
+.docs-module .btn-block {
+ margin-bottom: 0;
+}
+
+.docs-module-title {
+ font-weight: 300;
+}
+
+.docs-footer {
+ border-top: 1px solid #ddd;
+ margin-top: 50px;
+ padding-top: 30px;
+ padding-bottom: 30px;
+ text-align: center;
+}
+.docs-footer .social {
+ padding: 0 0 20px;
+ margin: 0;
+ list-style: none;
+}
+.docs-footer .social li {
+ height: 20px;
+ display: inline-block;
+ vertical-align: top;
+}
+.docs-footer .social .twitter-follow-button {
+ margin-top: 5px;
+}
+
+.docs-footer-content {
+ margin: 0;
+ color: #777;
+ font-size: 12px;
+}
+
+.docs-header .docs-footer {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ margin-top: 0;
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
+}
+.docs-header .docs-footer .docs-footer-content {
+ color: rgba(255, 255, 255, 0.5);
+}
+.docs-header .docs-footer .docs-footer-content a {
+ font-weight: bold;
+ color: rgba(255, 255, 255, 0.8);
+}
+
+.docs-component-toolbar {
+ padding-top: 8px;
+ padding-bottom: 8px;
+ position: fixed;
+ top: 0;
+ bottom: auto;
+ left: 0;
+ right: 0;
+ z-index: 20;
+ height: 44px;
+ background-color: #fff;
+ border-bottom: 1px solid #ddd;
+ -webkit-transition: -webkit-transform .5s;
+ -moz-transition: -moz-transform .5s;
+ transition: transform .5s;
+ -webkit-transform: translate3d(0, -55px, 0);
+ -ms-transform: translate3d(0, -55px, 0);
+ transform: translate3d(0, -55px, 0);
+}
+.docs-component-toolbar.visible {
+ -webkit-transform: translateY(0);
+ -ms-transform: translateY(0);
+ transform: translateY(0);
+ -webkit-transform: translate3d(0, 0, 0);
+ -ms-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+}
+.docs-component-toolbar .segmented-control {
+ max-width: 300px;
+ margin: 0 auto;
+}
+.docs-component-toolbar .segmented-control .control-item {
+ cursor: pointer;
+}
+
+.docs-examples {
+ margin-top: 50px;
+ margin-bottom: 50px;
+}
+
+.docs-example-group {
+ margin-top: 30px;
+}
+.docs-example-group .example-wrap {
+ display: inline-block;
+ margin-right: 10px;
+}
+.docs-example-group .example-wrap:last-child {
+ margin-right: 10px;
+}
+.docs-example-group .example-wrap .example {
+ display: block;
+ padding: 4px;
+ overflow: hidden;
+ padding: 3px;
+ width: 100%;
+ border: 1px solid #dddddd;
+ border-radius: 3px;
+}
+.docs-example-group .example-wrap h5 {
+ margin-top: 10px;
+ font-weight: 300;
+}
+.docs-example-group .example-wrap img {
+ display: block;
+ width: 100%;
+}
+
+code {
+ padding: 2px 4px;
+ font-size: 90%;
+ background-color: #f9f9f9;
+ border-radius: 3px;
+}
+
+.component {
+ padding: 50px 15px;
+ margin-left: -15px;
+ margin-right: -15px;
+ border-bottom: 1px solid #ddd;
+}
+.component.no-border {
+ border-bottom: 0;
+}
+
+.component-title {
+ margin-bottom: 10px;
+ font-size: 24px;
+ font-weight: 300;
+ line-height: 34px;
+}
+
+.component-description {
+ margin-bottom: 15px;
+ font-size: 16px;
+ font-weight: 300;
+}
+
+.component-example {
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ font-size: 17px;
+ line-height: 21px;
+}
+
+.component-example,
+.component-example .bar,
+.component-example .content {
+ position: relative;
+}
+
+.component-example .bar {
+ border-top: 1px solid #dddddd;
+ border-bottom: 1px solid #dddddd;
+}
+.component-example .bar.bar-header-secondary {
+ top: 0 !important;
+ border-top: 0;
+}
+
+.component-example > .content-padded {
+ margin: 15px;
+}
+
+.component-example > .card {
+ margin: 15px 0 0;
+}
+.component-example > .card .control-content {
+ padding: 15px;
+}
+
+.component-example > .btn,
+.component-example > .toggle {
+ margin-bottom: 10px;
+}
+
+.component-example .slider {
+ height: 200px;
+}
+
+.component-example .slide img {
+ width: 100%;
+ height: 200px;
+}
+
+.component-example .slide-text {
+ position: absolute;
+ top: 45%;
+ left: 0;
+ width: 100%;
+ color: #fff;
+ text-align: center;
+ font-size: 24px;
+ font-weight: 300;
+ text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
+}
+
+.component-example-fullbleed,
+.highlight {
+ margin-left: -15px;
+ margin-right: -15px;
+}
+
+.bar-nav ~ .content {
+ padding: 0;
+}
+
+.highlight pre {
+ margin-top: 15px;
+ padding: 15px;
+ font-size: 13px;
+ overflow-x: auto;
+ color: #777;
+ background-color: #fafafa;
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ white-space: pre;
+ word-wrap: normal;
+}
+
+#ratchicons .icon,
+#ratchiconsInDevice .icon {
+ width: 50px;
+ height: 50px;
+ margin: 3px;
+ font-size: 24px;
+ line-height: 50px;
+ text-align: center;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 25px;
+}
+
+#modals .modal {
+ left: 0;
+ z-index: 50;
+}
+
+#push .component-example {
+ height: 150px;
+ overflow: hidden;
+}
+
+#buttonsInDevice .btn,
+#buttonsBadgesInDevice .btn {
+ margin-top: 10px;
+ margin-right: 100px;
+ margin-left: 10px;
+}
+
+#blockButtonsInDevice .btn-block {
+ margin: 10px;
+}
+
+#segmentedControlsInDevice .segmented-control {
+ margin-top: 10px;
+ margin-right: 10px;
+ margin-left: 10px;
+}
+#segmentedControlsInDevice .card span {
+ padding: 10px;
+}
+
+#badgesInDevice {
+ text-align: center;
+}
+#badgesInDevice .badge {
+ margin-top: 10px;
+}
+
+#formsInDevice form {
+ margin: 10px;
+}
+#formsInDevice form.input-group {
+ margin: 0;
+}
+
+#togglesInDevice .toggle {
+ margin: 10px auto;
+}
+
+#popoversInDevice #iwindow:before {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 11;
+ background-color: rgba(0, 0, 0, 0.3);
+ content: '';
+}
+
+#modalsInDevice #iwindow > .btn {
+ margin: 10px;
+}
+
+.device {
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ font-size: 17px;
+ line-height: 21px;
+ display: none;
+}
+
+hr {
+ height: 0;
+ margin: 10px 0 30px;
+ border: solid #ddd;
+ border-width: 1px 0 0;
+ clear: both;
+}
+
+.column-group {
+ *zoom: 1;
+}
+
+.column-group:before,
+.column-group:after {
+ display: table;
+ line-height: 0;
+ content: "";
+}
+
+.column-group:after {
+ clear: both;
+}
+
+.clear {
+ display: block;
+ width: 0;
+ height: 0;
+ overflow: hidden;
+ visibility: hidden;
+ clear: both;
+}
+
+@media screen and (min-width: 768px) {
+ .docs-header {
+ min-height: 830px;
+ }
+ .docs-header .carbonad {
+ bottom: 180px !important;
+ left: 50% !important;
+ margin-left: -165px !important;
+ }
+
+ .docs-sub-header .carbonad {
+ position: absolute !important;
+ top: 50% !important;
+ right: 15px !important;
+ margin-top: 0 !important;
+ -webkit-transform: translateY(-50%) !important;
+ -ms-transform: translateY(-50%) !important;
+ transform: translateY(-50%) !important;
+ }
+
+ .docs-sub-content {
+ margin-right: 380px;
+ text-align: left;
+ }
+
+ .docs-title {
+ position: static;
+ float: left;
+ -webkit-transform: translateX(0);
+ -ms-transform: translateX(0);
+ transform: translateX(0);
+ }
+
+ .docs-header-content {
+ top: 32%;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ }
+ .docs-header-content .btn {
+ display: inline-block;
+ }
+
+ .docs-subtitle {
+ margin-bottom: 30px;
+ font-size: 41px;
+ line-height: 60px;
+ }
+
+ .docs-nav {
+ float: right;
+ }
+ .docs-nav .docs-nav-trigger {
+ display: none;
+ }
+ .docs-nav .docs-nav-group {
+ position: static;
+ display: block;
+ height: auto;
+ background-color: transparent;
+ opacity: 1;
+ }
+ .docs-nav .docs-nav-item {
+ position: relative;
+ display: inline-block;
+ padding: 0 15px;
+ font-size: 14px;
+ }
+
+ .docs-jump-menu {
+ position: absolute;
+ left: 20px;
+ display: block;
+ color: #777;
+ cursor: pointer;
+ -webkit-transition: opacity 0.2 linear;
+ -moz-transition: opacity 0.2 linear;
+ transition: opacity 0.2 linear;
+ }
+ .docs-jump-menu:hover {
+ color: #428bca;
+ }
+ .docs-jump-menu:active {
+ opacity: .5;
+ }
+ .docs-jump-menu .icon-list {
+ font-size: 16px;
+ margin-right: 3px;
+ }
+ .docs-jump-menu .icon-caret {
+ position: relative;
+ top: 4px;
+ }
+
+ .docs-component-group {
+ position: absolute;
+ top: 35px;
+ left: 30px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ background-color: #fff;
+ background-clip: padding-box;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ border-radius: 3px;
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
+ }
+ .docs-component-group.active {
+ display: block;
+ }
+ .docs-component-group:before, .docs-component-group:after {
+ position: absolute;
+ left: 30px;
+ width: 0;
+ height: 0;
+ content: '';
+ }
+ .docs-component-group:before {
+ top: -11px;
+ margin-left: -11px;
+ border-right: 11px solid transparent;
+ border-bottom: 11px solid rgba(0, 0, 0, 0.3);
+ border-left: 11px solid transparent;
+ }
+ .docs-component-group:after {
+ top: -10px;
+ margin-left: -10px;
+ border-right: 10px solid transparent;
+ border-bottom: 10px solid #fff;
+ border-left: 10px solid transparent;
+ }
+ .docs-component-group .docs-component-item {
+ display: block;
+ padding: 10px 20px;
+ color: #777;
+ }
+ .docs-component-group .docs-component-item:hover {
+ color: #fff;
+ background-color: #428bca;
+ }
+
+ .carbonad {
+ width: 330px !important;
+ border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
+ border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
+ border-radius: 3px !important;
+ }
+
+ .docs-footer .social .twitter-follow-button {
+ margin-top: 0px;
+ }
+
+ .step-title {
+ font-size: 24px;
+ }
+
+ .step-title code {
+ font-size: 18px;
+ }
+
+ .step-description {
+ font-size: 18px;
+ }
+
+ .docs-module {
+ margin-top: 35px;
+ }
+
+ .section-heading {
+ margin-top: 50px;
+ margin-bottom: 10px;
+ font-size: 40px;
+ }
+
+ .section-lead {
+ font-size: 24px;
+ }
+
+ .device {
+ position: relative;
+ top: 50px;
+ display: block;
+ width: 395px;
+ height: 813px;
+ margin-left: -20px;
+ font-family: "Helvetica Neue", sans-serif;
+ background-image: url("../img/iphone5c.png");
+ background-size: 100%;
+ background-repeat: no-repeat;
+ -webkit-transition: background-image 0.1s linear;
+ -moz-transition: background-image 0.1s linear;
+ transition: background-image 0.1s linear;
+ }
+ .device.device-fixed {
+ position: fixed;
+ right: auto;
+ }
+
+ .device .device-content {
+ position: absolute;
+ top: 117px;
+ left: 37px;
+ width: 320px;
+ height: 569px;
+ overflow: hidden;
+ font-size: 17px;
+ line-height: 21px;
+ background-color: #fff;
+ }
+
+ .device .content,
+ .device .bar,
+ .device .modal {
+ position: absolute;
+ }
+
+ .device .content {
+ top: 44px;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ }
+
+ .component,
+ .component-example-fullbleed,
+ .highlight {
+ margin-left: 0;
+ margin-right: 0;
+ }
+
+ .component {
+ padding-left: 0;
+ padding-right: 0;
+ opacity: .3;
+ -webkit-transition: opacity 0.2s ease-in-out;
+ -moz-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+ }
+ .component.active {
+ opacity: 1;
+ }
+
+ .component-example {
+ display: none;
+ }
+
+ .highlight pre {
+ border-left: 1px solid #ddd;
+ border-right: 1px solid #ddd;
+ border-radius: 3px;
+ }
+
+ .popover {
+ position: absolute;
+ display: block;
+ top: 72px;
+ opacity: 1;
+ }
+
+ .slider .slide img {
+ width: 100%;
+ height: 570px;
+ display: block;
+ }
+
+ .slider .slide-group .slide-text {
+ position: absolute;
+ top: 45%;
+ left: 0;
+ width: 100%;
+ color: #fff;
+ text-align: center;
+ font-size: 24px;
+ font-weight: 300;
+ text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
+ }
+
+ .docs-example-group .example-wrap {
+ display: inline-block;
+ }
+ .docs-example-group .example-wrap .example {
+ width: 180px;
+ }
+}
+@media screen and (min-width: 1200px) {
+ .device {
+ margin-left: 39px;
+ }
+
+ .docs-sub-header .carbonad {
+ right: 30px !important;
+ }
+
+ .docs-jump-menu {
+ left: 30px;
+ }
+
+ .docs-example-group .example-wrap .example {
+ width: 220px;
+ }
+}
+.container {
+ position: relative;
+ margin-left: auto;
+ margin-right: auto;
+ padding-left: 0;
+ padding-right: 0;
+}
+
+.column-group {
+ width: auto;
+}
+
+.column {
+ padding-left: 15px;
+ padding-right: 15px;
+ float: left;
+}
+.column.pull-right {
+ float: right;
+}
+
+.column .column-group {
+ margin-left: -15px;
+ margin-right: -15px;
+}
+
+.units-1 {
+ width: 50%;
+}
+
+.units-2 {
+ width: 100%;
+}
+
+.offset-1 {
+ margin-left: 50%;
+}
+
+@media screen and (min-width: 768px) {
+ .container {
+ padding: 0;
+ max-width: 940px;
+ }
+
+ .column {
+ padding-left: 20px;
+ padding-right: 20px;
+ }
+
+ .column .column-group {
+ margin-left: -20px;
+ margin-right: -20px;
+ }
+
+ .units-1 {
+ width: 50%;
+ }
+
+ .units-2 {
+ width: 100%;
+ }
+
+ .lg-units-1 {
+ width: 8.333%;
+ }
+
+ .lg-units-2 {
+ width: 16.666%;
+ }
+
+ .lg-units-3 {
+ width: 25%;
+ }
+
+ .lg-units-4 {
+ width: 33.333%;
+ }
+
+ .lg-units-5 {
+ width: 41.666%;
+ }
+
+ .lg-units-6 {
+ width: 50%;
+ }
+
+ .lg-units-7 {
+ width: 58.333%;
+ }
+
+ .lg-units-8 {
+ width: 66.666%;
+ }
+
+ .lg-units-9 {
+ width: 75%;
+ }
+
+ .lg-units-10 {
+ width: 83.333%;
+ }
+
+ .lg-units-11 {
+ width: 91.666%;
+ }
+
+ .lg-units-12 {
+ width: 100%;
+ }
+
+ .lg-offset-1 {
+ margin-left: 8.333%;
+ }
+
+ .lg-offset-2 {
+ margin-left: 16.666%;
+ }
+
+ .lg-offset-3 {
+ margin-left: 25%;
+ }
+
+ .lg-offset-4 {
+ margin-left: 33.333%;
+ }
+
+ .lg-offset-5 {
+ margin-left: 41.666%;
+ }
+
+ .lg-offset-6 {
+ margin-left: 50%;
+ }
+
+ .lg-offset-7 {
+ margin-left: 58.333%;
+ }
+
+ .lg-offset-8 {
+ margin-left: 66.666%;
+ }
+
+ .lg-offset-9 {
+ margin-left: 75%;
+ }
+
+ .lg-offset-10 {
+ margin-left: 83.333%;
+ }
+
+ .lg-offset-11 {
+ margin-left: 91.666%;
+ }
+}
+@media screen and (min-width: 1200px) {
+ .container {
+ max-width: 1170px;
+ }
+
+ .column {
+ padding-left: 30px;
+ padding-right: 30px;
+ }
+
+ .column .column-group {
+ margin-left: -30px;
+ margin-right: -30px;
+ }
+}
+.platform-ios {
+ @-webkit-keyframes fadeOverlay {
+ from {
+ -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0);
+ }
+
+ to {
+ -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1);
+ }
+}
+
+}
+.platform-ios a {
+ color: #007aff;
+}
+.platform-ios a:active {
+ color: #0062cc;
+}
+.platform-ios .content {
+ background-color: #efeff4;
+}
+.platform-ios .h5, .platform-ios h5,
+.platform-ios .h6, .platform-ios h6,
+.platform-ios p {
+ color: #8f8f94;
+}
+.platform-ios .h5, .platform-ios h5,
+.platform-ios .h6, .platform-ios h6 {
+ font-weight: normal;
+ text-transform: uppercase;
+}
+.platform-ios .btn {
+ border: 1px solid #929292;
+ color: #929292;
+ background-color: rgba(247, 247, 247, 0.98);
+ -webkit-transition: all;
+ -moz-transition: all;
+ transition: all;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+ -webkit-transition-timing-function: linear;
+ -moz-transition-timing-function: linear;
+ transition-timing-function: linear;
+}
+.platform-ios .btn:active, .platform-ios .btn.active {
+ color: #fff;
+ background-color: #929292;
+}
+.platform-ios .btn-primary {
+ color: #fff;
+ border: 1px solid #007aff;
+ background-color: #007aff;
+}
+.platform-ios .btn-primary:active, .platform-ios .btn-primary.active {
+ border: 1px solid #0062cc;
+ background-color: #0062cc;
+}
+.platform-ios .btn-positive {
+ color: #fff;
+ border: 1px solid #4cd964;
+ background-color: #4cd964;
+}
+.platform-ios .btn-positive:active, .platform-ios .btn-positive.active {
+ border: 1px solid #2ac845;
+ background-color: #2ac845;
+}
+.platform-ios .btn-negative {
+ color: #fff;
+ border: 1px solid #dd524d;
+ background-color: #dd524d;
+}
+.platform-ios .btn-negative:active, .platform-ios .btn-negative.active {
+ border: 1px solid #cf2d28;
+ background-color: #cf2d28;
+}
+.platform-ios .btn-outlined {
+ background-color: transparent;
+}
+.platform-ios .btn-outlined.btn-primary {
+ color: #007aff;
+}
+.platform-ios .btn-outlined.btn-positive {
+ color: #4cd964;
+}
+.platform-ios .btn-outlined.btn-negative {
+ color: #dd524d;
+}
+.platform-ios .btn-outlined.btn-primary:active, .platform-ios .btn-outlined.btn-positive:active, .platform-ios .btn-outlined.btn-negative:active {
+ color: #fff;
+}
+.platform-ios .btn-link {
+ color: #007aff;
+ background-color: transparent;
+ border: none;
+}
+.platform-ios .btn-link:active, .platform-ios .btn-link.active {
+ color: #0062cc;
+ background-color: transparent;
+}
+.platform-ios .btn .badge {
+ background-color: rgba(0, 0, 0, 0.15);
+}
+.platform-ios .btn .badge.badge-inverted {
+ background-color: transparent;
+}
+.platform-ios .btn:active .badge {
+ color: #fff;
+}
+.platform-ios .bar {
+ border-bottom: 0;
+ background-color: rgba(247, 247, 247, 0.98);
+ -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.85);
+}
+.platform-ios .bar.bar-header-secondary {
+ top: 44px;
+}
+.platform-ios .bar.bar-footer-secondary {
+ bottom: 44px;
+}
+.platform-ios .bar.bar-footer-secondary-tab {
+ bottom: 50px;
+}
+.platform-ios .bar .bar-footer,
+.platform-ios .bar .bar-footer-secondary,
+.platform-ios .bar .bar-footer-secondary-tab {
+ border-top: 0;
+ -webkit-box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+}
+.platform-ios .bar-tab {
+ border-top: 0;
+ -webkit-box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+}
+.platform-ios .tab-item {
+ color: #929292;
+}
+.platform-ios .tab-item.active, .platform-ios .tab-item:active {
+ color: #007aff;
+}
+.platform-ios .bar-nav .btn-link {
+ color: #007aff;
+}
+.platform-ios .bar-nav .btn-link:active {
+ color: #007aff;
+ opacity: .6;
+}
+.platform-ios .badge.badge-inverted {
+ color: #929292;
+ background-color: transparent;
+}
+.platform-ios .badge-primary {
+ color: #fff;
+ background-color: #007aff;
+}
+.platform-ios .badge-primary.badge-inverted {
+ color: #007aff;
+ background-color: transparent;
+}
+.platform-ios .badge-positive {
+ color: #fff;
+ background-color: #4cd964;
+}
+.platform-ios .badge-positive.badge-inverted {
+ color: #4cd964;
+ background-color: transparent;
+}
+.platform-ios .badge-negative {
+ color: #fff;
+ background-color: #dd524d;
+}
+.platform-ios .badge-negative.badge-inverted {
+ color: #dd524d;
+ background-color: transparent;
+}
+.platform-ios .card .table-view {
+ background-image: none;
+}
+.platform-ios .card .table-view-cell:last-child {
+ background-image: none;
+}
+.platform-ios .table-view {
+ border-top: 0;
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+.platform-ios .table-view .table-view-cell {
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+.platform-ios .table-view .table-view-cell:last-child {
+ background-image: none;
+}
+.platform-ios .table-view .table-view-divider {
+ border-top: 0;
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+.platform-ios select,
+.platform-ios textarea,
+.platform-ios input[type="text"],
+.platform-ios input[type="search"],
+.platform-ios input[type="password"],
+.platform-ios input[type="datetime"],
+.platform-ios input[type="datetime-local"],
+.platform-ios input[type="date"],
+.platform-ios input[type="month"],
+.platform-ios input[type="time"],
+.platform-ios input[type="week"],
+.platform-ios input[type="number"],
+.platform-ios input[type="email"],
+.platform-ios input[type="url"],
+.platform-ios input[type="tel"],
+.platform-ios input[type="color"],
+.platform-ios .input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+}
+.platform-ios input[type="search"] {
+ height: 34px;
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.1);
+ border: 0;
+ border-radius: 6px;
+}
+.platform-ios input[type="search"]:focus {
+ text-align: left;
+}
+.platform-ios select,
+.platform-ios textarea,
+.platform-ios .input-group {
+ height: auto;
+}
+.platform-ios .input-group {
+ padding: 0;
+ border: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+.platform-ios .input-group input {
+ border: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+.platform-ios .input-group input:last-child {
+ background-image: none;
+}
+.platform-ios .input-row {
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+.platform-ios .input-row:last-child,
+.platform-ios .input-row label + input {
+ background-image: none;
+}
+.platform-ios .segmented-control {
+ background-color: transparent;
+ border: 1px solid #929292;
+}
+.platform-ios .segmented-control .control-item {
+ color: #929292;
+ border-color: #929292;
+ -webkit-transition: background-color 0.1s linear;
+ -moz-transition: background-color 0.1s linear;
+ transition: background-color 0.1s linear;
+}
+.platform-ios .segmented-control .control-item:active {
+ background-color: #ebebeb;
+}
+.platform-ios .segmented-control .control-item.active {
+ color: #fff;
+ background-color: #929292;
+}
+.platform-ios .segmented-control-primary {
+ border: 1px solid #007aff;
+}
+.platform-ios .segmented-control-primary .control-item {
+ color: #007aff;
+ border-color: inherit;
+}
+.platform-ios .segmented-control-primary .control-item:active {
+ background-color: #b3d7ff;
+}
+.platform-ios .segmented-control-primary .control-item.active {
+ color: #fff;
+ background-color: #007aff;
+}
+.platform-ios .segmented-control-positive {
+ border: 1px solid #4cd964;
+}
+.platform-ios .segmented-control-positive .control-item {
+ color: #4cd964;
+ border-color: inherit;
+}
+.platform-ios .segmented-control-positive .control-item:active {
+ background-color: #dff8e3;
+}
+.platform-ios .segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #4cd964;
+}
+.platform-ios .segmented-control-negative {
+ border: 1px solid #dd524d;
+}
+.platform-ios .segmented-control-negative .control-item {
+ color: #dd524d;
+ border-color: inherit;
+}
+.platform-ios .segmented-control-negative .control-item:active {
+ background-color: #fae4e3;
+}
+.platform-ios .segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #dd524d;
+}
+.platform-ios .popover {
+ border-radius: 12px;
+ -webkit-transition: -webkit-transform .2s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .2s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .2s ease-in-out, opacity .2s ease-in-out;
+ -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+ -moz-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+ transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+}
+.platform-ios .popover:before {
+ border-bottom: 15px solid rgba(247, 247, 247, 0.98);
+}
+.platform-ios .popover .bar {
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.platform-ios .popover .bar-nav {
+ border-bottom: 1px solid rgba(0, 0, 0, 0.15);
+}
+.platform-ios .popover .table-view {
+ border-radius: 12px;
+ background-image: none;
+}
+.platform-ios .modal {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+.platform-ios .modal.active {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+.platform-ios .toggle {
+ width: 47px;
+ border: 2px solid #e6e6e6;
+ -webkit-box-shadow: inset 0 0 0 0 #e1e1e1;
+ box-shadow: inset 0 0 0 0 #e1e1e1;
+ -webkit-transition-property: box-shadow, border;
+ -moz-transition-property: box-shadow, border;
+ transition-property: box-shadow, border;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+.platform-ios .toggle .toggle-handle {
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ -webkit-transition-property: -webkit-transform, border, width;
+ -moz-transition-property: -moz-transform, border, width;
+ transition-property: transform, border, width;
+ -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08);
+ box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08);
+}
+.platform-ios .toggle:before {
+ display: none;
+}
+.platform-ios .toggle.active {
+ border: 2px solid #4cd964;
+ background-color: transparent;
+ -webkit-box-shadow: inset 0 0 0 13px #4cd964;
+ box-shadow: inset 0 0 0 13px #4cd964;
+}
+.platform-ios .toggle.active .toggle-handle {
+ -webkit-transform: translate3d(17px, 0, 0);
+ -ms-transform: translate3d(17px, 0, 0);
+ transform: translate3d(17px, 0, 0);
+}
+.platform-ios .toggle.active .toggle-handle {
+ border-color: #4cd964;
+}
+.platform-ios .content.fade {
+ -webkit-transition: opacity 0.2s ease-in-out;
+ -moz-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+}
+.platform-ios .content.sliding {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+.platform-ios .content.sliding.sliding-in, .platform-ios .content.sliding.right:not([class*="sliding-in"]) {
+ -webkit-animation-name: fadeOverlay;
+ -moz-animation-name: fadeOverlay;
+ animation-name: fadeOverlay;
+ -webkit-animation-duration: 0.4s;
+ -moz-animation-duration: 0.4s;
+ animation-duration: 0.4s;
+}
+.platform-ios .content.sliding.right:not([class*="sliding-in"]) {
+ -webkit-animation-direction: reverse;
+ -moz-animation-direction: reverse;
+ animation-direction: reverse;
+}
+.platform-ios .content.sliding.left {
+ -webkit-transform: translate3d(-20%, 0, 0);
+ -ms-transform: translate3d(-20%, 0, 0);
+ transform: translate3d(-20%, 0, 0);
+}
+.platform-ios .device {
+ background-image: url("../img/iphone5s.png");
+}
+.platform-ios .device .device-content {
+ background-color: #efeff4;
+}
+
+.platform-android body {
+ font-family: "Roboto", sans-serif;
+ font-size: 18px;
+ line-height: 22px;
+ color: #222222;
+}
+.platform-android a {
+ color: #33b5e5;
+}
+.platform-android a:active {
+ color: #1a9bcb;
+}
+.platform-android .content {
+ background-color: #f2f2f2;
+}
+.platform-android .bar-nav ~ .content {
+ padding-top: 50px;
+}
+.platform-android .bar-tab ~ .content {
+ padding-bottom: 50px;
+}
+.platform-android .bar-header-secondary ~ .content {
+ padding-top: 100px;
+}
+.platform-android .btn {
+ padding: 8px 15px;
+ font-size: 14px;
+ color: #222222;
+ background-color: #cecece;
+ border: 0;
+ border-radius: 2px;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
+}
+.platform-android .btn:active, .platform-android .btn.active {
+ color: #222222;
+ border: 0;
+ background-color: #999999;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+}
+.platform-android .btn-primary {
+ color: #fff;
+ border: 0;
+ background-color: #33b5e5;
+}
+.platform-android .btn-primary:active, .platform-android .btn-primary.active {
+ color: #fff;
+ border: 0;
+ background-color: #1a9bcb;
+}
+.platform-android .btn-positive {
+ color: #fff;
+ border: 0;
+ background-color: #99cc00;
+}
+.platform-android .btn-positive:active, .platform-android .btn-positive.active {
+ color: #fff;
+ border: 0;
+ background-color: #739900;
+}
+.platform-android .btn-negative {
+ color: #fff;
+ border: 0;
+ background-color: #ff4444;
+}
+.platform-android .btn-negative:active, .platform-android .btn-negative.active {
+ color: #fff;
+ border: 0;
+ background-color: #ff1111;
+}
+.platform-android .btn-outlined {
+ border: 1px solid #999999;
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.platform-android .btn-outlined.btn-primary {
+ border: 1px solid #33b5e5;
+ color: #33b5e5;
+}
+.platform-android .btn-outlined.btn-primary:active {
+ border: 1px solid #33b5e5;
+ background-color: #33b5e5;
+}
+.platform-android .btn-outlined.btn-positive {
+ border: 1px solid #99cc00;
+ color: #99cc00;
+}
+.platform-android .btn-outlined.btn-positive:active {
+ border: 1px solid #99cc00;
+ background-color: #99cc00;
+}
+.platform-android .btn-outlined.btn-negative {
+ border: 1px solid #ff4444;
+ color: #ff4444;
+}
+.platform-android .btn-outlined.btn-negative:active {
+ border: 1px solid #ff4444;
+ background-color: #ff4444;
+}
+.platform-android .btn-outlined:active {
+ border: 1px solid #999999;
+ background-color: #999999;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.platform-android .btn-outlined.btn-primary:active, .platform-android .btn-outlined.btn-positive:active, .platform-android .btn-outlined.btn-negative:active {
+ color: #fff;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.platform-android .btn-link {
+ color: #33b5e5;
+ background-color: transparent;
+ border: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.platform-android .btn-link:active, .platform-android .btn-link.active {
+ color: #1a9bcb;
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.platform-android .btn-block {
+ padding: 15px 0;
+ font-size: 18px;
+}
+.platform-android .btn .badge {
+ background-color: rgba(0, 0, 0, 0.15);
+}
+.platform-android .btn .badge.badge-inverted {
+ background-color: transparent;
+}
+.platform-android .btn:active .badge {
+ color: #fff;
+}
+.platform-android .bar {
+ height: 50px;
+ background-color: #dddddd;
+ border-bottom: 1px solid #b1b1b1;
+ -webkit-box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
+ box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
+}
+.platform-android .bar.bar-header-secondary {
+ top: 50px;
+}
+.platform-android .bar.bar-footer-secondary {
+ bottom: 50px;
+}
+.platform-android .bar.bar-footer-secondary-tab {
+ bottom: 50px;
+}
+.platform-android .bar .bar-footer,
+.platform-android .bar .bar-footer-secondary,
+.platform-android .bar .bar-footer-secondary-tab {
+ border-bottom: 0;
+ border-top: 1px solid #b1b1b1;
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
+ box-shadow: inset 0 -2px 0 #33b5e5;
+}
+.platform-android .bar-tab {
+ top: 0;
+ bottom: auto;
+ height: 50px;
+ border-top: 0;
+}
+.platform-android .bar-tab .tab-item {
+ color: #929292;
+}
+.platform-android .bar-tab .tab-item.active {
+ color: #33b5e5;
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
+ box-shadow: inset 0 -2px 0 #33b5e5;
+}
+.platform-android .bar-tab .tab-item:active {
+ color: #929292;
+ background-color: #78c6e3;
+}
+.platform-android .bar-tab .tab-item .icon {
+ top: 3px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+.platform-android .title {
+ position: static;
+ padding-left: 15px;
+ font-size: 18px;
+ line-height: 49px;
+ text-align: left;
+}
+.platform-android .bar .btn {
+ top: 7px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+.platform-android .bar .btn-link {
+ top: 0;
+ padding: 0;
+ color: #33b5e5;
+ font-size: 18px;
+ line-height: 49px;
+}
+.platform-android .bar .btn-link:active, .platform-android .bar .btn-link.active {
+ color: #1a9bcb;
+}
+.platform-android .bar .btn-link .icon {
+ top: 2px;
+ padding: 0;
+}
+.platform-android .bar .btn-block {
+ top: 4px;
+}
+.platform-android .bar .segmented-control {
+ top: 7px;
+}
+.platform-android .bar .icon {
+ padding-top: 13px;
+ padding-bottom: 13px;
+}
+.platform-android .bar .title .icon {
+ padding: 0;
+}
+.platform-android .bar .title .icon.icon-caret {
+ top: 10px;
+ color: #777;
+}
+.platform-android .bar input[type="search"] {
+ height: 35px;
+}
+.platform-android .badge.badge-inverted {
+ color: #999999;
+ background-color: transparent;
+}
+.platform-android .badge-primary {
+ color: #fff;
+ background-color: #33b5e5;
+}
+.platform-android .badge-primary.badge-inverted {
+ color: #33b5e5;
+ background-color: transparent;
+}
+.platform-android .badge-positive {
+ color: #fff;
+ background-color: #99cc00;
+}
+.platform-android .badge-positive.badge-inverted {
+ color: #99cc00;
+ background-color: transparent;
+}
+.platform-android .badge-negative {
+ color: #fff;
+ background-color: #ff4444;
+}
+.platform-android .badge-negative.badge-inverted {
+ color: #ff4444;
+ background-color: transparent;
+}
+.platform-android .card {
+ border-color: #d9d9d9;
+ border-radius: 2px;
+ background-color: transparent;
+}
+.platform-android .table-view {
+ background-color: transparent;
+}
+.platform-android .table-view .table-view-cell {
+ border-bottom: 1px solid #d9d9d9;
+}
+.platform-android .table-view .table-view-cell:last-child {
+ background-image: none;
+}
+.platform-android .table-view .table-view-cell > a:not(.btn):active {
+ background-color: #e0e0e0;
+}
+.platform-android .table-view .table-view-cell > a:not(.btn):active .icon {
+ color: #fff;
+}
+.platform-android .table-view .table-view-divider {
+ padding-top: 25px;
+ font-size: 12px;
+ font-weight: bold;
+ text-transform: uppercase;
+ border-top: 0;
+ border-bottom: 2px solid #a9a9a9;
+ background-color: transparent;
+}
+.platform-android select,
+.platform-android textarea,
+.platform-android input[type="text"],
+.platform-android input[type="search"],
+.platform-android input[type="password"],
+.platform-android input[type="datetime"],
+.platform-android input[type="datetime-local"],
+.platform-android input[type="date"],
+.platform-android input[type="month"],
+.platform-android input[type="time"],
+.platform-android input[type="week"],
+.platform-android input[type="number"],
+.platform-android input[type="email"],
+.platform-android input[type="url"],
+.platform-android input[type="tel"],
+.platform-android input[type="color"],
+.platform-android .input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+}
+.platform-android input[type="search"] {
+ border-radius: 2px;
+}
+.platform-android select,
+.platform-android textarea,
+.platform-android .input-group {
+ height: auto;
+}
+.platform-android .input-group {
+ padding: 0;
+ border: 0;
+}
+.platform-android .input-group input {
+ border: 0;
+ border-bottom: 1px solid #d9d9d9;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.platform-android .input-group input:last-child {
+ background-image: none;
+}
+.platform-android .input-row {
+ border-bottom: 1px solid #d9d9d9;
+}
+.platform-android .input-row label + input {
+ background-image: none;
+ border-bottom: 0;
+}
+.platform-android .segmented-control {
+ font-size: 14px;
+ background-color: #cecece;
+ border: 0;
+ border-radius: 2px;
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
+}
+.platform-android .segmented-control .control-item {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ color: #222222;
+ border-left: 1px solid #999;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+}
+.platform-android .segmented-control .control-item:first-child {
+ border-left-width: 0;
+}
+.platform-android .segmented-control .control-item:active, .platform-android .segmented-control .control-item.active {
+ background-color: #999999;
+}
+.platform-android .segmented-control-primary {
+ border: 0;
+}
+.platform-android .segmented-control-primary .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.platform-android .segmented-control-primary .control-item:active, .platform-android .segmented-control-primary .control-item.active {
+ color: #fff;
+ background-color: #33b5e5;
+}
+.platform-android .segmented-control-positive {
+ border: 0;
+}
+.platform-android .segmented-control-positive .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.platform-android .segmented-control-positive .control-item:active, .platform-android .segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #99cc00;
+}
+.platform-android .segmented-control-negative {
+ border: 0;
+}
+.platform-android .segmented-control-negative .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.platform-android .segmented-control-negative .control-item:active, .platform-android .segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #ff4444;
+}
+.platform-android .popover {
+ top: 47px;
+ left: 15px;
+ width: 200px;
+ margin-left: 0;
+ border: 1px solid #9b9b9b;
+ border-radius: 0;
+ -webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .1s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .1s ease-in-out, opacity .2s ease-in-out;
+ -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
+ -webkit-transform: scale(0.75);
+ -ms-transform: scale(0.75);
+ transform: scale(0.75);
+}
+.platform-android .popover:before {
+ display: none;
+}
+.platform-android .popover.visible {
+ -webkit-transform: scale(1);
+ -ms-transform: scale(1);
+ transform: scale(1);
+}
+.platform-android .backdrop {
+ background-color: none;
+}
+.platform-android .popover .bar {
+ border-radius: 0;
+}
+.platform-android .popover .bar-nav ~ .table-view {
+ padding-top: 50px;
+}
+.platform-android .popover .table-view {
+ border-radius: 12px;
+}
+.platform-android .toggle {
+ width: 104px;
+ height: 28px;
+ border: 2px solid #d7d7d7;
+ border-radius: 0;
+ background-color: #d7d7d7;
+}
+.platform-android .toggle .toggle-handle {
+ top: 0;
+ left: 0;
+ width: 50px;
+ height: 24px;
+ border: 1px solid #b5b5b5;
+ border-radius: 2px;
+ background-color: #bebebe;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
+}
+.platform-android .toggle:before {
+ top: 1px;
+ right: auto;
+ left: 11px;
+ z-index: 3;
+ color: #fff;
+}
+.platform-android .toggle.active {
+ border: 2px solid #d7d7d7;
+ background-color: #d7d7d7;
+}
+.platform-android .toggle.active .toggle-handle {
+ margin-right: 2px;
+ background-color: #33b5e5;
+ border-color: #33b5e5;
+ -webkit-transform: translate3d(50px, 0, 0);
+ -ms-transform: translate3d(50px, 0, 0);
+ transform: translate3d(50px, 0, 0);
+}
+.platform-android .toggle.active:before {
+ left: auto;
+ right: 14px;
+ color: #fff;
+ content: "On";
+}
+.platform-android .push-left:after {
+ content: '\e803';
+}
+.platform-android .push-right:after {
+ content: '\e806';
+}
+.platform-android .icon-caret:before {
+ content: '\e800';
+}
+.platform-android .icon-down:before,
+.platform-android .icon-down-nav:before {
+ content: '\e801';
+}
+.platform-android .icon-download:before {
+ content: '\e802';
+}
+.platform-android .icon-left:before,
+.platform-android .icon-left-nav:before {
+ content: '\e803';
+}
+.platform-android .icon-more-vertical:before {
+ content: '\e804';
+}
+.platform-android .icon-more:before {
+ content: '\e805';
+}
+.platform-android .icon-right:before,
+.platform-android .icon-right-nav:before {
+ content: '\e806';
+}
+.platform-android .icon-search:before {
+ content: '\e807';
+}
+.platform-android .icon-share:before {
+ content: '\e808';
+}
+.platform-android .icon-up:before,
+.platform-android .icon-up-nav:before {
+ content: '\e809';
+}
+.platform-android .device {
+ font-family: 'Roboto', sans-serif;
+ background-image: url("../img/android.png");
+}
+.platform-android .device .device-content {
+ font-size: 18px;
+ line-height: 22px;
+ background-color: #f2f2f2;
+}
+.platform-android .device .content {
+ top: 50px;
+}
+.platform-android .device .popover {
+ -webkit-transform: scale(1);
+ -ms-transform: scale(1);
+ transform: scale(1);
+}
+.platform-android .bar ~ .content {
+ padding: 0;
+}
+
+@-webkit-keyframes fadeintext {
+ 0% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 1;
+ }
+}
diff --git a/docs/assets/css/pygments.css b/docs/assets/css/pygments.css
new file mode 100644
index 0000000..67fe210
--- /dev/null
+++ b/docs/assets/css/pygments.css
@@ -0,0 +1,61 @@
+.hll { background-color: #ffffcc }
+.c { color: #999988; font-style: italic } /* Comment */
+.err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.k { color: #000000; font-weight: bold } /* Keyword */
+.o { color: #000000; font-weight: bold } /* Operator */
+.cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
+.c1 { color: #999988; font-style: italic } /* Comment.Single */
+.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.ge { color: #000000; font-style: italic } /* Generic.Emph */
+.gr { color: #aa0000 } /* Generic.Error */
+.gh { color: #999999 } /* Generic.Heading */
+.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.go { color: #888888 } /* Generic.Output */
+.gp { color: #555555 } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #aaaaaa } /* Generic.Subheading */
+.gt { color: #aa0000 } /* Generic.Traceback */
+.kc { color: #000000; font-weight: bold } /* Keyword.Constant */
+.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
+.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.m { color: #009999 } /* Literal.Number */
+.s { color: #d01040 } /* Literal.String */
+.na { color: #008080 } /* Name.Attribute */
+.nb { color: #0086B3 } /* Name.Builtin */
+.nc { color: #445588; font-weight: bold } /* Name.Class */
+.no { color: #008080 } /* Name.Constant */
+.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
+.ni { color: #800080 } /* Name.Entity */
+.ne { color: #990000; font-weight: bold } /* Name.Exception */
+.nf { color: #990000; font-weight: bold } /* Name.Function */
+.nl { color: #990000; font-weight: bold } /* Name.Label */
+.nn { color: #555555 } /* Name.Namespace */
+.nt { color: #000080 } /* Name.Tag */
+.nv { color: #008080 } /* Name.Variable */
+.ow { color: #000000; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #009999 } /* Literal.Number.Float */
+.mh { color: #009999 } /* Literal.Number.Hex */
+.mi { color: #009999 } /* Literal.Number.Integer */
+.mo { color: #009999 } /* Literal.Number.Oct */
+.sb { color: #d01040 } /* Literal.String.Backtick */
+.sc { color: #d01040 } /* Literal.String.Char */
+.sd { color: #d01040 } /* Literal.String.Doc */
+.s2 { color: #d01040 } /* Literal.String.Double */
+.se { color: #d01040 } /* Literal.String.Escape */
+.sh { color: #d01040 } /* Literal.String.Heredoc */
+.si { color: #d01040 } /* Literal.String.Interpol */
+.sx { color: #d01040 } /* Literal.String.Other */
+.sr { color: #009926 } /* Literal.String.Regex */
+.s1 { color: #d01040 } /* Literal.String.Single */
+.ss { color: #990073 } /* Literal.String.Symbol */
+.bp { color: #999999 } /* Name.Builtin.Pseudo */
+.vc { color: #008080 } /* Name.Variable.Class */
+.vg { color: #008080 } /* Name.Variable.Global */
+.vi { color: #008080 } /* Name.Variable.Instance */
+.il { color: #009999 } /* Literal.Number.Integer.Long */ \ No newline at end of file
diff --git a/docs/assets/img/android.png b/docs/assets/img/android.png
new file mode 100644
index 0000000..ebe34b7
--- /dev/null
+++ b/docs/assets/img/android.png
Binary files differ
diff --git a/docs/img/apple-touch-icon-114x114.png b/docs/assets/img/apple-touch-icon-114x114.png
index de14661..de14661 100644
--- a/docs/img/apple-touch-icon-114x114.png
+++ b/docs/assets/img/apple-touch-icon-114x114.png
Binary files differ
diff --git a/docs/img/apple-touch-icon-57x57.png b/docs/assets/img/apple-touch-icon-57x57.png
index 5396942..5396942 100644
--- a/docs/img/apple-touch-icon-57x57.png
+++ b/docs/assets/img/apple-touch-icon-57x57.png
Binary files differ
diff --git a/docs/img/apple-touch-icon-72x72.png b/docs/assets/img/apple-touch-icon-72x72.png
index a214d69..a214d69 100644
--- a/docs/img/apple-touch-icon-72x72.png
+++ b/docs/assets/img/apple-touch-icon-72x72.png
Binary files differ
diff --git a/docs/assets/img/example-android.png b/docs/assets/img/example-android.png
new file mode 100644
index 0000000..259b478
--- /dev/null
+++ b/docs/assets/img/example-android.png
Binary files differ
diff --git a/docs/assets/img/example-ios.png b/docs/assets/img/example-ios.png
new file mode 100644
index 0000000..34bd81c
--- /dev/null
+++ b/docs/assets/img/example-ios.png
Binary files differ
diff --git a/docs/assets/img/example.png b/docs/assets/img/example.png
new file mode 100644
index 0000000..82f45eb
--- /dev/null
+++ b/docs/assets/img/example.png
Binary files differ
diff --git a/docs/assets/img/iphone5c.png b/docs/assets/img/iphone5c.png
new file mode 100644
index 0000000..36d24d6
--- /dev/null
+++ b/docs/assets/img/iphone5c.png
Binary files differ
diff --git a/docs/assets/img/iphone5s.png b/docs/assets/img/iphone5s.png
new file mode 100644
index 0000000..d6cfc09
--- /dev/null
+++ b/docs/assets/img/iphone5s.png
Binary files differ
diff --git a/docs/assets/img/pattern.png b/docs/assets/img/pattern.png
new file mode 100644
index 0000000..a67b04d
--- /dev/null
+++ b/docs/assets/img/pattern.png
Binary files differ
diff --git a/docs/assets/img/slide-1.png b/docs/assets/img/slide-1.png
new file mode 100644
index 0000000..06745c0
--- /dev/null
+++ b/docs/assets/img/slide-1.png
Binary files differ
diff --git a/docs/assets/img/slide-2.png b/docs/assets/img/slide-2.png
new file mode 100644
index 0000000..d7e87d0
--- /dev/null
+++ b/docs/assets/img/slide-2.png
Binary files differ
diff --git a/docs/assets/img/slide-3.png b/docs/assets/img/slide-3.png
new file mode 100644
index 0000000..91af277
--- /dev/null
+++ b/docs/assets/img/slide-3.png
Binary files differ
diff --git a/docs/assets/js/docs.js b/docs/assets/js/docs.js
new file mode 100644
index 0000000..b016137
--- /dev/null
+++ b/docs/assets/js/docs.js
@@ -0,0 +1,172 @@
+$(function() {
+
+ var doc;
+ var device;
+ var platformToggle;
+ var windowWidth;
+ var windowHeight;
+ var pageHeight;
+ var contentPadding;
+ var footerHeight;
+ var navComponentLinks;
+ var componentsList;
+ var contentSection;
+ var currentActive;
+ var topCache;
+ var eventListeners;
+ var toolbarToggle;
+ var toggleTop;
+ var toggleHeight;
+
+
+ var initialize = function () {
+ currentActive = 0;
+ topCache = [];
+ win = $(window);
+ doc = $(document);
+ bod = $(document.body)
+ device = device || $('.js-device');
+ navComponentLinks = $('.js-jump-menu');
+ componentsList = $('.js-component-group');
+ componentLinks = $('.component-example a');
+ contentSection = $('.component');
+ topCache = contentSection.map(function () { return $(this).offset().top })
+ windowHeight = $(window).height() / 3
+ windowWidth = $(window).width();
+ pageHeight = $(document).height();
+ contentPadding = parseInt($('.docs-content').css('padding-bottom'));
+ footerHeight = $('.docs-footer').outerHeight(false);
+ toolbarToggle = $('.js-docs-component-toolbar');
+
+ // Device placement
+ if (windowWidth >= 768) {
+ device.initialLeft = device.offset().left;
+ device.initialTop = device.initialTop || device.offset().top;
+ device.dockingOffset = ($(window).height() - device.height())/2;
+ }
+
+ checkDesktopContent();
+ calculateScroll();
+ calculateToggle();
+
+ if (!eventListeners) addEventListeners();
+ }
+
+ var addEventListeners = function () {
+ eventListeners = true;
+
+ device.on('click', function (e) {
+ e.preventDefault();
+ });
+
+ // Mobile navigation
+ $('.js-docs-nav-trigger').on('click', function () {
+ var nav = $('.docs-nav-group');
+ var trigger = $('.js-docs-nav-trigger');
+
+ trigger.toggleClass('active');
+ nav.toggleClass('active');
+ });
+
+ navComponentLinks.click(function(e) {
+ e.stopPropagation();
+ e.preventDefault();
+ componentsList.toggleClass('active');
+ })
+
+ doc.on('click', function () {
+ componentsList.removeClass('active');
+ })
+
+ // Platform switcher
+ $('.platform-switch').on('click', function () {
+ var components = $('.docs-components');
+ var platform = $(this).attr('data-platform');
+
+ // Set platform
+ if (components.hasClass('platform-ios')) {
+ components.removeClass('platform-ios');
+ components.addClass(platform);
+ } else if (components.hasClass('platform-android')) {
+ components.removeClass('platform-android');
+ components.addClass(platform);
+ } else {
+ components.addClass(platform);
+ }
+
+ // Deal with active states
+ $(this).siblings('.active').removeClass('active');
+ $(this).addClass('active');
+ });
+
+ win.on('scroll', calculateScroll);
+ win.on('scroll', calculateToggle);
+ }
+
+ var checkDesktopContent = function () {
+ windowWidth = $(window).width();
+ if (windowWidth <= 768) {
+ var content = $('.content')
+ if (content.length > 1) {
+ $(content[0]).remove()
+ }
+ }
+ }
+
+ var calculateScroll = function() {
+ // if small screen don't worry about this
+ if (windowWidth <= 768) return
+
+ // Save scrollTop value
+ var contentSectionItem;
+ var currentTop = win.scrollTop();
+
+ if((device.initialTop - currentTop) <= device.dockingOffset) {
+ device[0].className = "device device-fixed";
+ device.css({top: device.dockingOffset})
+ } else {
+ device[0].className = "device"
+ device[0].setAttribute('style','')
+ }
+
+ // Injection of components into device
+ for (var l = contentSection.length; l--;) {
+ if ((topCache[l] - currentTop) < windowHeight) {
+ if (currentActive == l) return;
+ currentActive = l;
+ bod.find('.component.active').removeClass('active');
+ contentSectionItem = $(contentSection[l])
+ contentSectionItem.addClass('active')
+ if(contentSectionItem.attr('id')) {
+ device.attr("id", contentSectionItem.attr('id') + "InDevice");
+ } else {
+ device.attr("id", "")
+ }
+ if (!contentSectionItem.hasClass('informational')) {
+ updateContent(contentSectionItem.find('.highlight .html').text())
+ }
+ break
+ }
+ }
+
+ function updateContent(content) {
+ $('#iwindow').html(content);
+ }
+ }
+
+ // Toolbar toggle
+ var calculateToggle = function () {
+ var currentTop = win.scrollTop();
+ var headerHeight = $('.docs-sub-header').outerHeight();
+
+ if(currentTop >= headerHeight) {
+ toolbarToggle.addClass('visible');
+ } else if (currentTop <= headerHeight) {
+ toolbarToggle.removeClass('visible');
+ componentsList.removeClass('active');
+ }
+ }
+
+ $(window).on('load resize', initialize);
+ $(window).on('load', function () { new FingerBlast('.device-content'); });
+});
diff --git a/docs/js/fingerblast.js b/docs/assets/js/fingerblast.js
index 58543c2..58543c2 100644
--- a/docs/js/fingerblast.js
+++ b/docs/assets/js/fingerblast.js
diff --git a/docs/components.html b/docs/components.html
new file mode 100644
index 0000000..acd5221
--- /dev/null
+++ b/docs/components.html
@@ -0,0 +1,1371 @@
+---
+layout: default
+title: Components &middot; Ratchet
+---
+
+<div class="docs-sub-header">
+ {% include masthead.html %}
+ <div class="container">
+ <div class="column-group">
+ <div class="column units-2">
+ <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>
+ </div>
+ {% include ad.html %}
+ </div>
+ {% include toolbar.html %}
+</div>
+
+<div class="container">
+ <!-- Components -->
+ <div class="docs-components column-group">
+ <div class="device-column column units-2 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 units-2 lg-units-7">
+ <!-- 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>
+
+{% highlight html %}
+<header class="bar bar-nav">
+ <h1 class="title">Title</h1>
+</header>
+{% endhighlight %}
+
+ </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-right</code> utility classes to float the buttons. Also, be sure to place any floated elements bofore the title.</p>
+
+ <div class="component-example component-example-fullbleed">
+ <header class="bar bar-nav">
+ <a class="btn pull-left">
+ Left
+ </a>
+ <a class="btn pull-right">
+ Right
+ </a>
+ <h1 class="title">Title</h1>
+ </header>
+ </div>
+
+{% highlight html %}
+<header class="bar bar-nav">
+ <a class="btn pull-left">
+ Left
+ </a>
+ <a class="btn pull-right">
+ Right
+ </a>
+ <h1 class="title">Title</h1>
+</header>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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">
+ <a class="btn btn-link btn-nav pull-left">
+ <span class="icon icon-left-nav"></span>
+ Left
+ </a>
+ <a class="btn btn-link btn-nav pull-right">
+ Right
+ <span class="icon icon-right-nav"></span>
+ </a>
+ <h1 class="title">Title</h1>
+ </header>
+ </div>
+
+{% highlight html %}
+<header class="bar bar-nav">
+ <a class="btn btn-link btn-nav pull-left">
+ <span class="icon icon-left-nav"></span>
+ Left
+ </a>
+ <a class="btn btn-link btn-nav pull-right">
+ Right
+ <span class="icon icon-right-nav"></span>
+ </a>
+ <h1 class="title">Title</h1>
+</header>
+{% endhighlight %}
+
+ </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">
+ <a class="btn pull-left">
+ Left
+ </a>
+ <a class="btn pull-right">
+ Right
+ </a>
+ <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>
+
+{% highlight html %}
+<header class="bar bar-nav">
+ <a class="btn pull-left">
+ Left
+ </a>
+ <a class="btn pull-right">
+ Right
+ </a>
+ <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>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<nav class="bar bar-tab">
+ <a class="tab-item active" href="#">
+ <span class="icon icon-home"></span>
+ <span class="tab-label">Home</span>
+ </a>
+ <a class="tab-item" href="#">
+ <span class="icon icon-person"></span>
+ <span class="tab-label">Profile</span>
+ </a>
+ <a class="tab-item" href="#">
+ <span class="icon icon-star-filled"></span>
+ <span class="tab-label">Favorites</span>
+ </a>
+ <a class="tab-item" href="#">
+ <span class="icon icon-search"></span>
+ <span class="tab-label">Search</span>
+ </a>
+ <a class="tab-item" href="#">
+ <span class="icon icon-gear"></span>
+ <span class="tab-label">Settings</span>
+ </a>
+</nav>
+{% endhighlight %}
+
+ <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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ <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">
+ <a class="btn btn-block">Block level button</a>
+ </div>
+ </div>
+
+{% highlight html %}
+<!-- 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">
+ <a class="btn btn-block">Block level button</a>
+</div>
+
+<!-- Block button in standard bar fixed above the footer -->
+<div class="bar bar-standard bar-footer-secondary">
+ <a class="btn btn-block">Block level button</a>
+</div>
+
+<!-- Icons in standard bar fixed to the bottom of the screen -->
+<div class="bar bar-standard bar-footer">
+ <a class="icon icon-compose pull-left"></a>
+ <a class="icon icon-gear pull-right"></a>
+</div>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<ul class="table-view">
+ <li class="table-view-cell">Item 1</li>
+ <li class="table-view-cell table-view-cell">Item 2</li>
+ <li class="table-view-divider">Divider</li>
+ <li class="table-view-cell">Item 3</li>
+</ul>
+{% endhighlight %}
+
+ </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>.push-right</code> or <code>.push-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="push-right">
+ Item 1
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ Item 2
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ Item 3
+ </a>
+ </li>
+ </ul>
+ </div>
+
+{% highlight html %}
+<ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right">
+ Item 1
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ Item 2
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ Item 3
+ </a>
+ </li>
+</ul>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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="push-right">
+ <span class="badge">5</span>
+ Item 1
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ <span class="badge">5</span>
+ Item 2
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ <span class="badge">5</span>
+ Item 3
+ </a>
+ </li>
+ </ul>
+ </div>
+
+{% highlight html %}
+<ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right">
+ <span class="badge">5</span>
+ Item 1
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ <span class="badge">5</span>
+ Item 2
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right">
+ <span class="badge">5</span>
+ Item 3
+ </a>
+ </li>
+</ul>
+{% endhighlight %}
+
+ </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="push-right">
+ <img class="media-object pull-left" src="http://placehold.it/42x42">
+ <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="push-right">
+ <img class="media-object pull-left" src="http://placehold.it/42x42">
+ <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="push-right">
+ <img class="media-object pull-left" src="http://placehold.it/42x42">
+ <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>
+
+{% highlight html %}
+<ul class="table-view">
+ <li class="table-view-cell media">
+ <a class="push-right">
+ <img class="media-object pull-left" src="http://placehold.it/42x42">
+ <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="push-right">
+ <img class="media-object pull-left" src="http://placehold.it/42x42">
+ <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="push-right">
+ <img class="media-object pull-left" src="http://placehold.it/42x42">
+ <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>
+{% endhighlight %}
+
+ </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="push-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="push-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="push-right">
+ <span class="media-object pull-left icon icon-pages"></span>
+ <div class="media-body">
+ Item 3
+ </div>
+ </a>
+ </li>
+ </ul>
+ </div>
+
+{% highlight html %}
+<ul class="table-view">
+ <li class="table-view-cell media">
+ <a class="push-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="push-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="push-right">
+ <span class="media-object pull-left icon icon-pages"></span>
+ <div class="media-body">
+ Item 3
+ </div>
+ </a>
+ </li>
+</ul>
+{% endhighlight %}
+
+ </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 <a class="btn">Button</a></li>
+ <li class="table-view-cell">Item 2 <a class="btn btn-primary">Button</a></li>
+ <li class="table-view-cell">Item 3 <a class="btn btn-positive">Button</a></li>
+ <li class="table-view-cell">Item 4 <a class="btn btn-negative">Button</a></li>
+ </ul>
+ </div>
+
+{% highlight html %}
+<ul class="table-view">
+ <li class="table-view-cell">Item 1 <a class="btn">Button</a></li>
+ <li class="table-view-cell">Item 2 <a class="btn btn-primary">Button</a></li>
+ <li class="table-view-cell">Item 3 <a class="btn btn-positive">Button</a></li>
+ <li class="table-view-cell">Item 4 <a class="btn btn-negative">Button</a></li>
+</ul>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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">
+ <a class="btn">Button</a>
+ <a class="btn btn-primary">Button</a>
+ <a class="btn btn-positive">Button</a>
+ <a class="btn btn-negative">Button</a>
+ <a class="btn btn-link">Button</a>
+
+ <a class="btn btn-outlined">Button</a>
+ <a class="btn btn-primary btn-outlined">Button</a>
+ <a class="btn btn-positive btn-outlined">Button</a>
+ <a class="btn btn-negative btn-outlined">Button</a>
+ </div>
+
+{% highlight html %}
+<a class="btn">Button</a>
+<a class="btn btn-primary">Button</a>
+<a class="btn btn-positive">Button</a>
+<a class="btn btn-negative">Button</a>
+<a class="btn btn-link">Button</a>
+
+<a class="btn btn-outlined">Button</a>
+<a class="btn btn-primary btn-outlined">Button</a>
+<a class="btn btn-positive btn-outlined">Button</a>
+<a class="btn btn-negative btn-outlined">Button</a>
+{% endhighlight %}
+
+ </article>
+
+ <!-- Buttons -->
+ <article class="component" id="buttons">
+ <h3 class="component-title">Buttons with icons</h3>
+ <p class="component-description">Ratchicons work inside buttons too.</p>
+
+ <div class="component-example">
+ <a class="btn">
+ <span class="icon icon-search"></span>
+ Button
+ </a>
+ <a class="btn btn-primary">
+ <span class="icon icon-search"></span>
+ Button
+ </a>
+ <a class="btn btn-positive">
+ <span class="icon icon-search"></span>
+ Button
+ </a>
+ <a class="btn btn-negative">
+ <span class="icon icon-search"></span>
+ Button
+ </a>
+ <a class="btn btn-link">
+ <span class="icon icon-left"></span>
+ Button
+ </a>
+ </div>
+
+{% highlight html %}
+<a class="btn">
+ <span class="icon icon-search"></span>
+ Button
+</a>
+<a class="btn btn-primary">
+ <span class="icon icon-search"></span>
+ Button
+</a>
+<a class="btn btn-positive">
+ <span class="icon icon-search"></span>
+ Button
+</a>
+<a class="btn btn-negative">
+ <span class="icon icon-search"></span>
+ Button
+</a>
+<a class="btn btn-link">
+ <span class="icon icon-left"></span>
+ Button
+</a>
+{% endhighlight %}
+
+ </article>
+
+ <article class="component" id="buttonsBadges">
+ <h3 class="component-title">Buttons with badges</h3>
+
+ <div class="component-example">
+ <a class="btn">Badge button <span class="badge">1</span></a>
+ <a class="btn btn-primary">Badge button <span class="badge badge-primary">1</span></a>
+ <a class="btn btn-positive">Badge button <span class="badge badge-positive">1</span></a>
+ <a class="btn btn-negative">Badge button <span class="badge badge-negative">1</span></a>
+ </div>
+
+{% highlight html %}
+<a class="btn">Badge button <span class="badge">1</span></a>
+<a class="btn btn-primary">Badge button <span class="badge badge-primary">1</span></a>
+<a class="btn btn-positive">Badge button <span class="badge badge-positive">1</span></a>
+<a class="btn btn-negative">Badge button <span class="badge badge-negative">1</span></a>
+
+<a class="btn btn-outlined">Badge button <span class="badge badge-inverted">1</span></a>
+<a class="btn btn-outlined btn-primary">Badge button <span class="badge badge-primary badge-inverted">1</span></a>
+<a class="btn btn-outlined btn-positive">Badge button <span class="badge badge-positive badge-inverted">1</span></a>
+<a class="btn btn-outlined btn-negative">Badge button <span class="badge badge-negative badge-inverted">1</span></a>
+{% endhighlight %}
+
+ </article>
+
+ <article class="component" id="blockButtons">
+ <h3 class="component-title">Block buttons</h3>
+
+ <div class="component-example">
+ <a class="btn btn-block">Block button</a>
+ <a class="btn btn-primary btn-block">Block button</a>
+ <a class="btn btn-positive btn-block">Block button</a>
+ <a class="btn btn-negative btn-block">Block button</a>
+
+ <a class="btn btn-block btn-outlined">Block button</a>
+ <a class="btn btn-primary btn-block btn-outlined">Block button</a>
+ <a class="btn btn-positive btn-block btn-outlined">Block button</a>
+ <a class="btn btn-negative btn-block btn-outlined">Block button</a>
+ </div>
+
+{% highlight html %}
+<a class="btn btn-block">Block button</a>
+<a class="btn btn-primary btn-block">Block button</a>
+<a class="btn btn-positive btn-block">Block button</a>
+<a class="btn btn-negative btn-block">Block button</a>
+
+<a class="btn btn-block btn-outlined">Block button</a>
+<a class="btn btn-primary btn-block btn-outlined">Block button</a>
+<a class="btn btn-positive btn-block btn-outlined">Block button</a>
+<a class="btn btn-negative btn-block btn-outlined">Block button</a>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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>
+ <a class="btn btn-positive btn-block">Choose existing</a>
+ </form>
+ </div>
+
+{% highlight html %}
+<form>
+ <input type="text" placeholder="Full name">
+ <input type="search" placeholder="Search">
+ <textarea rows="5"></textarea>
+ <a class="btn btn-positive btn-block">Choose existing</a>
+</form>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<form class="input-group">
+ <input type="text" placeholder="Full name">
+ <input type="email" placeholder="Email">
+ <input type="text" placeholder="Username">
+</form>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<div class="toggle active">
+ <div class="toggle-handle"></div>
+</div>
+<div class="toggle">
+ <div class="toggle-handle"></div>
+</div>
+{% endhighlight %}
+
+ <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>
+
+{% highlight js %}
+// Only needed if you want to fire a callback
+document
+.querySelector('#myToggle')
+.addEventListener('toggle', myFunction)
+{% endhighlight %}
+
+ </article>
+
+ <!-- Popovers -->
+ <article class="component" id="popovers">
+ <h3 class="component-title">Popovers</h3>
+
+{% highlight html %}
+<div id="popover" class="popover">
+ <header class="bar bar-nav">
+ <h1 class="title">Popover title</h1>
+ </header>
+ <ul class="table-view">
+ <li class="table-view-cell">Item1</li>
+ <li class="table-view-cell">Item2</li>
+ <li class="table-view-cell">Item3</li>
+ <li class="table-view-cell">Item4</li>
+ <li class="table-view-cell">Item5</li>
+ <li class="table-view-cell">Item6</li>
+ <li class="table-view-cell">Item7</li>
+ <li class="table-view-cell">Item8</li>
+ </ul>
+</div>
+{% endhighlight %}
+
+ <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>
+
+{% highlight html %}
+<header class="bar bar-nav">
+ <a href="#myPopover">
+ <h1 class="title">
+ Tap title
+ <span class="icon icon-caret"></span>
+ </h1>
+ </a>
+</header>
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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</h1>
+ </header>
+
+ <div class="content">
+ <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>
+{% endhighlight %}
+
+ <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.png">
+ <span class="slide-text">
+ <span class="icon icon-left-nav"></span>
+ Slide me
+ </span>
+ </div>
+ <div class="slide">
+ <img src="../assets/img/slide-2.png">
+ </div>
+ <div class="slide">
+ <img src="../assets/img/slide-3.png">
+ </div>
+ </div>
+ </div>
+ </div>
+
+{% highlight html %}
+<div class="slider" id="mySlider">
+ <div class="slide-group">
+ <div class="slide">
+ <img src="../assets/img/slide-1.png">
+ <span class="slide-text">
+ <span class="icon icon-left-nav"></span>
+ Slide me
+ </span>
+ </div>
+ <div class="slide">
+ <img src="../assets/img/slide-2.png">
+ </div>
+ <div class="slide">
+ <img src="../assets/img/slide-3.png">
+ </div>
+ </div>
+</div>
+{% endhighlight %}
+
+ <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>
+
+{% highlight js %}
+// Only needed if you want to fire a callback
+document
+.querySelector('#mySlider')
+.addEventListener('slide', myFunction)
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<!-- A one.html link -->
+<a href="two.html">Two</a>
+{% endhighlight %}
+
+ <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>
+
+{% highlight html %}
+<!-- An one.html link that animates to two.html -->
+<a href="two.html" data-transition="fade">Two</a>
+{% endhighlight %}
+
+ <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="push-right" href="../two.html" data-transition="slide-in">
+ Load new page with push
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+{% highlight html %}
+<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="push-right" href="../two.html" data-transition="slide-in">
+ Load new page with push
+ </a>
+ </li>
+ </ul>
+ </div>
+</div>
+{% endhighlight %}
+
+ <p class="component-description">Have a link you don't want to intercepted by push? Try this:</p>
+
+{% highlight html %}
+<!-- Use data-ignore="push" to prevent the push.js interception -->
+<a href="http://www.google.com" data-ignore="push">Google<a>
+{% endhighlight %}
+
+ <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>
+
+{% highlight js %}
+// Only needed if you want to fire a callback
+window.addEventListener('push', myFunction);
+{% endhighlight %}
+
+ </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>
+
+{% highlight html %}
+<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>
+{% endhighlight %}
+
+ </article>
+
+ <!-- Footer -->
+ {% include footer.html %}
+ </div>
+ </div>
+</div>
diff --git a/docs/css/docs.css b/docs/css/docs.css
deleted file mode 100644
index b4057d4..0000000
--- a/docs/css/docs.css
+++ /dev/null
@@ -1,1146 +0,0 @@
-/* Base styles
--------------------------------------------------- */
-
-body {
- position: static !important; /* Overrides the fixed positioning of body in Ratchet */
- font-family: "proxima-nova", "HelveticaNeue-Light", "Helvetica Neue Light", Helvetica, Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- color: #333;
- background-color: #fff;
- -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
- -webkit-text-size-adjust: 100%;
-}
-
-
-/* Typography
--------------------------------------------------- */
-
-hr {
- height: 0;
- margin: 10px 0 30px;
- border: solid #ddd;
- border-width: 1px 0 0;
- clear: both;
-}
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- text-rendering: optimizeLegibility;
-}
-
-
-/* Docs structural styles
--------------------------------------------------- */
-
-.docs-outer-wrapper {
- position: relative;
-}
-
-.docs-inner-wrapper {
- width: 1000px;
- margin: 0 auto;
-}
-
-/* Masthead (navigation)
--------------------------------------------------- */
-
-.docs-masthead {
- position: fixed;
- top: 0;
- right: 0;
- left: 0;
- z-index: 100;
- padding: 10px 0;
- background-color: #fff;
- border-bottom: 1px solid #ddd;
- box-shadow: 0 0 5px rgba(0,0,0,.1);
-}
-
-.docs-masthead .docs-inner-wrapper {
- line-height: 40px;
-}
-
-.docs-masthead-title {
- font-weight: 700;
- font-size: 21px;
- text-transform: uppercase;
- letter-spacing: 5px;
-}
-
-.docs-navigation {
- float: right;
- font-size: 15px;
-}
-
-.nav-item {
- position: relative;
- float: left;
- margin-right: 30px;
- list-style: none;
-}
-
-.nav-item:last-child {
- margin-right: 0;
-}
-
-.nav-item a {
- position: relative;
- color: #777;
- text-decoration: none;
-}
-
-.nav-item a:hover {
- color: #555;
-}
-
-/* Give the components link a bit more room to fit the caret */
-.nav-item.nav-components {
- margin-right: 45px;
-}
-
-/* Give the components link a down caret */
-.nav-components-link:after {
- content: '';
- position: absolute;
- right: 0;
- width: 0;
- height: 0;
- top: 8px;
- right: -15px;
- margin-left: -4px;
- border-right: 4px solid transparent;
- border-top: 4px solid #777;
- border-left: 4px solid transparent;
-}
-
-/* The components list dropdown */
-.components-list {
- position: absolute;
- display: none;
- top: 45px;
- left: -20px;
- z-index: -1;
- padding: 10px 0;
- line-height: 1.1;
- background-color: #fff;
- background-clip: padding-box;
- border: 1px solid rgba(0,0,0,.2);
- border-radius: 3px;
- box-shadow: 0 0 8px rgba(0,0,0,.05);
-}
-
-.components-list.active {
- z-index: 100;
- display: block;
-}
-
-.components-list:before,
-.components-list:after {
- content: '';
- position: absolute;
- left: 30px;
- width: 0;
- height: 0;
-}
-
-.components-list:before {
- top: -11px;
- margin-left: -11px;
- border-right: 11px solid transparent;
- border-bottom: 11px solid rgba(0,0,0,.3);
- border-left: 11px solid transparent;
-}
-
-.components-list:after {
- top: -10px;
- margin-left: -10px;
- border-right: 10px solid transparent;
- border-bottom: 10px solid #fff;
- border-left: 10px solid transparent;
-}
-
-.components-list li {
- list-style: none;
-}
-
-.components-list li:last-child {
- padding-bottom: 0;
-}
-
-.components-list li a {
- display: block;
- width: 150px;
- padding: 10px 20px;
-}
-
-.components-list li a:hover {
- color: #fff;
- background-color: #1eb0e9;
-}
-
-/* Jumbo header
--------------------------------------------------- */
-
-.docs-header {
- height: 530px;
- margin-top: 60px;
- background-color: #02122b;
- background-image: url(../img/header-bg.jpg);
- background-size: cover;
- box-shadow: inset 0 0 10px rgba(0,0,0,.6);
-}
-
-.docs-header-text {
- position: relative;
- z-index: 3;
- top: 140px;
- width: 800px;
- margin: 0 auto;
- color: #fff;
- text-align: center;
- text-shadow: 0 0 5px #000;
- -webkit-animation: fadeintext 2s;
- -moz-animation: fadeintext 2s;
-}
-
-.docs-header-subtitle {
- margin-bottom: 35px;
- font-size: 45px;
- font-weight: 300;
- line-height: 55px;
-}
-
-.docs-btn {
- display: inline-block;
- padding: 18px 40px;
- color: #fff;
- font-size: 24px;
- font-weight: 700;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
- text-decoration: none;
- line-height: 1;
- background-color: #f26629; /* Old browsers */
- background-image: -moz-linear-gradient(top, #f95e0c 0%, #e53003 100%); /* FF3.6+ */
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f95e0c), color-stop(100%,#e53003)); /* Chrome,Safari4+ */
- background-image: -webkit-linear-gradient(top, #f95e0c 0%,#e53003 100%); /* Chrome10+,Safari5.1+ */
- background-image: -o-linear-gradient(top, #f95e0c 0%,#e53003 100%); /* Opera 11.10+ */
- background-image: -ms-linear-gradient(top, #f95e0c 0%,#e53003 100%); /* IE10+ */
- background-image: linear-gradient(to bottom, #f95e0c 0%,#e53003 100%); /* W3C */
- border-radius: 3px;
- box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 5px 5px rgba(0,0,0,.2);
-}
-
-.docs-btn:hover {
- color: #fff;
- background-color: #ff7234; /* Old browsers */
- background-image: -moz-linear-gradient(top, #f95e0c 0%, #cd2a02 100%); /* FF3.6+ */
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f95e0c), color-stop(100%,#cd2a02)); /* Chrome,Safari4+ */
- background-image: -webkit-linear-gradient(top, #f95e0c 0%,#cd2a02 100%); /* Chrome10+,Safari5.1+ */
- background-image: -o-linear-gradient(top, #f95e0c 0%,#cd2a02 100%); /* Opera 11.10+ */
- background-image: -ms-linear-gradient(top, #f95e0c 0%,#cd2a02 100%); /* IE10+ */
- background-image: linear-gradient(to bottom, #f95e0c 0%,#cd2a02 100%); /* W3C */
-}
-
-.docs-btn:active {
- padding: 19px 40px 17px;
- background-color: #cd2a02;
- background-image: none;
- box-shadow: inset 0 0 5px rgba(0,0,0,.4);
-}
-
-/* Styles for the social media buttons */
-.social {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- padding: 20px 0;
- background-color: rgba(0,0,0,.3);
- -webkit-animation: fadeinsocial 2.5s;
- -moz-animation: fadeinsocial 2.5s;
-}
-
-.social ul {
- height: 20px;
- padding-left: 20px;
- list-style: none;
- text-align: center;
-}
-
-.social li {
- display: inline-block;
- height: 20px;
- padding: 0;
- vertical-align: top;
-}
-
-/* Overiding our framework button styles so our social buttons aren't messed up */
-.twitter-follow-button,
-.twitter-follow-button:hover,
-.twitter-follow-button:active,
-.twitter-share-button,
-.twitter-share-button:hover,
-.twitter-share-button:active {
- padding: 0;
- border: none;
- border-radius: 0;
- background: none;
- box-shadow: none;
-}
-
-
-/* iPhone previewer
--------------------------------------------------- */
-
-.iphone {
- position: relative;
- top: 50px;
- float: right;
- width: 375px;
- height: 806px;
- font-family: "Helvetica Neue", sans-serif;
- background-image: url("../img/iphone.png");
-}
-
-.iphone-fixed,
-.iphone-bottom {
- left: 50%;
- margin-left: 125px;
-}
-
-.iphone-fixed {
- position: fixed;
- top: 30px;
-}
-
-.iphone-bottom {
- position: absolute;
- top: auto;
- bottom: 130px;
-}
-
-.iphone .iphone-content {
- position: absolute;
- top: 147px;
- left: 27px;
- width: 320px;
- height: 548px;
- overflow: hidden;
- background-color: white;
-}
-
-.iphone .content,
-.component-example .content {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
-}
-
-.component-example .content {
- position: relative;
-}
-
-/* Mad override to avoid it being styled like the block level link */
-.component-example .list a[data-transition="slide-out"],
-.iphone .list a[data-transition="slide-out"] {
- padding: 0;
- display: inline;
- margin: 0;
- color: #0882f0;
-}
-
-/* Content layout
--------------------------------------------------- */
-
-.content-section {
- position: relative;
- padding-top: 80px;
-}
-
-/* Section header
--------------------------------------------------- */
-
-.section-header {
- padding-bottom: 30px;
- text-align: center;
- border-bottom: 1px solid #ddd;
-}
-
-.section-title {
- font-size: 60px;
- font-weight: 700;
- line-height: 1;
- color: #333;
-}
-
-.section-description {
- font-weight: 300;
- font-size: 24px;
- color: #777;
-}
-
-.section-informational {
- border-top: 1px solid #ddd;
- border-bottom: 1px solid #ddd;
- background-color: #fafafa;
- padding-bottom: 70px;
-}
-
-/* Getting started & page setup
--------------------------------------------------- */
-
-.steps {
- overflow: hidden;
- padding-top: 40px;
-}
-
-.steps .step {
- float: left;
- width: 306px;
- margin-right: 40px;
- list-style: none;
-}
-
-.step-title {
- font-size: 18px;
- font-weight: 700;
-}
-
-.step-description {
- color: #777;
- margin-bottom: 10px;
-}
-
-.steps .step:last-child {
- margin-right: 0;
-}
-
-/* Components
--------------------------------------------------- */
-
-.section-components {
- padding-bottom: 350px;
- background-color: #fff;
-}
-
-.component {
- position: relative;
- padding-top: 80px;
- width: 550px;
- margin-top: 1px;
- font-family: "proxima-nova", "HelveticaNeue-Light", "Helvetica Neue Light", Helvetica, Arial, sans-serif;
- font-weight: 300;
- opacity: .3; /* Fade content back until the user scrolls to it. */
- -webkit-transition: opacity .2s ease-in-out;
-}
-
-.component:last-child {
- margin-bottom: 320px;
-}
-
-/* Active class applied when the specific component is in focus */
-.component.active {
- opacity: 1;
-}
-
-.component-title {
- font-size: 28px;
- font-weight: 300;
- line-height: 35px;
-}
-
-.component-description {
- margin-bottom: 13px;
- color: #777;
- font-size: 18px;
- line-height: 26px;
- font-weight: 300;
-}
-
-.component-note {
- margin-top: 10px;
- color: #999;
- font-size: 14px;
- line-height: 18px;
- font-style: italic;
-}
-
-.component-title + .component-example {
- margin-top: 13px;
-}
-
-.content-section .prettyprint,
-.content-section .instruction-code {
- margin-top: 10px;
- padding: 10px;
- overflow-x: auto;
- font-size: 13px;
- font-family: monaco, menlo, monospace;
- color: #777;
- background-color: #fafafa;
- border: 1px solid #ddd;
- border-radius: 3px;
-}
-
-.prettyprint + .component-description,
-.component-note + .component-description {
- margin-top: 36px;
-}
-
-/* Content specific styles
--------------------------------------------------- */
-
-/* Make the example bars stay put in the docs */
-.iphone [class*="bar"] {
- position: absolute;
-}
-
-/* Component examples on mobile */
-.component-example {
- position: relative;
- display: none;
- margin-bottom: 20px;
- font-family: "Helvetica Neue", sans-serif;
- font-weight: normal;
-}
-
-.component-example-fullbleed {
- margin-right: -20px;
- margin-left: -20px;
-}
-
-/* Bar examples */
-.component-example [class*="bar"] {
- position: relative;
-}
-
-.component-example .bar-header-secondary {
- top: 0;
-}
-
-/* List examples */
-.component-example .list {
- margin-left: 0;
- margin-right: 0;
- background-color: #fff;
-}
-
-.component-example .list li {
- padding-right: 70px;
- padding-left: 20px;
-}
-
-.component-example .list.inset {
- margin: 0;
-}
-
-.iphone .list .segmented-controller-item,
-.component-example .list .segmented-controller-item {
- border-bottom-width: 0;
-}
-
-.iphone .list {
- margin-left: 0;
- margin-right: 0;
-}
-
-/* Button examples */
-#buttons [class*="button"],
-#buttonsCounts [class*="button"],
-#blockButtons [class*="button"] {
- margin-bottom: 10px;
-}
-
-#buttons [class*="button"]:last-child,
-#buttonsCounts [class*="button"]:last-child,
-#blockButtons [class*="button"]:last-child {
- margin-bottom: 0;
-}
-
-#blockButtonsInPhone .button-block {
- margin-left: 5px;
- margin-right: 5px;
-}
-
-#push .component-example {
- height: 108px;
- overflow: hidden;
-}
-
-#push .component-example .list {
- border-left: 1px solid rgba(0, 0, 0, .1);
- border-right: 1px solid rgba(0, 0, 0, .1);
-}
-
-.iphone .btn-section .button {
- display: block;
- margin: 0 auto;
-}
-
-.iphone .block-btn-section .block-button {
- margin-top: 10px;
-}
-
-.iphone .block-btn-section .block-button:first-child {
- margin-top: 100px;
-}
-
-#buttonsInPhone,
-#buttonsCountsInPhone {
- text-align: center;
-}
-
-#buttonsInPhone [class*="button"],
-#buttonsCountsInPhone [class*="button"] {
- margin-top: 10px;
-}
-
-#blockButtonsInPhone [class*="button"] {
- margin-top: 5px;
-}
-
-/* Counts examples */
-#countsInPhone {
- text-align: center;
-}
-
-#countsInPhone [class*="count"] {
- margin-top: 10px;
-}
-
-/* Form examples */
-.component-example form [class*="button"] {
- margin-bottom: 0;
-}
-
-.component .input-group label {
- padding: 9px 10px 9px 13px;
-}
-
-/* Toggle examples */
-#toggles .toggle {
- display: inline-block;
- margin-right: 10px;
-}
-#togglesInPhone .toggle {
- margin: 10px auto 0;
-}
-
-/* Popover examples */
-.component-example .popover {
- position: relative;
- display: block;
- top: 0;
- margin-top: 50px;
- opacity: 1;
-}
-#popoversInPhone .popover {
- position: absolute;
- display: block !important;
- top: 72px;
- opacity: 1 !important;
-}
-
-/* Modal example */
-.component-example .modal {
- left: 0;
- z-index: 10001;
-}
-.iphone .iphone-content .modal {
- position: absolute;
-}
-.component-example .modal .content,
-.iphone .iphone-content .modal .content {
- margin-top: 44px;
-}
-#modalsInPhone #iwindow > .button {
- margin: 10px;
-}
-
-
-/* Slider examples */
-.component-example-fullbleed .slider,
-.component-example-fullbleed .slider li,
-.component-example-fullbleed .slider li img,
-#slidersInPhone .slider,
-#slidersInPhone .slider li,
-#slidersInPhone .slider li img {
- width: 100%;
-}
-
-#slidersInPhone .slider {
- position: absolute;
- top: 0;
- left: 0;
-}
-
-.slider .slide-text {
- position: absolute;
- top: 45%;
- left: 0;
- width: 100%;
- color: #fff;
- text-align: center;
- font-size: 24px;
- font-weight: 300;
- text-shadow: 0 0 10px rgba(0,0,0,.5);
-}
-
-/* Give inset components in the iphone correct margin */
-.iphone .list.inset,
-#segmentedControllersInPhone .segmented-controller,
-#formsInPhone form,
-#formsWithInputGroupInPhone form,
-#formsWithInputGroupAndLabelsInPhone form {
- margin: 10px;
-}
-
-#pushInPhone .list {
- margin-top: 44px;
-}
-
-/* Footer
--------------------------------------------------- */
-
-.docs-footer {
- padding-bottom: 100px;
- overflow: hidden;
- color: #fff;
- background-color: #151515;
-}
-
-.docs-footer .docs-inner-wrapper {
- text-align: center
-}
-
-.docs-footer h3 {
- font-size: 24px;
- color: #fefefe;
- font-weight: 700;
-}
-
-.docs-footer p {
- font-size: 18px;
- color: #777;
-}
-
-.avatars {
- display: block;
- width: 590px;
- margin: 30px auto 0;
-}
-
-.avatars li {
- float: left;
- height: 170px;
- width: 170px;
- margin-right: 40px;
- list-style: none;
-}
-
-.avatars .avatar {
- display: block;
- height: 100%;
- width: 100%;
- margin-bottom: 15px;
- overflow: hidden;
- border-radius: 100%;
-}
-
-.avatars li:last-child {
- margin-right: 0;
-}
-
-.avatars img {
- width: 170px;
- height: 170px;
-}
-
-/* Banner for Mozilla and IE about component rendering poorly
-------------------------------------------------------------- */
-.notice-banner {
- cursor: pointer;
- height: 0;
- opacity: 0;
- padding: 0;
- color: #333;
- font-size: 16px;
- text-align: center;
- background-color: #fff9c4; /* Old browsers */
- background-image: -moz-linear-gradient(top, #fff9c4 0%, #fff38d 100%); /* FF3.6+ */
- background-image: -ms-linear-gradient(top, #fff9c4 0%,#fff38d 100%); /* IE10+ */
- background-image: linear-gradient(to bottom, #fff9c4 0%,#fff38d 100%); /* W3C */
- box-shadow: inset 0 -1px 0 rgba(0,0,0,.1);
- -moz-animation: shownotice 1s infinite;
-}
-
-/* Media queries
--------------------------------------------------- */
-
-@media only screen and (max-width: 1039px) {
- .docs-inner-wrapper {
- width: 920px;
- }
-
- .docs-header-text {
- width: 700px;
- }
-
- .steps .step {
- width: 280px;
- }
-
- .component {
- width: 500px;
- }
-
- .iphone-fixed,
- .iphone-bottom {
- margin-left: 85px;
- }
-}
-@media only screen and (min-width: 768px) and (max-width: 959px) {
- .docs-header-text,
- .docs-inner-wrapper {
- width: 700px;
- }
-
- .docs-header {
- height: 400px;
- }
-
- .docs-header-text {
- top: 75px;
- }
-
- .steps .step {
- width: 205px;
- }
-
- .component {
- width: 300px;
- }
-
- .iphone-fixed,
- .iphone-bottom {
- margin-left: -25px;
- }
-}
-@media only screen and (max-width: 767px) {
- .docs-outer-wrapper,
- .docs-inner-wrapper,
- .docs-header-text,
- .docs-content,
- .component {
- width: auto;
- }
-
- .docs-inner-wrapper {
- padding-right: 20px;
- padding-left: 20px;
- }
-
- /* Have the masthead scroll away instead of being fixed */
- .docs-masthead {
- position: absolute;
- padding: 2px 0 1px;
- }
-
- .docs-masthead-title {
- font-size: 18px;
- text-align: center;
- }
-
- /* Hide the navigation on mobile. Scroll away! */
- .docs-navigation {
- display: none;
- }
-
- .docs-header {
- height: 320px;
- margin-top: 44px;
- }
-
- .docs-header-text {
- top: 50px;
- }
-
- .docs-header-subtitle {
- margin-bottom: 18px;
- font-size: 24px;
- line-height: 30px;
- }
-
- .docs-btn {
- width: 100%;
- padding: 15px 0;
- font-size: 18px;
- }
-
- .docs-btn:active {
- padding: 16px 0 14px;
- }
-
- .social ul {
- height: auto;
- }
-
- .social li {
- padding-bottom: 15px;
- }
-
- .social li:last-child {
- padding-bottom : 0;
- }
-
- .content-section {
- padding-top: 50px;
- }
-
- .section-header {
- padding-bottom: 50px;
- }
-
- .section-title {
- margin-bottom: 5px;
- font-size: 40px;
- }
-
- .section-description {
- font-size: 18px;
- line-height: 24px;
- }
-
- .section-components {
- padding-bottom: 0px;
- }
-
- .section-informational {
- padding-bottom: 70px;
- }
-
- .steps .step {
- float: none;
- width: auto;
- margin: 0 0 30px 0;
- }
-
- .steps .step:last-child {
- margin: 0;
- }
-
- .notice-banner {
- position: relative;
- top: 0;
- font-size: 14px;
- line-height: 18px;
- }
-
- .notice-banner:after {
- display: none;
- }
-
- .component {
- padding: 50px 20px;
- margin-left: -20px;
- margin-right: -20px;
- opacity: 1;
- border-bottom: 1px solid #ddd;
- }
-
- .component:last-child {
- margin-bottom: 80px;
- }
-
- .component-example {
- display: block;
- }
-
- /* Hacky way to get parent of slider position absolute for smooth sliding */
- #sliders .slider {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 10000;
- }
- #sliders .prettyprint:not(.js) {
- margin-top: 230px;
- }
-
- .avatars {
- overflow: hidden;
- width: 280px;
- margin: 10px auto 0;
- }
-
- .avatars li {
- height: 86px;
- width: 86px;
- margin-right: 10px;
- }
-
- .avatars li:last-child {
- margin-right: 0;
- }
-
- .avatars img {
- width: 86px;
- height: 86px;
- }
-
- /* Hide the iPhone on mobile */
- .iphone {
- display: none;
- }
-}
-
-@media only screen and (max-width: 320px) {
- .docs-header-text {
- top: 30px;
- }
-}
-
-/* Animations
--------------------------------------------------- */
-
-@-webkit-keyframes fadeintext {
- 0% {
- opacity: 0;
- -webkit-transform: translateY(20px);
- }
- 50% {
- opacity: 0;
- -webkit-transform: translateY(20px);
- }
- 100% {
- opacity: 1;
- -webkit-transform: translateY(0);
- }
-}
-
-@-webkit-keyframes fadeinsocial {
- 0% {
- opacity: 0;
- }
- 85% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
-}
-
-@-moz-keyframes fadeintext {
- 0% {
- opacity: 0;
- -moz-transform: translateY(20px);
- }
- 50% {
- opacity: 0;
- -moz-transform: translateY(20px);
- }
- 100% {
- opacity: 1;
- -moz-transform: translateY(0);
- }
-}
-
-@-moz-keyframes fadeinsocial {
- 0% {
- opacity: 0;
- }
- 85% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
-}
-
-@-moz-keyframes shownotice {
- 0% {
- min-height: 30px;
- padding: 20px 0;
- opacity: 1;
- }
- 100% {
- min-height: 30px;
- padding: 20px 0;
- opacity: 1;
- }
-}
-
-/* Add Firefox support for CSS to docs since Ratchet framework doesn't natively support Mozilla
--------------------------------------------------- */
-
-/* Bars.css */
-[class*="bar-"] {
- -moz-box-sizing: border-box;
-}
-.bar-title,
-.tab-inner {
- display: -moz-box;
- -moz-box-orient: horizontal;
-}
-.tab-item {
- -moz-box-sizing: border-box;
- -moz-box-flex: 1;
-}
-.bar-title [class*="button"] {
- -moz-box-flex: 0;
-}
-.bar-title .segmented-controller {
- -moz-box-flex: 1;
-}
-
- /* forms.css */
-select,
-textarea,
-input[type="text"],
-input[type=search],
-input[type="password"],
-input[type="datetime"],
-input[type="datetime-local"],
-input[type="date"],
-input[type="month"],
-input[type="time"],
-input[type="week"],
-input[type="number"],
-input[type="email"],
-input[type="url"],
-input[type="tel"],
-input[type="color"],
-.input-group {
- -moz-box-sizing: border-box;
-}
-
-/* lists.css */
-.list.inset {
- -moz-box-sizing: border-box;
-}
-
-/* popovers.css */
-.popover-header {
- display: -moz-box;
-}
-
-/* segmented-controller.css*/
-.segmented-controller {
- display: -moz-box;
- -moz-box-orient: horizontal;
-}
-.segmented-controller li {
- -moz-box-flex: 1;
-}
-
-/* Get tab-bar to look 1/2way decent */
-.iphone .tab-item {
- min-width: 64px;
-} \ No newline at end of file
diff --git a/docs/css/prettify.css b/docs/css/prettify.css
deleted file mode 100644
index 1266970..0000000
--- a/docs/css/prettify.css
+++ /dev/null
@@ -1 +0,0 @@
-.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#999}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:teal}.atv{color:#d14}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file
diff --git a/docs/dist/ratchet-theme-android.css b/docs/dist/ratchet-theme-android.css
new file mode 100644
index 0000000..571b459
--- /dev/null
+++ b/docs/dist/ratchet-theme-android.css
@@ -0,0 +1,578 @@
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
+ */
+
+body {
+ font-family: "Roboto", sans-serif;
+ font-size: 18px;
+ line-height: 22px;
+ color: #222222;
+}
+
+a {
+ color: #33b5e5;
+}
+a:active {
+ color: #1a9bcb;
+}
+
+.content {
+ background-color: #f2f2f2;
+}
+
+.bar-nav ~ .content {
+ padding-top: 50px;
+}
+
+.bar-tab ~ .content {
+ padding-bottom: 50px;
+}
+
+.bar-header-secondary ~ .content {
+ padding-top: 100px;
+}
+
+.btn {
+ padding: 8px 15px;
+ font-size: 14px;
+ color: #222222;
+ background-color: #cecece;
+ border: 0;
+ border-radius: 2px;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
+}
+.btn:active, .btn.active {
+ color: #222222;
+ border: 0;
+ background-color: #999999;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+}
+
+.btn-primary {
+ color: #fff;
+ border: 0;
+ background-color: #33b5e5;
+}
+.btn-primary:active, .btn-primary.active {
+ color: #fff;
+ border: 0;
+ background-color: #1a9bcb;
+}
+
+.btn-positive {
+ color: #fff;
+ border: 0;
+ background-color: #99cc00;
+}
+.btn-positive:active, .btn-positive.active {
+ color: #fff;
+ border: 0;
+ background-color: #739900;
+}
+
+.btn-negative {
+ color: #fff;
+ border: 0;
+ background-color: #ff4444;
+}
+.btn-negative:active, .btn-negative.active {
+ color: #fff;
+ border: 0;
+ background-color: #ff1111;
+}
+
+.btn-outlined {
+ border: 1px solid #999999;
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-outlined.btn-primary {
+ border: 1px solid #33b5e5;
+ color: #33b5e5;
+}
+.btn-outlined.btn-primary:active {
+ border: 1px solid #33b5e5;
+ background-color: #33b5e5;
+}
+.btn-outlined.btn-positive {
+ border: 1px solid #99cc00;
+ color: #99cc00;
+}
+.btn-outlined.btn-positive:active {
+ border: 1px solid #99cc00;
+ background-color: #99cc00;
+}
+.btn-outlined.btn-negative {
+ border: 1px solid #ff4444;
+ color: #ff4444;
+}
+.btn-outlined.btn-negative:active {
+ border: 1px solid #ff4444;
+ background-color: #ff4444;
+}
+.btn-outlined:active {
+ border: 1px solid #999999;
+ background-color: #999999;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
+ color: #fff;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.btn-link {
+ color: #33b5e5;
+ background-color: transparent;
+ border: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.btn-link:active, .btn-link.active {
+ color: #1a9bcb;
+ background-color: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.btn-block {
+ padding: 15px 0;
+ font-size: 18px;
+}
+
+.btn .badge {
+ background-color: rgba(0, 0, 0, 0.15);
+}
+.btn .badge.badge-inverted {
+ background-color: transparent;
+}
+.btn:active .badge {
+ color: #fff;
+}
+
+.bar {
+ height: 50px;
+ background-color: #dddddd;
+ border-bottom: 1px solid #b1b1b1;
+ -webkit-box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
+ box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
+}
+.bar.bar-header-secondary {
+ top: 50px;
+}
+.bar.bar-footer-secondary {
+ bottom: 50px;
+}
+.bar.bar-footer-secondary-tab {
+ bottom: 50px;
+}
+.bar .bar-footer,
+.bar .bar-footer-secondary,
+.bar .bar-footer-secondary-tab {
+ border-bottom: 0;
+ border-top: 1px solid #b1b1b1;
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
+ box-shadow: inset 0 -2px 0 #33b5e5;
+}
+
+.bar-tab {
+ top: 0;
+ bottom: auto;
+ height: 50px;
+ border-top: 0;
+}
+.bar-tab .tab-item {
+ color: #929292;
+}
+.bar-tab .tab-item.active {
+ color: #33b5e5;
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
+ box-shadow: inset 0 -2px 0 #33b5e5;
+}
+.bar-tab .tab-item:active {
+ color: #929292;
+ background-color: #78c6e3;
+}
+.bar-tab .tab-item .icon {
+ top: 3px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+
+.title {
+ position: static;
+ padding-left: 15px;
+ font-size: 18px;
+ line-height: 49px;
+ text-align: left;
+}
+
+.bar .btn {
+ top: 7px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+.bar .btn-link {
+ top: 0;
+ padding: 0;
+ color: #33b5e5;
+ font-size: 18px;
+ line-height: 49px;
+}
+.bar .btn-link:active, .bar .btn-link.active {
+ color: #1a9bcb;
+}
+.bar .btn-link .icon {
+ top: 2px;
+ padding: 0;
+}
+.bar .btn-block {
+ top: 4px;
+}
+
+.bar .segmented-control {
+ top: 7px;
+}
+
+.bar .icon {
+ padding-top: 13px;
+ padding-bottom: 13px;
+}
+.bar .title .icon {
+ padding: 0;
+}
+.bar .title .icon.icon-caret {
+ top: 10px;
+ color: #777;
+}
+
+.bar input[type="search"] {
+ height: 35px;
+}
+
+.badge.badge-inverted {
+ color: #999999;
+ background-color: transparent;
+}
+
+.badge-primary {
+ color: #fff;
+ background-color: #33b5e5;
+}
+.badge-primary.badge-inverted {
+ color: #33b5e5;
+ background-color: transparent;
+}
+
+.badge-positive {
+ color: #fff;
+ background-color: #99cc00;
+}
+.badge-positive.badge-inverted {
+ color: #99cc00;
+ background-color: transparent;
+}
+
+.badge-negative {
+ color: #fff;
+ background-color: #ff4444;
+}
+.badge-negative.badge-inverted {
+ color: #ff4444;
+ background-color: transparent;
+}
+
+.card {
+ border-color: #d9d9d9;
+ border-radius: 2px;
+ background-color: transparent;
+}
+
+.table-view {
+ background-color: transparent;
+}
+.table-view .table-view-cell {
+ border-bottom: 1px solid #d9d9d9;
+}
+.table-view .table-view-cell:last-child {
+ background-image: none;
+}
+.table-view .table-view-cell > a:not(.btn):active {
+ background-color: #e0e0e0;
+}
+.table-view .table-view-cell > a:not(.btn):active .icon {
+ color: #fff;
+}
+.table-view .table-view-divider {
+ padding-top: 25px;
+ font-size: 12px;
+ font-weight: bold;
+ text-transform: uppercase;
+ border-top: 0;
+ border-bottom: 2px solid #a9a9a9;
+ background-color: transparent;
+}
+
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"],
+.input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+}
+
+input[type="search"] {
+ border-radius: 2px;
+}
+
+select,
+textarea,
+.input-group {
+ height: auto;
+}
+
+.input-group {
+ padding: 0;
+ border: 0;
+}
+
+.input-group input {
+ border: 0;
+ border-bottom: 1px solid #d9d9d9;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.input-group input:last-child {
+ background-image: none;
+}
+
+.input-row {
+ border-bottom: 1px solid #d9d9d9;
+}
+
+.input-row label + input {
+ background-image: none;
+ border-bottom: 0;
+}
+
+.segmented-control {
+ font-size: 14px;
+ background-color: #cecece;
+ border: 0;
+ border-radius: 2px;
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
+}
+.segmented-control .control-item {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ color: #222222;
+ border-left: 1px solid #999;
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
+}
+.segmented-control .control-item:first-child {
+ border-left-width: 0;
+}
+.segmented-control .control-item:active, .segmented-control .control-item.active {
+ background-color: #999999;
+}
+
+.segmented-control-primary {
+ border: 0;
+}
+.segmented-control-primary .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.segmented-control-primary .control-item:active, .segmented-control-primary .control-item.active {
+ color: #fff;
+ background-color: #33b5e5;
+}
+
+.segmented-control-positive {
+ border: 0;
+}
+.segmented-control-positive .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.segmented-control-positive .control-item:active, .segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #99cc00;
+}
+
+.segmented-control-negative {
+ border: 0;
+}
+.segmented-control-negative .control-item {
+ color: #fff;
+ border-color: inherit;
+}
+.segmented-control-negative .control-item:active, .segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #ff4444;
+}
+
+.popover {
+ top: 47px;
+ left: 15px;
+ width: 200px;
+ margin-left: 0;
+ border: 1px solid #9b9b9b;
+ border-radius: 0;
+ -webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .1s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .1s ease-in-out, opacity .2s ease-in-out;
+ -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
+ -webkit-transform: scale(0.75);
+ -ms-transform: scale(0.75);
+ transform: scale(0.75);
+}
+.popover:before {
+ display: none;
+}
+.popover.visible {
+ -webkit-transform: scale(1);
+ -ms-transform: scale(1);
+ transform: scale(1);
+}
+
+.backdrop {
+ background-color: none;
+}
+
+.popover .bar {
+ border-radius: 0;
+}
+.popover .bar-nav ~ .table-view {
+ padding-top: 50px;
+}
+
+.popover .table-view {
+ border-radius: 12px;
+}
+
+.toggle {
+ width: 104px;
+ height: 28px;
+ border: 2px solid #d7d7d7;
+ border-radius: 0;
+ background-color: #d7d7d7;
+}
+.toggle .toggle-handle {
+ top: 0;
+ left: 0;
+ width: 50px;
+ height: 24px;
+ border: 1px solid #b5b5b5;
+ border-radius: 2px;
+ background-color: #bebebe;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
+}
+.toggle:before {
+ top: 1px;
+ right: auto;
+ left: 11px;
+ z-index: 3;
+ color: #fff;
+}
+.toggle.active {
+ border: 2px solid #d7d7d7;
+ background-color: #d7d7d7;
+}
+.toggle.active .toggle-handle {
+ margin-right: 2px;
+ background-color: #33b5e5;
+ border-color: #33b5e5;
+ -webkit-transform: translate3d(50px, 0, 0);
+ -ms-transform: translate3d(50px, 0, 0);
+ transform: translate3d(50px, 0, 0);
+}
+.toggle.active:before {
+ left: auto;
+ right: 14px;
+ color: #fff;
+ content: "On";
+}
+
+.push-left:after {
+ content: '\e803';
+}
+
+.push-right:after {
+ content: '\e806';
+}
+
+.icon-caret:before {
+ content: '\e800';
+}
+
+.icon-down:before,
+.icon-down-nav:before {
+ content: '\e801';
+}
+
+.icon-download:before {
+ content: '\e802';
+}
+
+.icon-left:before,
+.icon-left-nav:before {
+ content: '\e803';
+}
+
+.icon-more-vertical:before {
+ content: '\e804';
+}
+
+.icon-more:before {
+ content: '\e805';
+}
+
+.icon-right:before,
+.icon-right-nav:before {
+ content: '\e806';
+}
+
+.icon-search:before {
+ content: '\e807';
+}
+
+.icon-share:before {
+ content: '\e808';
+}
+
+.icon-up:before,
+.icon-up-nav:before {
+ content: '\e809';
+}
diff --git a/docs/dist/ratchet-theme-ios.css b/docs/dist/ratchet-theme-ios.css
new file mode 100644
index 0000000..71893b7
--- /dev/null
+++ b/docs/dist/ratchet-theme-ios.css
@@ -0,0 +1,477 @@
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
+ */
+
+a {
+ color: #007aff;
+}
+a:active {
+ color: #0062cc;
+}
+
+.content {
+ background-color: #efeff4;
+}
+
+.h5, h5,
+.h6, h6,
+p {
+ color: #8f8f94;
+}
+
+.h5, h5,
+.h6, h6 {
+ font-weight: normal;
+ text-transform: uppercase;
+}
+
+.btn {
+ border: 1px solid #929292;
+ color: #929292;
+ background-color: rgba(247, 247, 247, 0.98);
+ -webkit-transition: all;
+ -moz-transition: all;
+ transition: all;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+ -webkit-transition-timing-function: linear;
+ -moz-transition-timing-function: linear;
+ transition-timing-function: linear;
+}
+.btn:active, .btn.active {
+ color: #fff;
+ background-color: #929292;
+}
+
+.btn-primary {
+ color: #fff;
+ border: 1px solid #007aff;
+ background-color: #007aff;
+}
+.btn-primary:active, .btn-primary.active {
+ border: 1px solid #0062cc;
+ background-color: #0062cc;
+}
+
+.btn-positive {
+ color: #fff;
+ border: 1px solid #4cd964;
+ background-color: #4cd964;
+}
+.btn-positive:active, .btn-positive.active {
+ border: 1px solid #2ac845;
+ background-color: #2ac845;
+}
+
+.btn-negative {
+ color: #fff;
+ border: 1px solid #dd524d;
+ background-color: #dd524d;
+}
+.btn-negative:active, .btn-negative.active {
+ border: 1px solid #cf2d28;
+ background-color: #cf2d28;
+}
+
+.btn-outlined {
+ background-color: transparent;
+}
+.btn-outlined.btn-primary {
+ color: #007aff;
+}
+.btn-outlined.btn-positive {
+ color: #4cd964;
+}
+.btn-outlined.btn-negative {
+ color: #dd524d;
+}
+.btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
+ color: #fff;
+}
+
+.btn-link {
+ color: #007aff;
+ background-color: transparent;
+ border: none;
+}
+.btn-link:active, .btn-link.active {
+ color: #0062cc;
+ background-color: transparent;
+}
+
+.btn .badge {
+ background-color: rgba(0, 0, 0, 0.15);
+}
+.btn .badge.badge-inverted {
+ background-color: transparent;
+}
+.btn:active .badge {
+ color: #fff;
+}
+
+.bar {
+ border-bottom: 0;
+ background-color: rgba(247, 247, 247, 0.98);
+ -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.85);
+}
+.bar.bar-header-secondary {
+ top: 44px;
+}
+.bar.bar-footer-secondary {
+ bottom: 44px;
+}
+.bar.bar-footer-secondary-tab {
+ bottom: 50px;
+}
+.bar .bar-footer,
+.bar .bar-footer-secondary,
+.bar .bar-footer-secondary-tab {
+ border-top: 0;
+ -webkit-box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+}
+
+.bar-tab {
+ border-top: 0;
+ -webkit-box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+ box-shadow: 0 0 -1px rgba(0, 0, 0, 0.85);
+}
+
+.tab-item {
+ color: #929292;
+}
+.tab-item.active, .tab-item:active {
+ color: #007aff;
+}
+
+.bar-nav .btn-link {
+ color: #007aff;
+}
+.bar-nav .btn-link:active {
+ color: #007aff;
+ opacity: .6;
+}
+
+.badge.badge-inverted {
+ color: #929292;
+ background-color: transparent;
+}
+
+.badge-primary {
+ color: #fff;
+ background-color: #007aff;
+}
+.badge-primary.badge-inverted {
+ color: #007aff;
+ background-color: transparent;
+}
+
+.badge-positive {
+ color: #fff;
+ background-color: #4cd964;
+}
+.badge-positive.badge-inverted {
+ color: #4cd964;
+ background-color: transparent;
+}
+
+.badge-negative {
+ color: #fff;
+ background-color: #dd524d;
+}
+.badge-negative.badge-inverted {
+ color: #dd524d;
+ background-color: transparent;
+}
+
+.card .table-view {
+ background-image: none;
+}
+
+.card .table-view-cell:last-child {
+ background-image: none;
+}
+
+.table-view {
+ border-top: 0;
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+.table-view .table-view-cell {
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+.table-view .table-view-cell:last-child {
+ background-image: none;
+}
+.table-view .table-view-divider {
+ border-top: 0;
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"],
+.input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+}
+
+input[type="search"] {
+ height: 34px;
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.1);
+ border: 0;
+ border-radius: 6px;
+}
+
+input[type="search"]:focus {
+ text-align: left;
+}
+
+select,
+textarea,
+.input-group {
+ height: auto;
+}
+
+.input-group {
+ padding: 0;
+ border: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 0 100%, 0 0%;
+ background-repeat: no-repeat;
+}
+
+.input-group input {
+ border: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+
+.input-group input:last-child {
+ background-image: none;
+}
+
+.input-row {
+ border-bottom: 0;
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#c8c7cc' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: 15px 100%;
+ background-repeat: no-repeat;
+}
+
+.input-row:last-child,
+.input-row label + input {
+ background-image: none;
+}
+
+.segmented-control {
+ background-color: transparent;
+ border: 1px solid #929292;
+}
+.segmented-control .control-item {
+ color: #929292;
+ border-color: #929292;
+ -webkit-transition: background-color 0.1s linear;
+ -moz-transition: background-color 0.1s linear;
+ transition: background-color 0.1s linear;
+}
+.segmented-control .control-item:active {
+ background-color: #ebebeb;
+}
+.segmented-control .control-item.active {
+ color: #fff;
+ background-color: #929292;
+}
+
+.segmented-control-primary {
+ border: 1px solid #007aff;
+}
+.segmented-control-primary .control-item {
+ color: #007aff;
+ border-color: inherit;
+}
+.segmented-control-primary .control-item:active {
+ background-color: #b3d7ff;
+}
+.segmented-control-primary .control-item.active {
+ color: #fff;
+ background-color: #007aff;
+}
+
+.segmented-control-positive {
+ border: 1px solid #4cd964;
+}
+.segmented-control-positive .control-item {
+ color: #4cd964;
+ border-color: inherit;
+}
+.segmented-control-positive .control-item:active {
+ background-color: #dff8e3;
+}
+.segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #4cd964;
+}
+
+.segmented-control-negative {
+ border: 1px solid #dd524d;
+}
+.segmented-control-negative .control-item {
+ color: #dd524d;
+ border-color: inherit;
+}
+.segmented-control-negative .control-item:active {
+ background-color: #fae4e3;
+}
+.segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #dd524d;
+}
+
+.popover {
+ border-radius: 12px;
+ -webkit-transition: -webkit-transform .2s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .2s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .2s ease-in-out, opacity .2s ease-in-out;
+ -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+ -moz-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+ transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
+}
+.popover:before {
+ border-bottom: 15px solid rgba(247, 247, 247, 0.98);
+}
+
+.popover .bar {
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.popover .bar-nav {
+ border-bottom: 1px solid rgba(0, 0, 0, 0.15);
+}
+
+.popover .table-view {
+ border-radius: 12px;
+ background-image: none;
+}
+
+.modal {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+.modal.active {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+
+.toggle {
+ width: 47px;
+ border: 2px solid #e6e6e6;
+ -webkit-box-shadow: inset 0 0 0 0 #e1e1e1;
+ box-shadow: inset 0 0 0 0 #e1e1e1;
+ -webkit-transition-property: box-shadow, border;
+ -moz-transition-property: box-shadow, border;
+ transition-property: box-shadow, border;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+.toggle .toggle-handle {
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ -webkit-transition-property: -webkit-transform, border, width;
+ -moz-transition-property: -moz-transform, border, width;
+ transition-property: transform, border, width;
+ -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08);
+ box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08);
+}
+.toggle:before {
+ display: none;
+}
+.toggle.active {
+ border: 2px solid #4cd964;
+ background-color: transparent;
+ -webkit-box-shadow: inset 0 0 0 13px #4cd964;
+ box-shadow: inset 0 0 0 13px #4cd964;
+}
+.toggle.active .toggle-handle {
+ -webkit-transform: translate3d(17px, 0, 0);
+ -ms-transform: translate3d(17px, 0, 0);
+ transform: translate3d(17px, 0, 0);
+}
+.toggle.active .toggle-handle {
+ border-color: #4cd964;
+}
+
+.content.fade {
+ -webkit-transition: opacity 0.2s ease-in-out;
+ -moz-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+}
+.content.sliding {
+ -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ -moz-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+ transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
+}
+.content.sliding.sliding-in, .content.sliding.right:not([class*="sliding-in"]) {
+ -webkit-animation-name: fadeOverlay;
+ -moz-animation-name: fadeOverlay;
+ animation-name: fadeOverlay;
+ -webkit-animation-duration: 0.4s;
+ -moz-animation-duration: 0.4s;
+ animation-duration: 0.4s;
+}
+.content.sliding.right:not([class*="sliding-in"]) {
+ -webkit-animation-direction: reverse;
+ -moz-animation-direction: reverse;
+ animation-direction: reverse;
+}
+.content.sliding.left {
+ -webkit-transform: translate3d(-20%, 0, 0);
+ -ms-transform: translate3d(-20%, 0, 0);
+ transform: translate3d(-20%, 0, 0);
+}
+
+@-webkit-keyframes fadeOverlay {
+ from {
+ -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0);
+ }
+
+ to {
+ -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1);
+ }
+}
diff --git a/docs/dist/ratchet.css b/docs/dist/ratchet.css
new file mode 100644
index 0000000..b83e3bc
--- /dev/null
+++ b/docs/dist/ratchet.css
@@ -0,0 +1,1414 @@
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
+ */
+
+/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
+html {
+ font-family: sans-serif;
+ -ms-text-size-adjust: 100%;
+ -webkit-text-size-adjust: 100%;
+}
+
+body {
+ margin: 0;
+}
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+nav,
+section,
+summary {
+ display: block;
+}
+
+audio,
+canvas,
+progress,
+video {
+ display: inline-block;
+ vertical-align: baseline;
+}
+
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+
+[hidden],
+template {
+ display: none;
+}
+
+a {
+ background: transparent;
+}
+
+a:active,
+a:hover {
+ outline: 0;
+}
+
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+b,
+strong {
+ font-weight: bold;
+}
+
+dfn {
+ font-style: italic;
+}
+
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+mark {
+ background: #ff0;
+ color: #000;
+}
+
+small {
+ font-size: 80%;
+}
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sup {
+ top: -0.5em;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+img {
+ border: 0;
+}
+
+svg:not(:root) {
+ overflow: hidden;
+}
+
+figure {
+ margin: 1em 40px;
+}
+
+hr {
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+ height: 0;
+}
+
+pre {
+ overflow: auto;
+}
+
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace, monospace;
+ font-size: 1em;
+}
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ color: inherit;
+ font: inherit;
+ margin: 0;
+}
+
+button {
+ overflow: visible;
+}
+
+button,
+select {
+ text-transform: none;
+}
+
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ -webkit-appearance: button;
+ cursor: pointer;
+}
+
+button[disabled],
+html input[disabled] {
+ cursor: default;
+}
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+
+input {
+ line-height: normal;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box;
+ padding: 0;
+}
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+
+input[type="search"] {
+ -webkit-appearance: textfield;
+ -moz-box-sizing: content-box;
+ -webkit-box-sizing: content-box;
+ box-sizing: content-box;
+}
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+fieldset {
+ border: 1px solid #c0c0c0;
+ margin: 0 2px;
+ padding: 0.35em 0.625em 0.75em;
+}
+
+legend {
+ border: 0;
+ padding: 0;
+}
+
+textarea {
+ overflow: auto;
+}
+
+optgroup {
+ font-weight: bold;
+}
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+td,
+th {
+ padding: 0;
+}
+
+* {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+body {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ font-size: 17px;
+ line-height: 21px;
+ color: #000;
+ background-color: #fff;
+}
+
+a {
+ color: #428bca;
+ text-decoration: none;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+a:active {
+ color: #3071a9;
+}
+
+.content {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ overflow: auto;
+ background-color: #fff;
+ -webkit-overflow-scrolling: touch;
+}
+
+.content > * {
+ -webkit-transform: translateZ(0);
+ -ms-transform: translateZ(0);
+ transform: translateZ(0);
+}
+
+.bar-nav ~ .content {
+ padding-top: 44px;
+}
+
+.bar-header-secondary ~ .content {
+ padding-top: 88px;
+}
+
+.bar-footer ~ .content {
+ padding-bottom: 44px;
+}
+
+.bar-footer-secondary ~ .content {
+ padding-bottom: 88px;
+}
+
+.bar-tab ~ .content {
+ padding-bottom: 50px;
+}
+
+.bar-footer-secondary-tab ~ .content {
+ padding-bottom: 94px;
+}
+
+.content-padded {
+ margin: 10px;
+}
+
+.pull-left {
+ float: left;
+}
+
+.pull-right {
+ float: right;
+}
+
+.clearfix:before, .clearfix:after {
+ content: " ";
+ display: table;
+}
+.clearfix:after {
+ clear: both;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ margin-top: 0;
+ margin-bottom: 10px;
+ line-height: 1;
+}
+
+h1, .h1 {
+ font-size: 36px;
+}
+
+h2, .h2 {
+ font-size: 30px;
+}
+
+h3, .h3 {
+ font-size: 24px;
+}
+
+h4, .h4 {
+ font-size: 18px;
+}
+
+h5, .h5 {
+ font-size: 14px;
+ margin-top: 20px;
+}
+
+h6, .h6 {
+ font-size: 12px;
+ margin-top: 20px;
+}
+
+p {
+ margin-top: 0;
+ margin-bottom: 10px;
+ font-size: 14px;
+ color: #777;
+}
+
+.btn {
+ position: relative;
+ display: inline-block;
+ padding: 6px 8px 7px;
+ margin-bottom: 0;
+ font-size: 12px;
+ font-weight: 400;
+ line-height: 1;
+ color: #333;
+ text-align: center;
+ vertical-align: top;
+ cursor: pointer;
+ background-color: white;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+}
+.btn:active, .btn.active {
+ color: inherit;
+ background-color: #ccc;
+}
+.btn:disabled, .btn.disabled {
+ opacity: .6;
+}
+
+.btn-primary {
+ color: #fff;
+ border: 1px solid #428bca;
+ background-color: #428bca;
+}
+.btn-primary:active, .btn-primary.active {
+ color: #fff;
+ border: 1px solid #3071a9;
+ background-color: #3071a9;
+}
+
+.btn-positive {
+ color: #fff;
+ border: 1px solid #5cb85c;
+ background-color: #5cb85c;
+}
+.btn-positive:active, .btn-positive.active {
+ color: #fff;
+ border: 1px solid #449d44;
+ background-color: #449d44;
+}
+
+.btn-negative {
+ color: #fff;
+ border: 1px solid #d9534f;
+ background-color: #d9534f;
+}
+.btn-negative:active, .btn-negative.active {
+ color: #fff;
+ border: 1px solid #c9302c;
+ background-color: #c9302c;
+}
+
+.btn-outlined {
+ background-color: transparent;
+}
+.btn-outlined.btn-primary {
+ color: #428bca;
+}
+.btn-outlined.btn-positive {
+ color: #5cb85c;
+}
+.btn-outlined.btn-negative {
+ color: #d9534f;
+}
+.btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
+ color: #fff;
+}
+
+.btn-link {
+ padding-top: 6px;
+ padding-bottom: 6px;
+ color: #428bca;
+ background-color: transparent;
+ border: 0;
+}
+.btn-link:active, .btn-link.active {
+ color: #3071a9;
+ background-color: transparent;
+}
+
+.btn-block {
+ display: block;
+ padding: 15px 0;
+ margin-bottom: 10px;
+ font-size: 18px;
+}
+
+input[type="submit"],
+input[type="reset"],
+input[type="button"] {
+ width: 100%;
+}
+
+.btn .badge {
+ font-size: 12px;
+ margin: -2px -4px -2px 4px;
+ background-color: rgba(0, 0, 0, 0.15);
+}
+
+.btn .badge-inverted,
+.btn:active .badge-inverted {
+ background-color: transparent;
+}
+
+.btn-primary:active .badge-inverted,
+.btn-positive:active .badge-inverted,
+.btn-negative:active .badge-inverted {
+ color: #fff;
+}
+
+.btn-block .badge {
+ position: absolute;
+ right: 0;
+ margin-right: 10px;
+}
+
+.btn .icon {
+ font-size: inherit;
+}
+
+.bar {
+ position: fixed;
+ right: 0;
+ left: 0;
+ z-index: 10;
+ height: 44px;
+ padding-right: 10px;
+ padding-left: 10px;
+ border-bottom: 1px solid #dddddd;
+ background-color: white;
+}
+
+.bar-header-secondary {
+ top: 44px;
+}
+
+.bar-footer {
+ bottom: 0;
+}
+
+.bar-footer-secondary {
+ bottom: 44px;
+}
+
+.bar-footer-secondary-tab {
+ bottom: 50px;
+}
+
+.bar-footer,
+.bar-footer-secondary,
+.bar-footer-secondary-tab {
+ border-bottom: 0;
+ border-top: 1px solid #dddddd;
+}
+
+.bar-nav {
+ top: 0;
+}
+
+.title {
+ position: absolute;
+ display: block;
+ width: 100%;
+ padding: 0;
+ margin: 0 -10px;
+ font-size: 17px;
+ font-weight: 500;
+ line-height: 44px;
+ color: #000;
+ text-align: center;
+ white-space: nowrap;
+}
+
+.title a {
+ color: inherit;
+}
+
+.bar-tab {
+ display: table;
+ bottom: 0;
+ width: 100%;
+ height: 50px;
+ padding: 0;
+ border-top: 1px solid #dddddd;
+ border-bottom: 0;
+ table-layout: fixed;
+}
+.bar-tab .tab-item {
+ display: table-cell;
+ width: 1%;
+ height: 50px;
+ vertical-align: middle;
+ color: #929292;
+ text-align: center;
+}
+.bar-tab .tab-item.active, .bar-tab .tab-item:active {
+ color: #428bca;
+}
+.bar-tab .tab-item .icon {
+ top: 3px;
+ width: 24px;
+ height: 24px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+.bar-tab .tab-item .icon ~ .tab-label {
+ display: block;
+ font-size: 11px;
+}
+
+.bar .btn {
+ position: relative;
+ top: 7px;
+ z-index: 20;
+ padding: 6px 12px 7px;
+ margin-top: 0;
+ font-weight: 400;
+}
+.bar .btn.pull-right {
+ margin-left: 10px;
+}
+.bar .btn.pull-left {
+ margin-right: 10px;
+}
+
+.bar .btn-link {
+ top: 0;
+ padding: 0;
+ font-size: 16px;
+ color: #428bca;
+ line-height: 44px;
+ border: 0;
+}
+.bar .btn-link:active, .bar .btn-link.active {
+ color: #3071a9;
+}
+
+.bar .btn-block {
+ top: 6px;
+ padding: 7px 0;
+ margin-bottom: 0;
+ font-size: 16px;
+}
+
+.bar .btn-nav.pull-left {
+ margin-left: -5px;
+}
+.bar .btn-nav.pull-left .icon-left-nav {
+ margin-right: -3px;
+}
+.bar .btn-nav.pull-right {
+ margin-right: -5px;
+}
+.bar .btn-nav.pull-right .icon-right-nav {
+ margin-left: -3px;
+}
+
+.bar .icon {
+ position: relative;
+ z-index: 20;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ font-size: 24px;
+}
+.bar .btn .icon {
+ top: 3px;
+ padding: 0;
+}
+.bar .title .icon {
+ padding: 0;
+}
+.bar .title .icon.icon-caret {
+ top: 4px;
+ margin-left: -5px;
+}
+
+.bar input[type="search"] {
+ height: 29px;
+ margin: 6px 0;
+}
+
+.bar .segmented-control {
+ top: 7px;
+ margin: 0 auto;
+}
+
+.badge {
+ display: inline-block;
+ padding: 2px 9px 3px;
+ font-size: 12px;
+ line-height: 1;
+ color: #333;
+ background-color: rgba(0, 0, 0, 0.15);
+ border-radius: 100px;
+}
+.badge.badge-inverted {
+ padding: 0 5px 0 0;
+ background-color: transparent;
+}
+
+.badge-primary {
+ color: #fff;
+ background-color: #428bca;
+}
+.badge-primary.badge-inverted {
+ color: #428bca;
+}
+
+.badge-positive {
+ color: #fff;
+ background-color: #5cb85c;
+}
+.badge-positive.badge-inverted {
+ color: #5cb85c;
+}
+
+.badge-negative {
+ color: #fff;
+ background-color: #d9534f;
+}
+.badge-negative.badge-inverted {
+ color: #d9534f;
+}
+
+.card {
+ overflow: hidden;
+ margin: 10px;
+ background-color: white;
+ border: 1px solid #dddddd;
+ border-radius: 6px;
+}
+
+.card .table-view {
+ margin-bottom: 0;
+ border-top: 0;
+ border-bottom: 0;
+}
+.card .table-view .table-view-divider:first-child {
+ top: 0;
+ border-top-right-radius: 6px;
+ border-top-left-radius: 6px;
+}
+.card .table-view .table-view-divider:last-child {
+ border-bottom-right-radius: 6px;
+ border-bottom-left-radius: 6px;
+}
+
+.card .table-view-cell:last-child {
+ border-bottom: 0;
+}
+
+.table-view {
+ padding-left: 0;
+ margin-top: 0;
+ margin-bottom: 15px;
+ list-style: none;
+ background-color: #fff;
+ border-top: 1px solid #dddddd;
+ border-bottom: 1px solid #dddddd;
+}
+
+.table-view-cell {
+ position: relative;
+ overflow: hidden;
+ padding: 11px 65px 11px 15px;
+ border-bottom: 1px solid #dddddd;
+}
+.table-view-cell:last-child {
+ border-bottom: 0;
+}
+.table-view-cell > a:not(.btn) {
+ position: relative;
+ display: block;
+ overflow: hidden;
+ padding: inherit;
+ margin: -11px -65px -11px -15px;
+ color: inherit;
+}
+.table-view-cell > a:not(.btn):active {
+ background-color: #eee;
+}
+.table-view-cell p {
+ margin-bottom: 0;
+}
+
+.table-view-divider {
+ padding-top: 6px;
+ padding-bottom: 6px;
+ padding-left: 15px;
+ margin-top: -1px;
+ margin-left: 0;
+ color: #999;
+ font-weight: 500;
+ border-top: 1px solid #dddddd;
+ border-bottom: 1px solid #dddddd;
+ background-color: #fafafa;
+}
+
+.table-view .media,
+.table-view .media-body {
+ overflow: hidden;
+ zoom: 1;
+}
+
+.table-view .media-object.pull-left {
+ margin-right: 10px;
+}
+.table-view .media-object.pull-right {
+ margin-left: 10px;
+}
+
+.table-view-cell > .btn,
+.table-view-cell > .badge,
+.table-view-cell > .toggle,
+.table-view-cell > a > .btn,
+.table-view-cell > a > .badge,
+.table-view-cell > a > .toggle {
+ position: absolute;
+ top: 50%;
+ right: 15px;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+}
+.table-view-cell .push-left > .btn,
+.table-view-cell .push-left > .badge,
+.table-view-cell .push-left > .toggle,
+.table-view-cell .push-right > .btn,
+.table-view-cell .push-right > .badge,
+.table-view-cell .push-right > .toggle,
+.table-view-cell > a .push-left > .btn,
+.table-view-cell > a .push-left > .badge,
+.table-view-cell > a .push-left > .toggle,
+.table-view-cell > a .push-right > .btn,
+.table-view-cell > a .push-right > .badge,
+.table-view-cell > a .push-right > .toggle {
+ right: 35px;
+}
+
+.content > .table-view:first-child {
+ margin-top: 15px;
+}
+
+input,
+textarea,
+button,
+select {
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ font-size: 17px;
+}
+
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"] {
+ width: 100%;
+ height: 35px;
+ padding: 0 15px;
+ margin-bottom: 15px;
+ line-height: 21px;
+ background-color: #fff;
+ border: 1px solid #dddddd;
+ border-radius: 3px;
+ outline: none;
+ -webkit-appearance: none;
+}
+
+input[type="search"] {
+ padding: 0 10px;
+ font-size: 16px;
+ border-radius: 20px;
+ box-sizing: border-box;
+}
+
+input[type="search"]:focus {
+ text-align: left;
+}
+
+textarea {
+ height: auto;
+}
+
+select {
+ height: auto;
+ font-size: 14px;
+ background-color: #f8f8f8;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
+}
+
+.input-group {
+ background-color: #fff;
+}
+
+.input-group input,
+.input-group textarea {
+ margin-bottom: 0;
+ background-color: transparent;
+ border-top: 0;
+ border-left: 0;
+ border-right: 0;
+ border-radius: 0;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.input-row {
+ overflow: hidden;
+ border-bottom: 1px solid #dddddd;
+}
+
+.input-row label {
+ float: left;
+ width: 35%;
+ padding: 10px 15px;
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ line-height: 1.1;
+}
+
+.input-row input {
+ float: right;
+ width: 65%;
+ padding-left: 0;
+ margin-bottom: 0;
+ border: 0;
+}
+
+.segmented-control {
+ position: relative;
+ display: table;
+ overflow: hidden;
+ font-size: 12px;
+ font-weight: 400;
+ background-color: white;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+}
+.segmented-control .control-item {
+ display: table-cell;
+ overflow: hidden;
+ width: 1%;
+ padding-top: 6px;
+ padding-bottom: 7px;
+ line-height: 1;
+ color: #333;
+ text-align: center;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ border-left: 1px solid #ccc;
+}
+.segmented-control .control-item:first-child {
+ border-left-width: 0;
+}
+.segmented-control .control-item:active {
+ background-color: #eee;
+}
+.segmented-control .control-item.active {
+ background-color: #ccc;
+}
+
+.segmented-control-primary {
+ border-color: #428bca;
+}
+.segmented-control-primary .control-item {
+ color: #428bca;
+ border-color: inherit;
+}
+.segmented-control-primary .control-item:active {
+ background-color: #cde1f1;
+}
+.segmented-control-primary .control-item.active {
+ color: #fff;
+ background-color: #428bca;
+}
+
+.segmented-control-positive {
+ border-color: #5cb85c;
+}
+.segmented-control-positive .control-item {
+ color: #5cb85c;
+ border-color: inherit;
+}
+.segmented-control-positive .control-item:active {
+ background-color: #d8eed8;
+}
+.segmented-control-positive .control-item.active {
+ color: #fff;
+ background-color: #5cb85c;
+}
+
+.segmented-control-negative {
+ border-color: #d9534f;
+}
+.segmented-control-negative .control-item {
+ color: #d9534f;
+ border-color: inherit;
+}
+.segmented-control-negative .control-item:active {
+ background-color: #f9e2e2;
+}
+.segmented-control-negative .control-item.active {
+ color: #fff;
+ background-color: #d9534f;
+}
+
+.control-content {
+ display: none;
+}
+.control-content.active {
+ display: block;
+}
+
+.popover {
+ position: fixed;
+ top: 55px;
+ left: 50%;
+ z-index: 20;
+ display: none;
+ width: 280px;
+ margin-left: -140px;
+ background-color: white;
+ border-radius: 6px;
+ opacity: 0;
+ -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
+ -webkit-transform: translate3d(0, -15px, 0);
+ -ms-transform: translate3d(0, -15px, 0);
+ transform: translate3d(0, -15px, 0);
+ -webkit-transition: all 0.25s linear;
+ -moz-transition: all 0.25s linear;
+ transition: all 0.25s linear;
+}
+.popover:before {
+ position: absolute;
+ top: -15px;
+ left: 50%;
+ width: 0;
+ height: 0;
+ margin-left: -15px;
+ border-right: 15px solid transparent;
+ border-bottom: 15px solid white;
+ border-left: 15px solid transparent;
+ content: '';
+}
+.popover.visible {
+ opacity: 1;
+ -webkit-transform: translate3d(0, 0, 0);
+ -ms-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+}
+.popover .bar ~ .table-view {
+ padding-top: 44px;
+}
+
+.backdrop {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 15;
+ background-color: rgba(0, 0, 0, 0.3);
+}
+
+.popover .btn-block {
+ margin-bottom: 5px;
+}
+.popover .btn-block:last-child {
+ margin-bottom: 0;
+}
+
+.popover .bar-nav {
+ border-bottom: 1px solid #dddddd;
+ border-top-right-radius: 12px;
+ border-top-left-radius: 12px;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.popover .table-view {
+ max-height: 300px;
+ margin-bottom: 0;
+ overflow: auto;
+ background-color: #fff;
+ border-top: 0;
+ border-bottom: 0;
+ border-radius: 6px;
+ -webkit-overflow-scrolling: touch;
+}
+
+.modal {
+ position: fixed;
+ top: 0;
+ opacity: 0;
+ z-index: 11;
+ width: 100%;
+ min-height: 100%;
+ overflow: hidden;
+ background-color: #fff;
+ -webkit-transition: -webkit-transform .25s, opacity 1ms .25s;
+ -moz-transition: -moz-transform .25s, opacity 1ms .25s;
+ transition: transform .25s, opacity 1ms .25s;
+ -webkit-transform: translate3d(0, 100%, 0);
+ -ms-transform: translate3d(0, 100%, 0);
+ transform: translate3d(0, 100%, 0);
+}
+.modal.active {
+ opacity: 1;
+ height: 100%;
+ -webkit-transition: -webkit-transform .25s;
+ -moz-transition: -moz-transform .25s;
+ transition: transform .25s;
+ -webkit-transform: translate3d(0, 0, 0);
+ -ms-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+}
+
+.slider {
+ width: 100%;
+}
+
+.slider {
+ overflow: hidden;
+ background-color: #000;
+}
+.slider .slide-group {
+ position: relative;
+ font-size: 0;
+ white-space: nowrap;
+ -webkit-transition: all 0 linear;
+ -moz-transition: all 0 linear;
+ transition: all 0 linear;
+}
+.slider .slide-group .slide {
+ display: inline-block;
+ vertical-align: top;
+ width: 100%;
+ height: 100%;
+ font-size: 14px;
+}
+
+.toggle {
+ display: block;
+ position: relative;
+ width: 74px;
+ height: 30px;
+ background-color: #fff;
+ border: 2px solid #ddd;
+ border-radius: 20px;
+ -webkit-transition-property: background-color, border;
+ -moz-transition-property: background-color, border;
+ transition-property: background-color, border;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+.toggle .toggle-handle {
+ position: absolute;
+ top: -1px;
+ left: -1px;
+ z-index: 2;
+ width: 28px;
+ height: 28px;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 100px;
+ -webkit-transition-property: -webkit-transform, border, width;
+ -moz-transition-property: -moz-transform, border, width;
+ transition-property: transform, border, width;
+ -webkit-transition-duration: 0.2s;
+ -moz-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+.toggle:before {
+ position: absolute;
+ top: 3px;
+ right: 11px;
+ color: #999;
+ font-size: 13px;
+ text-transform: uppercase;
+ content: "Off";
+}
+.toggle.active {
+ border: 2px solid #5cb85c;
+ background-color: #5cb85c;
+}
+.toggle.active .toggle-handle {
+ border-color: #5cb85c;
+ -webkit-transform: translate3d(44px, 0, 0);
+ -ms-transform: translate3d(44px, 0, 0);
+ transform: translate3d(44px, 0, 0);
+}
+.toggle.active:before {
+ right: auto;
+ left: 15px;
+ color: #fff;
+ content: "On";
+}
+.toggle input[type="checkbox"] {
+ display: none;
+}
+
+.content.fade {
+ left: 0;
+ opacity: 0;
+}
+.content.fade.in {
+ opacity: 1;
+}
+.content.sliding {
+ z-index: 2;
+ -webkit-transition: -webkit-transform .4s;
+ -moz-transition: -moz-transform .4s;
+ transition: transform .4s;
+ -webkit-transform: translate3d(0, 0, 0);
+ -ms-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+}
+.content.sliding.left {
+ z-index: 1;
+ -webkit-transform: translate3d(-100%, 0, 0);
+ -ms-transform: translate3d(-100%, 0, 0);
+ transform: translate3d(-100%, 0, 0);
+}
+.content.sliding.right {
+ z-index: 3;
+ -webkit-transform: translate3d(100%, 0, 0);
+ -ms-transform: translate3d(100%, 0, 0);
+ transform: translate3d(100%, 0, 0);
+}
+
+.push-left:after,
+.push-right:after {
+ position: absolute;
+ top: 50%;
+ display: inline-block;
+ color: #bbb;
+ font-family: Ratchicons;
+ font-size: inherit;
+ text-decoration: none;
+ line-height: 1;
+ cursor: default;
+ -webkit-font-smoothing: antialiased;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+}
+
+.push-left:after {
+ left: 15px;
+ content: '\e822';
+}
+
+.push-right:after {
+ right: 15px;
+ content: '\e826';
+}
+
+@font-face {
+ font-family: Ratchicons;
+ src: url("ratchicons/ratchicons.eot");
+ src: url("ratchicons/ratchicons.eot?#iefix") format("embedded-opentype"), url("ratchicons/ratchicons.woff") format("woff"), url("ratchicons/ratchicons.ttf") format("truetype"), url("ratchicons/ratchicons.svg#svgFontName") format("svg");
+ font-weight: normal;
+ font-style: normal;
+}
+
+.icon {
+ display: inline-block;
+ font-family: Ratchicons;
+ font-size: 24px;
+ text-decoration: none;
+ line-height: 1;
+ cursor: default;
+ -webkit-font-smoothing: antialiased;
+}
+
+.icon-and-up:before {
+ content: '\e809';
+}
+
+.icon-back:before {
+ content: '\e80a';
+}
+
+.icon-bars:before {
+ content: '\e80e';
+}
+
+.icon-caret:before {
+ content: '\e80f';
+}
+
+.icon-check:before {
+ content: '\e810';
+}
+
+.icon-close:before {
+ content: '\e811';
+}
+
+.icon-code:before {
+ content: '\e812';
+}
+
+.icon-compose:before {
+ content: '\e813';
+}
+
+.icon-down-nav:before {
+ content: '\e814';
+}
+
+.icon-down:before {
+ content: '\e820';
+}
+
+.icon-download:before {
+ content: '\e815';
+}
+
+.icon-edit:before {
+ content: '\e829';
+}
+
+.icon-forward:before {
+ content: '\e82a';
+}
+
+.icon-gear:before {
+ content: '\e821';
+}
+
+.icon-home:before {
+ content: '\e82b';
+}
+
+.icon-info:before {
+ content: '\e82c';
+}
+
+.icon-left-nav:before {
+ content: '\e82d';
+}
+
+.icon-left:before {
+ content: '\e822';
+}
+
+.icon-list:before {
+ content: '\e823';
+}
+
+.icon-more-vertical:before {
+ content: '\e82e';
+}
+
+.icon-more:before {
+ content: '\e82f';
+}
+
+.icon-pages:before {
+ content: '\e824';
+}
+
+.icon-pause:before {
+ content: '\e830';
+}
+
+.icon-person:before {
+ content: '\e832';
+}
+
+.icon-play:before {
+ content: '\e816';
+}
+
+.icon-plus:before {
+ content: '\e817';
+}
+
+.icon-refresh:before {
+ content: '\e825';
+}
+
+.icon-right-nav:before {
+ content: '\e818';
+}
+
+.icon-right:before {
+ content: '\e826';
+}
+
+.icon-search:before {
+ content: '\e819';
+}
+
+.icon-share:before {
+ content: '\e81a';
+}
+
+.icon-sound2:before {
+ content: '\e828';
+}
+
+.icon-sound3:before {
+ content: '\e80b';
+}
+
+.icon-sound4:before {
+ content: '\e80c';
+}
+
+.icon-sound:before {
+ content: '\e827';
+}
+
+.icon-star-filled:before {
+ content: '\e81b';
+}
+
+.icon-star:before {
+ content: '\e81c';
+}
+
+.icon-stop:before {
+ content: '\e81d';
+}
+
+.icon-trash:before {
+ content: '\e81e';
+}
+
+.icon-up-nav:before {
+ content: '\e81f';
+}
+
+.icon-up:before {
+ content: '\e80d';
+}
diff --git a/docs/dist/ratchet.js b/docs/dist/ratchet.js
new file mode 100644
index 0000000..3c37ab6
--- /dev/null
+++ b/docs/dist/ratchet.js
@@ -0,0 +1,784 @@
+/*
+ * =====================================================
+ * Ratchet v2.0.0
+ * Copyright 2014 Connor Sears
+ * Licensed under http://www.opensource.org/licenses/MIT
+ *
+ * V2.0.0 designed by @connors.
+ * =====================================================
+ */
+/* ----------------------------------
+ * MODAL v2.0.0
+ * Licensed under The MIT License
+ * http://opensource.org/licenses/MIT
+ * ---------------------------------- */
+
+!function () {
+ var findModals = function (target) {
+ var i, modals = document.querySelectorAll('a');
+ for (; target && target !== document; target = target.parentNode) {
+ for (i = modals.length; i--;) { if (modals[i] === target) return target; }
+ }
+ };
+
+ var getModal = function (event) {
+ var modalToggle = findModals(event.target);
+ if (modalToggle && modalToggle.hash) return document.querySelector(modalToggle.hash);
+ };
+
+ window.addEventListener('touchend', function (event) {
+ var modal = getModal(event);
+ if (modal) {
+ if (modal && modal.classList.contains('modal')) modal.classList.toggle('active');
+ event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
+ }
+ });
+}();
+
+/* ----------------------------------
+ * POPOVER v2.0.0
+ * Licensed under The MIT License
+ * http://opensource.org/licenses/MIT
+ * ---------------------------------- */
+
+!function () {
+
+ var popover;
+
+ var findPopovers = function (target) {
+ var i, popovers = document.querySelectorAll('a');
+ for (; target && target !== document; target = target.parentNode) {
+ for (i = popovers.length; i--;) { if (popovers[i] === target) return target; }
+ }
+ };
+
+ var onPopoverHidden = function () {
+ popover.style.display = 'none';
+ popover.removeEventListener('webkitTransitionEnd', onPopoverHidden);
+ }
+
+ var backdrop = function () {
+ var element = document.createElement('div');
+
+ element.classList.add('backdrop');
+
+ element.addEventListener('touchend', function () {
+ popover.addEventListener('webkitTransitionEnd', onPopoverHidden);
+ popover.classList.remove('visible');
+ popover.parentNode.removeChild(backdrop);
+ });
+
+ return element;
+ }();
+
+ var getPopover = function (e) {
+ var anchor = findPopovers(e.target);
+
+ if (!anchor || !anchor.hash || (anchor.hash.indexOf("/") > 0)) return;
+
+ try {
+ popover = document.querySelector(anchor.hash);
+ }
+ catch (error) {
+ popover = null;
+ }
+
+ if (popover == null) return;
+
+ if (!popover || !popover.classList.contains('popover')) return;
+
+ return popover;
+ }
+
+ var showHidePopover = function (e) {
+ var popover = getPopover(e);
+
+ if (!popover) return;
+
+ popover.style.display = 'block';
+ popover.offsetHeight;
+ popover.classList.add('visible');
+
+ popover.parentNode.appendChild(backdrop);
+ };
+
+ window.addEventListener('touchend', showHidePopover);
+ window.addEventListener('click', showHidePopover);
+
+}();
+
+/* ----------------------------------
+ * PUSH v2.0.0
+ * Licensed under The MIT License
+ * inspired by chris's jquery.pjax.js
+ * http://opensource.org/licenses/MIT
+ * ---------------------------------- */
+
+!function () {
+
+ var noop = function () {};
+
+
+ // Pushstate cacheing
+ // ==================
+
+ var isScrolling;
+ var maxCacheLength = 20;
+ var cacheMapping = sessionStorage;
+ var domCache = {};
+ var transitionMap = {
+ 'slide-in' : 'slide-out',
+ 'slide-out' : 'slide-in',
+ 'fade' : 'fade'
+ };
+
+ var bars = {
+ bartab : '.bar-tab',
+ barnav : '.bar-nav',
+ barfooter : '.bar-footer',
+ barheadersecondary : '.bar-header-secondary'
+ };
+
+ var cacheReplace = function (data, updates) {
+ PUSH.id = data.id;
+ if (updates) data = getCached(data.id);
+ cacheMapping[data.id] = JSON.stringify(data);
+ window.history.replaceState(data.id, data.title, data.url);
+ domCache[data.id] = document.body.cloneNode(true);
+ };
+
+ var cachePush = function () {
+ var id = PUSH.id;
+
+ var cacheForwardStack = JSON.parse(cacheMapping.cacheForwardStack || '[]');
+ var cacheBackStack = JSON.parse(cacheMapping.cacheBackStack || '[]');
+
+ cacheBackStack.push(id);
+
+ while (cacheForwardStack.length) delete cacheMapping[cacheForwardStack.shift()];
+ while (cacheBackStack.length > maxCacheLength) delete cacheMapping[cacheBackStack.shift()];
+
+ window.history.pushState(null, '', cacheMapping[PUSH.id].url);
+
+ cacheMapping.cacheForwardStack = JSON.stringify(cacheForwardStack);
+ cacheMapping.cacheBackStack = JSON.stringify(cacheBackStack);
+ };
+
+ var cachePop = function (id, direction) {
+ var forward = direction == 'forward';
+ var cacheForwardStack = JSON.parse(cacheMapping.cacheForwardStack || '[]');
+ var cacheBackStack = JSON.parse(cacheMapping.cacheBackStack || '[]');
+ var pushStack = forward ? cacheBackStack : cacheForwardStack;
+ var popStack = forward ? cacheForwardStack : cacheBackStack;
+
+ if (PUSH.id) pushStack.push(PUSH.id);
+ popStack.pop();
+
+ cacheMapping.cacheForwardStack = JSON.stringify(cacheForwardStack);
+ cacheMapping.cacheBackStack = JSON.stringify(cacheBackStack);
+ };
+
+ var getCached = function (id) {
+ return JSON.parse(cacheMapping[id] || null) || {};
+ };
+
+ var getTarget = function (e) {
+ var target = findTarget(e.target);
+
+ if (
+ ! target
+ || e.which > 1
+ || e.metaKey
+ || e.ctrlKey
+ || isScrolling
+ || location.protocol !== target.protocol
+ || location.host !== target.host
+ || !target.hash && /#/.test(target.href)
+ || target.hash && target.href.replace(target.hash, '') === location.href.replace(location.hash, '')
+ || target.getAttribute('data-ignore') == 'push'
+ ) return;
+
+ return target;
+ };
+
+
+ // Main event handlers (touchend, popstate)
+ // ==========================================
+
+ var touchend = function (e) {
+ var target = getTarget(e);
+
+ if (!target) return;
+
+ e.preventDefault();
+
+ PUSH({
+ url : target.href,
+ hash : target.hash,
+ timeout : target.getAttribute('data-timeout'),
+ transition : target.getAttribute('data-transition')
+ });
+ };
+
+ var popstate = function (e) {
+ var key;
+ var barElement;
+ var activeObj;
+ var activeDom;
+ var direction;
+ var transition;
+ var transitionFrom;
+ var transitionFromObj;
+ var id = e.state;
+
+ if (!id || !cacheMapping[id]) return;
+
+ direction = PUSH.id < id ? 'forward' : 'back';
+
+ cachePop(id, direction);
+
+ activeObj = getCached(id);
+ activeDom = domCache[id];
+
+ if (activeObj.title) document.title = activeObj.title;
+
+ if (direction == 'back') {
+ transitionFrom = JSON.parse(direction == 'back' ? cacheMapping.cacheForwardStack : cacheMapping.cacheBackStack);
+ transitionFromObj = getCached(transitionFrom[transitionFrom.length - 1]);
+ } else {
+ transitionFromObj = activeObj;
+ }
+
+ if (direction == 'back' && !transitionFromObj.id) return PUSH.id = id;
+
+ transition = direction == 'back' ? transitionMap[transitionFromObj.transition] : transitionFromObj.transition;
+
+ if (!activeDom) {
+ return PUSH({
+ id : activeObj.id,
+ url : activeObj.url,
+ title : activeObj.title,
+ timeout : activeObj.timeout,
+ transition : transition,
+ ignorePush : true
+ });
+ }
+
+ if (transitionFromObj.transition) {
+ activeObj = extendWithDom(activeObj, '.content', activeDom.cloneNode(true));
+ for (key in bars) {
+ barElement = document.querySelector(bars[key])
+ if (activeObj[key]) swapContent(activeObj[key], barElement);
+ else if (barElement) barElement.parentNode.removeChild(barElement);
+ }
+ }
+
+ swapContent(
+ (activeObj.contents || activeDom).cloneNode(true),
+ document.querySelector('.content'),
+ transition
+ );
+
+ PUSH.id = id;
+
+ document.body.offsetHeight; // force reflow to prevent scroll
+ };
+
+
+ // Core PUSH functionality
+ // =======================
+
+ var PUSH = function (options) {
+ var key;
+ var data = {};
+ var xhr = PUSH.xhr;
+
+ options.container = options.container || options.transition ? document.querySelector('.content') : document.body;
+
+ for (key in bars) {
+ options[key] = options[key] || document.querySelector(bars[key]);
+ }
+
+ if (xhr && xhr.readyState < 4) {
+ xhr.onreadystatechange = noop;
+ xhr.abort()
+ }
+
+ xhr = new XMLHttpRequest();
+ xhr.open('GET', options.url, true);
+ xhr.setRequestHeader('X-PUSH', 'true');
+
+ xhr.onreadystatechange = function () {
+ if (options._timeout) clearTimeout(options._timeout);
+ if (xhr.readyState == 4) xhr.status == 200 ? success(xhr, options) : failure(options.url);
+ };
+
+ if (!PUSH.id) {
+ cacheReplace({
+ id : +new Date,
+ url : window.location.href,
+ title : document.title,
+ timeout : options.timeout,
+ transition : null
+ });
+ }
+
+ if (options.timeout) {
+ options._timeout = setTimeout(function () { xhr.abort('timeout'); }, options.timeout);
+ }
+
+ xhr.send();
+
+ if (xhr.readyState && !options.ignorePush) cachePush();
+ };
+
+
+ // Main XHR handlers
+ // =================
+
+ var success = function (xhr, options) {
+ var key;
+ var barElement;
+ var data = parseXHR(xhr, options);
+
+ if (!data.contents) return locationReplace(options.url);
+
+ if (data.title) document.title = data.title;
+
+ if (options.transition) {
+ for (key in bars) {
+ barElement = document.querySelector(bars[key])
+ if (data[key]) swapContent(data[key], barElement);
+ else if (barElement) barElement.parentNode.removeChild(barElement);
+ }
+ }
+
+ swapContent(data.contents, options.container, options.transition, function () {
+ cacheReplace({
+ id : options.id || +new Date,
+ url : data.url,
+ title : data.title,
+ timeout : options.timeout,
+ transition : options.transition
+ }, options.id);
+ triggerStateChange();
+ });
+
+ if (!options.ignorePush && window._gaq) _gaq.push(['_trackPageview']) // google analytics
+ if (!options.hash) return;
+ };
+
+ var failure = function (url) {
+ throw new Error('Could not get: ' + url)
+ };
+
+
+ // PUSH helpers
+ // ============
+
+ var swapContent = function (swap, container, transition, complete) {
+ var enter;
+ var containerDirection;
+ var swapDirection;
+
+ if (!transition) {
+ if (container) container.innerHTML = swap.innerHTML;
+ else if (swap.classList.contains('content')) document.body.appendChild(swap);
+ else document.body.insertBefore(swap, document.querySelector('.content'));
+ } else {
+ enter = /in$/.test(transition);
+
+ if (transition == 'fade') {
+ container.classList.add('in');
+ container.classList.add('fade');
+ swap.classList.add('fade');
+ }
+
+ if (/slide/.test(transition)) {
+ swap.classList.add('sliding-in', enter ? 'right' : 'left');
+ swap.classList.add('sliding');
+ container.classList.add('sliding');
+ }
+
+ container.parentNode.insertBefore(swap, container);
+ }
+
+ if (!transition) complete && complete();
+
+ if (transition == 'fade') {
+ container.offsetWidth; // force reflow
+ container.classList.remove('in');
+ container.addEventListener('webkitTransitionEnd', fadeContainerEnd);
+
+ function fadeContainerEnd() {
+ container.removeEventListener('webkitTransitionEnd', fadeContainerEnd);
+ swap.classList.add('in');
+ swap.addEventListener('webkitTransitionEnd', fadeSwapEnd);
+ }
+ function fadeSwapEnd () {
+ swap.removeEventListener('webkitTransitionEnd', fadeSwapEnd);
+ container.parentNode.removeChild(container);
+ swap.classList.remove('fade');
+ swap.classList.remove('in');
+ complete && complete();
+ }
+ }
+
+ if (/slide/.test(transition)) {
+ container.offsetWidth; // force reflow
+ swapDirection = enter ? 'right' : 'left'
+ containerDirection = enter ? 'left' : 'right'
+ container.classList.add(containerDirection);
+ swap.classList.remove(swapDirection);
+ swap.addEventListener('webkitTransitionEnd', slideEnd);
+
+ function slideEnd() {
+ swap.removeEventListener('webkitTransitionEnd', slideEnd);
+ swap.classList.remove('sliding', 'sliding-in');
+ swap.classList.remove(swapDirection);
+ container.parentNode.removeChild(container);
+ complete && complete();
+ }
+ }
+ };
+
+ var triggerStateChange = function () {
+ var e = new CustomEvent('push', {
+ detail: { state: getCached(PUSH.id) },
+ bubbles: true,
+ cancelable: true
+ });
+
+ window.dispatchEvent(e);
+ };
+
+ var findTarget = function (target) {
+ var i, toggles = document.querySelectorAll('a');
+ for (; target && target !== document; target = target.parentNode) {
+ for (i = toggles.length; i--;) { if (toggles[i] === target) return target; }
+ }
+ };
+
+ var locationReplace = function (url) {
+ window.history.replaceState(null, '', '#');
+ window.location.replace(url);
+ };
+
+ var parseURL = function (url) {
+ var a = document.createElement('a'); a.href = url; return a;
+ };
+
+ var extendWithDom = function (obj, fragment, dom) {
+ var i;
+ var result = {};
+
+ for (i in obj) result[i] = obj[i];
+
+ Object.keys(bars).forEach(function (key) {
+ var el = dom.querySelector(bars[key]);
+ if (el) el.parentNode.removeChild(el);
+ result[key] = el;
+ });
+
+ result.contents = dom.querySelector(fragment);
+
+ return result;
+ };
+
+ var parseXHR = function (xhr, options) {
+ var head;
+ var body;
+ var data = {};
+ var responseText = xhr.responseText;
+
+ data.url = options.url;
+
+ if (!responseText) return data;
+
+ if (/<html/i.test(responseText)) {
+ head = document.createElement('div');
+ body = document.createElement('div');
+ head.innerHTML = responseText.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0]
+ body.innerHTML = responseText.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0]
+ } else {
+ head = body = document.createElement('div');
+ head.innerHTML = responseText;
+ }
+
+ data.title = head.querySelector('title');
+ data.title = data.title && data.title.innerText.trim();
+
+ if (options.transition) data = extendWithDom(data, '.content', body);
+ else data.contents = body;
+
+ return data;
+ };
+
+
+ // Attach PUSH event handlers
+ // ==========================
+
+ window.addEventListener('touchstart', function () { isScrolling = false; });
+ window.addEventListener('touchmove', function () { isScrolling = true; })
+ window.addEventListener('touchend', touchend);
+ window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); });
+ window.addEventListener('popstate', popstate);
+ window.PUSH = PUSH;
+
+}();
+
+/* ----------------------------------
+ * Segmented controls v2.0.0
+ * Licensed under The MIT License
+ * http://opensource.org/licenses/MIT
+ * ---------------------------------- */
+
+!function () {
+ var getTarget = function (target) {
+ var i, segmentedControls = document.querySelectorAll('.segmented-control .control-item');
+ for (; target && target !== document; target = target.parentNode) {
+ for (i = segmentedControls.length; i--;) { if (segmentedControls[i] === target) return target; }
+ }
+ };
+
+ window.addEventListener("touchend", function (e) {
+ var activeTab;
+ var activeBodies;
+ var targetBody;
+ var targetTab = getTarget(e.target);
+ var className = 'active';
+ var classSelector = '.' + className;
+
+ if (!targetTab) return;
+
+ activeTab = targetTab.parentNode.querySelector(classSelector);
+
+ if (activeTab) activeTab.classList.remove(className);
+
+ targetTab.classList.add(className);
+
+ if (!targetTab.hash) return;
+
+ targetBody = document.querySelector(targetTab.hash);
+
+ if (!targetBody) return;
+
+ activeBodies = targetBody.parentNode.querySelectorAll(classSelector);
+
+ for (var i = 0; i < activeBodies.length; i++) {
+ activeBodies[i].classList.remove(className);
+ }
+
+ targetBody.classList.add(className);
+ });
+
+ window.addEventListener('click', function (e) { if (getTarget(e.target)) e.preventDefault(); });
+}();
+/* ----------------------------------
+ * SLIDER v2.0.0
+ * Licensed under The MIT License
+ * Adapted from Brad Birdsall's swipe
+ * http://opensource.org/licenses/MIT
+ * ---------------------------------- */
+
+!function () {
+
+ var pageX;
+ var pageY;
+ var slider;
+ var deltaX;
+ var deltaY;
+ var offsetX;
+ var lastSlide;
+ var startTime;
+ var resistance;
+ var sliderWidth;
+ var slideNumber;
+ var isScrolling;
+ var scrollableArea;
+
+ var getSlider = function (target) {
+ var i, sliders = document.querySelectorAll('.slider > .slide-group');
+ for (; target && target !== document; target = target.parentNode) {
+ for (i = sliders.length; i--;) { if (sliders[i] === target) return target; }
+ }
+ }
+
+ var getScroll = function () {
+ var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/);
+ return parseInt(translate3d ? translate3d[1] : 0)
+ };
+
+ var setSlideNumber = function (offset) {
+ var round = offset ? (deltaX < 0 ? 'ceil' : 'floor') : 'round';
+ slideNumber = Math[round](getScroll() / ( scrollableArea / slider.children.length) );
+ slideNumber += offset;
+ slideNumber = Math.min(slideNumber, 0);
+ slideNumber = Math.max(-(slider.children.length - 1), slideNumber);
+ }
+
+ var onTouchStart = function (e) {
+ slider = getSlider(e.target);
+
+ if (!slider) return;
+
+ var firstItem = slider.querySelector('.slide');
+
+ scrollableArea = firstItem.offsetWidth * slider.children.length;
+ isScrolling = undefined;
+ sliderWidth = slider.offsetWidth;
+ resistance = 1;
+ lastSlide = -(slider.children.length - 1);
+ startTime = +new Date;
+ pageX = e.touches[0].pageX;
+ pageY = e.touches[0].pageY;
+ deltaX = 0;
+ deltaY = 0;
+
+ setSlideNumber(0);
+
+ slider.style['-webkit-transition-duration'] = 0;
+ };
+
+ var onTouchMove = function (e) {
+ if (e.touches.length > 1 || !slider) return; // Exit if a pinch || no slider
+
+ deltaX = e.touches[0].pageX - pageX;
+ deltaY = e.touches[0].pageY - pageY;
+ pageX = e.touches[0].pageX;
+ pageY = e.touches[0].pageY;
+
+ if (typeof isScrolling == 'undefined') {
+ isScrolling = Math.abs(deltaY) > Math.abs(deltaX);
+ }
+
+ if (isScrolling) return;
+
+ offsetX = (deltaX / resistance) + getScroll();
+
+ e.preventDefault();
+
+ resistance = slideNumber == 0 && deltaX > 0 ? (pageX / sliderWidth) + 1.25 :
+ slideNumber == lastSlide && deltaX < 0 ? (Math.abs(pageX) / sliderWidth) + 1.25 : 1;
+
+ slider.style.webkitTransform = 'translate3d(' + offsetX + 'px,0,0)';
+ };
+
+ var onTouchEnd = function (e) {
+ if (!slider || isScrolling) return;
+
+ setSlideNumber(
+ (+new Date) - startTime < 1000 && Math.abs(deltaX) > 15 ? (deltaX < 0 ? -1 : 1) : 0
+ );
+
+ offsetX = slideNumber * sliderWidth;
+
+ slider.style['-webkit-transition-duration'] = '.2s';
+ slider.style.webkitTransform = 'translate3d(' + offsetX + 'px,0,0)';
+
+ e = new CustomEvent('slide', {
+ detail: { slideNumber: Math.abs(slideNumber) },
+ bubbles: true,
+ cancelable: true
+ });
+
+ slider.parentNode.dispatchEvent(e);
+ };
+
+ window.addEventListener('touchstart', onTouchStart);
+ window.addEventListener('touchmove', onTouchMove);
+ window.addEventListener('touchend', onTouchEnd);
+
+}();
+
+/* ----------------------------------
+ * TOGGLE v2.0.0
+ * Licensed under The MIT License
+ * http://opensource.org/licenses/MIT
+ * ---------------------------------- */
+
+!function () {
+
+ var start = {};
+ var touchMove = false;
+ var distanceX = false;
+ var toggle = false;
+
+ var findToggle = function (target) {
+ var i, toggles = document.querySelectorAll('.toggle');
+ for (; target && target !== document; target = target.parentNode) {
+ for (i = toggles.length; i--;) { if (toggles[i] === target) return target; }
+ }
+ }
+
+ window.addEventListener('touchstart', function (e) {
+ e = e.originalEvent || e;
+
+ toggle = findToggle(e.target);
+
+ if (!toggle) return;
+
+ var handle = toggle.querySelector('.toggle-handle');
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
+ var offset = toggle.classList.contains('active') ? (toggleWidth - handleWidth) : 0;
+
+ start = { pageX : e.touches[0].pageX - offset, pageY : e.touches[0].pageY };
+ touchMove = false;
+ });
+
+ window.addEventListener('touchmove', function (e) {
+ e = e.originalEvent || e;
+
+ if (e.touches.length > 1) return; // Exit if a pinch
+
+ if (!toggle) return;
+
+ var handle = toggle.querySelector('.toggle-handle');
+ var current = e.touches[0];
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
+ var offset = toggleWidth - handleWidth;
+
+ touchMove = true;
+ distanceX = current.pageX - start.pageX;
+
+ if (Math.abs(distanceX) < Math.abs(current.pageY - start.pageY)) return;
+
+ e.preventDefault();
+
+ if (distanceX < 0) return handle.style.webkitTransform = 'translate3d(0,0,0)';
+ if (distanceX > offset) return handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)';
+
+ handle.style.webkitTransform = 'translate3d(' + distanceX + 'px,0,0)';
+
+ toggle.classList[(distanceX > (toggleWidth/2 - handleWidth/2)) ? 'add' : 'remove']('active');
+ });
+
+ window.addEventListener('touchend', function (e) {
+ if (!toggle) return;
+
+ var handle = toggle.querySelector('.toggle-handle');
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
+ var offset = (toggleWidth - handleWidth);
+ var slideOn = (!touchMove && !toggle.classList.contains('active')) || (touchMove && (distanceX > (toggleWidth/2 - handleWidth/2)));
+
+ if (slideOn) handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)';
+ else handle.style.webkitTransform = 'translate3d(0,0,0)';
+
+ toggle.classList[slideOn ? 'add' : 'remove']('active');
+
+ e = new CustomEvent('toggle', {
+ detail: { isActive: slideOn },
+ bubbles: true,
+ cancelable: true
+ });
+
+ toggle.dispatchEvent(e);
+
+ touchMove = false;
+ toggle = false;
+ });
+
+}();
diff --git a/docs/dist/ratchicons/ratchicons.eot b/docs/dist/ratchicons/ratchicons.eot
new file mode 100644
index 0000000..536e572
--- /dev/null
+++ b/docs/dist/ratchicons/ratchicons.eot
Binary files differ
diff --git a/docs/dist/ratchicons/ratchicons.svg b/docs/dist/ratchicons/ratchicons.svg
new file mode 100644
index 0000000..3abf5dd
--- /dev/null
+++ b/docs/dist/ratchicons/ratchicons.svg
@@ -0,0 +1,61 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg">
+<metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
+<defs>
+<font id="ratchicons" horiz-adv-x="1000" >
+<font-face font-family="ratchicons" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
+<missing-glyph horiz-adv-x="1000" />
+<glyph glyph-name="and-caret" unicode="&#xe800;" d="m313 225l375 0v376" horiz-adv-x="1000" />
+<glyph glyph-name="up-nav" unicode="&#xe81f;" d="m65 146l81-83l354 372l353-372l81 83l-434 456l-435-456z" horiz-adv-x="1000" />
+<glyph glyph-name="and-download" unicode="&#xe802;" d="m875 38h-750v62h750v-62z m-312 375v250h-125v-250h-125l187-250l188 250h-125z" horiz-adv-x="1000" />
+<glyph glyph-name="and-left" unicode="&#xe803;" d="m306 349l325 373l67-59l-273-314l273-315l-67-59l-325 373l0 1z" horiz-adv-x="1000" />
+<glyph glyph-name="and-more-vertical" unicode="&#xe804;" d="m406-25v188h188v-188h-188z m0 563h188v188h-188v-188z m188-281v188h-188v-188h188z" horiz-adv-x="1000" />
+<glyph glyph-name="and-more" unicode="&#xe805;" d="m125 444h188v-187h-188v187z m563 0v-187h187v187h-187z m-281-187h187v187h-187v-187z" horiz-adv-x="1000" />
+<glyph glyph-name="and-right" unicode="&#xe806;" d="m698 348l-325-373l-67 59l274 315l-274 314l68 59l324-373l0-1z" horiz-adv-x="1000" />
+<glyph glyph-name="and-search" unicode="&#xe807;" d="m928 51l-167 167c-17 17-47 15-66-4l-3-3l-69 69c42 54 67 121 67 194c0 173-140 313-314 313s-313-140-313-313s140-314 313-314c71 0 137 24 190 64l69-70c-18-19-19-48-2-65l166-166c17-17 47-16 66 4l59 58c19 19 21 49 4 66z m-801 423c0 137 112 249 249 249s249-112 249-249s-111-249-249-249s-249 111-249 249z" horiz-adv-x="1000" />
+<glyph glyph-name="and-share" unicode="&#xe808;" d="m728 215c-33 0-63-14-84-36l-263 153c1 6 2 12 2 18c0 6-1 12-2 18l263 152c21-23 51-37 84-37c62 0 113 51 113 113s-51 114-113 114s-114-51-114-114c0-7 1-14 2-21l-261-150c-21 23-51 38-85 38c-63 0-114-50-114-113s51-113 114-113c33 0 64 15 85 38l261-151c-1-7-2-14-2-22c0-62 51-113 114-113s113 51 113 113s-51 113-113 113z" horiz-adv-x="1000" />
+<glyph glyph-name="and-up" unicode="&#xe809;" d="m500 548l374-325l-59-67l-315 273l-314-273l-59 67l373 325l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="back" unicode="&#xe80a;" d="m500 174l-313 176l313 176m312-352l-312 176l312 176" horiz-adv-x="1000" />
+<glyph glyph-name="down" unicode="&#xe820;" d="m941 479l-124 127l-317-315l-318 315l-124-127l442-441l441 441z" horiz-adv-x="1000" />
+<glyph glyph-name="gear" unicode="&#xe821;" d="m820 274l118 40l0 72l-118 40c-8 34-22 67-40 97l55 111l-51 51l-111-55c-30 18-62 32-97 40l-39 118l-73 0l-40-118c-34-8-67-22-97-40l-111 55l-51-51l55-111c-18-30-32-62-40-97l-117-39l0-73l117-40c9-34 22-67 41-96l-56-111l52-52l111 56c29-19 62-32 96-40l40-119l73 0l39 119c35 8 67 21 97 40l111-56l51 52l-55 111c18 29 32 62 40 96z m-320-174c-139 0-251 112-251 251s112 250 251 250s250-112 250-250s-112-251-250-251z" horiz-adv-x="1000" />
+<glyph glyph-name="left" unicode="&#xe822;" d="m628-91l127 123l-314 318l314 318l-127 124l-441-442l441-441z" horiz-adv-x="1000" />
+<glyph glyph-name="list" unicode="&#xe823;" d="m1000 632h-750v-62l750-1v63z m0-314v63h-750v-63h750z m-750-187v-61h750v61h-750z m-250 406l125 1v125l-125 0v-126z m0-249h125v125h-125v-125z m0-250h125v125h-125v-125z" horiz-adv-x="1000" />
+<glyph glyph-name="pages" unicode="&#xe824;" d="m63 601v-689h687l0 688l-687 1z m625-63v-563h-563v563h563z m-500 250v-125h62v62h625v-625l-62 0v-62h125v750h-750z" horiz-adv-x="1000" />
+<glyph glyph-name="refresh" unicode="&#xe825;" d="m813 288c-28-145-161-250-313-250c-172 0-312 139-312 312c0 173 141 312 312 313v-98l221 129l-221 128v-95c0-2 0-2 0-2c-206 0-375-167-375-375s169-375 375-375c187 0 347 133 375 313h-62z" horiz-adv-x="1000" />
+<glyph glyph-name="right" unicode="&#xe826;" d="m372 792l-127-124l314-318l-314-318l127-123l441 441l-441 442z" horiz-adv-x="1000" />
+<glyph glyph-name="sound" unicode="&#xe827;" d="m825-22c-2 0-3 0-5 0l-16 7c0 0 0 0 0 1c-5 1-8 3-10 6c-1 3-1 7 1 12c1 1 22 40 43 101c20 58 44 147 44 244c0 98-24 186-44 243c-21 61-42 100-43 102c-4 11-2 15 8 21l17 8c2 1 5 2 7 2c7 0 12-5 17-16c1-2 2-4 4-8c10-19 32-63 52-125c25-78 37-156 37-232c0-94-24-182-44-240c-22-63-44-104-45-104l-1-2c-5-11-9-20-22-20c0 0 0 0 0 0z m-574 248c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z m474-124c-2 0-4 0-6 0l-16 8c0 0 0 0 0 0c-5 1-8 3-9 6c-2 3-2 7 0 12c1 1 16 26 30 64c14 37 30 94 30 157c0 65-16 121-30 157c-14 38-29 62-30 63c-4 11-2 15 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 5-11c17-31 61-115 61-229c0-63-16-120-30-156c-16-39-31-64-31-64c0 0 0 0 0 0l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z m-84 127c-2 0-4 0-6 0l-15 7c0 1 0 1 0 1c-5 1-8 3-9 6c-2 3-2 7 0 12c0 0 20 43 20 94c0 53-20 91-21 93c-4 11-2 16 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 4-9c10-19 23-45 23-104c0-33-21-91-22-93l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="sound2" unicode="&#xe828;" d="m251 226c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z m474-124c-2 0-4 0-6 0l-16 8c0 0 0 0 0 0c-5 1-8 3-9 6c-2 3-2 7 0 12c1 1 16 26 30 64c14 37 30 94 30 157c0 65-16 121-30 157c-14 38-29 62-30 63c-4 11-2 15 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 5-11c17-31 61-115 61-229c0-63-16-120-30-156c-16-39-31-64-31-64c0 0 0 0 0 0l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z m-84 127c-2 0-4 0-6 0l-15 7c0 1 0 1 0 1c-5 1-8 3-9 6c-2 3-2 7 0 12c0 0 20 43 20 94c0 53-20 91-21 93c-4 11-2 16 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 4-9c10-19 23-45 23-104c0-33-21-91-22-93l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="sound3" unicode="&#xe80b;" d="m251 226c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z m390 3c-2 0-4 0-6 0l-15 7c0 1 0 1 0 1c-5 1-8 3-9 6c-2 3-2 7 0 12c0 0 20 43 20 94c0 53-20 91-21 93c-4 11-2 16 9 21l15 8c3 1 5 2 8 2c6 0 12-5 17-16c1-3 3-6 4-9c10-19 23-45 23-104c0-33-21-91-22-93l-1-2c-6-11-10-20-22-20c0 0 0 0 0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="sound4" unicode="&#xe80c;" d="m251 226c0 0-1 0-1 0h-186v248h186c0 0 1 0 1 0l248 173v-595l-248 174z" horiz-adv-x="1000" />
+<glyph glyph-name="up" unicode="&#xe80d;" d="m58 222l124-126l318 314l317-314l124 126l-441 441l-442-441z" horiz-adv-x="1000" />
+<glyph glyph-name="bars" unicode="&#xe80e;" d="m875 632h-750v-62l750-1l0 63l0 0z m0-314v63h-750v-63h750z m-750-187v-61h750v61h-750z" horiz-adv-x="1000" />
+<glyph glyph-name="caret" unicode="&#xe80f;" d="m438 475h-125l187-250l188 250h-125" horiz-adv-x="1000" />
+<glyph glyph-name="and-down" unicode="&#xe801;" d="m500 156l-373 325l59 67l314-273l315 273l59-67l-374-325l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="close" unicode="&#xe811;" d="m213 593l530-530l43 44l-529 530l-44-44l0 0z m530 44l-530-530l43-44l531 530l-44 44l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="code" unicode="&#xe812;" d="m680 608l-74-72l184-186l-184-185l74-73l257 258l-257 258z m-360-516l74 72l-184 186l184 186l-74 72l-258-258l258-258z" horiz-adv-x="1000" />
+<glyph glyph-name="compose" unicode="&#xe813;" d="m890 651l-405-404l-110-22l22 110l404 405l17-17l-405-404l56-56l404 405l17-17z m15 16l20 20c14 13 14 35 0 48l-40 40c-13 14-35 14-48 0l-20-20m-4-272v-445h-625v625h440l63 62h-566v-750h750v570l-62-62z" horiz-adv-x="1000" />
+<glyph glyph-name="down-nav" unicode="&#xe814;" d="m934 537l-81 83l-354-372l-353 372l-81-83l435-455l434 455z" horiz-adv-x="1000" />
+<glyph glyph-name="download" unicode="&#xe815;" d="m875 538h-187v-63h125v-500h-625v500h125v63h-188v-626h750v626z m-344-323v635l-62 0v-635l-115 112l-41-39l187-188l188 188l-42 40l-115-113z" horiz-adv-x="1000" />
+<glyph glyph-name="edit" unicode="&#xe829;" d="m749 511l-404-404l-110-22l22 110l404 404l16-16l-404-405l56-55l404 404l16-16z m16 16l20 20c14 13 14 35 0 48l-40 40c-13 14-35 14-48 0l-20-20" horiz-adv-x="1000" />
+<glyph glyph-name="forward" unicode="&#xe82a;" d="m500 526l313-176l-313-176m-312 352l312-176l-312-176" horiz-adv-x="1000" />
+<glyph glyph-name="home" unicode="&#xe82b;" d="m939 350l-438 438l0 0l0 0l-438-438l48-47l54 54v-444h16h51h168h47h109h46h168h55h12v444l54-54l48 47z m-501-370v245h125v-245h-125z m332 444v-444h-161v291h-16h-30h-125h-34h-12v-291h-160v444h0l269 269l269-269h0z" horiz-adv-x="1000" />
+<glyph glyph-name="info" unicode="&#xe82c;" d="m500 725c-207 0-375-168-375-375s168-375 375-375s375 168 375 375s-168 375-375 375z m63-625h-125v313h125v-313z m-63 375c-34 0-62 28-62 63c0 34 28 62 62 62s63-28 63-62c0-35-28-63-63-63z" horiz-adv-x="1000" />
+<glyph glyph-name="left-nav" unicode="&#xe82d;" d="m663-84l83 81l-372 354l372 354l-83 81l-455-435l455-435z" horiz-adv-x="1000" />
+<glyph glyph-name="more-vertical" unicode="&#xe82e;" d="m500 163c52 0 94-42 94-94c0-52-42-94-94-94s-94 42-94 94c0 52 42 94 94 94z m-94 468c0-51 42-93 94-93s94 42 94 93s-42 94-94 94s-94-42-94-94z m0-281c0-52 42-94 94-94s94 42 94 94s-42 94-94 94s-94-42-94-94z" horiz-adv-x="1000" />
+<glyph glyph-name="more" unicode="&#xe82f;" d="m313 350c0-52-42-94-94-94s-94 42-94 94s42 94 94 94s94-42 94-94z m468 94c-52 0-93-42-93-94s41-94 93-94s94 42 94 94s-42 94-94 94z m-281 0c-52 0-94-42-94-94c0-52 42-94 94-94s94 42 94 94c0 52-42 94-94 94z" horiz-adv-x="1000" />
+<glyph glyph-name="pause" unicode="&#xe830;" d="m438 37h-188v625h188v-625z m312 1h-187v625h187v-625z" horiz-adv-x="1000" />
+<glyph glyph-name="person" unicode="&#xe832;" d="m501 847c-275 0-497-222-497-497s222-496 497-496s496 222 496 496s-222 497-496 497z m315-801c-25 11-53 26-79 28c-149 12-152 43-152 106c0 47 30 8 52 118c8 36 15 29 36 95c13 47-12 41-12 41s8 35 12 72c10 96-32 187-175 187c-64 0-94-27-133-57c-41-32-55-76-44-130c7-39 21-77 12-72c0 0-22 6-12-41c21-59 32-59 38-95c18-107 47-70 53-118c6-63-7-94-148-106c-25-2-55-16-79-27c-76 79-123 186-123 303c0 242 197 439 439 439s438-197 438-439c0-118-47-226-123-304z" horiz-adv-x="1000" />
+<glyph glyph-name="play" unicode="&#xe816;" d="m250 663l567-313l-567-312" horiz-adv-x="1000" />
+<glyph glyph-name="plus" unicode="&#xe817;" d="m469 725v-750h61l1 750l-62 0l0 0z m406-344h-750v-61l750-1l0 62l0 0z" horiz-adv-x="1000" />
+<glyph glyph-name="right-nav" unicode="&#xe818;" d="m291 786l-83-81l372-354l-372-354l83-81l455 435l-455 435z" horiz-adv-x="1000" />
+<glyph glyph-name="search" unicode="&#xe819;" d="m935-10l-279 279c39 54 62 120 62 191c0 181-147 328-328 328s-327-147-327-328s147-327 327-327c71 0 136 22 190 61l279-280l76 76z m-808 470c0 146 118 263 263 263s264-117 264-263s-118-263-264-263s-263 118-263 263z" horiz-adv-x="1000" />
+<glyph glyph-name="share" unicode="&#xe81a;" d="m875 538h-187v-63h125v-500h-625v500h125v63h-188v-626h750v626z m-406 197v-572h62v572l115-112l42 40l-188 187l-187-187l41-41l115 113z" horiz-adv-x="1000" />
+<glyph glyph-name="star-filled" unicode="&#xe81b;" d="m500 812l116-354l371 0l-300-218l115-353l-301 218l-300-218l114 353l-300 218l371 0l114 354z" horiz-adv-x="1000" />
+<glyph glyph-name="star" unicode="&#xe81c;" d="m987 458l-372 0l-115 354l-114-354l-371 0l301-218l-115-353l301 218l299-218l-115 353l301 218z m-252-478l-234 174l-234-174l99 274l-252 171l295 0l92 290l91-290l296 0l-253-175l100-270z" horiz-adv-x="1000" />
+<glyph glyph-name="stop" unicode="&#xe81d;" d="m812 37h-625v625h625v-625z" horiz-adv-x="1000" />
+<glyph glyph-name="trash" unicode="&#xe81e;" d="m875 725h-250c0 22 0 50 0 62c0 18-15 34-34 34h-182c-19 0-34-16-34-34c0-14 0-41 0-62h-250v-63h69l57-715c0-19 16-34 34-34h432c19 0 34 15 34 34l58 715h66v63z m-459 33c0 14 11 25 24 25h120c13 0 24-11 24-25c0-6 0-20 0-33h-168c0 12 0 26 0 33z m287-757c0-15-11-26-26-26h-355c-14 0-25 11-25 26l-42 661h490l-42-661z m-273 37h-47l-39 562l46 0l40-562z m187 0l-46 0l39 562l47 0l-40-562z m-94 0h-47v562h47v-562z" horiz-adv-x="1000" />
+<glyph glyph-name="check" unicode="&#xe810;" d="m857 537l-81 83l-354-372l-135 128l-81-83l216-211l435 455z" horiz-adv-x="1000" />
+</font>
+</defs>
+</svg> \ No newline at end of file
diff --git a/docs/dist/ratchicons/ratchicons.ttf b/docs/dist/ratchicons/ratchicons.ttf
new file mode 100644
index 0000000..927eb58
--- /dev/null
+++ b/docs/dist/ratchicons/ratchicons.ttf
Binary files differ
diff --git a/docs/dist/ratchicons/ratchicons.woff b/docs/dist/ratchicons/ratchicons.woff
new file mode 100644
index 0000000..25f1e75
--- /dev/null
+++ b/docs/dist/ratchicons/ratchicons.woff
Binary files differ
diff --git a/docs/dist/template.html b/docs/dist/template.html
new file mode 100644
index 0000000..3dae6f6
--- /dev/null
+++ b/docs/dist/template.html
@@ -0,0 +1,74 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Ratchet template page</title>
+
+ <!-- Sets initial viewport load and disables zooming -->
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
+
+ <!-- Makes your prototype chrome-less once bookmarked to your phone's home screen -->
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <!-- Set a shorter title for iOS6 devices when saved to home screen -->
+ <meta name="apple-mobile-web-app-title" content="Ratchet">
+
+ <!-- Set Apple icons for when prototype is saved to home screen -->
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="touch-icons/apple-touch-icon-114x114.png">
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="touch-icons/apple-touch-icon-72x72.png">
+ <link rel="apple-touch-icon-precomposed" sizes="57x57" href="touch-icons/apple-touch-icon-57x57.png">
+
+ <!-- Include the compiled Ratchet CSS -->
+ <link rel="stylesheet" href="ratchet.css">
+
+ <!-- Include the compiled Ratchet JS -->
+ <script src="ratchet.js"></script>
+
+ <!-- Intro paragraph styles. Delete once you start using this page -->
+ <style type="text/css">
+ .welcome {
+ line-height: 1.5;
+ color: #555;
+ }
+ </style>
+
+ </head>
+ <body>
+
+ <!-- Make sure all your bars are the first things in your <body> -->
+ <header class="bar bar-nav">
+ <h1 class="title">Ratchet</h1>
+ </header>
+
+ <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
+ <div class="content">
+ <p class="welcome">Thanks for downloading Ratchet. This is an example HTML page that's linked up to compiled Ratchet CSS and JS, has the proper meta tags and the HTML structure. Need some more help before you start filling this with your own content? Check out some Ratchet resources:</p>
+ <div class="card">
+ <ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right" href="http://goratchet.com">
+ <strong>Ratchet documentation</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="https://goratchet.com">
+ <strong>Ratchet on Github</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="https://groups.google.com/forum/#!forum/goratchet">
+ <strong>Ratchet Google group</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="http://www.twitter.com/GoRatchet">
+ <strong>Ratchet on Twitter</strong>
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/docs/examples.html b/docs/examples.html
new file mode 100644
index 0000000..76474f0
--- /dev/null
+++ b/docs/examples.html
@@ -0,0 +1,56 @@
+---
+layout: default
+title: Examples &middot; Ratchet
+---
+
+<div class="docs-sub-header">
+ {% include masthead.html %}
+ <div class="container">
+ <div class="column-group">
+ <div class="column units-2">
+ <div class="docs-sub-content">
+ <h2 class="page-title">Examples</h2>
+ <p class="page-description">Take a look at some of these example apps built on Ratchet.</p>
+ </div>
+ </div>
+ </div>
+ {% include ad.html %}
+ </div>
+</div>
+
+<div class="container">
+ <div class="column-group">
+ <div class="column units-2 lg-units-8 docs-examples">
+ <p class="section-lead">Checkout out the examples on a desktop browser or visit on your mobile device see the apps as intended.</p>
+
+ <div class="docs-example-group">
+ <div class="example-wrap">
+ <a class="example" href="../examples/app-movies" data-ignore="push">
+ <img src="../assets/img/example.png">
+ </a>
+ <h5>Movie finder</h5>
+ </div>
+ <div class="example-wrap">
+ <a class="example" href="../examples/app-ios-mail" data-ignore="push">
+ <img src="../assets/img/example-ios.png">
+ </a>
+ <h5>iOS mail app</h5>
+ </div>
+ <div class="example-wrap">
+ <a class="example" href="../examples/app-android-notes" data-ignore="push">
+ <img src="../assets/img/example-android.png">
+ </a>
+ <h5>Android notes app</h5>
+ </div>
+ </div>
+ </div>
+ <div class="column units-2 lg-units-4">
+ {% include download-module.html %}
+ </div>
+ </div>
+
+ <div class="column units-2">
+ <!-- Footer -->
+ {% include footer.html %}
+ </div>
+</div>
diff --git a/docs/examples/app-android-notes/css/app.css b/docs/examples/app-android-notes/css/app.css
new file mode 100644
index 0000000..a003cb3
--- /dev/null
+++ b/docs/examples/app-android-notes/css/app.css
@@ -0,0 +1,5 @@
+.slider,
+.slider img {
+ margin-bottom: 0;
+ height: 150px;
+} \ No newline at end of file
diff --git a/docs/examples/app-android-notes/index.html b/docs/examples/app-android-notes/index.html
new file mode 100644
index 0000000..e3925a6
--- /dev/null
+++ b/docs/examples/app-android-notes/index.html
@@ -0,0 +1,178 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Notes</title>
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <link rel="stylesheet" href="../../dist/ratchet.css">
+ <link rel="stylesheet" href="../../dist/ratchet-theme-android.css">
+ <link rel="stylesheet" href="css/app.css">
+ <script src="../../dist/ratchet.js"></script>
+
+
+ <!-- Roboto -->
+ <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,500' rel='stylesheet' type='text/css'>
+ </head>
+ <body>
+ <header class="bar bar-nav">
+ <a class="icon icon-compose pull-right" href="#composeModal"></a>
+ <a href="#navPopover">
+ <h1 class="title">
+ <span class="icon icon-home"></span>
+ Notes
+ <span class="icon icon-caret"></span>
+ </h1>
+ </a>
+ </header>
+
+ <div class="content">
+
+ <ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ Note title goes here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ </ul>
+ </div>
+
+ <!-- Settings modal -->
+ <div id="composeModal" class="modal">
+ <header class="bar bar-nav">
+ <a class="icon icon-close pull-right" href="#composeModal"></a>
+ <h1 class="title">
+ <span class="icon icon-gear"></span>
+ Settings
+ </h1>
+ </header>
+
+ <div class="content">
+ <h5>User settings</h5>
+
+ <form class="input-group">
+ <input type="text" placeholder="Full name">
+ <input type="email" placeholder="Email">
+ <input type="text" placeholder="Username">
+ </form>
+
+ <h5>App settings</h5>
+
+ <ul class="table-view">
+ <li class="table-view-cell media">
+ <span class="media-object pull-left icon icon-sound"></span>
+ <div class="media-body">
+ Enable sounds
+ </div>
+ <div class="toggle">
+ <div class="toggle-handle"></div>
+ </div>
+ </li>
+ <li class="table-view-cell media">
+ <span class="media-object pull-left icon icon-person"></span>
+ <div class="media-body">
+ Parental controls
+ </div>
+ <div class="toggle">
+ <div class="toggle-handle"></div>
+ </div>
+ </li>
+ </ul>
+ <div class="container">
+ <a class="btn btn-positive btn-block">Save settings</a>
+ </div>
+ </div>
+ </div>
+
+ <!-- Popover -->
+ <div id="navPopover" class="popover">
+ <ul class="table-view">
+ <li class="table-view-cell">Item1</li>
+ <li class="table-view-cell">Item2</li>
+ <li class="table-view-cell">Item3</li>
+ <li class="table-view-cell">Item4</li>
+ <li class="table-view-cell">Item5</li>
+ <li class="table-view-cell">Item6</li>
+ <li class="table-view-cell">Item7</li>
+ <li class="table-view-cell">Item8</li>
+ <li class="table-view-cell">Item9</li>
+ <li class="table-view-cell">Item10</li>
+ </ul>
+ </div>
+ </body>
+</html>
diff --git a/docs/examples/app-ios-mail/css/app.css b/docs/examples/app-ios-mail/css/app.css
new file mode 100644
index 0000000..5947151
--- /dev/null
+++ b/docs/examples/app-ios-mail/css/app.css
@@ -0,0 +1,12 @@
+.updated-text {
+ position: absolute;
+ left: 0;
+ right: 0;
+ padding: 10px 0;
+ font-size: 11px;
+ text-align: center;
+}
+
+.table-view-cell .icon {
+ color: #007aff;
+} \ No newline at end of file
diff --git a/docs/examples/app-ios-mail/inbox.html b/docs/examples/app-ios-mail/inbox.html
new file mode 100644
index 0000000..7a03d23
--- /dev/null
+++ b/docs/examples/app-ios-mail/inbox.html
@@ -0,0 +1,118 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Mail</title>
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <link rel="stylesheet" href="../../dist/ratchet.css">
+ <link rel="stylesheet" href="../../dist/ratchet-theme-ios.css">
+ <link rel="stylesheet" href="css/app.css">
+ <script src="../../dist/ratchet.js"></script>
+ </head>
+ <body>
+ <header class="bar bar-nav">
+ <a class="icon icon-left-nav pull-left" href="index.html" data-transition="slide-out"></a>
+ <a class="icon icon-refresh pull-right"></a>
+ <h1 class="title">All inboxes</h1>
+ </header>
+
+ <div class="content">
+
+ <ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="#">
+ Email subject line here
+ <p>Lorem ipsum dolor sit amet...</p>
+ </a>
+ </li>
+ </ul>
+ </div><!-- /.content -->
+ </body>
+</html>
diff --git a/docs/examples/app-ios-mail/index.html b/docs/examples/app-ios-mail/index.html
new file mode 100644
index 0000000..117062f
--- /dev/null
+++ b/docs/examples/app-ios-mail/index.html
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Mail</title>
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <link rel="stylesheet" href="../../dist/ratchet.css">
+ <link rel="stylesheet" href="../../dist/ratchet-theme-ios.css">
+ <link rel="stylesheet" href="css/app.css">
+ <script src="../../dist/ratchet.js"></script>
+ </head>
+ <body>
+ <header class="bar bar-nav">
+ <a class="icon icon-refresh pull-right"></a>
+ <h1 class="title">Mailboxes</h1>
+ </header>
+
+ <div class="bar bar-footer">
+ <a class="icon icon-compose pull-right" href="#composeModal"></a>
+ <small class="updated-text">Updated just now</small>
+ </div>
+
+ <div class="content">
+
+ <ul class="table-view">
+ <li class="table-view-cell media">
+ <a class="push-right" href="inbox.html" data-transition="slide-in">
+ <span class="media-object icon icon-pages pull-left"></span>
+ <div class="media-body">
+ All inboxes
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="inbox.html" data-transition="slide-in">
+ <span class="media-object icon icon-person pull-left"></span>
+ <div class="media-body">
+ Personal email
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="inbox.html" data-transition="slide-in">
+ <span class="media-object icon icon-star-filled pull-left"></span>
+ <div class="media-body">
+ Starred
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="inbox.html" data-transition="slide-in">
+ <span class="media-object icon icon-trash pull-left"></span>
+ <div class="media-body">
+ Trash
+ </div>
+ </a>
+ </li>
+ </ul>
+
+ <h5 class="content-padded">Other accounts</h5>
+ <ul class="table-view">
+ <li class="table-view-cell media">
+ <a class="push-right" href="inbox.html" data-transition="slide-in">
+ <span class="media-object icon icon-more pull-left"></span>
+ <div class="media-body">
+ Misc
+ </div>
+ </a>
+ </li>
+ </ul>
+ </div><!-- /.content -->
+
+ <!-- Compose modal -->
+ <div id="composeModal" class="modal">
+ <header class="bar bar-nav">
+ <a class="btn btn-link pull-right" href="#composeModal">
+ <strong>Send</strong>
+ </a>
+ <a class="btn btn-link pull-left" href="#composeModal">
+ Cancel
+ </a>
+ <h1 class="title">New message</h1>
+ </header>
+
+ <div class="content">
+ <form class="input-group">
+ <input type="text" placeholder="To:">
+ <input type="email" placeholder="From:">
+ <input type="text" placeholder="Subject:">
+ <textarea rows="20"></textarea>
+ </form>
+ </div>
+ </div><!-- /.modal -->
+ </body>
+</html>
diff --git a/docs/examples/app-movies/choose-theater.html b/docs/examples/app-movies/choose-theater.html
new file mode 100644
index 0000000..4950c24
--- /dev/null
+++ b/docs/examples/app-movies/choose-theater.html
@@ -0,0 +1,85 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Movie finder</title>
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <link rel="stylesheet" href="../../dist/ratchet.css">
+ <link rel="stylesheet" href="css/app.css">
+ <script src="../../dist/ratchet.js"></script>
+ </head>
+ <body>
+ <header class="bar bar-nav">
+ <a class="btn btn-link btn-nav pull-left" href="index.html" data-transition="slide-out">
+ <span class="icon icon-left-nav"></span>
+ Back
+ </a>
+ <h1 class="title">Argo</h1>
+ </header>
+
+ <div class="bar bar-standard bar-header-secondary">
+ <form>
+ <input type="search" placeholder="Search theaters">
+ </form>
+ </div>
+
+ <div class="content">
+ <ul class="table-view">
+ <li class="table-view-cell table-view-divider">Theaters nearby</li>
+ <li class="table-view-cell">
+ Metreon 16
+ <p>1.3 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ AMC 5
+ <p>3.5 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ Regal 42
+ <p>7.3 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ Shorline theater
+ <p>12.5 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ AMC 16
+ <p>12.2 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ BW3 16
+ <p>13.4 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ MC Hammer 16
+ <p>14.1 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ AMC 3
+ <p>14.3 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ AMC 2
+ <p>14.7 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ <li class="table-view-cell">
+ AMC 10
+ <p>15 miles away</p>
+ <a class="btn btn-outlined btn-positive" href="#">Buy Tickets</a>
+ </li>
+ </ul>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/docs/examples/app-movies/css/app.css b/docs/examples/app-movies/css/app.css
new file mode 100644
index 0000000..08345cf
--- /dev/null
+++ b/docs/examples/app-movies/css/app.css
@@ -0,0 +1,8 @@
+.slider,
+.slider img {
+ margin-bottom: 0;
+ height: 150px;
+}
+.content-padded {
+ margin: 30px 15px 15px;
+}
diff --git a/test/app/img/argo.png b/docs/examples/app-movies/img/argo.png
index 743b3e7..743b3e7 100644
--- a/test/app/img/argo.png
+++ b/docs/examples/app-movies/img/argo.png
Binary files differ
diff --git a/test/app/img/ralph.png b/docs/examples/app-movies/img/ralph.png
index 34707de..34707de 100644
--- a/test/app/img/ralph.png
+++ b/docs/examples/app-movies/img/ralph.png
Binary files differ
diff --git a/test/app/img/skyfall.png b/docs/examples/app-movies/img/skyfall.png
index 0527e19..0527e19 100644
--- a/test/app/img/skyfall.png
+++ b/docs/examples/app-movies/img/skyfall.png
Binary files differ
diff --git a/docs/examples/app-movies/index.html b/docs/examples/app-movies/index.html
new file mode 100644
index 0000000..ec3bfcc
--- /dev/null
+++ b/docs/examples/app-movies/index.html
@@ -0,0 +1,170 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Movie finder</title>
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <link rel="stylesheet" href="../../dist/ratchet.css">
+ <link rel="stylesheet" href="css/app.css">
+ <script src="../../dist/ratchet.js"></script>
+ </head>
+ <body>
+ <header class="bar bar-nav">
+ <a class="icon icon-gear pull-right" href="#settingsModal" ></a>
+ <h1 class="title">Movie finder</h1>
+ </header>
+
+ <div class="bar bar-standard bar-header-secondary">
+ <form>
+ <input type="search" placeholder="Search">
+ </form>
+ </div>
+
+ <div class="content">
+
+ <div class="slider">
+ <div class="slide-group">
+ <div class="slide">
+ <img src="img/argo.png">
+ </div>
+ <div class="slide">
+ <img src="img/skyfall.png">
+ </div>
+ <div class="slide">
+ <img src="img/ralph.png">
+ </div>
+ </div>
+ </div>
+
+ <ul class="table-view">
+ <li class="table-view-cell table-view-divider">Recommended movies</li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Argo
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Skyfall: 007
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Wreck-it Ralph
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Argo
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Skyfall: 007
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Wreck-it Ralph
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Argo
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Skyfall: 007
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ <li class="table-view-cell media">
+ <a class="push-right" href="choose-theater.html" data-transition="slide-in">
+ <img class="media-object pull-left" src="http://placehold.it/64x64">
+ <div class="media-body">
+ Wreck-it Ralph
+ <p>Lorem ipsum dolor sit amet, consectetur.</p>
+ </div>
+ </a>
+ </li>
+ </ul>
+ </div><!-- /.content -->
+
+ <!-- Settings modal -->
+ <div id="settingsModal" class="modal">
+ <header class="bar bar-nav">
+ <a class="icon icon-close pull-right" href="#settingsModal"></a>
+ <h1 class="title">Settings</h1>
+ </header>
+
+ <div class="content">
+ <form class="input-group">
+ <input type="text" placeholder="Full name">
+ <input type="email" placeholder="Email">
+ <input type="text" placeholder="Username">
+ </form>
+
+ <h5 class="content-padded">App settings</h5>
+
+ <ul class="table-view">
+ <li class="table-view-cell media">
+ <span class="media-object pull-left icon icon-sound"></span>
+ <div class="media-body">
+ Enable sounds
+ </div>
+ <div class="toggle">
+ <div class="toggle-handle"></div>
+ </div>
+ </li>
+ <li class="table-view-cell media">
+ <span class="media-object pull-left icon icon-person"></span>
+ <div class="media-body">
+ Parental controls
+ </div>
+ <div class="toggle">
+ <div class="toggle-handle"></div>
+ </div>
+ </li>
+ </ul>
+ <div class="container">
+ <a class="btn btn-positive btn-block content-padded">Save settings</a>
+ </div>
+ </div>
+ </div><!-- /.modal -->
+ </body>
+</html>
diff --git a/docs/getting-started.html b/docs/getting-started.html
new file mode 100644
index 0000000..606dda1
--- /dev/null
+++ b/docs/getting-started.html
@@ -0,0 +1,134 @@
+---
+layout: default
+title: Getting started &middot; Ratchet
+---
+
+<div class="docs-sub-header">
+ {% include masthead.html %}
+ <div class="container">
+ <div class="column-group">
+ <div class="column units-2">
+ <div class="docs-sub-content">
+ <h2 class="page-title">Getting started</h2>
+ <p class="page-description">Once you've downloaded Ratchet, here's what to do next.</p>
+ </div>
+ </div>
+ </div>
+ {% include ad.html %}
+ </div>
+</div>
+
+<div class="container">
+ <div class="column-group">
+ <div class="column units-2 lg-units-8">
+ <ol class="docs-steps">
+ <li class="step">
+ <h3 class="step-title">1. Create your pages</h3>
+ <p class="step-description">Use the <a href="/components" data-ignore="push">documentation</a> as a reference for all the available components and piece together the pages of your app. Be sure to look at the <a href="#pageLayout">basic page template</a> and <a href="/examples" data-ignore="push">example applications</a>. Make sure to add <code>ratchet-theme-ios.css</code> or <code>ratchet-theme-android.css</code> to your app's <code>&lt;head&gt;</code> if you have a specific platform in mind.</p>
+ </li>
+ <li class="step">
+ <h3 class="step-title">2. Connect pages with push.js</h3>
+ <p class="step-description">Read about <a href="/components/#push" data-ignore="push">push.js</a> then start connecting your pages. Push.js allows you to create a prototype that feels like a real app when you save it to your phone. (Need to have a server running).</p>
+ </li>
+ <li class="step">
+ <h3 class="step-title">3. Save the prototype to your phone</h3>
+ <p class="step-description">There are <a href="https://groups.google.com/forum/#!topic/goratchet/IboE6SCMAyw" data-ignore="push">a few ways to do this</a>, but the simplest is to run a local server on your computer, point Safari on your iPhone to your computer, then click the <span class="icon icon-share"></span> button and "Add to Home Screen". For Android, check out <a href="https://developers.google.com/chrome/mobile/docs/installtohomescreen" data-ignore="push">this guide</a>.</p>
+ </li>
+ </ol>
+
+ <hr>
+
+ <h2 class="section-heading">Page setup</h2>
+ <p class="section-lead">Three simple rules for structuring your Ratchet pages</p>
+ <ol class="docs-steps">
+ <li class="step">
+ <h3 class="step-title">1. Fixed bars come first</h3>
+ <p class="step-description">All fixed bars (<code>.bar</code>) should always be the first thing in the <code>&lt;body&gt;</code> of the page. This is really important!</p>
+ </li>
+ <li class="step">
+ <h3 class="step-title">2. Everything else goes in <code>.content</code></h3>
+ <p class="step-description">Anything that's not a <code>.bar</code> should be put in a div with the class <code>.content</code>. Put this div after the bars in the <code>&lt;body&gt;</code> tag. The <code>.content</code> div is what actually scrolls in a Ratchet prototype.</p>
+ </li>
+ <li class="step">
+ <h3 class="step-title">3. Don't forget your meta tags</h3>
+ <p class="step-description">They're included in the template.html page included in the download, but make sure they stay in the page. They are important to Ratchet working just right.</p>
+ </li>
+ </ol>
+
+
+ <hr>
+
+ <h2 id="pageLayout" class="section-heading">Basic template</h2>
+ <p class="section-lead">Use this basic template to get your app started.</p>
+{% highlight html %}
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Ratchet template page</title>
+
+ <!-- Sets initial viewport load and disables zooming -->
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
+
+ <!-- Makes your prototype chrome-less once bookmarked to your phone's home screen -->
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <!-- Include the compiled Ratchet CSS -->
+ <link href="ratchet.css" rel="stylesheet">
+
+ <!-- Include the compiled Ratchet JS -->
+ <script src="ratchet.js"></script>
+
+ </head>
+ <body>
+
+ <!-- Make sure all your bars are the first things in your <body> -->
+ <header class="bar bar-nav">
+ <h1 class="title">Ratchet</h1>
+ </header>
+
+ <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
+ <div class="content">
+ <p class="content-padded">Thanks for downloading Ratchet. This is an example HTML page that's linked up to compiled Ratchet CSS and JS, has the proper meta tags and the HTML structure. Need some more help before you start filling this with your own content? Check out some Ratchet resources:</p>
+ <div class="card">
+ <ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right" href="http://goratchet.com">
+ <strong>Ratchet documentation</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="https://www.github.com/twbs/ratchet/">
+ <strong>Ratchet on Github</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="https://groups.google.com/forum/#!forum/goratchet">
+ <strong>Ratchet Google group</strong>
+ </a>
+ </li>
+ <li class="table-view-cell">
+ <a class="push-right" href="http://www.twitter.com/GoRatchet">
+ <strong>Ratchet on Twitter</strong>
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+ </body>
+</html>
+{% endhighlight %}
+ </div>
+
+ <div class="column units-2 lg-units-4">
+ {% include download-module.html %}
+ </div>
+ </div>
+
+ <div class="column units-2">
+ <!-- Footer -->
+ {% include footer.html %}
+ </div>
+</div>
diff --git a/docs/img/avatar-connors.png b/docs/img/avatar-connors.png
deleted file mode 100644
index 239887e..0000000
--- a/docs/img/avatar-connors.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/avatar-dhg.png b/docs/img/avatar-dhg.png
deleted file mode 100644
index 20c919b..0000000
--- a/docs/img/avatar-dhg.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/avatar-fat.png b/docs/img/avatar-fat.png
deleted file mode 100644
index 85f22f8..0000000
--- a/docs/img/avatar-fat.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/header-bg.jpg b/docs/img/header-bg.jpg
deleted file mode 100644
index 1a0e9e6..0000000
--- a/docs/img/header-bg.jpg
+++ /dev/null
Binary files differ
diff --git a/docs/img/icon-hamburger.png b/docs/img/icon-hamburger.png
deleted file mode 100644
index 0ce7777..0000000
--- a/docs/img/icon-hamburger.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/icon-home.png b/docs/img/icon-home.png
deleted file mode 100644
index 24a882d..0000000
--- a/docs/img/icon-home.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/icon-messages.png b/docs/img/icon-messages.png
deleted file mode 100644
index e1f0c21..0000000
--- a/docs/img/icon-messages.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/icon-profile.png b/docs/img/icon-profile.png
deleted file mode 100644
index 0da11e8..0000000
--- a/docs/img/icon-profile.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/icon-settings.png b/docs/img/icon-settings.png
deleted file mode 100644
index 401e31a..0000000
--- a/docs/img/icon-settings.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/icon-share.png b/docs/img/icon-share.png
deleted file mode 100644
index f086aea..0000000
--- a/docs/img/icon-share.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/iphone.png b/docs/img/iphone.png
deleted file mode 100644
index c92caf7..0000000
--- a/docs/img/iphone.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/noise.png b/docs/img/noise.png
deleted file mode 100644
index 85c3754..0000000
--- a/docs/img/noise.png
+++ /dev/null
Binary files differ
diff --git a/docs/img/slide-1.jpg b/docs/img/slide-1.jpg
deleted file mode 100644
index 23c671a..0000000
--- a/docs/img/slide-1.jpg
+++ /dev/null
Binary files differ
diff --git a/docs/img/slide-2.jpg b/docs/img/slide-2.jpg
deleted file mode 100644
index 6b5e15e..0000000
--- a/docs/img/slide-2.jpg
+++ /dev/null
Binary files differ
diff --git a/docs/img/slide-3.jpg b/docs/img/slide-3.jpg
deleted file mode 100644
index 2664eac..0000000
--- a/docs/img/slide-3.jpg
+++ /dev/null
Binary files differ
diff --git a/docs/index.html b/docs/index.html
index 8430938..8c4c42a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1,1199 +1,15 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Ratchet</title>
- <meta name="description" content="Ratchet: Prototype iPhone apps with simple HTML, CSS and JS components.">
- <meta name="author" content="Dave Gamache, Connor Sears, and Jacob Thornton">
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <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">
- <link rel="stylesheet" href="../dist/ratchet.css">
- <link rel="stylesheet" href="css/docs.css">
- <link rel="stylesheet" href="css/prettify.css">
- <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
- <script type="text/javascript" src="//use.typekit.net/gwz1sef.js"></script>
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="img/apple-touch-icon-57x57.png">
-
- <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
- <script src="js/prettify.js"></script>
- <script src="../dist/ratchet.js"></script>
- <script src="js/docs.js"></script>
- <script src="js/fingerblast.js"></script>
- <script type="text/javascript">
-
- 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="">
-
- <!-- Masthead & navigation -->
- <nav class="docs-outer-wrapper docs-masthead">
- <div class="docs-inner-wrapper">
- <ul class="docs-navigation">
- <li class="nav-item"><a href="#gettingStarted">Getting started</a></li>
- <li class="nav-item nav-components">
- <a data-ignore="push" class="nav-components-link" href="">Components</a>
- <ul class="components-list">
- <li><a href="#bars">Bars</a></li>
- <li><a href="#lists">Lists</a></li>
- <li><a href="#buttons">Buttons</a></li>
- <li><a href="#segmentedControllers">Segmented controllers</a></li>
- <li><a href="#counts">Counts</a></li>
- <li><a href="#forms">Forms</a></li>
- <li><a href="#toggles">Toggles</a></li>
- <li><a href="#popovers">Popovers</a></li>
- <li><a href="#modals">Modals</a></li>
- <li><a href="#sliders">Sliders</a></li>
- <li><a href="#push">Push</a></li>
- </ul>
- </li>
- <li class="nav-item"><a href="#pageSetup">Page setup</a></li>
- <li data-ignore="push" class="nav-item"><a href="http://github.com/maker/ratchet">View on GitHub</a></li>
- </ul>
- <h1 class="docs-masthead-title">Ratchet</h1>
- </div>
- </nav>
-
- <!-- Jumbo header -->
- <header class="docs-outer-wrapper docs-header">
- <div class="docs-inner-wrapper">
- <hgroup class="docs-header-text">
- <h2 class="docs-header-subtitle">Prototype iPhone apps with simple HTML, CSS, and JS components.</h2>
- <a data-ignore="push" href="http://maker.github.com/ratchet/ratchet.zip" class="docs-btn" onClick="_gaq.push(['_trackEvent', 'Downloads', 'V1.0']);">Download Ratchet</a>
- </hgroup>
- </div>
- <section class="social">
- <ul>
- <li>
- <iframe src="http://ghbtns.com/github-btn.html?user=maker&repo=ratchet&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
- </li>
- <li>
- <a data-ignore="push" href="https://twitter.com/share" class="twitter-share-button" data-url="http://maker.github.com/ratchet/" data-text="Ratchet: Prototype iPhone apps with simple HTML, CSS and JS components." data-via="GoRatchet">Tweet</a>
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
- </li>
- <li><a data-ignore="push" href="https://twitter.com/GoRatchet" class="twitter-follow-button" data-show-count="true">
- Follow @GoRatchet</a>
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
- </li>
- </ul>
- </section>
- </header>
-
- <div class="docs-outer-wrapper docs-content">
- <section class="content-section section-informational" id="gettingStarted">
- <div class="docs-inner-wrapper">
- <div class="section-header">
- <h2 class="section-title">Getting started</h2>
- <p class="section-description">Once you've downloaded Ratchet, here's what to do next.</p>
- </div>
-
- <ol class="steps">
- <li class="step">
- <h3 class="step-title">1. Create your pages</h3>
- <p class="step-description">Use these docs as a reference for all the available components and piece together the pages of your app. Customize the style too - make the prototype all your own.</p>
- </li>
- <li class="step">
- <h3 class="step-title">2. Connect pages with push.js</h3>
- <p class="step-description">Read about <a href="#push">push.js</a> then start connecting your pages. Push.js allows you to create a prototype that feels like a real app when you save it to your phone. (Need to have a server running).</p>
- </li>
- <li class="step">
- <h3 class="step-title">3. Save the prototype to your phone</h3>
- <p class="step-description">There are <a href="https://groups.google.com/forum/#!topic/goratchet/IboE6SCMAyw">a few ways to do this</a>, but the simplest is to run a local server on your computer, point Safari on your iPhone to your computer, then click the <img class="share-icon" src="img/icon-share.png"> button and "Add to Home Screen".</p>
- </li>
- </ol>
- </div>
- </section>
-
- <!-- Banner for Mozilla/IE -->
- <div class="notice-banner">
- <p><strong>Heads up!</strong> Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.</p>
- </div>
-
- <!--[if IE]>
- <div class="notice-banner">
- <p><strong>Heads up!</strong> Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.</p>
- </div>
- <![endif]-->
-
-
- <!-- Components -->
- <section class="docs-outer-wrapper content-section section-components">
- <div class="docs-inner-wrapper">
- <div class="section-header">
- <h2 class="section-title">Components</h2>
- <p class="section-description">Design patterns that serve as basic building blocks.</p>
- </div>
- <div class="iphone">
- <div class="iphone-content">
- <div id="iwindow">
- <header class="bar-title">
- <h1 class="title">Title</h1>
- </header>
- </div>
- </div>
- </div>
-
- <!-- 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-title">
- <h1 class="title">Title</h1>
- </header>
- </div>
-
-<pre class="prettyprint">
-&lt;header class=&quot;bar-title&quot;&gt;
- &lt;h1 class=&quot;title&quot;&gt;Title&lt;/h1&gt;
-&lt;/header&gt;
-</pre>
-
- </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.</p>
-
- <div class="component-example component-example-fullbleed">
- <header class="bar-title">
- <a class="button">
- Left
- </a>
- <h1 class="title">Title</h1>
- <a class="button">
- Right
- </a>
- </header>
- </div>
-
-<pre class="prettyprint">
-&lt;header class=&quot;bar-title&quot;&gt;
- &lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;
- Left
- &lt;/a&gt;
- &lt;h1 class=&quot;title&quot;&gt;Title&lt;/h1&gt;
- &lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;
- Right
- &lt;/a&gt;
-&lt;/header&gt;
-</pre>
-
- </article>
- <article class="component">
- <h3 class="component-title">Title bar with directional buttons</h3>
- <p class="component-description">Directional buttons in a title bar should be used for navigational purposes.</p>
-
- <div class="component-example component-example-fullbleed">
- <header class="bar-title">
- <a class="button-prev">
- Previous
- </a>
- <h1 class="title">Title</h1>
- <a class="button-next">
- Next
- </a>
- </header>
- </div>
-
-<pre class="prettyprint">
-&lt;header class=&quot;bar-title&quot;&gt;
- &lt;a class=&quot;button-prev&quot; href=&quot;#&quot;&gt;
- Previous
- &lt;/a&gt;
- &lt;h1 class=&quot;title&quot;&gt;Title&lt;/h1&gt;
- &lt;a class=&quot;button-next&quot; href=&quot;#&quot;&gt;
- Next
- &lt;/a&gt;
-&lt;/header&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">Title bar with segmented controller</h3>
- <p class="component-description">Title bars can also house segmented controllers (with or without accompanying buttons). It all uses flex-box to create perfectly even spacing no matter their labels.</p>
-
- <div class="component-example component-example-fullbleed">
- <header class="bar-title">
- <a class="button">
- Left
- </a>
- <ul class="segmented-controller">
- <li class="active">
- <a>One</a>
- </li>
- <li>
- <a>Two</a>
- </li>
- <li>
- <a>Three</a>
- </li>
- </ul>
- <a class="button">
- Right
- </a>
- </header>
- </div>
-
-<pre class="prettyprint">
-&lt;header class=&quot;bar-title&quot;&gt;
- &lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;
- Left
- &lt;/a&gt;
- &lt;ul class=&quot;segmented-controller&quot;&gt;
- &lt;li class=&quot;active&quot;&gt;
- &lt;a href=&quot;#&quot;&gt;One&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;Two&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;Three&lt;/a&gt;
- &lt;/li&gt;
- &lt;/ul&gt;
- &lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;
- Right
- &lt;/a&gt;
-&lt;/header&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">Tab bar</h3>
- <p class="component-description">Icons should be around 24px by 18px. The gradient on an icon starts with pure white and goes to #e5e5e5 at the bottom.</p>
-
- <div class="component-example component-example-fullbleed">
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item active">
- <a href="#">
- <img class="tab-icon" src="img/icon-home.png">
- <div class="tab-label">Label</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="#">
- <img class="tab-icon" src="img/icon-profile.png">
- <div class="tab-label">Label</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="#">
- <img class="tab-icon" src="img/icon-messages.png">
- <div class="tab-label">Label</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="#">
- <img class="tab-icon" src="img/icon-hamburger.png">
- <div class="tab-label">Label</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="#">
- <img class="tab-icon" src="img/icon-settings.png">
- <div class="tab-label">Label</div>
- </a>
- </li>
- </ul>
- </nav>
- </div>
-
-<pre class="prettyprint">
-&lt;nav class=&quot;bar-tab&quot;&gt;
- &lt;ul class=&quot;tab-inner&quot;&gt;
- &lt;li class=&quot;tab-item active&quot;&gt;
- &lt;a href=&quot;#&quot;&gt;
- &lt;img class=&quot;tab-icon&quot; src=&quot;img/icon-home.png&quot;&gt;
- &lt;div class=&quot;tab-label&quot;&gt;Label&lt;/div&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li class=&quot;tab-item&quot;&gt;
- &lt;a href=&quot;#&quot;&gt;
- &lt;img class=&quot;tab-icon&quot; src=&quot;img/icon-profile.png&quot;&gt;
- &lt;div class=&quot;tab-label&quot;&gt;Label&lt;/div&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li class=&quot;tab-item&quot;&gt;
- &lt;a href=&quot;#&quot;&gt;
- &lt;img class=&quot;tab-icon&quot; src=&quot;img/icon-messages.png&quot;&gt;
- &lt;div class=&quot;tab-label&quot;&gt;Label&lt;/div&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li class=&quot;tab-item&quot;&gt;
- &lt;a href=&quot;#&quot;&gt;
- &lt;img class=&quot;tab-icon&quot; src=&quot;img/icon-hamburger.png&quot;&gt;
- &lt;div class=&quot;tab-label&quot;&gt;Label&lt;/div&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li class=&quot;tab-item&quot;&gt;
- &lt;a href=&quot;#&quot;&gt;
- &lt;img class=&quot;tab-icon&quot; src=&quot;img/icon-settings.png&quot;&gt;
- &lt;div class=&quot;tab-label&quot;&gt;Label&lt;/div&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;/ul&gt;
-&lt;/nav&gt;
-</pre>
-
- <p class="component-note touch-only"><strong>Note:</strong> Use push.js to actually change content.</p>
- <p class="component-note"><strong>Credit:</strong> Icons by Marc Haumann and Spencer Cohen from The Noun Project</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 3 places. These can be used to house buttons or segmented controllers (see following examples).</p>
-
- <div class="component-example component-example-fullbleed">
- <!-- Segmented controller in standard bar fixed to top -->
- <nav class="bar-standard">
- <ul class="segmented-controller">
- <li class="active">
- <a>Thing one</a>
- </li>
- <li>
- <a>Thing two</a>
- </li>
- <li>
- <a>Thing three</a>
- </li>
- </ul>
- </nav>
-
- <!-- Block button in standard bar fixed below top bar -->
- <div class="bar-standard bar-header-secondary">
- <a class="button-block">Block level button</a>
- </div>
- </div>
-
-<pre class="prettyprint">
-&lt;!-- Segmented controller in standard bar fixed to top --&gt;
-&lt;nav class=&quot;bar-standard&quot;&gt;
- &lt;ul class=&quot;segmented-controller&quot;&gt;
- &lt;li class=&quot;active&quot;&gt;
- &lt;a href=&quot;#&quot;&gt;Thing one&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;Thing two&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;Thing three&lt;/a&gt;
- &lt;/li&gt;
- &lt;/ul&gt;
-&lt;/nav&gt;
-&lt;div class=&quot;bar-standard bar-header-secondary&quot;&gt;
- &lt;a class=&quot;button-block&quot;&gt;Block level button&lt;/a&gt;
-&lt;/div&gt;
-</pre>
-
- </article>
-
- <!-- Lists -->
- <article class="component" id="lists">
- <h3 class="component-title">Lists</h3>
- <p class="component-description">Lists 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="list">
- <li>List item 1</li>
- <li>List item 2</li>
- <li class="list-divider">List Divider</li>
- <li>List item 3</li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;List item 1&lt;/li&gt;
- &lt;li&gt;List item 2&lt;/li&gt;
- &lt;li class=&quot;list-divider&quot;&gt;List Divider&lt;/li&gt;
- &lt;li&gt;List item 3&lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">List with chevrons</h3>
- <p class="component-description">Chevrons are created with CSS3, so no image assets are needed. They should be used to indicate that the list item is linked.</p>
-
- <div class="component-example component-example-fullbleed">
- <ul class="list">
- <li>
- <a>
- List item 1
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a>
- List item 2
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a>
- List item 3
- <span class="chevron"></span>
- </a>
- </li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;
- List item 1
- &lt;span class=&quot;chevron&quot;&gt;&lt;/span&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;
- List item 2
- &lt;span class=&quot;chevron&quot;&gt;&lt;/span&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;
- List item 3
- &lt;span class=&quot;chevron&quot;&gt;&lt;/span&gt;
- &lt;/a&gt;
- &lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">List with counts</h3>
-
- <div class="component-example component-example-fullbleed">
- <ul class="list">
- <li>List item 1 <span class="count">4</span></li>
- <li>List item 2 <span class="count">1</span></li>
- <li>List item 3 <span class="count">5</span></li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;List item 1 &lt;span class=&quot;count&quot;&gt;4&lt;/span&gt;&lt;/li&gt;
- &lt;li&gt;List item 2 &lt;span class=&quot;count&quot;&gt;1&lt;/span&gt;&lt;/li&gt;
- &lt;li&gt;List item 3 &lt;span class=&quot;count&quot;&gt;5&lt;/span&gt;&lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">List with counts and chevrons</h3>
-
- <div class="component-example component-example-fullbleed">
- <ul class="list">
- <li>
- <a>
- List item 1
- <span class="chevron"></span>
- <span class="count">4</span>
- </a>
- </li>
- <li>
- <a>
- List item 2
- <span class="chevron"></span>
- <span class="count">1</span>
- </a>
- </li>
- <li>
- <a>
- List item 3
- <span class="chevron"></span>
- <span class="count">5</span>
- </a>
- </li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;
- List item 1
- &lt;span class=&quot;chevron&quot;&gt;&lt;/span&gt;
- &lt;span class=&quot;count&quot;&gt;4&lt;/span&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;
- List item 2
- &lt;span class=&quot;chevron&quot;&gt;&lt;/span&gt;
- &lt;span class=&quot;count&quot;&gt;1&lt;/span&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#&quot;&gt;
- List item 3
- &lt;span class=&quot;chevron&quot;&gt;&lt;/span&gt;
- &lt;span class=&quot;count&quot;&gt;5&lt;/span&gt;
- &lt;/a&gt;
- &lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">List with buttons</h3>
-
- <div class="component-example component-example-fullbleed">
- <ul class="list">
- <li>List item 1 <a class="button">Button</a></li>
- <li>List item 2 <a class="button-main">Button</a></li>
- <li>List item 3 <a class="button-positive">Button</a></li>
- <li>List item 4 <a class="button-negative">Button</a></li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;List item 1 &lt;a class=&quot;button&quot;&gt;Button&lt;/a&gt;&lt;/li&gt;
- &lt;li&gt;List item 2 &lt;a class=&quot;button-main&quot;&gt;Button&lt;/a&gt;&lt;/li&gt;
- &lt;li&gt;List item 3 &lt;a class=&quot;button-positive&quot;&gt;Button&lt;/a&gt;&lt;/li&gt;
- &lt;li&gt;List item 4 &lt;a class=&quot;button-negative&quot;&gt;Button&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">List with toggles</h3>
-
- <div class="component-example component-example-fullbleed">
- <ul class="list">
- <li>
- List item 1
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- <li>
- List item 2
- <div class="toggle active">
- <div class="toggle-handle"></div>
- </div>
- </li>
- <li>
- List item 3
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;
- List item 1
- &lt;div class=&quot;toggle&quot;&gt;
- &lt;div class=&quot;toggle-handle&quot;&gt;&lt;/div&gt;
- &lt;/div&gt;
- &lt;/li&gt;
- &lt;li&gt;
- List item 2
- &lt;div class=&quot;toggle active&quot;&gt;
- &lt;div class=&quot;toggle-handle&quot;&gt;&lt;/div&gt;
- &lt;/div&gt;
- &lt;/li&gt;
- &lt;li&gt;
- List item 3
- &lt;div class=&quot;toggle&quot;&gt;
- &lt;div class=&quot;toggle-handle&quot;&gt;&lt;/div&gt;
- &lt;/div&gt;
- &lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <article class="component">
- <h3 class="component-title">Inset list</h3>
-
- <div class="component-example">
- <ul class="list inset">
- <li>List item 1</li>
- <li>List item 2</li>
- <li class="list-divider">List Divider</li>
- <li>List item 3</li>
- <li>List item 4</li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;list inset&quot;&gt;
- &lt;li&gt;List item 1&lt;/li&gt;
- &lt;li&gt;List item 2&lt;/li&gt;
- &lt;li class=&quot;list-divider&quot;&gt;List Divider&lt;/li&gt;
- &lt;li&gt;List item 3&lt;/li&gt;
- &lt;li&gt;List item 4&lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <!-- Buttons -->
- <article class="component" id="buttons">
- <h3 class="component-title">Buttons</h3>
- <p class="component-description">Buttons come in four flavors and should be used for user actions.</p>
-
- <div class="component-example">
- <a class="button">Button</a>
- <a class="button-main">Button</a>
- <a class="button-positive">Button</a>
- <a class="button-negative">Button</a>
- </div>
-
-<pre class="prettyprint">
-&lt;a class=&quot;button&quot;&gt;Button&lt;/a&gt;
-&lt;a class=&quot;button-main&quot;&gt;Button&lt;/a&gt;
-&lt;a class=&quot;button-positive&quot;&gt;Button&lt;/a&gt;
-&lt;a class=&quot;button-negative&quot;&gt;Button&lt;/a&gt;
-</pre>
-
- </article>
-
- <article class="component" id="buttonsCounts">
- <h3 class="component-title">Buttons with counts</h3>
-
- <div class="component-example">
- <a class="button">Count button<span class="count">1</span></a>
- <a class="button-main">Count button<span class="count">1</span></a>
- <a class="button-positive">Count button<span class="count">1</span></a>
- <a class="button-negative">Count button<span class="count">1</span></a>
- </div>
-
-<pre class="prettyprint">
-&lt;a class=&quot;button&quot;&gt;Count button&lt;span class=&quot;count&quot;&gt;1&lt;/span&gt;&lt;/a&gt;
-&lt;a class=&quot;button-main&quot;&gt;Count button&lt;span class=&quot;count&quot;&gt;1&lt;/span&gt;&lt;/a&gt;
-&lt;a class=&quot;button-positive&quot;&gt;Count button&lt;span class=&quot;count&quot;&gt;1&lt;/span&gt;&lt;/a&gt;
-&lt;a class=&quot;button-negative&quot;&gt;Count button&lt;span class=&quot;count&quot;&gt;1&lt;/span&gt;&lt;/a&gt;
-</pre>
-
- </article>
-
- <article class="component" id="blockButtons">
- <h3 class="component-title">Block buttons</h3>
-
- <div class="component-example">
- <a class="button-block">Block button</a>
- <a class="button-main button-block">Block button</a>
- <a class="button-positive button-block">Block button</a>
- <a class="button-negative button-block">Block button</a>
- </div>
-
-<pre class="prettyprint">
-&lt;a class=&quot;button-block&quot;&gt;Block button&lt;/a&gt;
-&lt;a class=&quot;button-main button-block&quot;&gt;Block button&lt;/a&gt;
-&lt;a class=&quot;button-positive button-block&quot;&gt;Block button&lt;/a&gt;
-&lt;a class=&quot;button-negative button-block&quot;&gt;Block button&lt;/a&gt;
-</pre>
-
- </article>
-
- <!-- Segmented Controller -->
- <article class="component" id="segmentedControllers">
- <h3 class="component-title">Segmented controller</h3>
- <p class="component-description">Created with flex-box so button sizes and spacing are consistent. Content sections that are to be swapped in and out by the controller should all be siblings and have the class "segmented-controller-item". Then, just give each content section an id and point the link in the segmented controller to that id.</p>
-
- <div class="component-example">
- <ul class="segmented-controller">
- <li class="active">
- <a href="#item1mobile">Thing one</a>
- </li>
- <li>
- <a href="#item2mobile">Thing two</a>
- </li>
- <li>
- <a href="#item3mobile">Thing three</a>
- </li>
- </ul>
- <ul class="inset list">
- <li id="item1mobile" class="segmented-controller-item active">
- Item 1
- </li>
- <li id="item2mobile" class="segmented-controller-item">
- Item 2
- </li>
- <li id="item3mobile" class="segmented-controller-item">
- Item 3
- </li>
- </ul>
- </div>
-
-<pre class="prettyprint">
-&lt;ul class=&quot;segmented-controller&quot;&gt;
- &lt;li class=&quot;active&quot;&gt;
- &lt;a href=&quot;#item1&quot;&gt;Thing one&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#item2&quot;&gt;Thing two&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href=&quot;#item3&quot;&gt;Thing three&lt;/a&gt;
- &lt;/li&gt;
-&lt;/ul&gt;
-&lt;ul class=&quot;inset list&quot;&gt;
- &lt;li id=&quot;item1&quot; class=&quot;segmented-controller-item active&quot;&gt;
- Item 1
- &lt;/li&gt;
- &lt;li id=&quot;item2&quot; class=&quot;segmented-controller-item&quot;&gt;
- Item 2
- &lt;/li&gt;
- &lt;li id=&quot;item3&quot; class=&quot;segmented-controller-item&quot;&gt;
- Item 3
- &lt;/li&gt;
-&lt;/ul&gt;
-</pre>
-
- </article>
-
- <!-- Counts -->
- <article class="component" id="counts">
- <h3 class="component-title">Counts</h3>
- <p class="component-description">Counts come in four flavors and should be used to indicate "how many" of something there are.</p>
-
- <div class="component-example">
- <span class="count">1</span>
- <span class="count-main">2</span>
- <span class="count-positive">3</span>
- <span class="count-negative">4</span>
- </div>
-
-<pre class="prettyprint">
-&lt;span class=&quot;count&quot;&gt;1&lt;/span&gt;
-&lt;span class=&quot;count-main&quot;&gt;2&lt;/span&gt;
-&lt;span class=&quot;count-positive&quot;&gt;3&lt;/span&gt;
-&lt;span class=&quot;count-negative&quot;&gt;4&lt;/span&gt;
-</pre>
-
- </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>
- <a class="button button-block">Choose existing</a>
- </form>
- </div>
-
-<pre class="prettyprint">
-&lt;form&gt;
- &lt;input type=&quot;text&quot; placeholder=&quot;Full name&quot;&gt;
- &lt;input type=&quot;search&quot; placeholder=&quot;Search&quot;&gt;
- &lt;textarea rows=&quot;5&quot;&gt;&lt;/textarea&gt;
- &lt;a class=&quot;button button-block&quot;&gt;Choose existing&lt;/a&gt;
-&lt;/form&gt;
-</pre>
-
- </article>
-
- <!-- Form with input group -->
- <article class="component" id="formsWithInputGroup">
- <h3 class="component-title">Form with input group</h3>
-
- <div class="component-example">
- <form class="input-group">
- <input type="text" placeholder="Full name">
- <input type="email" placeholder="Email">
- <input type="text" placeholder="Username">
- </form>
- </div>
-
-<pre class="prettyprint">
-&lt;form&gt;
- &lt;div class=&quot;input-group&quot;&gt;
- &lt;input type=&quot;text&quot; placeholder=&quot;Full name&quot;&gt;
- &lt;input type=&quot;email&quot; placeholder=&quot;Email&quot;&gt;
- &lt;input type=&quot;text&quot; placeholder=&quot;Username&quot;&gt;
- &lt;/div&gt;
-&lt;/form&gt;
-</pre>
-
- </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">
- <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>
-
-<pre class="prettyprint">
-&lt;form&gt;
- &lt;div class=&quot;input-group&quot;&gt;
- &lt;div class=&quot;input-row&quot;&gt;
- &lt;label&gt;Full name&lt;/label&gt;
- &lt;input type=&quot;text&quot; placeholder=&quot;Mister Ratchet&quot;&gt;
- &lt;/div&gt;
- &lt;div class=&quot;input-row&quot;&gt;
- &lt;label&gt;Email&lt;/label&gt;
- &lt;input type=&quot;email&quot; placeholder=&quot;ratchetframework@gmail.com&quot;&gt;
- &lt;/div&gt;
- &lt;div class=&quot;input-row&quot;&gt;
- &lt;label&gt;Username&lt;/label&gt;
- &lt;input type=&quot;text&quot; placeholder=&quot;goRatchet&quot;&gt;
- &lt;/div&gt;
- &lt;/div&gt;
-&lt;/form&gt;
-</pre>
-
- </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 class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </div>
-
-<pre class="prettyprint">
-&lt;div class=&quot;toggle active&quot;&gt;
- &lt;div class=&quot;toggle-handle&quot;&gt;&lt;/div&gt;
-&lt;/div&gt;
-&lt;div class=&quot;toggle&quot;&gt;
- &lt;div class=&quot;toggle-handle&quot;&gt;&lt;/div&gt;
-&lt;/div&gt;
-</pre>
-
- <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>
-
-<pre class="prettyprint js">
-// Only needed if you want to fire a callback
-document
- .querySelector('#myToggle')
- .addEventListener('toggle', myFunction)
-</pre>
-
- </article>
-
- <!-- Popovers -->
- <article class="component" id="popovers">
- <h3 class="component-title">Popovers</h3>
-
- <div class="component-example">
- <div id="popover" class="popover">
- <header class="popover-header">
- <a class="button">
- Left
- </a>
- <h3 class="title">Popover title</h3>
- <a class="button">
- Right
- </a>
- </header>
- <ul class="list">
- <li>Item1</li>
- <li>Item2</li>
- <li>Item3</li>
- <li>Item4</li>
- </ul>
- </div>
- </div>
-
-<pre class="prettyprint">
-&lt;div id=&quot;myPopover&quot; class=&quot;popover&quot;&gt;
- &lt;header class=&quot;popover-header&quot;&gt;
- &lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;
- Left
- &lt;/a&gt;
- &lt;h3 class=&quot;title&quot;&gt;Popover title&lt;/h3&gt;
- &lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;
- Right
- &lt;/a&gt;
- &lt;/header&gt;
- &lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;Item1&lt;/li&gt;
- &lt;li&gt;Item2&lt;/li&gt;
- &lt;li&gt;Item3&lt;/li&gt;
- &lt;li&gt;Item4&lt;/li&gt;
- &lt;/ul&gt;
-&lt;/div&gt;
-</pre>
-
- <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>
-
-<pre class="prettyprint">
-&lt;header class=&quot;bar-title&quot;&gt;
- &lt;a href=&quot;#myPopover&quot;&gt;
- &lt;h1 class=&quot;title&quot;&gt;Title&lt;/h1&gt;
- &lt;/a&gt;
-&lt;/header&gt;
-</pre>
-
- </article>
-
- <!-- Modals -->
- <article class="component" id="modals">
- <h3 class="component-title">Modals</h3>
-
- <div class="component-example">
- <a href="#myModalexample" class="button">Open modal</a>
- <div id="myModalexample" class="modal">
- <header class="bar-title">
- <h1 class="title">Modal</h1>
- <a class="button" href="#myModalexample">
- Close
- </a>
- </header>
-
- <div class="content content-padded">
- <p>The contents of my modal</p>
- </div>
- </div>
- </div>
-
-
-<pre class="prettyprint">
-&lt;a href=&quot;#myModal&quot; class=&quot;button&quot;&gt;Open modal&lt;/a&gt;
-
-&lt;div id=&quot;myModal&quot; class=&quot;modal&quot;&gt;
- &lt;header class=&quot;bar-title&quot;&gt;
- &lt;h1 class=&quot;title&quot;&gt;Modal&lt;/h1&gt;
- &lt;a class=&quot;button&quot; href=&quot;#myModal&quot;&gt;
- Close
- &lt;/a&gt;
- &lt;/header&gt;
-
- &lt;div class=&quot;content content-padded&quot;&gt;
- &lt;p&gt;The contents of my modal.&lt;/p&gt;
- &lt;/div&gt;
-&lt;/div&gt;
-</pre>
-
- <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">
- <ul>
- <li>
- <img src="img/slide-1.jpg">
- <span class="slide-text">&larr; Slide me</span>
- </li>
- <li>
- <img src="img/slide-2.jpg">
- </li>
- <li>
- <img src="img/slide-3.jpg">
- </li>
- </ul>
- </div>
- </div>
-
-<pre class="prettyprint">
-&lt;div class=&quot;slider&quot;&gt;
- &lt;ul&gt;
- &lt;li&gt;
- &lt;img src=&quot;img/slide-1.jpg&quot;&gt;
- &lt;span class=&quot;slide-text&quot;&gt;&larr; Slide me&lt;/span&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;img src=&quot;img/slide-2.jpg&quot;&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;img src=&quot;img/slide-3.jpg&quot;&gt;
- &lt;/li&gt;
- &lt;/ul&gt;
-&lt;/div&gt;
-</pre>
-
- <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>
-
-<pre class="prettyprint js">
-// Only needed if you want to fire a callback
-document
- .querySelector('#mySlider')
- .addEventListener('slide', myFunction)
-</pre>
-
- </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>
-
-<pre class="prettyprint js">
-&lt;!-- A one.html link --&gt;
-&lt;a href=&quot;two.html&quot;&gt;Two&lt;a&gt;
-</pre>
-
- <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-title 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>
-
-<pre class="prettyprint js">
-&lt;!-- An one.html link that animates to two.html --&gt;
-&lt;a href=&quot;two.html&quot; data-transition=&quot;fade&quot;&gt;Two&lt;a&gt;
-</pre>
-
- <p class="component-description">A working version of push:</p>
-
- <div class="component-example component-example-fullbleed">
- <header class="bar-title">
- <h1 class="title">Push</h1>
- </header>
- <div class="content">
- <ul class="list">
- <li>
- <a href="two.html" data-transition="slide-in">
- Load new page with push
- </a>
- <span class="chevron"></span>
- </li>
- </ul>
- </div>
- </div>
-
-<pre class="prettyprint push-example">
-&lt;header class=&quot;bar-title&quot;&gt;
- &lt;h1 class=&quot;title&quot;&gt;Push&lt;/h1&gt;
-&lt;/header&gt;
-&lt;div class=&quot;content&quot;&gt;
- &lt;ul class=&quot;list&quot;&gt;
- &lt;li&gt;
- &lt;a href=&quot;two.html&quot; data-transition=&quot;slide-in&quot;&gt;
- Go to page 2
- &lt;/a&gt;
- &lt;span class=&quot;chevron&quot;&gt;&lt;/span&gt;
- &lt;/li&gt;
- &lt;/ul&gt;
-&lt;/div&gt;
-</pre>
-
- <p class="component-description">Have a link you don't want to intercepted by push? Try this:</p>
-
-<pre class="prettyprint js">
-&lt;!-- Use data-ignore=&quot;push&quot; to prevent the push.js interception --&gt;
-&lt;a href=&quot;http://www.google.com&quot; data-ignore=&quot;push&quot;&gt;Google&lt;a&gt;
-</pre>
-
- <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>
-
-<pre class="prettyprint js">
-// Only needed if you want to fire a callback
-window.addEventListener('push', myFunction);
-</pre>
-
- </article>
-
- </div>
- </section>
-
- <section class="content-section section-informational" id="pageSetup">
- <div class="docs-inner-wrapper">
- <div class="section-header">
- <h2 class="section-title">Page setup</h2>
- <p class="section-description">3 simple rules for structuring your Ratchet pages</p>
- </div>
-
- <ol class="steps">
- <li class="step">
- <h3 class="step-title">1. Fixed bars come first</h3>
- <p class="step-description">All fixed bars (<code>.bar-title, .bar-tab, .bar-header-secondary, .bar-footer</code>) should always be the first thing in the <code>&lt;body&gt;</code> of the page. This is really important!</p>
- </li>
- <li class="step">
- <h3 class="step-title">2. Everything else goes in <code>.content</code></h3>
- <p class="step-description">Anything that's not a <code>.bar-</code> should be put in a div with the class "<code>content</code>". Put this div after the bars in the <code>&lt;body&gt;</code> tag. The <code>.content</code> div is what actually scrolls in a Ratchet prototype.</p>
- </li>
- <li class="step">
- <h3 class="step-title">3. Don't forget your meta tags</h3>
- <p class="step-description">They're included in the template.html page included in the download, but make sure they stay in the page. They are important to Ratchet working just right.</p>
- </li>
- </ol>
- </div>
- </section>
- </div>
-
- <div class="docs-outer-wrapper docs-footer">
- <section class="content-section">
- <div class="docs-inner-wrapper">
- <h3>License &amp; credit</h3>
- <p>Ratchet is under the the MIT license, meaning you're basically free to use the framework as you please. Ratchet was lovingly crafted by <a data-ignore="push" href="http://www.twitter.com/dhg">Dave Gamache</a>, <a data-ignore="push" href="http://www.twitter.com/connors">Connor Sears</a>, and <a data-ignore="push" href="http://www.twitter.com/fat">Jacob Thornton</a>. </p>
- <ul class="avatars">
- <li>
- <a data-ignore="push" class="avatar" href="http://www.twitter.com/dhg">
- <img src="https://secure.gravatar.com/avatar/14267e25aa6c7ef4f396afc483d6f238?s=420&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" alt="">
- </a>
- <a data-ignore="push" href="https://twitter.com/dhg" class="twitter-follow-button" data-show-count="false">Follow @dhg</a>
- </li>
- <li>
- <a data-ignore="push" class="avatar" href="http://www.twitter.com/connors">
- <img src="https://secure.gravatar.com/avatar/53d633ae4622de17906338910085275a?s=420&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" alt="">
- </a>
- <a data-ignore="push" href="https://twitter.com/connors" class="twitter-follow-button" data-show-count="false">Follow @connors</a>
- </li>
- <li>
- <a data-ignore="push" class="avatar" href="http://www.twitter.com/fat">
- <img src="https://secure.gravatar.com/avatar/a98244cbdacaf1c0b55499466002f7a8?s=420&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" alt="">
- </a>
- <a data-ignore="push" href="https://twitter.com/fat" class="twitter-follow-button" data-show-count="false">Follow @fat</a>
- </li>
- </ul>
- </div>
- </section>
- </div>
- </body>
-</html>
+---
+layout: home
+title: Ratchet
+---
+
+<div class="docs-header">
+ {% include masthead.html %}
+ <div class="docs-header-content">
+ <p class="docs-subtitle">Build mobile apps with simple HTML&#8218; CSS&#8218; and JS components.</p>
+ <a data-ignore="push" href="https://github.com/twbs/ratchet/archive/v2.0.0.zip" class="btn btn-primary" onClick="_gaq.push(['_trackEvent', 'Downloads', 'V2.0']);">Download Ratchet</a>
+ </div>
+
+ {% include ad.html %}
+ {% include footer.html %}
+</div>
diff --git a/docs/js/docs.js b/docs/js/docs.js
deleted file mode 100755
index cdb872c..0000000
--- a/docs/js/docs.js
+++ /dev/null
@@ -1,128 +0,0 @@
-$(function() {
-
- var doc;
- var iphone;
- var windowWidth;
- var windowHeight;
- var pageHeight;
- var contentPadding;
- var footerHeight;
- var noticeBanner;
- var componentsList;
- var navComponentLinks;
- var contentSection;
- var currentActive;
- var topCache;
- var eventListeners;
-
- prettyPrint();
-
- var initialize = function () {
- currentActive = 0;
- topCache = [];
- win = $(window);
- doc = $(document);
- bod = $(document.body)
- iphone = iphone || $('.iphone');
- noticeBanner = $('.notice-banner');
- navComponentLinks = $('.nav-components-link');
- componentsList = $('.components-list');
- componentLinks = $('.component-example a');
- contentSection = $('.component');
- topCache = contentSection.map(function () { return $(this).offset().top })
- windowHeight = $(window).height() / 3
- pageHeight = $(document).height();
- contentPadding = parseInt($('.docs-content').css('padding-bottom'));
- footerHeight = $('.docs-footer').outerHeight(false);
-
- iphone.initialLeft = iphone.offset().left;
- iphone.initialTop = iphone.initialTop || iphone.offset().top;
- iphone.dockingOffset = ($(window).height() + 20 + $('.docs-masthead').height() - iphone.height())/2;
- checkDesktopContent();
- calculateScroll();
-
- if (!eventListeners) addEventListeners();
- }
-
- var addEventListeners = function () {
- eventListeners = true;
-
- noticeBanner.on('click', function () {
- $(this).hide();
- });
-
- iphone.on('click', function (e) {
- e.preventDefault();
- });
-
- navComponentLinks.click(function(e) {
- e.stopPropagation();
- e.preventDefault();
- componentsList.toggleClass('active');
- })
-
- doc.on('click', function () {
- componentsList.removeClass('active');
- })
-
- win.on('scroll', calculateScroll);
- }
-
- var checkDesktopContent = function () {
- windowWidth = $(window).width();
- if (windowWidth <= 768) {
- var content = $('.content')
- if (content.length > 1) {
- $(content[0]).remove()
- }
- }
- }
-
- var calculateScroll = function() {
- // if small screen don't worry about this
- if (windowWidth <= 768) return
-
- // Save scrollTop value
- var contentSectionItem;
- var currentTop = win.scrollTop();
-
- // If page is scrolled to bottom near footers
- if(pageHeight - currentTop < footerHeight + contentPadding + 1400) {
- iphone[0].className = "iphone iphone-bottom";
- iphone[0].setAttribute('style','')
- } else if((iphone.initialTop - currentTop) <= iphone.dockingOffset) {
- iphone[0].className = "iphone iphone-fixed";
- iphone.css({top: iphone.dockingOffset})
- } else {
- iphone[0].className = "iphone"
- iphone[0].setAttribute('style','')
- }
-
- // Injection of components into phone
- for (var l = contentSection.length; l--;) {
- if ((topCache[l] - currentTop) < windowHeight) {
- if (currentActive == l) return;
- currentActive = l;
- bod.find('.component.active').removeClass('active');
- contentSectionItem = $(contentSection[l])
- contentSectionItem.addClass('active')
- if(contentSectionItem.attr('id')) {
- iphone.attr("id", contentSectionItem.attr('id') + "InPhone");
- } else {
- iphone.attr("id", "")
- }
- if (!contentSectionItem.hasClass('informational')) {
- updateContent(contentSectionItem.find('.prettyprint').not('.js').text())
- }
- break
- }
- }
-
- function updateContent(content) {
- $('#iwindow').html(content);
- }
- }
-
- $(window).on('load resize', initialize);
- $(window).on('load', function () { new FingerBlast('.iphone-content'); });
-}); \ No newline at end of file
diff --git a/docs/js/prettify.js b/docs/js/prettify.js
deleted file mode 100644
index eef5ad7..0000000
--- a/docs/js/prettify.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
-(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
-[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c<
-f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&&
-(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r=
-{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length,
-t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
-"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
-l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
-q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
-q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
-"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
-a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
-for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",
-m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m=
-a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue=
-j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
-"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
-H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
-J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
-I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),
-["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",
-/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),
-["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
-hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b=
-!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,
-250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",
-PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();
diff --git a/docs/one.html b/docs/one.html
index 4e1b1f9..ff13d4e 100644
--- a/docs/one.html
+++ b/docs/one.html
@@ -9,45 +9,24 @@
<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">
- <link rel="stylesheet" href="../lib/css/base.css">
- <link rel="stylesheet" href="../lib/css/bars.css">
- <link rel="stylesheet" href="../lib/css/lists.css">
- <link rel="stylesheet" href="../lib/css/forms.css">
- <link rel="stylesheet" href="../lib/css/buttons.css">
- <link rel="stylesheet" href="../lib/css/chevrons.css">
- <link rel="stylesheet" href="../lib/css/counts.css">
- <link rel="stylesheet" href="../lib/css/segmented-controllers.css">
- <link rel="stylesheet" href="../lib/css/popovers.css">
- <link rel="stylesheet" href="../lib/css/sliders.css">
- <link rel="stylesheet" href="../lib/css/toggles.css">
- <link rel="stylesheet" href="../lib/css/push.css">
- <link rel="stylesheet" href="css/docs.css">
- <link rel="stylesheet" href="css/prettify.css">
+ <link rel="stylesheet" href="../dist/ratchet.css">
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
- <script type="text/javascript" src="//use.typekit.net/gwz1sef.js"></script>
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
- <style>
- .iphone [class*="bar"] {
- position: absolute;
- }
- </style>
-
<link rel="apple-touch-icon-precomposed" sizes="512x512" href="img/apple-touch-icon-512x512.png">
</head>
<body ontouchstart="">
- <header class="bar-title">
+ <header class="bar bar-nav">
<h1 class="title">Push</h1>
</header>
-
<div class="content">
- <ul class="list">
- <li>
- <a href="two.html" data-transition="slide-in" data-selector=".iphone-content">
- Load new page with push
- </a>
- <span class="chevron"></span>
- </li>
- </ul>
+ <div class="card">
+ <ul class="table-view">
+ <li class="table-view-cell">
+ <a class="push-right" href="two.html" data-transition="slide-in" data-selector=".device-content">
+ Load new page with push
+ </a>
+ </li>
+ </ul>
+ </div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/docs/two.html b/docs/two.html
index 9e22303..746828d 100644
--- a/docs/two.html
+++ b/docs/two.html
@@ -6,46 +6,26 @@
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <link rel="shortcut icon" href="favicon.ico"/>
+ <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">
- <link rel="stylesheet" href="../lib/css/base.css">
- <link rel="stylesheet" href="../lib/css/bars.css">
- <link rel="stylesheet" href="../lib/css/lists.css">
- <link rel="stylesheet" href="../lib/css/forms.css">
- <link rel="stylesheet" href="../lib/css/buttons.css">
- <link rel="stylesheet" href="../lib/css/chevrons.css">
- <link rel="stylesheet" href="../lib/css/counts.css">
- <link rel="stylesheet" href="../lib/css/segmented-controllers.css">
- <link rel="stylesheet" href="../lib/css/popovers.css">
- <link rel="stylesheet" href="../lib/css/sliders.css">
- <link rel="stylesheet" href="../lib/css/toggles.css">
- <link rel="stylesheet" href="../lib/css/push.css">
- <link rel="stylesheet" href="css/docs.css">
- <link rel="stylesheet" href="css/prettify.css">
+ <link rel="stylesheet" href="../dist/ratchet.css">
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
- <script type="text/javascript" src="//use.typekit.net/gwz1sef.js"></script>
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
- <style>
- .iphone [class*="bar"] {
- position: absolute;
- }
- </style>
-
<link rel="apple-touch-icon-precomposed" sizes="512x512" href="img/apple-touch-icon-512x512.png">
</head>
<body ontouchstart="">
- <header class="bar-title">
- <a class="button-prev" href="one.html" data-transition="slide-out">
- Back
- </a>
- <h1 class="title">Push</h1>
+ <header class="bar bar-nav">
+ <a class="icon icon-left-nav pull-left" href="one.html" data-transition="slide-out"></a>
+ <h1 class="title">Page two</h1>
</header>
-
<div class="content">
- <ul class="list">
- <li>Tap the back button or try your browser back button.</li>
- </ul>
+ <div class="card">
+ <ul class="table-view">
+ <li class="table-view-cell">
+ <a href="one.html" data-transition="slide-out">Tap or click here to go back. You can also try your browser's back button.</a>
+ </li>
+ </ul>
+ </div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/lib/js/modals.js b/js/modals.js
index 480c3af..f4fbb68 100644
--- a/lib/js/modals.js
+++ b/js/modals.js
@@ -1,13 +1,12 @@
/* ----------------------------------
- * MODAL v1.0.0
+ * MODAL v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
!function () {
var findModals = function (target) {
- var i;
- var modals = document.querySelectorAll('a');
+ var i, modals = document.querySelectorAll('a');
for (; target && target !== document; target = target.parentNode) {
for (i = modals.length; i--;) { if (modals[i] === target) return target; }
}
@@ -21,8 +20,8 @@
window.addEventListener('touchend', function (event) {
var modal = getModal(event);
if (modal) {
- modal.classList.toggle('active');
+ if (modal && modal.classList.contains('modal')) modal.classList.toggle('active');
event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
}
});
-}(); \ No newline at end of file
+}();
diff --git a/lib/js/popovers.js b/js/popovers.js
index a208c64..ff9b306 100644
--- a/lib/js/popovers.js
+++ b/js/popovers.js
@@ -1,5 +1,5 @@
/* ----------------------------------
- * POPOVER v1.0.0
+ * POPOVER v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
@@ -16,7 +16,6 @@
};
var onPopoverHidden = function () {
- popover.parentNode.removeChild(backdrop);
popover.style.display = 'none';
popover.removeEventListener('webkitTransitionEnd', onPopoverHidden);
}
@@ -29,6 +28,7 @@
element.addEventListener('touchend', function () {
popover.addEventListener('webkitTransitionEnd', onPopoverHidden);
popover.classList.remove('visible');
+ popover.parentNode.removeChild(backdrop);
});
return element;
@@ -37,9 +37,16 @@
var getPopover = function (e) {
var anchor = findPopovers(e.target);
- if (!anchor || !anchor.hash) return;
+ if (!anchor || !anchor.hash || (anchor.hash.indexOf("/") > 0)) return;
- popover = document.querySelector(anchor.hash);
+ try {
+ popover = document.querySelector(anchor.hash);
+ }
+ catch (error) {
+ popover = null;
+ }
+
+ if (popover == null) return;
if (!popover || !popover.classList.contains('popover')) return;
diff --git a/lib/js/push.js b/js/push.js
index c2657a6..413301d 100644
--- a/lib/js/push.js
+++ b/js/push.js
@@ -1,5 +1,5 @@
/* ----------------------------------
- * PUSH v1.0.0
+ * PUSH v2.0.0
* Licensed under The MIT License
* inspired by chris's jquery.pjax.js
* http://opensource.org/licenses/MIT
@@ -25,7 +25,7 @@
var bars = {
bartab : '.bar-tab',
- bartitle : '.bar-title',
+ barnav : '.bar-nav',
barfooter : '.bar-footer',
barheadersecondary : '.bar-header-secondary'
};
@@ -286,9 +286,9 @@
}
if (/slide/.test(transition)) {
- swap.classList.add(enter ? 'right' : 'left');
- swap.classList.add('slide');
- container.classList.add('slide');
+ swap.classList.add('sliding-in', enter ? 'right' : 'left');
+ swap.classList.add('sliding');
+ container.classList.add('sliding');
}
container.parentNode.insertBefore(swap, container);
@@ -325,7 +325,7 @@
function slideEnd() {
swap.removeEventListener('webkitTransitionEnd', slideEnd);
- swap.classList.remove('slide');
+ swap.classList.remove('sliding', 'sliding-in');
swap.classList.remove(swapDirection);
container.parentNode.removeChild(container);
complete && complete();
@@ -397,7 +397,7 @@
}
data.title = head.querySelector('title');
- data.title = data.title && data.title.innerText && data.title.innerText.trim();
+ data.title = data.title && data.title.innerText.trim();
if (options.transition) data = extendWithDom(data, '.content', body);
else data.contents = body;
@@ -414,5 +414,6 @@
window.addEventListener('touchend', touchend);
window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); });
window.addEventListener('popstate', popstate);
+ window.PUSH = PUSH;
}();
diff --git a/lib/js/segmented-controllers.js b/js/segmented-controllers.js
index 8e54923..359b5d6 100644
--- a/lib/js/segmented-controllers.js
+++ b/js/segmented-controllers.js
@@ -1,14 +1,14 @@
/* ----------------------------------
- * TABS v1.0.0
+ * Segmented controls v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
!function () {
var getTarget = function (target) {
- var i, popovers = document.querySelectorAll('.segmented-controller li a');
+ var i, segmentedControls = document.querySelectorAll('.segmented-control .control-item');
for (; target && target !== document; target = target.parentNode) {
- for (i = popovers.length; i--;) { if (popovers[i] === target) return target; }
+ for (i = segmentedControls.length; i--;) { if (segmentedControls[i] === target) return target; }
}
};
@@ -16,23 +16,21 @@
var activeTab;
var activeBodies;
var targetBody;
- var targetTab;
+ var targetTab = getTarget(e.target);
var className = 'active';
var classSelector = '.' + className;
- var targetAnchor = getTarget(e.target);
- if (!targetAnchor) return;
+ if (!targetTab) return;
- targetTab = targetAnchor.parentNode;
activeTab = targetTab.parentNode.querySelector(classSelector);
if (activeTab) activeTab.classList.remove(className);
targetTab.classList.add(className);
- if (!targetAnchor.hash) return;
+ if (!targetTab.hash) return;
- targetBody = document.querySelector(targetAnchor.hash);
+ targetBody = document.querySelector(targetTab.hash);
if (!targetBody) return;
diff --git a/lib/js/sliders.js b/js/sliders.js
index b2212ec..76708ad 100644
--- a/lib/js/sliders.js
+++ b/js/sliders.js
@@ -1,5 +1,5 @@
/* ----------------------------------
- * SLIDER v1.0.1
+ * SLIDER v2.0.0
* Licensed under The MIT License
* Adapted from Brad Birdsall's swipe
* http://opensource.org/licenses/MIT
@@ -22,7 +22,7 @@
var scrollableArea;
var getSlider = function (target) {
- var i, sliders = document.querySelectorAll('.slider > ul');
+ var i, sliders = document.querySelectorAll('.slider > .slide-group');
for (; target && target !== document; target = target.parentNode) {
for (i = sliders.length; i--;) { if (sliders[i] === target) return target; }
}
@@ -46,7 +46,7 @@
if (!slider) return;
- var firstItem = slider.querySelector('li');
+ var firstItem = slider.querySelector('.slide');
scrollableArea = firstItem.offsetWidth * slider.children.length;
isScrolling = undefined;
@@ -56,8 +56,8 @@
startTime = +new Date;
pageX = e.touches[0].pageX;
pageY = e.touches[0].pageY;
- deltaX = 0;
- deltaY = 0;
+ deltaX = 0;
+ deltaY = 0;
setSlideNumber(0);
diff --git a/lib/js/toggles.js b/js/toggles.js
index 5054de8..496d9a6 100644
--- a/lib/js/toggles.js
+++ b/js/toggles.js
@@ -1,5 +1,5 @@
/* ----------------------------------
- * TOGGLE v1.0.0
+ * TOGGLE v2.0.0
* Licensed under The MIT License
* http://opensource.org/licenses/MIT
* ---------------------------------- */
@@ -26,15 +26,12 @@
if (!toggle) return;
var handle = toggle.querySelector('.toggle-handle');
- var toggleWidth = toggle.offsetWidth;
- var handleWidth = handle.offsetWidth;
- var offset = toggle.classList.contains('active') ? toggleWidth - handleWidth : 0;
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
+ var offset = toggle.classList.contains('active') ? (toggleWidth - handleWidth) : 0;
start = { pageX : e.touches[0].pageX - offset, pageY : e.touches[0].pageY };
touchMove = false;
-
- // todo: probably should be moved to the css
- toggle.style['-webkit-transition-duration'] = 0;
});
window.addEventListener('touchmove', function (e) {
@@ -46,8 +43,8 @@
var handle = toggle.querySelector('.toggle-handle');
var current = e.touches[0];
- var toggleWidth = toggle.offsetWidth;
- var handleWidth = handle.offsetWidth;
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
var offset = toggleWidth - handleWidth;
touchMove = true;
@@ -69,9 +66,9 @@
if (!toggle) return;
var handle = toggle.querySelector('.toggle-handle');
- var toggleWidth = toggle.offsetWidth;
- var handleWidth = handle.offsetWidth;
- var offset = toggleWidth - handleWidth;
+ var toggleWidth = toggle.clientWidth;
+ var handleWidth = handle.clientWidth;
+ var offset = (toggleWidth - handleWidth);
var slideOn = (!touchMove && !toggle.classList.contains('active')) || (touchMove && (distanceX > (toggleWidth/2 - handleWidth/2)));
if (slideOn) handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)';
diff --git a/lib/css/bars.css b/lib/css/bars.css
deleted file mode 100644
index 283a16f..0000000
--- a/lib/css/bars.css
+++ /dev/null
@@ -1,332 +0,0 @@
-/* General bar styles
--------------------------------------------------- */
-
-[class*="bar-"] {
- position: fixed;
- right: 0;
- left: 0;
- z-index: 10;
- height: 44px;
- padding: 5px;
- box-sizing: border-box;
-}
-
-/* Modifier class to dock any bar below .bar-title */
-.bar-header-secondary {
- top: 45px;
-}
-
-/* Modifier class to dock any bar to bottom of viewport */
-.bar-footer {
- bottom: 0;
-}
-
-/* Generic bar for wrapping buttons, segmented controllers, etc. */
-.bar-standard {
- background-color: #f2f2f2;
- background-image: -webkit-linear-gradient(top, #f2f2f2 0, #e5e5e5 100%);
- background-image: linear-gradient(to bottom, #f2f2f2 0, #e5e5e5 100%);
- border-bottom: 1px solid #aaa;
- box-shadow: inset 0 1px 1px -1px #fff;
-}
-
-/* Flip border position to top for footer bars */
-.bar-footer.bar-standard,
-.bar-footer-secondary.bar-standard {
- border-top: 1px solid #aaa;
- border-bottom-width: 0;
-}
-
-/* Title bar
--------------------------------------------------- */
-
-/* Bar docked to top of viewport for showing page title and actions */
-.bar-title {
- top: 0;
- display: -webkit-box;
- display: box;
- background-color: #1eb0e9;
- background-image: -webkit-linear-gradient(top, #1eb0e9 0, #109adc 100%);
- background-image: linear-gradient(to bottom, #1eb0e9 0, #109adc 100%);
- border-bottom: 1px solid #0e5895;
- box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .8);
- -webkit-box-orient: horizontal;
- box-orient: horizontal;
-}
-
-/* Centered text in the .bar-title */
-.bar-title .title {
- position: absolute;
- top: 0;
- left: 0;
- display: block;
- width: 100%;
- font-size: 20px;
- font-weight: bold;
- line-height: 44px;
- color: #fff;
- text-align: center;
- text-shadow: 0 -1px rgba(0, 0, 0, .5);
- white-space: nowrap;
-}
-
-.bar-title > a:not([class*="button"]) {
- display: block;
- width: 100%;
- height: 100%;
-}
-
-/* Retain specified title color */
-.bar-title .title a {
- color: inherit;
-}
-
-/* Tab bar
--------------------------------------------------- */
-
-/* Bar docked to bottom used for primary app navigation */
-.bar-tab {
- bottom: 0;
- height: 50px;
- padding: 0;
- background-color: #393939;
- background-image: -webkit-linear-gradient(top, #393939 0, #2b2b2b 100%);
- background-image: linear-gradient(to bottom, #393939 0, #2b2b2b 100%);
- border-top: 1px solid #000;
- border-bottom-width: 0;
- box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .6);
-}
-
-/* Wrapper for individual tab */
-.tab-inner {
- display: -webkit-box;
- display: box;
- height: 100%;
- list-style: none;
- -webkit-box-orient: horizontal;
- box-orient: horizontal;
-}
-
-/* Navigational tab */
-.tab-item {
- height: 100%;
- padding-top: 9px;
- text-align: center;
- box-sizing: border-box;
- -webkit-box-flex: 1;
- box-flex: 1;
-}
-
-/* Active state for tab */
-.tab-item.active {
- box-shadow: inset 0 0 20px rgba(0, 0, 0, .5);
-}
-
-/* Icon for tab */
-.tab-icon {
- display: block;
- height: 18px;
- margin: 0 auto;
-}
-
-/* Label for tab */
-.tab-label {
- margin-top: 1px;
- font-size: 10px;
- font-weight: bold;
- color: #fff;
- text-shadow: 0 1px rgba(0, 0, 0, .3);
-}
-
-/* Buttons in title bars
--------------------------------------------------- */
-
-/* Generic style for all buttons in .bar-title */
-.bar-title [class*="button"] {
- position: relative;
- z-index: 10; /* Places buttons over full width title */
- font-size: 12px;
- line-height: 23px;
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
- background-color: #1eb0e9;
- background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%);
- background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%);
- border: 1px solid #0e5895;
- box-shadow: 0 1px rgba(255, 255, 255, .25);
- -webkit-box-flex: 0;
- box-flex: 0;
-}
-
-
-/* Hacky way to right align buttons outside of flex-box system
- Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */
-.bar-title .title + [class*="button"]:last-child,
-.bar-title .button + [class*="button"]:last-child,
-.bar-title [class*="button"].pull-right {
- position: absolute;
- top: 5px;
- right: 5px;
-}
-
-/* Override standard button active states */
-.bar-title .button:active {
- color: #fff;
- background-color: #0876b1;
-}
-
-/* Directional buttons in title bars (thanks to @GregorAdams for solution - http://cssnerd.com/2011/11/30/the-best-pure-css3-ios-style-arrow-back-button/)
--------------------------------------------------- */
-
-/* Add relative positioning so :before content is positioned properly */
-.bar-title .button-prev,
-.bar-title .button-next {
- position: relative;
-}
-
-/* Prev/next button base styles */
-.bar-title .button-prev {
- margin-left: 7px; /* Push over to make room for :before content */
- border-left: 0;
- border-bottom-left-radius: 10px 15px;
- border-top-left-radius: 10px 15px;
-}
-.bar-title .button-next {
- margin-right: 7px; /* Push over to make room for :before content */
- border-right: 0;
- border-top-right-radius: 10px 15px;
- border-bottom-right-radius: 10px 15px;
-}
-
-/* Pointed part of directional button */
-.bar-title .button-prev:before,
-.bar-title .button-next:before {
- position: absolute;
- top: 2px;
- width: 27px;
- height: 27px;
- border-radius: 30px 100px 2px 40px / 2px 40px 30px 100px;
- content: '';
- box-shadow: inset 1px 0 #0e5895, inset 0 1px #0e5895;
- -webkit-mask-image: -webkit-gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent));
- mask-image: gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent));
-}
-.bar-title .button-prev:before {
- left: -5px;
- background-image: -webkit-gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9));
- background-image: gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9));
- border-left: 1.5px solid rgba(255, 255, 255, .25);
- -webkit-transform: rotate(-45deg) skew(-10deg, -10deg);
- transform: rotate(-45deg) skew(-10deg, -10deg);
-}
-.bar-title .button-next:before {
- right: -5px;
- background-image: -webkit-gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6));
- background-image: gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6));
- border-top: 1.5px solid rgba(255, 255, 255, .25);
- -webkit-transform: rotate(135deg) skew(-10deg, -10deg);
- transform: rotate(135deg) skew(-10deg, -10deg);
-}
-
-/* Active states for the directional buttons */
-.bar-title .button-prev:active,
-.bar-title .button-next:active,
-.bar-title .button-prev:active:before,
-.bar-title .button-next:active:before {
- color: #fff;
- background-color: #0876b1;
- background-image: none;
-}
-.bar-title .button-prev:active:before,
-.bar-title .button-next:active:before {
- content: '';
-}
-.bar-title .button-prev:active:before {
- box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2);
-}
-.bar-title .button-next:active:before {
- box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .2);
-}
-
-/* Block buttons in any bar
--------------------------------------------------- */
-
-/* Add proper padding and replace buttons normal dropshadow with a shine from bar */
-[class*="bar"] .button-block {
- padding: 7px 0;
- margin-bottom: 0;
- box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px rgba(255, 255, 255, .8);
-}
-
-/* Override standard padding changes for .button-blocks */
-[class*="bar"] .button-block:active {
- padding: 7px 0;
-}
-
-/* Segmented controller in any bar
--------------------------------------------------- */
-
-/* Remove standard segmented bottom margin */
-[class*="bar-"] .segmented-controller {
- margin-bottom: 0;
-}
-
-/* Add margins between segmented controllers and buttons */
-[class*="bar-"] .segmented-controller + [class*="button"],
-[class*="bar-"] [class*="button"] + .segmented-controller {
- margin-left: 5px;
-}
-
-/* Segmented controller in a title bar
--------------------------------------------------- */
-
-.bar-title .segmented-controller {
- line-height: 18px;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
- background-color: #1eb0e9;
- background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%);
- background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%);
- border: 1px solid #0e5895;
- border-radius: 3px;
- box-shadow: 0 1px rgba(255, 255, 255, .25);
- -webkit-box-flex: 1;
- box-flex: 1;
-}
-
-/* Set color for tab border and highlight */
-.bar-title .segmented-controller li {
- border-left: 1px solid #0e5895;
- box-shadow: inset 1px 0 rgba(255, 255, 255, .25);
-}
-
-/* Remove inset shadow from first tab or one to the right of the active tab */
-.bar-title .segmented-controller .active + li,
-.bar-title .segmented-controller li:first-child {
- box-shadow: none;
-}
-
-/* Remove left-hand border from first tab */
-.bar-title .segmented-controller li:first-child {
- border-left-width: 0;
-}
-
-/* Depressed state (active) */
-.bar-title .segmented-controller li.active {
- background-color: #0082c4;
- box-shadow: inset 0 1px 6px rgba(0, 0, 0, .3);
-}
-
-/* Set color of links to white */
-.bar-title .segmented-controller li > a {
- color: #fff;
-}
-
-
-/* Search forms in standard bar
--------------------------------------------------- */
-
-/* Position/size search bar within the bar */
-.bar-standard input[type=search] {
- height: 32px;
- margin: 0;
-} \ No newline at end of file
diff --git a/lib/css/base.css b/lib/css/base.css
deleted file mode 100644
index 7d2f817..0000000
--- a/lib/css/base.css
+++ /dev/null
@@ -1,153 +0,0 @@
-/* Hard reset
--------------------------------------------------- */
-
-html,
-body,
-div,
-span,
-iframe,
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-p,
-blockquote,
-pre,
-a,
-abbr,
-acronym,
-address,
-big,
-cite,
-code,
-del,
-dfn,
-em,
-img,
-ins,
-kbd,
-q,
-s,
-samp,
-small,
-strike,
-strong,
-sub,
-sup,
-tt,
-var,
-b,
-u,
-i,
-center,
-dl,
-dt,
-dd,
-ol,
-ul,
-li,
-fieldset,
-form,
-label,
-legend,
-table,
-caption,
-tbody,
-tfoot,
-thead,
-tr,
-th,
-td,
-article,
-aside,
-canvas,
-details,
-embed,
-figure,
-figcaption,
-footer,
-header,
-hgroup,
-menu,
-nav,
-output,
-section,
-summary,
-time,
-audio,
-video {
- padding: 0;
- margin: 0;
- border: 0;
-}
-
-/* Prevents iOS text size adjust after orientation change, without disabling (Thanks to @necolas) */
-html {
- -webkit-text-size-adjust: 100%;
- -ms-text-size-adjust: 100%;
-}
-
-/* Base styles
--------------------------------------------------- */
-
-body {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- font: 14px/1.25 "Helvetica Neue", sans-serif;
- color: #222;
- background-color: #fff;
-}
-
-/* Universal link styling */
-a {
- color: #0882f0;
- text-decoration: none;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Removes the dark touch outlines on links */
-}
-
-/* Wrapper to be used around all content not in .bar-title and .bar-tab */
-.content {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- overflow: auto;
- background-color: #fff;
- -webkit-transition-property: top, bottom;
- transition-property: top, bottom;
- -webkit-transition-duration: .2s, .2s;
- transition-duration: .2s, .2s;
- -webkit-transition-timing-function: linear, linear;
- transition-timing-function: linear, linear;
- -webkit-overflow-scrolling: touch;
-}
-
-/* Hack to force all relatively and absolutely positioned elements still render while scrolling
- Note: This is a bug for "-webkit-overflow-scrolling: touch" */
-.content > * {
- -webkit-transform: translateZ(0px);
- transform: translateZ(0px);
-}
-
-/* Utility wrapper to pad in components like forms, block buttons and segmented-controllers so they're not full-bleed */
-.content-padded {
- padding: 10px;
-}
-
-/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
- Note: For these to work, content must come after both bars in the markup */
-.bar-title ~ .content {
- top: 44px;
-}
-.bar-tab ~ .content {
- bottom: 51px;
-}
-.bar-header-secondary ~ .content {
- top: 88px;
-} \ No newline at end of file
diff --git a/lib/css/buttons.css b/lib/css/buttons.css
deleted file mode 100644
index b6e0c6e..0000000
--- a/lib/css/buttons.css
+++ /dev/null
@@ -1,126 +0,0 @@
-/* General button styles
--------------------------------------------------- */
-
-[class*="button"] {
- position: relative;
- display: inline-block;
- padding: 4px 12px;
- margin: 0;
- font-weight: bold;
- line-height: 18px;
- color: #333;
- text-align: center;
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
- vertical-align: top;
- cursor: pointer;
- background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%);
- border: 1px solid rgba(0, 0, 0, .3);
- border-radius: 3px;
- box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05);
-}
-
-/* Active */
-[class*="button"]:active {
- padding-top: 5px;
- padding-bottom: 3px;
- color: #333;
- background-color: #ccc;
- background-image: none;
- box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2);
-}
-
-/* Button modifiers
--------------------------------------------------- */
-
-/* Overriding styles for buttons with modifiers */
-.button-main,
-.button-positive,
-.button-negative {
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
-}
-
-/* Main button */
-.button-main {
- background-color: #1eafe7;
- background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%);
- background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%);
- border: 1px solid #117aaa;
-}
-
-/* Positive button */
-.button-positive {
- background-color: #34ba15;
- background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%);
- background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%);
- border: 1px solid #278f0f;
-}
-
-/* Negative button */
-.button-negative {
- background-color: #e71e1e;
- background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%);
- background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%);
- border: 1px solid #b51a1a;
-}
-
-/* Active state for buttons with modifiers */
-.button-main:active,
-.button-positive:active,
-.button-negative:active {
- color: #fff;
-}
-.button-main:active {
- background-color: #0876b1;
-}
-.button-positive:active {
- background-color: #298f11;
-}
-.button-negative:active {
- background-color: #b21a1a;
-}
-
-/* Block level buttons (full width buttons) */
-.button-block {
- display: block;
- padding: 11px 0 13px;
- margin-bottom: 10px;
- font-size: 16px;
-}
-
-/* Active state for block level buttons */
-.button-block:active {
- padding: 12px 0;
-}
-
-/* Make button elements go full width when given .button-block class */
-button.button-block {
- width: 100%;
-}
-
-/* Counts in buttons
--------------------------------------------------- */
-
-/* Generic styles for all counts within buttons */
-[class*="button"] [class*="count"] {
- padding-top: 2px;
- padding-bottom: 2px;
- margin-right: -4px;
- margin-left: 4px;
- text-shadow: none;
- background-color: rgba(0, 0, 0, .2);
- box-shadow: inset 0 1px 1px -1px #000000, 0 1px 1px -1px #fff;
-}
-
-/* Position counts within block level buttons
- Note: These are absolutely positioned so that text of button isn't "pushed" by count and always
- stays at true center of button */
-.button-block [class*="count"] {
- position: absolute;
- right: 0;
- padding-top: 4px;
- padding-bottom: 4px;
- margin-right: 10px;
-} \ No newline at end of file
diff --git a/lib/css/chevrons.css b/lib/css/chevrons.css
deleted file mode 100644
index e0a6120..0000000
--- a/lib/css/chevrons.css
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Chevrons
--------------------------------------------------- */
-
-.chevron {
- display: block;
- height: 20px;
-}
-
-/* Base styles for both 1/2's of the chevron */
-.chevron:before,
-.chevron:after {
- position: relative;
- display: block;
- width: 12px;
- height: 4px;
- background-color: #999;
- content: '';
-}
-
-/* Position and rotate respective 1/2's of the chevron */
-.chevron:before {
- top: 5px;
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
-}
-.chevron:after {
- top: 7px;
- -webkit-transform: rotate(-45deg);
- transform: rotate(-45deg);
-} \ No newline at end of file
diff --git a/lib/css/counts.css b/lib/css/counts.css
deleted file mode 100644
index 50da0cd..0000000
--- a/lib/css/counts.css
+++ /dev/null
@@ -1,45 +0,0 @@
-/* General count styles
--------------------------------------------------- */
-
-[class*="count"] {
- display: inline-block;
- padding: 4px 9px;
- font-size: 12px;
- font-weight: bold;
- line-height: 13px;
- color: #fff;
- background-color: rgba(0, 0, 0, .3);
- border-radius: 100px;
-}
-
-/* Count modifiers
--------------------------------------------------- */
-
-/* Overriding styles for counts with modifiers */
-.count-main,
-.count-positive,
-.count-negative {
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
-}
-
-/* Main count */
-.count-main {
- background-color: #1eafe7;
- background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%);
- background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%);
-}
-
-/* Positive count */
-.count-positive {
- background-color: #34ba15;
- background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%);
- background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%);
-}
-
-/* Negative count */
-.count-negative {
- background-color: #e71e1e;
- background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%);
- background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%);
-} \ No newline at end of file
diff --git a/lib/css/forms.css b/lib/css/forms.css
deleted file mode 100644
index 4b58260..0000000
--- a/lib/css/forms.css
+++ /dev/null
@@ -1,121 +0,0 @@
-/* Forms
--------------------------------------------------- */
-
-/* Force form elements to inherit font styles */
-input,
-textarea,
-button,
-select {
- font-family: inherit;
- font-size: inherit;
-}
-
-/* Stretch inputs/textareas to full width and add height to maintain a consistent baseline */
-select,
-textarea,
-input[type="text"],
-input[type=search],
-input[type="password"],
-input[type="datetime"],
-input[type="datetime-local"],
-input[type="date"],
-input[type="month"],
-input[type="time"],
-input[type="week"],
-input[type="number"],
-input[type="email"],
-input[type="url"],
-input[type="tel"],
-input[type="color"],
-.input-group {
- width: 100%;
- height: 40px;
- padding: 10px;
- margin-bottom: 10px;
- background-color: #fff;
- border: 1px solid rgba(0, 0, 0, .2);
- border-radius: 3px;
- box-shadow: 0 1px 1px rgba(255, 255, 255, .2), inset 0 1px 1px rgba(0, 0, 0, .1);
- -webkit-appearance: none;
- box-sizing: border-box;
- outline: none;
-}
-
-/* Fully round search input */
-input[type=search] {
- height: 34px;
- font-size: 14px;
- border-radius: 30px;
-}
-
-/* Allow text area's height to grow larger than a normal input */
-textarea {
- height: auto;
-}
-
-/* Style select button to look like part of the Ratchet's style */
-select {
- height: auto;
- font-size: 14px;
- background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0%, #d4d4d4 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0%, #d4d4d4 100%);
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
-}
-
-
-/* Input groups (cluster multiple inputs together into a single group)
--------------------------------------------------- */
-
-/* Reset from initial form setup styles */
-.input-group {
- width: auto;
- height: auto;
- padding: 0;
-}
-
-/* Remove spacing, borders, shadows and rounding since it all belongs on the .input-group not the input */
-.input-group input {
- margin-bottom: 0;
- background-color: transparent;
- border: 0;
- border-bottom: 1px solid rgba(0, 0, 0, .2);
- border-radius: 0;
- box-shadow: none;
-}
-
-/* Remove bottom border on last input to avoid double bottom border */
-.input-group input:last-child {
- border-bottom-width: 0;
-}
-
-/* Input groups with labels
--------------------------------------------------- */
-
-/* To use labels with input groups, wrap a label and an input in an .input-row */
-.input-row {
- overflow: hidden;
- border-bottom: 1px solid rgba(0, 0, 0, .2);
-}
-
-/* Remove bottom border on last input-row to avoid double bottom border */
-.input-row:last-child {
- border-bottom-width: 0;
-}
-
-/* Labels get floated left with a set percentage width */
-.input-row label {
- float: left;
- width: 25%;
- padding: 11px 10px 9px 13px; /* Optimizing the baseline for mobile. */
- font-weight: bold;
-}
-
-/* Actual inputs float to right of labels and also have a set percentage */
-.input-row label + input {
- float: right;
- width: 65%;
- padding-left: 0;
- margin-bottom: 0;
- border-bottom: 0;
-} \ No newline at end of file
diff --git a/lib/css/lists.css b/lib/css/lists.css
deleted file mode 100644
index 27e74f9..0000000
--- a/lib/css/lists.css
+++ /dev/null
@@ -1,115 +0,0 @@
-/* Lists
--------------------------------------------------- */
-
-/* Remove usual bullet styles from list */
-.list {
- margin-bottom: 10px;
- list-style: none;
- background-color: #fff;
-}
-
-/* Pad each list item and add dividers */
-.list li {
- position: relative;
- padding: 11px 60px 11px 10px; /* Given extra right padding to accomodate counts, chevrons or buttons */
- border-bottom: 1px solid rgba(0, 0, 0, .1);
-}
-
-/* Give top border to first list items */
-.list li:first-child {
- border-top: 1px solid rgba(0, 0, 0, .1);
-}
-
-/* If a list of links, make sure the child <a> takes up full list item tap area (want to avoid selecting child buttons though) */
-.list li > a:not([class*="button"]) {
- position: relative;
- display: block;
- padding: inherit;
- margin: -11px -60px -11px -10px;
- color: inherit;
-}
-
-/* Inset list
--------------------------------------------------- */
-
-.list.inset {
- width: auto;
- margin-right: 10px;
- margin-left: 10px;
- border: 1px solid rgba(0, 0, 0, .1);
- border-radius: 6px;
- box-sizing: border-box;
-}
-
-/* Remove border from first/last standard list items to avoid double border at top/bottom of lists */
-.list.inset li:first-child {
- border-top-width: 0;
-}
-.list.inset li:last-child {
- border-bottom-width: 0;
-}
-
-
-/* List dividers
--------------------------------------------------- */
-
-.list .list-divider {
- position: relative;
- top: -1px;
- padding-top: 6px;
- padding-bottom: 6px;
- font-size: 12px;
- font-weight: bold;
- line-height: 18px;
- text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
- background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0, #eee 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0, #eee 100%);
- border-top: 1px solid rgba(0, 0, 0, .1);
- border-bottom: 1px solid rgba(0, 0, 0, .1);
- box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4);
-}
-
-/* Rounding first divider on inset lists and remove border on the top */
-.list.inset .list-divider:first-child {
- top: 0;
- border-top-width: 0;
- border-radius: 6px 6px 0 0;
-}
-
-/* Rounding last divider on inset lists */
-.list.inset .list-divider:last-child {
- border-radius: 0 0 6px 6px;
-}
-
-/* Right-aligned subcontent in lists (chevrons, buttons, counts and toggles)
--------------------------------------------------- */
-.list .chevron,
-.list [class*="button"],
-.list [class*="count"],
-.list .toggle {
- position: absolute;
- top: 50%;
- right: 10px;
-}
-
- /* Position chevrons/counts vertically centered on the right in list items */
-.list .chevron,
-.list [class*="count"] {
- margin-top: -10px; /* Half height of chevron */
-}
-
-/* Push count over if there's a sibling chevron */
-.list .chevron + [class*="count"] {
- right: 30px;
-}
-
-/* Position buttons vertically centered on the right in list items */
-.list [class*="button"] {
- left: auto;
- margin-top: -14px; /* Half height of button */
-}
-
-.list .toggle {
- margin-top: -15px; /* Half height of toggle */
-} \ No newline at end of file
diff --git a/lib/css/modals.css b/lib/css/modals.css
deleted file mode 100644
index 1a7c1a2..0000000
--- a/lib/css/modals.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Modals
--------------------------------------------------- */
-.modal {
- position: fixed;
- top: 0;
- opacity: 0;
- z-index: 11;
- width: 100%;
- min-height: 100%;
- overflow: hidden;
- background-color: #fff;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0);
- -webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s;
- transition: transform .25s ease-in-out, opacity 1ms .25s;
-}
-
-/* Modal - When active
--------------------------------------------------- */
-.modal.active {
- opacity: 1;
- height: 100%;
- -webkit-transition: -webkit-transform .25s ease-in-out;
- transition: transform .25 ease-in-out;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
-} \ No newline at end of file
diff --git a/lib/css/popovers.css b/lib/css/popovers.css
deleted file mode 100644
index b9d1755..0000000
--- a/lib/css/popovers.css
+++ /dev/null
@@ -1,153 +0,0 @@
-/* Popovers (to be used with popovers.js)
--------------------------------------------------- */
-
-.popover {
- position: fixed;
- top: 55px;
- left: 50%;
- z-index: 20;
- display: none;
- width: 280px;
- padding: 5px;
- margin-left: -146px;
- background-color: #555;
- background-image: -webkit-linear-gradient(top, #555 5%, #555 6%, #111 30%);
- background-image: linear-gradient(to bottom, #555 5%, #555 6%,#111 30%);
- border: 1px solid #111;
- border-radius: 6px;
- opacity: 0;
- box-shadow: inset 0 1px 1px -1px #fff, 0 3px 10px rgba(0, 0, 0, .3);
- -webkit-transform: translate3d(0, -15px, 0);
- transform: translate3d(0, -15px, 0);
- -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
- transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
-}
-
-/* Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution) */
-.popover:before,
-.popover:after {
- position: absolute;
- left: 50%;
- width: 0;
- height: 0;
- content: '';
-}
-.popover:before {
- top: -20px;
- margin-left: -21px;
- border-right: 21px solid transparent;
- border-bottom: 21px solid #111;
- border-left: 21px solid transparent;
-}
-.popover:after {
- top: -19px;
- margin-left: -20px;
- border-right: 20px solid transparent;
- border-bottom: 20px solid #555;
- border-left: 20px solid transparent;
-}
-
-/* Wrapper for a title and buttons */
-.popover-header {
- display: -webkit-box;
- display: box;
- height: 34px;
- margin-bottom: 5px;
-}
-
-/* Centered title for popover */
-.popover-header .title {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- margin: 15px 0;
- font-size: 16px;
- font-weight: bold;
- line-height: 12px;
- color: #fff;
- text-align: center;
- text-shadow: 0 -1px rgba(0, 0, 0, .5);
-}
-
-/* Generic style for all buttons in .popover-header */
-.popover-header [class*="button"] {
- z-index: 25;
- font-size: 12px;
- line-height: 22px;
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
- background-color: #454545;
- background-image: -webkit-linear-gradient(top, #454545 0, #353535 100%);
- background-image: linear-gradient(to bottom, #454545 0, #353535 100%);
- border: 1px solid #111;
- -webkit-box-flex: 0;
- box-flex: 0;
-}
-
-/* Hacky way to right align buttons outside of flex-box system
- Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */
-.popover-header .title + [class*="button"]:last-child,
-.popover-header .button + [class*="button"]:last-child,
-.popover-header [class*="button"].pull-right {
- position: absolute;
- top: 5px;
- right: 5px;
-}
-
-/* Active state for popover header buttons */
-.popover-header .button:active {
- color: #fff;
- background-color: #0876b1;
-}
-
-/* Popover animation
--------------------------------------------------- */
-
-.popover.visible {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
-}
-
-/* Backdrop (used as invisible touch escape)
--------------------------------------------------- */
-
-.backdrop {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 10;
-}
-
-/* Block level buttons in popovers
--------------------------------------------------- */
-
-/* Positioning and giving darker border to look sharp against dark popover */
-.popover .button-block {
- margin-bottom: 5px;
- border: 1px solid #111;
-}
-
-/* Remove extra margin on bottom of last button */
-.popover .button-block:last-child {
- margin-bottom: 0;
-}
-
-/* Lists in popovers
--------------------------------------------------- */
-
-.popover .list {
- width: auto;
- max-height: 250px;
- margin-right: 0;
- margin-bottom: 0;
- margin-left: 0;
- overflow: auto;
- background-color: #fff;
- border: 1px solid #000;
- border-radius: 3px;
- -webkit-overflow-scrolling: touch;
-} \ No newline at end of file
diff --git a/lib/css/push.css b/lib/css/push.css
deleted file mode 100644
index d3770a8..0000000
--- a/lib/css/push.css
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Push styles (to be used with push.js)
--------------------------------------------------- */
-
-/* Fade animation */
-.content.fade {
- left: 0;
- opacity: 0;
- -webkit-transition: opacity .2s ease-in-out;
- transition: opacity .2s ease-in-out;
-}
-.content.fade.in {
- opacity: 1;
-}
-
-/* Slide animation */
-.content.slide {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- -webkit-transition: -webkit-transform .25s ease-in-out;
- transition: transform .25s ease-in-out;
-}
-.content.slide.left {
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0);
-}
-.content.slide.right {
- -webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0);
-} \ No newline at end of file
diff --git a/lib/css/segmented-controllers.css b/lib/css/segmented-controllers.css
deleted file mode 100644
index 7db0f53..0000000
--- a/lib/css/segmented-controllers.css
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Segmented controllers
--------------------------------------------------- */
-
-.segmented-controller {
- display: -webkit-box;
- display: box;
- margin-bottom: 10px;
- overflow: hidden;
- font-size: 12px;
- font-weight: bold;
- text-shadow: 0 1px rgba(255, 255, 255, .5);
- list-style: none;
- background-color: #f8f8f8;
- background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%);
- background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%);
- border: 1px solid #aaa;
- border-radius: 3px;
- box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(255, 255, 255, .8);
- -webkit-box-orient: horizontal;
- box-orient: horizontal;
-}
-
-/* Section within controller */
-.segmented-controller li {
- overflow: hidden;
- text-align: center;
- white-space: nowrap;
- border-left: 1px solid #aaa;
- box-shadow: inset 1px 0 rgba(255, 255, 255, .5);
- -webkit-box-flex: 1;
- box-flex: 1;
-}
-
-/* Link that fills each section */
-.segmented-controller li > a {
- display: block;
- padding: 8px 16px;
- overflow: hidden;
- line-height: 15px;
- color: #333;
- text-overflow: ellipsis;
-}
-
-/* Remove border-left and shadow from first section */
-.segmented-controller li:first-child {
- border-left-width: 0;
- box-shadow: none;
-}
-
-/* Active segment of controller */
-.segmented-controller li.active {
- background-color: #ccc;
- box-shadow: inset 0 1px 5px rgba(0, 0, 0, .3);
-}
-
-.segmented-controller-item {
- display: none;
-}
-
-.segmented-controller-item.active {
- display: block;
-} \ No newline at end of file
diff --git a/lib/css/sliders.css b/lib/css/sliders.css
deleted file mode 100644
index eaca8f0..0000000
--- a/lib/css/sliders.css
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Slider styles (to be used with sliders.js)
--------------------------------------------------- */
-
-/* Width/height of slider */
-.slider,
-.slider > li {
- width: 100%;
- height: 200px;
-}
-
-/* Outer wrapper for slider */
-.slider {
- overflow: hidden;
- background-color: #000;
-}
-
-/* Inner wrapper for slider (width of all slides together) */
-.slider > ul {
- position: relative;
- font-size: 0; /* Remove spaces from inline-block children */
- white-space: nowrap;
- -webkit-transition: all 0 linear;
- transition: all 0 linear;
-}
-
-/* Individual slide */
-.slider > ul > li {
- display: inline-block;
- vertical-align: top; /* Ensure that li always aligns to top */
- width: 100%;
- height: 100%;
-}
-
-/* Required reset of font-size to same as standard body */
-.slider > ul > li > * {
- font-size: 14px;
-} \ No newline at end of file
diff --git a/lib/css/toggles.css b/lib/css/toggles.css
deleted file mode 100644
index c33de7f..0000000
--- a/lib/css/toggles.css
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Toggle styles (to be used with toggles.js)
--------------------------------------------------- */
-
-.toggle {
- position: relative;
- width: 75px;
- height: 28px;
- background-color: #eee;
- border: 1px solid #bbb;
- border-radius: 20px;
- box-shadow: inset 0 0 4px rgba(0, 0, 0, .1);
-}
-
-/* Text indicating "on" or "off". Default is "off" */
-.toggle:before {
- position: absolute;
- right: 13px;
- font-weight: bold;
- line-height: 28px;
- color: #777;
- text-shadow: 0 1px #fff;
- text-transform: uppercase;
- content: "Off";
-}
-
-/* Sliding handle */
-.toggle-handle {
- position: absolute;
- top: -1px;
- left: -1px;
- z-index: 2;
- width: 28px;
- height: 28px;
- background-color: #fff;
- background-image: -webkit-linear-gradient(top, #fff 0, #f2f2f2 100%);
- background-image: linear-gradient(to bottom, #fff 0, #f2f2f2 100%);
- border: 1px solid rgba(0, 0, 0, .2);
- border-radius: 100px;
- -webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out;
- transition: transform 0.1s ease-in-out, border 0.1s ease-in-out;
-}
-
-/* Active state for toggle */
-.toggle.active {
- background-color: #19a8e4;
- background-image: -webkit-linear-gradient(top, #088cd4 0, #19a8e4 100%);
- background-image: linear-gradient(to bottom, #088cd4 0, #19a8e4 100%);
- border: 1px solid #096c9d;
- box-shadow: inset 0 0 15px rgba(255, 255, 255, .25);
-}
-
-/* Active state for toggle handle */
-.toggle.active .toggle-handle {
- border-color: #0a76ad;
- -webkit-transform: translate3d(48px,0,0);
- transform: translate3d(48px,0,0);
-}
-
-/* Change "off" to "on" for active state */
-.toggle.active:before {
- right: auto;
- left: 15px;
- color: #fff;
- text-shadow: 0 -1px rgba(0, 0, 0, 0.25);
- content: "On";
-} \ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..de2faa3
--- /dev/null
+++ b/package.json
@@ -0,0 +1,39 @@
+{
+ "name": "ratchet",
+ "description": "Build native apps with simple HTML, CSS, and JS components.",
+ "version": "2.0.0",
+ "keywords": [
+ "ratchet",
+ "css",
+ "ios",
+ "native",
+ "prototype"
+ ],
+ "homepage": "http://goratchet.com",
+ "author": "Connor Sears",
+ "style": "./dist/ratchet.css",
+ "sass": "./lib/sass/ratchet.scss",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/twbs/ratchet.git"
+ },
+ "bugs": {
+ "url": "https://github.com/twbs/ratchet/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://www.opensource.org/licenses/MIT"
+ }
+ ],
+ "devDependencies": {
+ "grunt": "~0.4.2",
+ "grunt-contrib-concat": "~0.3.0",
+ "grunt-contrib-copy": "~0.5.0",
+ "grunt-contrib-jshint": "~0.8.0",
+ "grunt-contrib-nodeunit": "~0.3.0",
+ "grunt-contrib-sass": "~0.7.1",
+ "grunt-contrib-watch": "~0.5.3",
+ "grunt-jekyll": "~0.4.1"
+ }
+}
diff --git a/sass/badges.scss b/sass/badges.scss
new file mode 100644
index 0000000..c76d7ab
--- /dev/null
+++ b/sass/badges.scss
@@ -0,0 +1,53 @@
+//
+// Badges
+// --------------------------------------------------
+
+.badge {
+ display: inline-block;
+ padding: 2px 9px 3px;
+ font-size: 12px;
+ line-height: 1;
+ color: #333;
+ background-color: rgba(0,0,0,.15);
+ border-radius: 100px;
+
+ // Inverted badges have no background.
+ &.badge-inverted {
+ padding: 0 5px 0 0;
+ background-color: transparent;
+ }
+}
+
+
+// Badge modifiers
+// --------------------------------------------------
+
+// Main badge
+.badge-primary {
+ color: #fff;
+ background-color: $primary-color;
+
+ &.badge-inverted {
+ color: $primary-color;
+ }
+}
+
+// Positive badge
+.badge-positive {
+ color: #fff;
+ background-color: $positive-color;
+
+ &.badge-inverted {
+ color: $positive-color;
+ }
+}
+
+// Negative badge
+.badge-negative {
+ color: #fff;
+ background-color: $negative-color;
+
+ &.badge-inverted {
+ color: $negative-color;
+ }
+}
diff --git a/sass/bars.scss b/sass/bars.scss
new file mode 100644
index 0000000..e431292
--- /dev/null
+++ b/sass/bars.scss
@@ -0,0 +1,236 @@
+//
+// Bars
+// --------------------------------------------------
+
+.bar {
+ position: fixed;
+ right: 0;
+ left: 0;
+ z-index: 10;
+ height: $bar-base-height;
+ padding-right: $bar-side-spacing;
+ padding-left: $bar-side-spacing;
+ border-bottom: $border-default;
+ background-color: $chrome-color;
+}
+
+// Modifier class to dock any bar below .bar-nav
+.bar-header-secondary {
+ top: $bar-base-height;
+}
+
+// Modifier class for footer bars
+.bar-footer {
+ bottom: 0;
+}
+
+// Modifier class to dock any bar above a standard bar
+.bar-footer-secondary {
+ bottom: $bar-base-height;
+}
+
+// Modifier class to dock any bar above a .bar-tab
+.bar-footer-secondary-tab {
+ bottom: $bar-tab-height;
+}
+
+// Give the footers the correct border
+.bar-footer,
+.bar-footer-secondary,
+.bar-footer-secondary-tab {
+ border-bottom: 0;
+ border-top: $border-default;
+}
+
+
+// Nav bar
+// --------------------------------------------------
+
+// Bar docked to top of viewport for showing page title and actions
+.bar-nav {
+ top: 0;
+}
+
+// Centered text in the .bar-nav
+//
+// We position the absolutely to make sure the title is always centered
+.title {
+ position: absolute;
+ display: block;
+ width: 100%;
+ padding: 0;
+ margin: 0 (-$bar-side-spacing);
+ font-size: $font-size-default;
+ font-weight: $font-weight;
+ line-height: $bar-base-height;
+ color: #000;
+ text-align: center;
+ white-space: nowrap;
+}
+// Retain specified title color
+.title a {
+ color: inherit;
+}
+
+
+// Tab bar
+// --------------------------------------------------
+
+// Bar docked to bottom and used for primary app navigation
+.bar-tab {
+ display: table;
+ bottom: 0;
+ width: 100%;
+ height: $bar-tab-height;
+ padding: 0;
+ border-top: $border-default;
+ border-bottom: 0;
+ table-layout: fixed;
+
+ // Navigational tab (Nested to be more specific for the icons in tab-items)
+ .tab-item {
+ display: table-cell;
+ width: 1%;
+ height: $bar-tab-height;
+ vertical-align: middle;
+ color: #929292;
+ text-align: center;
+
+ // Active states for the tab bar
+ &.active,
+ &:active {
+ color: $primary-color;
+ }
+
+ // Tab icon
+ .icon {
+ top: 3px;
+ width: 24px;
+ height: 24px;
+ padding-top: 0;
+ padding-bottom: 0;
+
+ // Make the text smaller if it's used with an icon
+ ~ .tab-label {
+ display: block;
+ font-size: 11px;
+ }
+ }
+ }
+}
+
+// Bars with buttons
+// --------------------------------------------------
+
+.bar .btn {
+ position: relative;
+ top: 7px;
+ z-index: 20; // Position the buttons on top of .title
+ padding: 6px 12px 7px;
+ margin-top: 0;
+ font-weight: $font-weight-light;
+
+ // Give buttons that are floated left and right side margin
+ &.pull-right {
+ margin-left: $bar-side-spacing;
+ }
+ &.pull-left {
+ margin-right: $bar-side-spacing;
+ }
+}
+
+// Bars with link buttons (Line the text up with content)
+.bar .btn-link {
+ top: 0;
+ padding: 0;
+ font-size: 16px;
+ color: $primary-color;
+ line-height: $bar-base-height;
+ border: 0;
+
+ &:active,
+ &.active {
+ color: darken($primary-color, 10%);
+ }
+}
+
+// Bars with block buttons
+//
+// Add proper padding
+.bar .btn-block {
+ top: 6px;
+ padding: 7px 0;
+ margin-bottom: 0;
+ font-size: 16px; // Scale down font size to fit in bar.
+}
+
+// Nav buttons (Only applicable within bars)
+//
+// Buttons inside bars that sit closer against the viewport.
+.bar .btn-nav {
+ &.pull-left {
+ margin-left: -5px;
+
+ .icon-left-nav {
+ margin-right: -3px;
+ }
+ }
+ &.pull-right {
+ margin-right: -5px;
+
+ .icon-right-nav {
+ margin-left: -3px;
+ }
+ }
+}
+
+
+// Bars with Ratchicons
+// --------------------------------------------------
+
+.bar {
+ .icon {
+ position: relative;
+ z-index: 20; // Position the buttons on top of .title
+ padding-top: 10px;
+ padding-bottom: 10px;
+ font-size: 24px;
+ }
+
+ // Vertical center the larger icons in btns.
+ .btn .icon {
+ top: 3px;
+ padding: 0;
+ }
+
+ // Handle carets in the titles
+ .title .icon {
+ padding: 0;
+
+ // Specific postioning of the caret icon within a title. Used with popover.js.
+ &.icon-caret {
+ top: 4px;
+ margin-left: -5px;
+ }
+ }
+}
+
+
+// Bars for search forms
+// --------------------------------------------------
+
+// Position/size search bar within the bar
+.bar input[type="search"] {
+ height: 29px;
+ margin: 6px 0;
+}
+
+
+// Bars with segmented controls
+// --------------------------------------------------
+
+// Position the control correctly inside a bar.
+.bar .segmented-control {
+ top: 7px;
+ margin: 0 auto;
+}
diff --git a/sass/base.scss b/sass/base.scss
new file mode 100644
index 0000000..e030913
--- /dev/null
+++ b/sass/base.scss
@@ -0,0 +1,92 @@
+//
+// Base styles
+// --------------------------------------------------
+
+// Use box sizing on all the things!
+* {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+// We fix position the body and scroll `.content`.
+body {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ font-family: $font-family-default;
+ font-size: $font-size-default;
+ line-height: $line-height-default;
+ color: #000;
+ background-color: #fff;
+}
+
+// Universal link styling
+a {
+ color: $primary-color;
+ text-decoration: none;
+ -webkit-tap-highlight-color: rgba(0,0,0,0); // Removes the dark touch outlines on links in webkit browsers.
+
+ &:active {
+ color: darken($primary-color, 10%);
+ }
+}
+
+// Wrapper to be used around all content not in .bar-title and .bar-tab
+.content {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ overflow: auto;
+ background-color: #fff;
+ -webkit-overflow-scrolling: touch;
+}
+
+// Hack to force all relatively and absolutely positioned elements still render while scrolling
+// Note: This is a bug for "-webkit-overflow-scrolling: touch"
+.content > * {
+ @include transform(translateZ(0));
+}
+
+// Pad top/bottom of content so it doesn't hide behind bars.
+// Note: For these to work, content must come after both bars in the markup
+.bar-nav ~ .content {
+ padding-top: $bar-base-height;
+}
+.bar-header-secondary ~ .content {
+ padding-top: ($bar-base-height*2);
+}
+
+// Footer bar padding
+.bar-footer ~ .content {
+ padding-bottom: $bar-base-height;
+}
+.bar-footer-secondary ~ .content {
+ padding-bottom: ($bar-base-height*2);
+}
+
+// Tab bar padding
+.bar-tab ~ .content {
+ padding-bottom: $bar-tab-height;
+}
+.bar-footer-secondary-tab ~ .content {
+ padding-bottom: ($bar-tab-height+$bar-base-height);
+}
+
+// Utility classes
+.content-padded {
+ margin: $bar-side-spacing;
+}
+.pull-left {
+ float: left;
+}
+.pull-right {
+ float: right;
+}
+.clearfix {
+ @include clearfix();
+}
diff --git a/sass/buttons.scss b/sass/buttons.scss
new file mode 100644
index 0000000..00c2373
--- /dev/null
+++ b/sass/buttons.scss
@@ -0,0 +1,172 @@
+//
+// Buttons
+// --------------------------------------------------
+
+.btn {
+ position: relative;
+ display: inline-block;
+ padding: 6px 8px 7px;
+ margin-bottom: 0; // For input.btn
+ font-size: $button-font-size;
+ font-weight: $font-weight-light;
+ line-height: 1;
+ color: #333;
+ text-align: center;
+ vertical-align: top;
+ cursor: pointer;
+ background-color: $chrome-color;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+
+ // Active & filled button styles
+ &:active,
+ &.active {
+ color: inherit; // Overriding the gloabl style for all anchors.
+ background-color: #ccc;
+ }
+
+ // Disabled styles & filled button active styles
+ &:disabled,
+ &.disabled {
+ opacity: .6;
+ }
+}
+
+
+// Other button types
+// --------------------------------------------------
+
+// Primary button (Default color is blue)
+.btn-primary {
+ color: #fff;
+ border: 1px solid $primary-color;
+ background-color: $primary-color;
+
+ &:active,
+ &.active {
+ color: #fff;
+ border: 1px solid darken($primary-color, 10%);
+ background-color: darken($primary-color, 10%);
+ }
+}
+
+// Positive button (Default color is green)
+.btn-positive {
+ color: #fff;
+ border: 1px solid $positive-color;
+ background-color: $positive-color;
+
+ &:active,
+ &.active {
+ color: #fff;
+ border: 1px solid darken($positive-color, 10%);
+ background-color: darken($positive-color, 10%);
+ }
+}
+
+// Negative button (Default color is red)
+.btn-negative {
+ color: #fff;
+ border: 1px solid $negative-color;
+ background-color: $negative-color;
+
+ &:active,
+ &.active {
+ color: #fff;
+ border: 1px solid darken($negative-color, 10%);
+ background-color: darken($negative-color, 10%);
+ }
+}
+
+// Outlined buttons
+.btn-outlined {
+ background-color: transparent;
+
+ &.btn-primary {
+ color: $primary-color;
+ }
+ &.btn-positive {
+ color: $positive-color;
+ }
+ &.btn-negative {
+ color: $negative-color;
+ }
+ // Active states
+ &.btn-primary:active,
+ &.btn-positive:active,
+ &.btn-negative:active {
+ color: #fff;
+ }
+}
+
+// Link button (Buttons that look like links)
+.btn-link {
+ padding-top: 6px;
+ padding-bottom: 6px;
+ color: $primary-color;
+ background-color: transparent;
+ border: 0;
+
+ &:active,
+ &.active {
+ color: darken($primary-color, 10%);
+ background-color: transparent;
+ }
+}
+
+// Block level buttons (full width buttons)
+.btn-block {
+ display: block;
+ padding: 15px 0;
+ margin-bottom: 10px;
+ font-size: 18px;
+}
+
+
+// Button overrides
+// --------------------------------------------------
+
+input[type="submit"],
+input[type="reset"],
+input[type="button"] {
+ width: 100%;
+}
+
+
+// Buttons with badges
+// --------------------------------------------------
+
+// Generic styles for all badges within default buttons
+.btn .badge {
+ font-size: 12px;
+ margin: -2px -4px -2px 4px;
+ background-color: rgba(0,0,0,.15);
+}
+
+// Buttons with inverted badges
+.btn .badge-inverted,
+.btn:active .badge-inverted {
+ background-color: transparent;
+}
+.btn-primary:active .badge-inverted,
+.btn-positive:active .badge-inverted,
+.btn-negative:active .badge-inverted {
+ color: #fff;
+}
+
+// Position badges within block level buttons
+// Note: These are absolutely positioned so that text of button isn't "pushed" by badge and always
+// stays at the center of button
+.btn-block .badge {
+ position: absolute;
+ right: 0;
+ margin-right: 10px;
+}
+
+
+// Buttons with Ratchicons
+// --------------------------------------------------
+
+.btn .icon {
+ font-size: inherit;
+}
diff --git a/sass/cards.scss b/sass/cards.scss
new file mode 100644
index 0000000..28e9afa
--- /dev/null
+++ b/sass/cards.scss
@@ -0,0 +1,37 @@
+//
+// Cards
+// --------------------------------------------------
+
+.card {
+ overflow: hidden;
+ margin: $bar-side-spacing;
+ background-color: $card-bg;
+ border: $border-default;
+ border-radius: $border-radius;
+}
+
+
+// Cards with table-views
+// --------------------------------------------------
+.card .table-view {
+ margin-bottom: 0;
+ border-top: 0;
+ border-bottom: 0;
+
+ // Rounding first divider on carded lists and remove border on the top
+ .table-view-divider:first-child {
+ top: 0;
+ border-top-right-radius: $border-radius;
+ border-top-left-radius: $border-radius;
+ }
+
+ // Rounding last divider on carded table views
+ .table-view-divider:last-child {
+ border-bottom-right-radius: $border-radius;
+ border-bottom-left-radius: $border-radius;
+ }
+}
+// Remove the bottom border from last table cell
+.card .table-view-cell:last-child {
+ border-bottom: 0;
+}
diff --git a/sass/docs.scss b/sass/docs.scss
new file mode 100644
index 0000000..4132276
--- /dev/null
+++ b/sass/docs.scss
@@ -0,0 +1,1097 @@
+@import "variables.scss";
+@import "mixins.scss";
+
+// Clearfix mixin for docs
+
+//
+// Documentation
+// --------------------------------------------------
+
+html,
+body {
+ width: 100%;
+ height: 100%;
+}
+body {
+ position: relative !important; // Overrides the fixed positioning of body in Ratchet
+ font: 14px/1.5 "adelle-sans",sans-serif;
+ color: #333;
+ background-color: #fff;
+ -webkit-font-smoothing: antialiased; // Fix for webkit rendering
+ -webkit-text-size-adjust: 100%;
+}
+
+
+// Jumbotron
+// --------------------------------------------------
+.docs-header,
+.docs-sub-header {
+ position: relative;
+ background-image: linear-gradient(45deg, #0a1855 0%,#da0024 100%);
+
+ &:before {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ left: 0;
+ background-image: url(../img/pattern.png);
+ background-size: 30%;
+ background-position: center center;
+ opacity: .038;
+ // content: '';
+ }
+}
+.docs-header {
+ height: 100vh;
+ min-height: 700px;
+
+ // Ad on the homepage
+ .carbonad {
+ position: absolute !important;
+ bottom: 180px !important;
+ margin-top: 0 !important;
+ @include animation-name(fadeintext);
+ @include animation-duration(2s);
+ }
+}
+
+// Masthead
+.docs-masthead {
+ position: relative;
+ padding-top: 15px;
+ padding-bottom: 15px;
+ border-bottom: 1px solid rgba(255,255,255,.1);
+}
+.docs-title {
+ position: absolute;
+ left: 50%;
+ margin-bottom: 0;
+ font-size: 22px;
+ font-weight: 100;
+ z-index: 20;
+ @include transform(translateX(-50%));
+}
+.docs-nav {
+ .docs-nav-trigger {
+ color: #fff;
+ cursor: pointer;
+ opacity: .7;
+
+ &.active {
+ opacity: 1;
+ }
+ }
+ .docs-nav-group {
+ position: absolute;
+ top: 40px;
+ left: 0;
+ right: 0;
+ z-index: 20;
+ overflow: hidden;
+ height: 0;
+ background-color: rgba(0,0,0,.9);
+ opacity: 0;
+
+ &.active {
+ height: auto;
+ opacity: 1;
+ }
+ }
+ .docs-nav-item {
+ display: block;
+ padding: 20px 15px;
+ font-weight: 100;
+ font-size: 22px;
+ }
+}
+.docs-jump-menu,
+.docs-component-group{
+ display: none;
+}
+.docs-title a,
+.docs-nav-item {
+ color: #fff;
+ @include transition(opacity .2s linear);
+
+ &:active,
+ &:focus {
+ color: #fff;
+ opacity: .5;
+ }
+}
+.docs-header-content {
+ position: relative;
+ top: 30px;
+ text-align: center;
+ padding: 50px 10px;
+ @include animation-name(fadeintext);
+ @include animation-duration(2s);
+
+ .btn {
+ display: block;
+ padding: 15px 60px 16px;
+ font-size: 18px;
+ margin-bottom: 0;
+ color: #0a1855;
+ background-color: #fff;
+ border: 0;
+ @include transition(all .2s linear);
+
+ &:hover {
+ background-color: #fff;
+ @include box-shadow(0 0 50px rgba(255,255,255,.3));
+ }
+ &:active {
+ opacity: .5;
+ }
+ }
+}
+.docs-subtitle {
+ max-width: 750px;
+ margin: 0 auto 20px;
+ font-size: 28px;
+ font-weight: 100;
+ color: #fff;
+ line-height: 38px;
+}
+
+// Ads
+.carbonad {
+ width: 100% !important;
+ height: auto !important;
+ padding: 15px !important;
+ font-size: 13px !important;
+ line-height: 18px !important;
+ background: transparent !important;
+ border-top: 1px solid rgba(255,255,255,.1) !important;
+ border-right: 0 !important;
+ border-bottom: 0 !important;
+ border-left: 0 !important;
+}
+.carbonad-img {
+ margin: 0 !important;
+}
+.carbonad-text,
+.carbonad-tag {
+ display: block !important;
+ float: none !important;
+ width: auto !important;
+ height: auto !important;
+ margin-left: 145px !important;
+ color: rgba(255,255,255,.65) !important;
+ font-family: "adelle-sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
+}
+.carbonad-text {
+ padding-top: 0 !important;
+}
+.carbonad-tag {
+ text-align: left !important;
+}
+.carbonad-text a,
+.carbonad-tag a {
+ color: #fff !important;
+}
+.carbonad #azcarbon>img {
+ display: none;
+}
+
+// Subpage Header
+// --------------------------------------------------
+
+.docs-sub-content {
+ position: relative;
+ overflow: hidden;
+ padding-top: 55px; // Visually centers the content.
+ padding-bottom: 65px; // Visually centers the content.
+ color: #fff;
+ text-align: center;
+
+ .page-title,
+ .page-description {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-weight: 100;
+ }
+ .page-title {
+ font-size: 40px;
+ margin-bottom: 5px;
+ }
+ .page-description {
+ color: #fff;
+ font-size: 24px;
+ opacity: .7;
+ }
+}
+
+
+// Content sections
+// --------------------------------------------------
+.docs-section {
+ padding-top: 80px;
+ padding-bottom: 80px;
+}
+.section-heading,
+.section-lead {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+.section-heading {
+ font-size: 22px;
+ font-weight: 300;
+}
+.section-lead {
+ font-size: 18px;
+ color: #777;
+ font-weight: 100;
+}
+
+// Steps
+// --------------------------------------------------
+
+.docs-steps {
+ margin-top: 20px;
+ padding: 0;
+ list-style: none;
+}
+.step {
+ padding-top: 30px;
+ padding-bottom: 30px;
+}
+.step-title,
+.step-description {
+ font-weight: 300;
+}
+.step-title {
+ font-size: 18px
+}
+.step-title code {
+ font-size: 14px;
+}
+.step-description {
+ font-size: 14px;
+}
+
+// Docs modules
+.docs-module {
+ margin-top: 20px;
+ padding: 20px;
+ border: $border-default;
+ border-radius: 3px;
+
+ .btn-block {
+ margin-bottom: 0;
+ }
+}
+.docs-module-title {
+ font-weight: 300;
+}
+
+
+// Footer
+// --------------------------------------------------
+
+.docs-footer {
+ border-top: 1px solid #ddd;
+ margin-top: 50px;
+ padding-top: 30px;
+ padding-bottom: 30px;
+ text-align: center;
+
+ .social {
+ padding: 0 0 20px;
+ margin: 0;
+ list-style: none;
+
+ li {
+ height: 20px;
+ display: inline-block;
+ vertical-align: top;
+ }
+ .twitter-follow-button {
+ margin-top: 5px;
+ }
+ }
+}
+.docs-footer-content {
+ margin: 0;
+ color: #777;
+ font-size: 12px;
+}
+.docs-header .docs-footer {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ margin-top: 0;
+ border-top: 1px solid rgba(255,255,255,.1);
+
+ .docs-footer-content {
+ color: rgba(255,255,255,.5);
+
+ a {
+ font-weight: bold;
+ color: rgba(255,255,255,.8);
+ }
+ }
+}
+
+
+// Platform toggle
+// --------------------------------------------------
+
+.docs-component-toolbar {
+ padding-top: 8px;
+ padding-bottom: 8px;
+ position: fixed;
+ top: 0;
+ bottom: auto;
+ left: 0;
+ right: 0;
+ z-index: 20;
+ height: 44px;
+ background-color: #fff;
+ border-bottom: 1px solid #ddd;
+ -webkit-transition: -webkit-transform .5s;
+ -moz-transition: -moz-transform .5s;
+ transition: transform .5s;
+ @include transform(translate3d(0, -55px, 0));
+
+ &.visible {
+ @include transform(translateY(0));
+ @include transform(translate3d(0, 0, 0));
+ }
+
+ .segmented-control {
+ max-width: 300px;
+ margin: 0 auto;
+
+ .control-item {
+ cursor: pointer;
+ }
+ }
+}
+
+// Example devices
+// --------------------------------------------------
+
+.docs-examples {
+ margin-top: 50px;
+ margin-bottom: 50px;
+}
+.docs-example-group {
+ margin-top: 30px;
+
+ .example-wrap {
+ display: inline-block;
+ margin-right: 10px;
+
+ &:last-child {
+ margin-right: 10px;
+ }
+ .example {
+ display: block;
+ padding: 4px;
+ overflow: hidden;
+ padding: 3px;
+ width: 100%;
+ border: $border-default;
+ border-radius: 3px;
+ }
+ h5 {
+ margin-top: 10px;
+ font-weight: 300;
+ }
+ img {
+ display: block;
+ width: 100%;
+ }
+ }
+}
+// .example-device {
+// margin: 0 auto;
+// }
+
+// Components
+// --------------------------------------------------
+
+code {
+ padding: 2px 4px;
+ font-size: 90%;
+ background-color: #f9f9f9;
+ border-radius: 3px;
+}
+.component {
+ padding: 50px 15px;
+ margin-left: -15px;
+ margin-right: -15px;
+ border-bottom: 1px solid #ddd;
+
+ &.no-border {
+ border-bottom: 0;
+ }
+}
+.component-title {
+ margin-bottom: 10px;
+ font-size: 24px;
+ font-weight: 300;
+ line-height: 34px;
+}
+.component-description {
+ margin-bottom: 15px;
+ font-size: 16px;
+ font-weight: 300;
+}
+.component-example {
+ font-family: $font-family-default;
+ font-size: $font-size-default;
+ line-height: $line-height-default;
+}
+.component-example,
+.component-example .bar,
+.component-example .content {
+ position: relative;
+}
+.component-example .bar {
+ border-top: $border-default;
+ border-bottom: $border-default;
+
+ &.bar-header-secondary {
+ top: 0 !important;
+ border-top: 0;
+ }
+}
+.component-example > .content-padded {
+ margin: 15px;
+}
+.component-example > .card {
+ margin: 15px 0 0;
+
+ .control-content {
+ padding: 15px;
+ }
+}
+.component-example > .btn,
+.component-example > .toggle {
+ margin-bottom: 10px;
+}
+.component-example .slider {
+ height: 200px;
+}
+.component-example .slide img {
+ width: 100%;
+ height: 200px;
+}
+.component-example .slide-text {
+ position: absolute;
+ top: 45%;
+ left: 0;
+ width: 100%;
+ color: #fff;
+ text-align: center;
+ font-size: 24px;
+ font-weight: 300;
+ text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
+}
+.component-example-fullbleed,
+.highlight {
+ margin-left: -15px;
+ margin-right: -15px;
+}
+.bar-nav ~ .content {
+ padding: 0;
+}
+.highlight pre {
+ margin-top: 15px;
+ padding: 15px;
+ font-size: 13px;
+ overflow-x: auto;
+ color: #777;
+ background-color: #fafafa;
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ white-space: pre;
+ word-wrap: normal;
+}
+#ratchicons .icon,
+#ratchiconsInDevice .icon {
+ width: 50px;
+ height: 50px;
+ margin: 3px;
+ font-size: 24px;
+ line-height: 50px;
+ text-align: center;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 25px;
+}
+// Modals
+#modals .modal {
+ left: 0;
+ z-index: 50;
+}
+// Push
+#push .component-example {
+ height: 150px;
+ overflow: hidden;
+}
+
+// Buttons
+#buttonsInDevice,
+#buttonsBadgesInDevice {
+ .btn {
+ margin-top: 10px;
+ margin-right: 100px;
+ margin-left: 10px;
+ }
+}
+#blockButtonsInDevice .btn-block {
+ margin: 10px;
+}
+
+//Segmented Control
+#segmentedControlsInDevice {
+ .segmented-control {
+ margin-top: 10px;
+ margin-right: 10px;
+ margin-left: 10px;
+ }
+ .card span {
+ padding: 10px;
+ }
+}
+
+// Badges
+#badgesInDevice {
+ text-align: center;
+
+ .badge {
+ margin-top: 10px;
+ }
+}
+
+// Forms
+#formsInDevice form {
+ margin: 10px;
+
+ &.input-group {
+ margin: 0;
+ }
+}
+
+// Toggles
+#togglesInDevice .toggle {
+ margin: 10px auto;
+}
+
+// Popovers
+#popoversInDevice {
+ #iwindow:before {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 11;
+ background-color: rgba(0,0,0,.3);
+ content: '';
+ }
+}
+
+// Modals
+#modalsInDevice {
+ #iwindow > .btn {
+ margin: 10px;
+ }
+}
+
+// Misc
+// --------------------------------------------------
+
+.device {
+ font-family: $font-family-default;
+ font-size: $font-size-default;
+ line-height: $line-height-default;
+ display: none;
+}
+
+hr {
+ height: 0;
+ margin: 10px 0 30px;
+ border: solid #ddd;
+ border-width: 1px 0 0;
+ clear: both;
+}
+
+.column-group {
+ *zoom: 1;
+}
+.column-group:before,
+.column-group:after {
+ display: table;
+ line-height: 0;
+ content: "";
+}
+.column-group:after {
+ clear: both;
+}
+// You can also use a <br class="clear">
+.clear {
+ display: block;
+ width: 0;
+ height: 0;
+ overflow: hidden;
+ visibility: hidden;
+ clear: both;
+}
+
+
+// Docs media queries
+// --------------------------------------------------
+
+// Tablet to desktop
+@media screen and (min-width: 768px) {
+ .docs-header {
+ min-height: 830px;
+
+ // Ads on the homepage
+ .carbonad {
+ bottom: 180px !important;
+ left: 50% !important;
+ margin-left: -165px !important;
+ }
+ }
+ .docs-sub-header .carbonad {
+ position: absolute !important;
+ top: 50% !important;
+ right: 15px !important;
+ margin-top: 0 !important;
+ @include transform(translateY(-50%) !important);
+ }
+ .docs-sub-content {
+ margin-right: 380px;
+ text-align: left;
+ }
+ .docs-title {
+ position: static;
+ float: left;
+ @include transform(translateX(0));
+ }
+ .docs-header-content {
+ top: 32%;
+ @include transform(translateY(-50%));
+
+ .btn {
+ display: inline-block;
+ }
+ }
+ .docs-subtitle {
+ margin-bottom: 30px;
+ font-size: 41px;
+ line-height: 60px;
+ }
+
+ // Docs nav
+ .docs-nav {
+ float: right;
+
+ .docs-nav-trigger {
+ display: none;
+ }
+ .docs-nav-group {
+ position: static;
+ display: block;
+ height: auto;
+ background-color: transparent;
+ opacity: 1;
+ }
+ .docs-nav-item {
+ position: relative;
+ display: inline-block;
+ padding: 0 15px;
+ font-size: 14px;
+ }
+ }
+
+ // Component jump menu
+ .docs-jump-menu {
+ position: absolute;
+ left: 20px;
+ display: block;
+ color: #777;
+ cursor: pointer;
+ @include transition(opacity .2 linear);
+
+ &:hover {
+ color: $primary-color;
+ }
+ &:active {
+ opacity: .5;
+ }
+ .icon-list {
+ font-size: 16px;
+ margin-right: 3px;
+ }
+ .icon-caret {
+ position: relative;
+ top: 4px;
+ }
+ }
+ .docs-component-group {
+ position: absolute;
+ top: 35px;
+ left: 30px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ background-color: #fff;
+ background-clip: padding-box;
+ border: 1px solid rgba(0,0,0,.2);
+ border-radius: 3px;
+ box-shadow: 0 0 8px rgba(0,0,0,.05);
+
+ &.active {
+ display: block;
+ }
+ &:before,
+ &:after {
+ position: absolute;
+ left: 30px;
+ width: 0;
+ height: 0;
+ content: '';
+ }
+ &:before {
+ top: -11px;
+ margin-left: -11px;
+ border-right: 11px solid transparent;
+ border-bottom: 11px solid rgba(0,0,0,.3);
+ border-left: 11px solid transparent;
+ }
+ &:after {
+ top: -10px;
+ margin-left: -10px;
+ border-right: 10px solid transparent;
+ border-bottom: 10px solid #fff;
+ border-left: 10px solid transparent
+ }
+ .docs-component-item {
+ display: block;
+ padding: 10px 20px;
+ color: #777;
+
+ &:hover {
+ color: #fff;
+ background-color: $primary-color;
+ }
+ }
+ }
+
+ // Ads
+ .carbonad {
+ width: 330px !important;
+ border-right: 1px solid rgba(255,255,255,.1) !important;
+ border-bottom: 1px solid rgba(255,255,255,.1) !important;
+ border-left: 1px solid rgba(255,255,255,.1) !important;
+ border-radius: 3px !important;
+ }
+
+ // Social
+ .docs-footer {
+ .social .twitter-follow-button {
+ margin-top: 0px;
+ }
+ }
+
+ // Steps
+ .step-title {
+ font-size: 24px;
+ }
+ .step-title code {
+ font-size: 18px;
+ }
+ .step-description {
+ font-size: 18px;
+ }
+
+ // Docs modules
+ .docs-module {
+ margin-top: 35px;
+ }
+
+
+ // Content sections
+ // --------------------------------------------------
+ .section-heading {
+ margin-top: 50px;
+ margin-bottom: 10px;
+ font-size: 40px;
+ }
+ .section-lead {
+ font-size: 24px;
+ }
+
+ // Device
+ .device {
+ position: relative;
+ top: 50px;
+ display: block;
+ width: 395px;
+ height: 813px;
+ margin-left: -20px;
+ font-family: "Helvetica Neue", sans-serif;
+ background-image: url("../img/iphone5c.png");
+ background-size: 100%;
+ background-repeat: no-repeat;
+ @include transition(background-image .1s linear);
+
+ &.device-fixed {
+ position: fixed;
+ right: auto;
+ }
+ }
+ .device .device-content {
+ position: absolute;
+ top: 117px;
+ left: 37px;
+ width: 320px;
+ height: 569px;
+ overflow: hidden;
+ font-size: $font-size-default;
+ line-height: $line-height-default;
+ background-color: #fff;
+ }
+ .device .content,
+ .device .bar,
+ .device .modal {
+ position: absolute;
+ }
+ .device .content {
+ top: 44px;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ }
+ .component,
+ .component-example-fullbleed,
+ .highlight {
+ margin-left: 0;
+ margin-right: 0;
+ }
+ .component {
+ padding-left: 0;
+ padding-right: 0;
+ opacity: .3;
+ @include transition(opacity .2s ease-in-out);
+
+ &.active {
+ opacity: 1;
+ }
+ }
+ .component-example {
+ display: none;
+ }
+ .highlight pre {
+ border-left: 1px solid #ddd;
+ border-right: 1px solid #ddd;
+ border-radius: 3px;
+ }
+
+ // Component overrides
+ .popover {
+ position: absolute;
+ display: block;
+ top: 72px;
+ opacity: 1;
+ }
+ .slider .slide img {
+ width: 100%;
+ height: 570px; // Fullscreen fun times
+ display: block;
+ }
+ .slider .slide-group .slide-text {
+ position: absolute;
+ top: 45%;
+ left: 0;
+ width: 100%;
+ color: #fff;
+ text-align: center;
+ font-size: 24px;
+ font-weight: 300;
+ text-shadow: 0 0 10px rgba(0,0,0,.5);
+ }
+ // Examples
+ .docs-example-group .example-wrap {
+ display: inline-block;
+
+ .example {
+ width: 180px;
+ }
+ }
+}
+@media screen and (min-width: 1200px) {
+ // Device
+ .device {
+ margin-left: 39px;
+ }
+ .docs-sub-header .carbonad {
+ right: 30px !important;
+ }
+ // Component jump menu
+ .docs-jump-menu {
+ left: 30px;
+ }
+ // Examples
+ .docs-example-group .example-wrap .example {
+ width: 220px;
+ }
+}
+
+
+// The Chassis grid
+// --------------------------------------------------
+
+.container {
+ position: relative;
+ margin-left: auto;
+ margin-right: auto;
+ padding-left: 0;
+ padding-right: 0;
+}
+.column-group {
+ width: auto;
+}
+.column {
+ padding-left: 15px;
+ padding-right: 15px;
+ float: left;
+
+ &.pull-right {
+ float: right;
+ }
+}
+// Lines nested grids up correctly.
+.column .column-group {
+ margin-left: -15px;
+ margin-right: -15px;
+}
+.units-1 { width: 50%; }
+.units-2 { width: 100%; }
+
+// Offsets
+.offset-1 { margin-left: 50%; }
+
+
+// Tablet to desktop
+// --------------------------------------------------
+
+ @media screen and (min-width: 768px) {
+ .container {
+ padding: 0;
+ max-width: 940px;
+ }
+ .column {
+ padding-left: 20px;
+ padding-right: 20px;
+ }
+ // Lines nested grids up correctly.
+ .column .column-group {
+ margin-left: -20px;
+ margin-right: -20px;
+ }
+
+ // Override the mobile grid
+ .units-1 { width: 50%; }
+ .units-2 { width: 100%; }
+
+ // Twelve column fluid grid
+ .lg-units-1 { width: 8.333%; }
+ .lg-units-2 { width: 16.666%; }
+ .lg-units-3 { width: 25%; }
+ .lg-units-4 { width: 33.333%; }
+ .lg-units-5 { width: 41.666%; }
+ .lg-units-6 { width: 50%; }
+ .lg-units-7 { width: 58.333%; }
+ .lg-units-8 { width: 66.666%; }
+ .lg-units-9 { width: 75%; }
+ .lg-units-10 { width: 83.333%; }
+ .lg-units-11 { width: 91.666%; }
+ .lg-units-12 { width: 100%; }
+
+ // Offsets
+ .lg-offset-1 { margin-left: 8.333%; }
+ .lg-offset-2 { margin-left: 16.666%; }
+ .lg-offset-3 { margin-left: 25%; }
+ .lg-offset-4 { margin-left: 33.333%; }
+ .lg-offset-5 { margin-left: 41.666%; }
+ .lg-offset-6 { margin-left: 50%; }
+ .lg-offset-7 { margin-left: 58.333%; }
+ .lg-offset-8 { margin-left: 66.666%; }
+ .lg-offset-9 { margin-left: 75%; }
+ .lg-offset-10 { margin-left: 83.333%; }
+ .lg-offset-11 { margin-left: 91.666%; }
+}
+
+
+// Standard sized screens to large screens
+// --------------------------------------------------
+
+@media screen and (min-width: 1200px) {
+ .container {
+ max-width: 1170px;
+ }
+ .column {
+ padding-left: 30px;
+ padding-right: 30px;
+ }
+ // Lines nested grids up correctly.
+ .column .column-group {
+ margin-left: -30px;
+ margin-right: -30px;
+ }
+}
+
+// Devices
+.platform-ios {
+ @import "theme-ios.scss";
+
+ .device {
+ background-image: url("../img/iphone5s.png");
+
+ .device-content {
+ background-color: #efeff4;
+ }
+ }
+}
+.platform-android {
+ @import "theme-android.scss";
+
+ .device {
+ font-family: 'Roboto', sans-serif;
+ background-image: url("../img/android.png");
+
+ .device-content {
+ font-size: 18px;
+ line-height: 22px;
+ background-color: #f2f2f2;
+ }
+ .content {
+ top: 50px;
+ }
+ .popover {
+ @include transform(scale(1));
+ }
+ }
+ .bar ~ .content {
+ padding: 0;
+ }
+}
+
+// Animations
+@-webkit-keyframes fadeintext {
+ 0% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
diff --git a/sass/forms.scss b/sass/forms.scss
new file mode 100644
index 0000000..ad978e0
--- /dev/null
+++ b/sass/forms.scss
@@ -0,0 +1,111 @@
+//
+// Forms
+// --------------------------------------------------
+
+// Force form elements to inherit font styles
+input,
+textarea,
+button,
+select {
+ font-family: $font-family-default;
+ font-size: $font-size-default;
+}
+
+// Stretch inputs/textareas to full width and add height to maintain a consistent baseline
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"] {
+ width: 100%;
+ height: 35px;
+ padding: 0 15px;
+ margin-bottom: 15px;
+ line-height: $line-height-default;
+ background-color: #fff;
+ border: $border-default;
+ border-radius: 3px;
+ outline: none;
+ -webkit-appearance: none;
+}
+
+// Rounded search input
+input[type="search"] {
+ padding: 0 10px;
+ font-size: 16px;
+ border-radius: 20px;
+ box-sizing: border-box; // Override content-box in normalize
+}
+input[type="search"]:focus {
+ text-align: left;
+}
+
+// Allow text area's height to grow larger than a normal input
+textarea {
+ height: auto;
+}
+
+// Style select button to look like part of the Ratchet's style
+select {
+ height: auto;
+ font-size: 14px;
+ background-color: #f8f8f8;
+ @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .1));
+}
+
+
+// Input groups (cluster multiple inputs together into a single group)
+// -------------------------------------------------------------------
+
+// Remove spacing, borders, shadows and rounding since it all belongs on the .input-group not the input
+.input-group {
+ background-color: #fff;
+}
+.input-group input,
+.input-group textarea {
+ margin-bottom: 0;
+ background-color: transparent;
+ border-top: 0;
+ border-left: 0;
+ border-right: 0;
+ border-radius: 0;
+ @include box-shadow(none);
+}
+
+// Input groups with labels
+// --------------------------------------------------
+
+// To use labels with input groups, wrap a label and an input in an .input-row
+.input-row {
+ overflow: hidden;
+ border-bottom: $border-default;
+}
+
+// Labels get floated left with a set percentage width
+.input-row label {
+ float: left;
+ width: 35%;
+ padding: 10px 15px;
+ font-family: $font-family-default;
+ line-height: 1.1; // Put the text on the baseline.
+}
+
+// Actual inputs float to right of labels and also have a set percentage
+.input-row input {
+ float: right;
+ width: 65%;
+ padding-left: 0;
+ margin-bottom: 0;
+ border: 0;
+}
diff --git a/sass/mixins.scss b/sass/mixins.scss
new file mode 100644
index 0000000..d7faca8
--- /dev/null
+++ b/sass/mixins.scss
@@ -0,0 +1,118 @@
+//
+// Mixins
+// --------------------------------------------------
+
+
+// General
+// --------------------------------------------------
+
+// Utilities
+// -------------------------
+
+// Clearfix
+// Source: http://nicolasgallagher.com/micro-clearfix-hack/
+//
+// For modern browsers
+// 1. The space content is one way to avoid an Opera bug when the
+// contenteditable attribute is included anywhere else in the document.
+// Otherwise it causes space to appear at the top and bottom of elements
+// that are clearfixed.
+// 2. The use of `table` rather than `block` is only necessary if using
+// `:before` to contain the top-margins of child elements.
+@mixin clearfix() {
+ &:before,
+ &:after {
+ content: " "; // 1
+ display: table; // 2
+ }
+ &:after {
+ clear: both;
+ }
+}
+
+// Box shadow
+@mixin box-shadow($shadow...) {
+ -webkit-box-shadow: $shadow;
+ box-shadow: $shadow;
+}
+
+// Gradients
+@mixin gradient($color-form, $color-to) {
+ background: $color-form; // Old browsers
+ background: -moz-linear-gradient(top, $color-form 0%, $color-to 100%); // FF3.6+
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,$color-form), color-stop(100%,$color-to)); // Chrome,Safari4+
+ background: -webkit-linear-gradient(top, $color-form 0%, $color-to 100%); // Chrome10+,Safari5.1+
+ background: -o-linear-gradient(top, $color-form 0%, $color-to 100%); // Opera 11.10+
+ background: -ms-linear-gradient(top, $color-form 0%, $color-to 100%); // IE10+
+ background: linear-gradient(to bottom, $color-form 0%, $color-to 100%); // W3C
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$color-form', endColorstr='$color-to',GradientType=0 ); // IE6-9
+
+}
+
+
+// Transforms
+// --------------------------------------------------
+@mixin transform($transform...) {
+ -webkit-transform: $transform;
+ -ms-transform: $transform;
+ transform: $transform;
+}
+
+
+// Transitions
+// --------------------------------------------------
+@mixin transition($transition...) {
+ -webkit-transition: $transition;
+ -moz-transition: $transition;
+ transition: $transition;
+}
+@mixin transition-property($property...) {
+ -webkit-transition-property: $property;
+ -moz-transition-property: $property;
+ transition-property: $property;
+}
+@mixin transition-duration($duration...) {
+ -webkit-transition-duration: $duration;
+ -moz-transition-duration: $duration;
+ transition-duration: $duration;
+}
+@mixin transition-timing-function($function...) {
+ -webkit-transition-timing-function: $function;
+ -moz-transition-timing-function: $function;
+ transition-timing-function: $function;
+}
+
+
+// Animations
+// --------------------------------------------------
+@mixin animation-name($name) {
+ -webkit-animation-name: $name;
+ -moz-animation-name: $name;
+ animation-name: $name;
+}
+@mixin animation-duration($duration) {
+ -webkit-animation-duration: $duration;
+ -moz-animation-duration: $duration;
+ animation-duration: $duration;
+}
+@mixin animation-direction($direction) {
+ -webkit-animation-direction: $direction;
+ -moz-animation-direction: $direction;
+ animation-direction: $direction;
+}
+
+
+// Misc
+// --------------------------------------------------
+@mixin hairline($type, $color, $offset) {
+ @if $type == single {
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#{$color}' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: $offset 100%;
+
+ } @else if $type == double {
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#{$color}' x='0' y='0' width='100%' height='0.5'/></svg>"),
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='1'><rect fill='#{$color}' x='0' y='0' width='100%' height='0.5'/></svg>");
+ background-position: $offset 100%, $offset 0%;
+ }
+ background-repeat: no-repeat;
+}
diff --git a/sass/modals.scss b/sass/modals.scss
new file mode 100644
index 0000000..23fc391
--- /dev/null
+++ b/sass/modals.scss
@@ -0,0 +1,28 @@
+//
+// Modals
+// --------------------------------------------------
+
+.modal {
+ position: fixed;
+ top: 0;
+ opacity: 0;
+ z-index: 11;
+ width: 100%;
+ min-height: 100%;
+ overflow: hidden;
+ background-color: #fff;
+ -webkit-transition: -webkit-transform .25s, opacity 1ms .25s;
+ -moz-transition: -moz-transform .25s, opacity 1ms .25s;
+ transition: transform .25s, opacity 1ms .25s;
+ @include transform(translate3d(0, 100%, 0));
+
+ // Active modal
+ &.active {
+ opacity: 1;
+ height: 100%;
+ -webkit-transition: -webkit-transform .25s;
+ -moz-transition: -moz-transform .25s;
+ transition: transform .25s;
+ @include transform(translate3d(0, 0, 0));
+ }
+}
diff --git a/sass/normalize.scss b/sass/normalize.scss
new file mode 100644
index 0000000..e512a8c
--- /dev/null
+++ b/sass/normalize.scss
@@ -0,0 +1,385 @@
+/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
+
+// 1. Set default font family to sans-serif.
+// 2. Prevent iOS text size adjust after orientation change, without disabling
+// user zoom.
+
+
+html {
+ font-family: sans-serif; // 1
+ -ms-text-size-adjust: 100%; // 2
+ -webkit-text-size-adjust: 100%; // 2
+}
+
+// Remove default margin.
+
+
+body {
+ margin: 0;
+}
+
+// HTML5 display definitions
+// ==========================================================================
+
+// Correct `block` display not defined in IE 8/9.
+
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+nav,
+section,
+summary {
+ display: block;
+}
+
+// 1. Correct `inline-block` display not defined in IE 8/9.
+// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
+
+
+audio,
+canvas,
+progress,
+video {
+ display: inline-block; // 1
+ vertical-align: baseline; // 2
+}
+
+// Prevent modern browsers from displaying `audio` without controls.
+// Remove excess height in iOS 5 devices.
+
+
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+
+// Address `[hidden]` styling not present in IE 8/9.
+// Hide the `template` element in IE, Safari, and Firefox < 22.
+
+
+[hidden],
+template {
+ display: none;
+}
+
+// Links
+// ==========================================================================
+
+// Remove the gray background color from active links in IE 10.
+
+
+a {
+ background: transparent;
+}
+
+// Improve readability when focused and also mouse hovered in all browsers.
+
+
+a:active,
+a:hover {
+ outline: 0;
+}
+
+// Text-level semantics
+// ==========================================================================
+
+// Address styling not present in IE 8/9, Safari 5, and Chrome.
+
+
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+// Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
+
+
+b,
+strong {
+ font-weight: bold;
+}
+
+// Address styling not present in Safari 5 and Chrome.
+
+
+dfn {
+ font-style: italic;
+}
+
+// Address variable `h1` font-size and margin within `section` and `article`
+// contexts in Firefox 4+, Safari 5, and Chrome.
+
+
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+// Address styling not present in IE 8/9.
+
+
+mark {
+ background: #ff0;
+ color: #000;
+}
+
+// Address inconsistent and variable font size in all browsers.
+
+
+small {
+ font-size: 80%;
+}
+
+// Prevent `sub` and `sup` affecting `line-height` in all browsers.
+
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sup {
+ top: -0.5em;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+// Embedded content
+// ==========================================================================
+
+// Remove border when inside `a` element in IE 8/9.
+
+
+img {
+ border: 0;
+}
+
+// Correct overflow displayed oddly in IE 9.
+
+
+svg:not(:root) {
+ overflow: hidden;
+}
+
+// Grouping content
+// ==========================================================================
+
+// Address margin not present in IE 8/9 and Safari 5.
+
+
+figure {
+ margin: 1em 40px;
+}
+
+// Address differences between Firefox and other browsers.
+
+
+hr {
+ -moz-box-sizing: content-box;
+ box-sizing: content-box;
+ height: 0;
+}
+
+// Contain overflow in all browsers.
+
+
+pre {
+ overflow: auto;
+}
+
+// Address odd `em`-unit font size rendering in all browsers.
+
+
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace, monospace;
+ font-size: 1em;
+}
+
+// Forms
+// ==========================================================================
+
+// Known limitation: by default, Chrome and Safari on OS X allow very limited
+// styling of `select`, unless a `border` property is set.
+
+
+// 1. Correct color not being inherited.
+// Known issue: affects color of disabled elements.
+// 2. Correct font properties not being inherited.
+// 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
+
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ color: inherit; // 1
+ font: inherit; // 2
+ margin: 0; // 3
+}
+
+// Address `overflow` set to `hidden` in IE 8/9/10.
+
+
+button {
+ overflow: visible;
+}
+
+// Address inconsistent `text-transform` inheritance for `button` and `select`.
+// All other form control elements do not inherit `text-transform` values.
+// Correct `button` style inheritance in Firefox, IE 8+, and Opera
+// Correct `select` style inheritance in Firefox.
+
+
+button,
+select {
+ text-transform: none;
+}
+
+// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
+// and `video` controls.
+// 2. Correct inability to style clickable `input` types in iOS.
+// 3. Improve usability and consistency of cursor style between image-type
+// `input` and others.
+
+
+button,
+html input[type="button"], // 1
+input[type="reset"],
+input[type="submit"] {
+ -webkit-appearance: button; // 2
+ cursor: pointer; // 3
+}
+
+// Re-set default cursor for disabled elements.
+
+
+button[disabled],
+html input[disabled] {
+ cursor: default;
+}
+
+// Remove inner padding and border in Firefox 4+.
+
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+
+// Address Firefox 4+ setting `line-height` on `input` using `!important` in
+// the UA stylesheet.
+
+
+input {
+ line-height: normal;
+}
+
+// It's recommended that you don't attempt to style these elements.
+// Firefox's implementation doesn't respect box-sizing, padding, or width.
+//
+// 1. Address box sizing set to `content-box` in IE 8/9/10.
+// 2. Remove excess padding in IE 8/9/10.
+
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box; // 1
+ padding: 0; // 2
+}
+
+// Fix the cursor style for Chrome's increment/decrement buttons. For certain
+// `font-size` values of the `input`, it causes the cursor style of the
+// decrement button to change from `default` to `text`.
+
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+
+// 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
+// 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
+// (include `-moz` to future-proof).
+
+
+input[type="search"] {
+ -webkit-appearance: textfield; // 1
+ -moz-box-sizing: content-box;
+ -webkit-box-sizing: content-box; // 2
+ box-sizing: content-box;
+}
+
+// Remove inner padding and search cancel button in Safari and Chrome on OS X.
+// Safari (but not Chrome) clips the cancel button when the search input has
+// padding (and `textfield` appearance).
+
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+// Define consistent border, margin, and padding.
+
+
+fieldset {
+ border: 1px solid #c0c0c0;
+ margin: 0 2px;
+ padding: 0.35em 0.625em 0.75em;
+}
+
+// 1. Correct `color` not being inherited in IE 8/9.
+// 2. Remove padding so people aren't caught out if they zero out fieldsets.
+
+
+legend {
+ border: 0; // 1
+ padding: 0; // 2
+}
+
+// Remove default vertical scrollbar in IE 8/9.
+
+
+textarea {
+ overflow: auto;
+}
+
+// Don't inherit the `font-weight` (applied by a rule above).
+// NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
+
+
+optgroup {
+ font-weight: bold;
+}
+
+// Tables
+// ==========================================================================
+
+// Remove most spacing between table cells.
+
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+td,
+th {
+ padding: 0;
+}
diff --git a/sass/popovers.scss b/sass/popovers.scss
new file mode 100644
index 0000000..446d57a
--- /dev/null
+++ b/sass/popovers.scss
@@ -0,0 +1,97 @@
+//
+// Popovers (to be used with popovers.js)
+// --------------------------------------------------
+
+.popover {
+ position: fixed;
+ top: 55px;
+ left: 50%;
+ z-index: 20;
+ display: none;
+ width: 280px;
+ margin-left: -140px;
+ background-color: $chrome-color;
+ border-radius: $border-radius;
+ opacity: 0;
+ @include box-shadow(0 0 15px rgba(0, 0, 0, .1));
+ @include transform(translate3d(0, -15px, 0));
+ @include transition(all .25s linear);
+
+ // Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution)
+ &:before {
+ position: absolute;
+ top: -15px;
+ left: 50%;
+ width: 0;
+ height: 0;
+ margin-left: -15px;
+ border-right: 15px solid transparent;
+ border-bottom: 15px solid $chrome-color;
+ border-left: 15px solid transparent;
+ content: '';
+ }
+
+ // Popover transition
+ // --------------------------------------------------
+
+ &.visible {
+ opacity: 1;
+ @include transform(translate3d(0, 0, 0));
+ }
+
+ // Give correct spacing to the content if there is a bar inside the popover.
+ .bar ~ .table-view {
+ padding-top: $bar-base-height;
+ }
+}
+
+// Backdrop (used as invisible touch escape)
+// --------------------------------------------------
+
+.backdrop {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 15;
+ background-color: rgba(0,0,0,.3);
+}
+
+// Block level buttons in popovers
+// --------------------------------------------------
+
+.popover .btn-block {
+ margin-bottom: 5px;
+
+ // Remove extra margin on bottom of last button
+ &:last-child {
+ margin-bottom: 0;
+ }
+}
+
+
+// Popovers with nav bars
+// --------------------------------------------------
+
+.popover .bar-nav {
+ border-bottom: $border-default;
+ border-top-right-radius: 12px;
+ border-top-left-radius: 12px;
+ @include box-shadow(none);
+}
+
+
+// Table views in popovers
+// --------------------------------------------------
+
+.popover .table-view {
+ max-height: 300px;
+ margin-bottom: 0;
+ overflow: auto;
+ background-color: #fff;
+ border-top: 0;
+ border-bottom: 0;
+ border-radius: $border-radius;
+ -webkit-overflow-scrolling: touch;
+}
diff --git a/sass/push.scss b/sass/push.scss
new file mode 100644
index 0000000..828178d
--- /dev/null
+++ b/sass/push.scss
@@ -0,0 +1,60 @@
+//
+// Push styles (to be used with push.js)
+// --------------------------------------------------
+
+.content {
+ // Fade animation
+ &.fade {
+ left: 0;
+ opacity: 0;
+
+ &.in {
+ opacity: 1;
+ }
+ }
+
+ // Slide animation
+ &.sliding {
+ z-index: 2;
+ -webkit-transition: -webkit-transform .4s;
+ -moz-transition: -moz-transform .4s;
+ transition: transform .4s;
+ @include transform(translate3d(0, 0, 0));
+
+ &.left {
+ z-index: 1;
+ @include transform(translate3d(-100%, 0, 0));
+ }
+
+ &.right {
+ z-index: 3;
+ @include transform(translate3d(100%, 0, 0));
+ }
+ }
+}
+
+// Add chevrons to elements
+.push-left,
+.push-right {
+ &:after {
+ position: absolute;
+ top: 50%;
+ display: inline-block;
+ color: #bbb;
+ font-family: Ratchicons;
+ font-size: inherit;
+ text-decoration: none;
+ line-height: 1;
+ cursor: default;
+ -webkit-font-smoothing: antialiased;
+ @include transform(translateY(-50%));
+ }
+}
+.push-left:after {
+ left: 15px;
+ content: '\e822';
+}
+.push-right:after {
+ right: 15px;
+ content: '\e826';
+}
diff --git a/sass/ratchet.scss b/sass/ratchet.scss
new file mode 100644
index 0000000..806f6d0
--- /dev/null
+++ b/sass/ratchet.scss
@@ -0,0 +1,30 @@
+
+// Variables
+@import "variables.scss";
+
+// Mixins
+@import "mixins.scss";
+
+// Normalize & Base CSS
+@import "normalize.scss";
+@import "base.scss";
+@import "type.scss";
+
+// Components
+@import "buttons.scss";
+@import "bars.scss";
+@import "badges.scss";
+@import "cards.scss";
+@import "table-views.scss";
+@import "forms.scss";
+@import "segmented-controls.scss";
+@import "popovers.scss";
+
+// Javascript components
+@import "modals.scss";
+@import "sliders.scss";
+@import "toggles.scss";
+@import "push.scss";
+
+// Ratchicons
+@import "ratchicons.scss";
diff --git a/sass/ratchicons.scss b/sass/ratchicons.scss
new file mode 100644
index 0000000..96014d9
--- /dev/null
+++ b/sass/ratchicons.scss
@@ -0,0 +1,64 @@
+//
+// Ratchicons
+// --------------------------------------------------
+
+@font-face {
+ font-family: Ratchicons;
+ src: url("ratchicons/ratchicons.eot");
+ src: url("ratchicons/ratchicons.eot?#iefix") format("embedded-opentype"),
+ url("ratchicons/ratchicons.woff") format("woff"),
+ url("ratchicons/ratchicons.ttf") format("truetype"),
+ url("ratchicons/ratchicons.svg#svgFontName") format("svg");
+ font-weight: normal;
+ font-style: normal;
+}
+.icon {
+ display: inline-block;
+ font-family: Ratchicons;
+ font-size: 24px;
+ text-decoration: none;
+ line-height: 1;
+ cursor: default;
+ -webkit-font-smoothing: antialiased;
+}
+.icon-and-up:before { content: '\e809'; }
+.icon-back:before { content: '\e80a'; }
+.icon-bars:before { content: '\e80e'; }
+.icon-caret:before { content: '\e80f'; }
+.icon-check:before { content: '\e810'; }
+.icon-close:before { content: '\e811'; }
+.icon-code:before { content: '\e812'; }
+.icon-compose:before { content: '\e813'; }
+.icon-down-nav:before { content: '\e814'; }
+.icon-down:before { content: '\e820'; }
+.icon-download:before { content: '\e815'; }
+.icon-edit:before { content: '\e829'; }
+.icon-forward:before { content: '\e82a'; }
+.icon-gear:before { content: '\e821'; }
+.icon-home:before { content: '\e82b'; }
+.icon-info:before { content: '\e82c'; }
+.icon-left-nav:before { content: '\e82d'; }
+.icon-left:before { content: '\e822'; }
+.icon-list:before { content: '\e823'; }
+.icon-more-vertical:before { content: '\e82e'; }
+.icon-more:before { content: '\e82f'; }
+.icon-pages:before { content: '\e824'; }
+.icon-pause:before { content: '\e830'; }
+.icon-person:before { content: '\e832'; }
+.icon-play:before { content: '\e816'; }
+.icon-plus:before { content: '\e817'; }
+.icon-refresh:before { content: '\e825'; }
+.icon-right-nav:before { content: '\e818'; }
+.icon-right:before { content: '\e826'; }
+.icon-search:before { content: '\e819'; }
+.icon-share:before { content: '\e81a'; }
+.icon-sound2:before { content: '\e828'; }
+.icon-sound3:before { content: '\e80b'; }
+.icon-sound4:before { content: '\e80c'; }
+.icon-sound:before { content: '\e827'; }
+.icon-star-filled:before { content: '\e81b'; }
+.icon-star:before { content: '\e81c'; }
+.icon-stop:before { content: '\e81d'; }
+.icon-trash:before { content: '\e81e'; }
+.icon-up-nav:before { content: '\e81f'; }
+.icon-up:before { content: '\e80d'; }
diff --git a/sass/segmented-controls.scss b/sass/segmented-controls.scss
new file mode 100644
index 0000000..543520c
--- /dev/null
+++ b/sass/segmented-controls.scss
@@ -0,0 +1,110 @@
+//
+// Segmented controllers
+// --------------------------------------------------
+
+.segmented-control {
+ position: relative;
+ display: table;
+ overflow: hidden;
+ font-size: 12px;
+ font-weight: $font-weight-light;
+ background-color: $chrome-color;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+
+ // Section within controller
+ .control-item {
+ display: table-cell;
+ overflow: hidden;
+ width: 1%;
+ padding-top: 6px;
+ padding-bottom: 7px;
+ line-height: 1;
+ color: #333;
+ text-align: center;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ border-left: 1px solid #ccc;
+
+ // Remove border-left and shadow from first section
+ &:first-child {
+ border-left-width: 0;
+ }
+
+ // Tap state of segmented controller
+ &:active {
+ background-color: #eee;
+ }
+
+ // Selected state of segmented controller
+ &.active {
+ background-color: #ccc;
+ }
+ }
+}
+
+// Other segmented controller types
+// --------------------------------------------------
+
+// Primary
+.segmented-control-primary {
+ border-color: $primary-color;
+
+ .control-item {
+ color: $primary-color;
+ border-color: inherit;
+
+ &:active {
+ background-color: lighten($primary-color, 35%);
+ }
+ &.active {
+ color: #fff;
+ background-color: $primary-color;
+ }
+ }
+}
+
+// Positive
+.segmented-control-positive {
+ border-color: $positive-color;
+
+ .control-item {
+ color: $positive-color;
+ border-color: inherit;
+
+ &:active {
+ background-color: lighten($positive-color, 35%);
+ }
+ &.active {
+ color: #fff;
+ background-color: $positive-color;
+ }
+ }
+}
+
+// Negative
+.segmented-control-negative {
+ border-color: $negative-color;
+
+ .control-item {
+ color: $negative-color;
+ border-color: inherit;
+
+ &:active {
+ background-color: lighten($negative-color, 35%);
+ }
+ &.active {
+ color: #fff;
+ background-color: $negative-color;
+ }
+ }
+}
+
+// This is used to by the js to show and hide content tide to the segmented control.
+.control-content {
+ display: none;
+
+ &.active {
+ display: block;
+ }
+}
diff --git a/sass/sliders.scss b/sass/sliders.scss
new file mode 100644
index 0000000..72fcf28
--- /dev/null
+++ b/sass/sliders.scss
@@ -0,0 +1,31 @@
+//
+// Slider styles (to be used with sliders.js)
+// --------------------------------------------------
+
+// Width of slider
+.slider {
+ width: 100%;
+}
+
+// Outer wrapper for slider
+.slider {
+ overflow: hidden;
+ background-color: #000;
+
+ // Inner wrapper for slider (width of all slides together)
+ .slide-group {
+ position: relative;
+ font-size: 0; // Remove spaces from inline-block children
+ white-space: nowrap;
+ @include transition(all 0 linear);
+
+ // Individual slide
+ .slide {
+ display: inline-block;
+ vertical-align: top; // Ensure that li always aligns to top
+ width: 100%;
+ height: 100%;
+ font-size: 14px;
+ }
+ }
+}
diff --git a/sass/table-views.scss b/sass/table-views.scss
new file mode 100644
index 0000000..5460b50
--- /dev/null
+++ b/sass/table-views.scss
@@ -0,0 +1,107 @@
+//
+// Table views
+// --------------------------------------------------
+
+.table-view {
+ padding-left: 0;
+ margin-top: 0;
+ margin-bottom: 15px;
+ list-style: none; // Remove usual bullet styles from table view
+ background-color: #fff;
+ border-top: $border-default;
+ border-bottom: $border-default;
+}
+
+// Pad each table view item and add dividers
+.table-view-cell {
+ position: relative;
+ overflow: hidden;
+ padding: 11px 65px 11px 15px;
+ border-bottom: $border-default;
+
+ // Remove the border from the last table view item
+ &:last-child {
+ border-bottom: 0;
+ }
+ // If it's a table view of links, make sure the child <a> takes up full table view item tap area (want to avoid selecting child buttons though)
+ > a:not(.btn) {
+ position: relative;
+ display: block;
+ overflow: hidden;
+ padding: inherit;
+ margin: -11px -65px -11px -15px; // Make the entire list item tappable.
+ color: inherit;
+
+ &:active {
+ background-color: #eee;
+ }
+ }
+ p {
+ margin-bottom: 0;
+ }
+}
+
+
+// Table view dividers
+// --------------------------------------------------
+
+.table-view-divider {
+ padding-top: 6px;
+ padding-bottom: 6px;
+ padding-left: 15px;
+ margin-top: -1px; // Hides the border of the previous list item
+ margin-left: 0;
+ color: #999;
+ font-weight: $font-weight;
+ border-top: $border-default;
+ border-bottom: $border-default;
+ background-color: #fafafa;
+}
+
+
+// Table-views with media (images,avatars, icons)
+// --------------------------------------------------
+
+.table-view .media,
+.table-view .media-body {
+ overflow: hidden;
+ zoom: 1;
+}
+.table-view .media-object {
+ &.pull-left {
+ margin-right: 10px;
+ }
+ &.pull-right {
+ margin-left: 10px;
+ }
+}
+
+
+// Table-views with buttons, badges and toggles
+// --------------------------------------------------
+.table-view-cell,
+.table-view-cell > a {
+ > .btn,
+ > .badge,
+ > .toggle {
+ position: absolute;
+ top: 50%;
+ right: 15px;
+ @include transform(translateY(-50%));
+ }
+
+ // If the cell has a chevron, give some more room.
+ .push-left,
+ .push-right {
+ > .btn,
+ > .badge,
+ > .toggle {
+ right: 35px;
+ }
+ }
+}
+
+// If the table view is the first component, give it extra margin on top.
+.content > .table-view:first-child {
+ margin-top: 15px;
+}
diff --git a/sass/theme-android.scss b/sass/theme-android.scss
new file mode 100644
index 0000000..f5f1672
--- /dev/null
+++ b/sass/theme-android.scss
@@ -0,0 +1,724 @@
+@import "mixins.scss";
+
+//
+// Android theme
+// Visuals and interactions in the style of Android
+//
+// --------------------------------------------------
+
+
+// Variables
+// --------------------------------------------------
+
+// Type
+$font-family-default: 'Roboto', sans-serif;
+$font-size-default: 18px;
+$font-weight: 500;
+$font-weight-light: 400;
+$line-height-default: 22px;
+
+// Colors
+//
+// Main theme colors
+$primary-color: #33b5e5;
+$chrome-color: #dddddd;
+$text-color: #222;
+
+// Action colors
+$default-color: #999;
+$positive-color: #99cc00;
+$negative-color: #ff4444;
+
+// Bars
+$bar-base-height: 50px;
+$bar-tab-height: 50px;
+
+// Borders
+$border-default: 1px solid #b1b1b1;
+$border-radius: 2px;
+
+
+// Base
+// --------------------------------------------------
+
+body {
+ font-family: $font-family-default;
+ font-size: $font-size-default;
+ line-height: $line-height-default;
+ color: $text-color;
+}
+
+// Universal link styling
+a {
+ color: $primary-color;
+
+ &:active {
+ color: darken($primary-color, 10%);
+ }
+}
+
+// Content
+.content {
+ background-color: #f2f2f2;
+}
+// Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
+// Note: For these to work, content must come after both bars in the markup
+.bar-nav ~ .content {
+ padding-top: $bar-base-height;
+}
+.bar-tab ~ .content {
+ padding-bottom: $bar-tab-height;
+}
+.bar-header-secondary ~ .content {
+ padding-top: $bar-base-height*2;
+}
+
+
+// Buttons
+// --------------------------------------------------
+
+.btn {
+ padding: 8px 15px;
+ font-size: 14px;
+ color: $text-color;
+ background-color: #cecece;
+ border: 0;
+ border-radius: $border-radius;
+ @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 1px rgba(0,0,0,.25));
+
+ // Active & filled button styles
+ &:active,
+ &.active {
+ color: $text-color;
+ border: 0;
+ background-color: $default-color;
+ @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2));
+ }
+}
+
+
+// Other button types
+// --------------------------------------------------
+
+// Primary button (Default color is blue)
+.btn-primary {
+ color: #fff;
+ border: 0;
+ background-color: $primary-color;
+
+ &:active,
+ &.active {
+ color: #fff;
+ border: 0;
+ background-color: darken($primary-color, 10%);
+ }
+}
+
+// Positive button (Default color is green)
+.btn-positive {
+ color: #fff;
+ border: 0;
+ background-color: $positive-color;
+
+ &:active,
+ &.active {
+ color: #fff;
+ border: 0;
+ background-color: darken($positive-color, 10%);
+ }
+}
+
+// Negative button (Default color is red)
+.btn-negative {
+ color: #fff;
+ border: 0;
+ background-color: $negative-color;
+
+ &:active,
+ &.active {
+ color: #fff;
+ border: 0;
+ background-color: darken($negative-color, 10%);
+ }
+}
+
+// Outlined buttons
+.btn-outlined {
+ border: 1px solid $default-color;
+ background-color: transparent;
+ @include box-shadow(none);
+
+
+ &.btn-primary {
+ border: 1px solid $primary-color;
+ color: $primary-color;
+
+ &:active {
+ border: 1px solid $primary-color;
+ background-color: $primary-color;
+ }
+ }
+ &.btn-positive {
+ border: 1px solid $positive-color;
+ color: $positive-color;
+
+ &:active {
+ border: 1px solid $positive-color;
+ background-color: $positive-color;
+ }
+ }
+ &.btn-negative {
+ border: 1px solid $negative-color;
+ color: $negative-color;
+
+ &:active {
+ border: 1px solid $negative-color;
+ background-color: $negative-color;
+ }
+ }
+ // Active states
+ &:active {
+ border: 1px solid $default-color;
+ background-color: $default-color;
+ @include box-shadow(none);
+ }
+ &.btn-primary:active,
+ &.btn-positive:active,
+ &.btn-negative:active {
+ color: #fff;
+ @include box-shadow(none);
+ }
+}
+
+// Link button (Buttons that look like links)
+.btn-link {
+ color: $primary-color;
+ background-color: transparent;
+ border: none;
+ @include box-shadow(none);
+
+ &:active,
+ &.active {
+ color: darken($primary-color, 10%);
+ background-color: transparent;
+ @include box-shadow(none);
+ }
+}
+
+// Block buttons
+.btn-block {
+ padding: 15px 0;
+ font-size: 18px;
+}
+
+// Buttons with badges
+.btn {
+ .badge {
+ background-color: rgba(0,0,0,.15);
+
+ &.badge-inverted {
+ background-color: transparent;
+ }
+ }
+
+ // Active states
+ &:active .badge {
+ color: #fff;
+ }
+}
+
+
+// Bars
+// --------------------------------------------------
+
+.bar {
+ height: $bar-base-height;
+ background-color: $chrome-color;
+ border-bottom: $border-default;
+ @include box-shadow(inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0,0,0,.07));
+
+ // Modifier class to dock any bar below .bar-nav
+ &.bar-header-secondary {
+ top: $bar-base-height;
+ }
+
+ // Modifier class to dock any bar above a standard bar
+ &.bar-footer-secondary {
+ bottom: $bar-base-height;
+ }
+
+ // Modifier class to dock any bar above a .bar-tab
+ &.bar-footer-secondary-tab {
+ bottom: $bar-tab-height;
+ }
+
+ // Give the footers the correct border
+ .bar-footer,
+ .bar-footer-secondary,
+ .bar-footer-secondary-tab {
+ border-bottom: 0;
+ border-top: $border-default;
+ @include box-shadow(inset 0 -2px 0 $primary-color);
+ }
+}
+.bar-tab {
+ top: 0;
+ bottom: auto;
+ height: $bar-tab-height;
+ border-top: 0;
+
+ .tab-item {
+ color: #929292;
+
+ // Active states for the tab bar
+ &.active {
+ color: $primary-color;
+ @include box-shadow(inset 0 -2px 0 $primary-color);
+ }
+ //Pressed state
+ &:active {
+ color: #929292;
+ background-color: #78c6e3;
+ }
+ .icon {
+ top: 3px;
+ padding-top: 0;
+ padding-bottom: 0;
+ }
+ }
+}
+
+// Left aligned text in the .bar-nav
+.title {
+ position: static;
+ padding-left: 15px;
+ font-size: $font-size-default;
+ line-height: 49px;
+ text-align: left;
+}
+
+// Bars with buttons
+.bar {
+ .btn {
+ top: 7px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ }
+ .btn-link {
+ top: 0;
+ padding: 0;
+ color: $primary-color;
+ font-size: $font-size-default;
+ line-height: 49px;
+
+ &:active,
+ &.active {
+ color: darken($primary-color, 10%);
+ }
+
+ // Make sure link buttons w/ icons line up with the content correctly
+ .icon {
+ top: 2px;
+ padding: 0;
+ }
+ }
+ .btn-block {
+ top: 4px;
+ }
+}
+
+// Bars with segmented-controls
+//
+// Remove standard segmented bottom margin
+.bar .segmented-control {
+ top: 7px;
+}
+
+// Bars with Ratchicons
+.bar {
+ .icon {
+ padding-top: 13px;
+ padding-bottom: 13px;
+ }
+ // Handle carets in the titles
+ .title .icon {
+ padding: 0;
+
+ &.icon-caret {
+ top: 10px;
+ color: #777;
+ }
+ }
+}
+
+// Standard bars with search forms
+//
+// Position/size search bar within the bar
+.bar input[type="search"] {
+ height: 35px;
+}
+
+
+// Badges
+// --------------------------------------------------
+
+.badge {
+ &.badge-inverted {
+ color: $default-color;
+ background-color: transparent;
+ }
+}
+
+// Badge modifiers
+//
+// Main badge
+.badge-primary {
+ color: #fff;
+ background-color: $primary-color;
+
+ &.badge-inverted {
+ color: $primary-color;
+ background-color: transparent;
+ }
+}
+
+// Positive badge
+.badge-positive {
+ color: #fff;
+ background-color: $positive-color;
+
+ &.badge-inverted {
+ color: $positive-color;
+ background-color: transparent;
+ }
+}
+
+// Negative badge
+.badge-negative {
+ color: #fff;
+ background-color: $negative-color;
+
+ &.badge-inverted {
+ color: $negative-color;
+ background-color: transparent;
+ }
+}
+
+
+// Cards
+// --------------------------------------------------
+
+.card {
+ border-color: #d9d9d9;
+ border-radius: $border-radius;
+ background-color: transparent;
+}
+
+
+// Table views
+// --------------------------------------------------
+
+.table-view {
+ background-color: transparent;
+
+ .table-view-cell {
+ border-bottom: 1px solid #d9d9d9;
+
+ // Remove the border from the last table view item
+ &:last-child {
+ background-image: none;
+ }
+ > a:not(.btn):active {
+ background-color: #e0e0e0;
+
+ .icon {
+ color: #fff;
+ }
+ }
+ }
+
+ // Table view dividers
+ .table-view-divider {
+ padding-top: 25px;
+ font-size: 12px;
+ font-weight: bold;
+ text-transform: uppercase;
+ border-top: 0;
+ border-bottom: 2px solid #a9a9a9;
+ background-color: transparent;
+ }
+}
+
+// Forms
+// --------------------------------------------------
+
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"],
+.input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, .2);
+ @include box-shadow(0 1px 1px rgba(0,0,0,.1));
+}
+
+input[type="search"] {
+ border-radius: $border-radius;
+}
+
+select,
+textarea,
+.input-group {
+ height: auto;
+}
+
+// Input groups (cluster multiple inputs together into a single group)
+// -------------------------------------------------------------------
+.input-group {
+ padding: 0;
+ border: 0;
+}
+.input-group input {
+ border: 0;
+ border-bottom: 1px solid #d9d9d9;
+ @include box-shadow(none);
+}
+// Remove bottom border on last input to avoid double bottom border
+.input-group input:last-child {
+ background-image: none;
+}
+
+// Input groups with labels
+// --------------------------------------------------
+
+// To use labels with input groups, wrap a label and an input in an .input-row
+.input-row {
+ border-bottom: 1px solid #d9d9d9;
+}
+// Remove bottom border on last input-row to avoid double bottom border
+.input-row label + input {
+ background-image: none;
+ border-bottom: 0;
+}
+
+
+// Segmented controllers
+// --------------------------------------------------
+
+.segmented-control {
+ font-size: 14px;
+ background-color: #cecece;
+ border: 0;
+ border-radius: $border-radius;
+ @include box-shadow(0 1px 1px rgba(0,0,0,.25));
+
+ .control-item {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ color: $text-color;
+ border-left: 1px solid #999;
+ @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2));
+
+ // Remove border-left and shadow from first section
+ &:first-child {
+ border-left-width: 0;
+ }
+
+ &:active,
+ &.active {
+ background-color: $default-color;
+ }
+ }
+}
+
+
+// Other segmented controller types
+// --------------------------------------------------
+
+// Primary
+.segmented-control-primary {
+ border: 0;
+
+ .control-item {
+ color: #fff;
+ border-color: inherit;
+
+ &:active,
+ &.active {
+ color: #fff;
+ background-color: $primary-color;
+ }
+ }
+}
+
+// Positive
+.segmented-control-positive {
+ border: 0;
+
+ .control-item {
+ color: #fff;
+ border-color: inherit;
+
+ &:active,
+ &.active {
+ color: #fff;
+ background-color: $positive-color;
+ }
+ }
+}
+
+// Negative
+.segmented-control-negative {
+ border: 0;
+
+ .control-item {
+ color: #fff;
+ border-color: inherit;
+
+ &:active,
+ &.active {
+ color: #fff;
+ background-color: $negative-color;
+ }
+ }
+}
+
+
+// Popovers
+// --------------------------------------------------
+
+.popover {
+ top: 47px;
+ left: 15px;
+ width: 200px;
+ margin-left: 0;
+ border: 1px solid #9b9b9b;
+ border-radius: 0;
+ -webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .1s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .1s ease-in-out, opacity .2s ease-in-out;
+ @include box-shadow(0 0 3px rgba(0,0,0,.2));
+ @include transform(scale(.75));
+
+ &:before {
+ display: none;
+ }
+ &.visible {
+ @include transform(scale(1));
+ }
+}
+
+// Remove the popover's backdrop
+.backdrop {
+ background-color: none;
+}
+
+// Popovers with bars
+.popover {
+ .bar {
+ border-radius: 0;
+ }
+
+ // Padding the content correctly.
+ .bar-nav ~ .table-view {
+ padding-top: $bar-base-height;
+ }
+}
+
+// Popovers with table-views
+.popover .table-view {
+ border-radius: 12px;
+}
+
+
+// Toggles styles
+// --------------------------------------------------
+
+.toggle {
+ width: 104px;
+ height: 28px;
+ border: 2px solid #d7d7d7;
+ border-radius: 0;
+ background-color: #d7d7d7;
+
+ // Sliding handle
+ .toggle-handle {
+ top: 0;
+ left: 0;
+ width: 50px;
+ height: 24px;
+ border: 1px solid #b5b5b5;
+ border-radius: 2px;
+ background-color: #bebebe;
+ @include box-shadow(inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.1));
+ }
+ &:before {
+ top: 1px;
+ right: auto;
+ left: 11px;
+ z-index: 3;
+ color: #fff;
+ }
+
+ // Active state for toggle
+ &.active {
+ border: 2px solid #d7d7d7;
+ background-color: #d7d7d7;
+
+ .toggle-handle {
+ margin-right: 2px;
+ background-color: $primary-color;
+ border-color: $primary-color;
+ @include transform(translate3d(50px,0,0));
+ }
+ &:before {
+ left: auto;
+ right: 14px;
+ color: #fff;
+ content: "On";
+ }
+ }
+}
+
+
+// Push icons
+// --------------------------------------------------
+
+.push-left:after {
+ content: '\e803';
+}
+.push-right:after {
+ content: '\e806';
+}
+
+
+// Ratchicons for Android
+// --------------------------------------------------
+
+.icon-caret:before { content: '\e800'; }
+.icon-down:before,
+.icon-down-nav:before { content: '\e801'; }
+.icon-download:before { content: '\e802'; }
+.icon-left:before,
+.icon-left-nav:before { content: '\e803'; }
+.icon-more-vertical:before { content: '\e804'; }
+.icon-more:before { content: '\e805'; }
+.icon-right:before,
+.icon-right-nav:before { content: '\e806'; }
+.icon-search:before { content: '\e807'; }
+.icon-share:before { content: '\e808'; }
+.icon-up:before,
+.icon-up-nav:before { content: '\e809'; }
diff --git a/sass/theme-ios.scss b/sass/theme-ios.scss
new file mode 100644
index 0000000..1ba3ec5
--- /dev/null
+++ b/sass/theme-ios.scss
@@ -0,0 +1,591 @@
+@import "mixins.scss";
+
+//
+// iOS theme
+// Visuals and interactions in the style of iOS
+//
+// --------------------------------------------------
+
+
+// Variables
+// --------------------------------------------------
+
+// Colors
+//
+// Main theme colors
+$primary-color: #007aff;
+$chrome-color: rgba(247,247,247,.98);
+
+// Action colors
+$default-color: #929292;
+$positive-color: #4cd964;
+$negative-color: #dd524d;
+
+// Bars
+$bar-base-height: 44px;
+$bar-tab-height: 50px;
+
+// iOS style transitions
+$timing-fuction: cubic-bezier(.1, .5, .1, 1); // Inspired by @c2prods
+
+
+// Base
+// --------------------------------------------------
+
+// Universal link styling
+a {
+ color: $primary-color;
+
+ &:active {
+ color: darken($primary-color, 10%);
+ }
+}
+
+// Content
+.content {
+ background-color: #efeff4;
+}
+
+
+// Typography
+// --------------------------------------------------
+
+.h5, h5,
+.h6, h6,
+p {
+ color: #8f8f94;
+}
+.h5, h5,
+.h6, h6, {
+ font-weight: normal;
+ text-transform: uppercase;
+}
+
+
+// Buttons
+// --------------------------------------------------
+
+.btn {
+ border: 1px solid $default-color;
+ color: $default-color;
+ background-color: $chrome-color;
+ @include transition(all);
+ @include transition-duration(.2s);
+ @include transition-timing-function(linear);
+
+ // Active & filled button styles
+ &:active,
+ &.active {
+ color: #fff;
+ background-color: $default-color;
+ }
+}
+
+
+// Other button types
+// --------------------------------------------------
+
+// Primary button (Default color is blue)
+.btn-primary {
+ color: #fff;
+ border: 1px solid $primary-color;
+ background-color: $primary-color;
+
+ &:active,
+ &.active {
+ border: 1px solid darken($primary-color, 10%);
+ background-color: darken($primary-color, 10%);
+ }
+}
+
+// Positive button (Default color is green)
+.btn-positive {
+ color: #fff;
+ border: 1px solid $positive-color;
+ background-color: $positive-color;
+
+ &:active,
+ &.active {
+ border: 1px solid darken($positive-color, 10%);
+ background-color: darken($positive-color, 10%);
+ }
+}
+
+// Negative button (Default color is red)
+.btn-negative {
+ color: #fff;
+ border: 1px solid $negative-color;
+ background-color: $negative-color;
+
+ &:active,
+ &.active {
+ border: 1px solid darken($negative-color, 10%);
+ background-color: darken($negative-color, 10%);
+ }
+}
+
+// Outlined buttons
+.btn-outlined {
+ background-color: transparent;
+
+ &.btn-primary {
+ color: $primary-color;
+ }
+ &.btn-positive {
+ color: $positive-color;
+ }
+ &.btn-negative {
+ color: $negative-color;
+ }
+ // Active states
+ &.btn-primary:active,
+ &.btn-positive:active,
+ &.btn-negative:active {
+ color: #fff;
+ }
+}
+
+// Link button (Buttons that look like links)
+.btn-link {
+ color: $primary-color;
+ background-color: transparent;
+ border: none;
+
+ &:active,
+ &.active {
+ color: darken($primary-color, 10%);
+ background-color: transparent;
+ }
+}
+
+// Buttons with badges
+.btn {
+ .badge {
+ background-color: rgba(0,0,0,.15);
+
+ &.badge-inverted {
+ background-color: transparent;
+ }
+ }
+
+ // Active states
+ &:active .badge {
+ color: #fff;
+ }
+}
+
+
+// Bars
+// --------------------------------------------------
+
+// Default bar
+.bar {
+ border-bottom: 0;
+ background-color: $chrome-color;
+ @include box-shadow(0 0 1px rgba(0,0,0,.85));
+
+ // Modifier class to dock any bar below .bar-nav
+ &.bar-header-secondary {
+ top: $bar-base-height;
+ }
+
+ // Modifier class to dock any bar above a standard bar
+ &.bar-footer-secondary {
+ bottom: $bar-base-height;
+ }
+
+ // Modifier class to dock any bar above a .bar-tab
+ &.bar-footer-secondary-tab {
+ bottom: $bar-tab-height;
+ }
+ // Give the footers the correct border
+ .bar-footer,
+ .bar-footer-secondary,
+ .bar-footer-secondary-tab {
+ border-top: 0;
+ @include box-shadow(0 0 -1px rgba(0,0,0,.85));
+ }
+}
+
+// Tab bar
+.bar-tab {
+ border-top: 0;
+ @include box-shadow(0 0 -1px rgba(0,0,0,.85));
+}
+.tab-item {
+ color: #929292;
+
+ // Active states for the tab bar
+ &.active,
+ &:active {
+ color: $primary-color;
+ }
+}
+
+// Nav bars with buttons
+.bar-nav {
+ // Link buttons in nav bars
+ .btn-link {
+ color: $primary-color;
+
+ &:active {
+ color: $primary-color;
+ opacity: .6;
+ }
+ }
+}
+
+
+
+// Badges
+// --------------------------------------------------
+
+.badge {
+ &.badge-inverted {
+ color: $default-color;
+ background-color: transparent;
+ }
+}
+
+
+// Badge modifiers
+//
+// Main badge
+.badge-primary {
+ color: #fff;
+ background-color: $primary-color;
+
+ &.badge-inverted {
+ color: $primary-color;
+ background-color: transparent;
+ }
+}
+
+// Positive badge
+.badge-positive {
+ color: #fff;
+ background-color: $positive-color;
+
+ &.badge-inverted {
+ color: $positive-color;
+ background-color: transparent;
+ }
+}
+
+// Negative badge
+.badge-negative {
+ color: #fff;
+ background-color: $negative-color;
+
+ &.badge-inverted {
+ color: $negative-color;
+ background-color: transparent;
+ }
+}
+
+
+// Cards
+// --------------------------------------------------
+
+// Cards with table-views
+.card .table-view {
+ background-image: none;
+}
+.card .table-view-cell:last-child {
+ background-image: none;
+}
+
+// Table views
+// --------------------------------------------------
+
+.table-view {
+ border-top: 0;
+ border-bottom: 0;
+ @include hairline(double, #c8c7cc, 0); // Double grey border.
+
+ .table-view-cell {
+ border-bottom: 0;
+ @include hairline(single, #c8c7cc, 15px); // Single grey border with 15px offset.
+
+ // Remove the border from the last table view item
+ &:last-child {
+ background-image: none;
+ }
+ }
+
+ // Table view dividers
+ .table-view-divider {
+ border-top: 0;
+ border-bottom: 0;
+ @include hairline(double, #c8c7cc, 0); // Double (top and bottom) grey border with no offset.
+ }
+}
+
+
+// Forms
+// --------------------------------------------------
+
+select,
+textarea,
+input[type="text"],
+input[type="search"],
+input[type="password"],
+input[type="datetime"],
+input[type="datetime-local"],
+input[type="date"],
+input[type="month"],
+input[type="time"],
+input[type="week"],
+input[type="number"],
+input[type="email"],
+input[type="url"],
+input[type="tel"],
+input[type="color"],
+.input-group {
+ height: 40px;
+ padding: 10px 15px;
+ border: 1px solid rgba(0, 0, 0, .2);
+}
+
+// Rounded search input
+input[type="search"] {
+ height: 34px;
+ text-align: center;
+ background-color: rgba(0,0,0,.1);
+ border: 0;
+ border-radius: 6px;
+}
+input[type="search"]:focus {
+ text-align: left;
+}
+select,
+textarea,
+.input-group {
+ height: auto;
+}
+
+// Input groups (cluster multiple inputs together into a single group)
+// -------------------------------------------------------------------
+.input-group {
+ padding: 0;
+ border: 0;
+ @include hairline(double, #c8c7cc, 0); // Double grey border.
+}
+.input-group input {
+ border: 0;
+ @include hairline(single, #c8c7cc, 15px);
+}
+// Remove bottom border on last input to avoid double bottom border
+.input-group input:last-child {
+ background-image: none;
+}
+
+// Input groups with labels
+// --------------------------------------------------
+
+// To use labels with input groups, wrap a label and an input in an .input-row
+.input-row {
+ border-bottom: 0;
+ @include hairline(single, #c8c7cc, 15px); // Single grey border with a 15px offset.
+}
+// Remove bottom border on last input-row to avoid double bottom border
+.input-row:last-child,
+.input-row label + input {
+ background-image: none;
+}
+
+
+// Segmented controls
+// --------------------------------------------------
+
+.segmented-control {
+ background-color: transparent;
+ border: 1px solid $default-color;
+
+ .control-item {
+ color: $default-color;
+ border-color: $default-color;
+ @include transition(background-color .1s linear);
+
+ &:active {
+ background-color: lighten($default-color, 35%);
+ }
+ &.active {
+ color: #fff;
+ background-color: $default-color;
+ }
+ }
+}
+
+// Other segmented controller types
+//
+// Primary
+.segmented-control-primary {
+ border: 1px solid $primary-color;
+
+ .control-item {
+ color: $primary-color;
+ border-color: inherit;
+
+ &:active {
+ background-color: lighten($primary-color, 35%);
+ }
+ &.active {
+ color: #fff;
+ background-color: $primary-color;
+ }
+ }
+}
+
+// Positive
+.segmented-control-positive {
+ border: 1px solid $positive-color;
+
+ .control-item {
+ color: $positive-color;
+ border-color: inherit;
+
+ &:active {
+ background-color: lighten($positive-color, 35%);
+ }
+ &.active {
+ color: #fff;
+ background-color: $positive-color;
+ }
+ }
+}
+
+// Negative
+.segmented-control-negative {
+ border: 1px solid $negative-color;
+
+ .control-item {
+ color: $negative-color;
+ border-color: inherit;
+
+ &:active {
+ background-color: lighten($negative-color, 35%);
+ }
+ &.active {
+ color: #fff;
+ background-color: $negative-color;
+ }
+ }
+}
+
+
+// Popovers
+// --------------------------------------------------
+
+.popover {
+ border-radius: 12px;
+ -webkit-transition: -webkit-transform .2s ease-in-out, opacity .2s ease-in-out;
+ -moz-transition: -moz-transform .2s ease-in-out, opacity .2s ease-in-out;
+ transition: transform .2s ease-in-out, opacity .2s ease-in-out;
+ @include transition(-webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out);
+
+ &:before {
+ border-bottom: 15px solid $chrome-color;
+ }
+}
+
+// Popovers with `bar`
+.popover .bar {
+ @include box-shadow(none);
+}
+
+// Popovers with `bar-nav`
+.popover .bar-nav {
+ border-bottom: 1px solid rgba(0,0,0,.15);
+}
+
+// Popovers with `table-views1
+.popover .table-view {
+ border-radius: 12px;
+ background-image: none;
+}
+
+
+// Modal styles
+// --------------------------------------------------
+
+.modal {
+ @include transition-timing-function($timing-fuction);
+
+ // Active modal
+ &.active {
+ @include transition-timing-function($timing-fuction);
+ }
+}
+
+
+// Toggles styles
+// --------------------------------------------------
+.toggle {
+ width: 47px;
+ border: 2px solid #e6e6e6;
+ @include box-shadow(inset 0 0 0 0 #e1e1e1);
+ @include transition-property(box-shadow, border);
+ @include transition-duration(.2s);
+
+ // Sliding handle
+ .toggle-handle {
+ border: 1px solid rgba(0, 0, 0, .2);
+ -webkit-transition-property: -webkit-transform, border, width;
+ -moz-transition-property: -moz-transform, border, width;
+ transition-property: transform, border, width;
+ @include box-shadow(0 3px 3px rgba(0,0,0,.08));
+ }
+ &:before {
+ display: none;
+ }
+ // Active state for toggle
+ &.active {
+ border: 2px solid $positive-color;
+ background-color: transparent;
+ @include box-shadow(inset 0 0 0 13px $positive-color);
+
+ .toggle-handle {
+ @include transform(translate3d(17px,0,0));
+ }
+
+ .toggle-handle {
+ border-color: $positive-color;
+ }
+ }
+}
+
+
+// Push styles
+// --------------------------------------------------
+.content {
+ // Fade animation
+ &.fade {
+ @include transition(opacity .2s ease-in-out);
+ }
+ // Slide animation
+ &.sliding {
+ @include transition-timing-function ($timing-fuction);
+
+ // Adding the overlay
+ &.sliding-in,
+ &.right:not([class*="sliding-in"]) {
+ @include animation-name(fadeOverlay);
+ @include animation-duration(.4s);
+ }
+
+ &.right:not([class*="sliding-in"]) {
+ @include animation-direction(reverse);
+ }
+
+ &.left {
+ @include transform(translate3d(-20%, 0, 0)); // Creates the parallax effect
+ }
+ }
+}
+
+// Overlay animation for the slide transition
+@-webkit-keyframes fadeOverlay {
+ from { @include box-shadow(0 0 10px rgba(0,0,0,0), -320px 0 0 rgba(0,0,0,0)); }
+ to { @include box-shadow(0 0 10px rgba(0,0,0,.3), -320px 0 0 rgba(0,0,0,.1)); }
+}
diff --git a/sass/toggles.scss b/sass/toggles.scss
new file mode 100644
index 0000000..d726757
--- /dev/null
+++ b/sass/toggles.scss
@@ -0,0 +1,62 @@
+//
+// Toggle styles (to be used with toggles.js)
+// --------------------------------------------------
+
+.toggle {
+ display: block;
+ position: relative;
+ width: 74px;
+ height: 30px;
+ background-color: #fff;
+ border: 2px solid #ddd;
+ border-radius: 20px;
+ @include transition-property(background-color, border);
+ @include transition-duration(.2s);
+
+ // Sliding handle
+ .toggle-handle {
+ position: absolute;
+ top: -1px;
+ left: -1px;
+ z-index: 2;
+ width: 28px;
+ height: 28px;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 100px;
+ -webkit-transition-property: -webkit-transform, border, width;
+ -moz-transition-property: -moz-transform, border, width;
+ transition-property: transform, border, width;
+ @include transition-duration(.2s);
+ }
+ &:before {
+ position: absolute;
+ top: 3px;
+ right: 11px;
+ color: #999;
+ font-size: 13px;
+ text-transform: uppercase;
+ content: "Off";
+ }
+
+ // Active state for toggle
+ &.active {
+ border: 2px solid $positive-color;
+ background-color: $positive-color;
+
+ .toggle-handle {
+ border-color: $positive-color;
+ @include transform(translate3d(44px,0,0));
+ }
+ &:before {
+ right: auto;
+ left: 15px;
+ color: #fff;
+ content: "On";
+ }
+ }
+ // Hide the checkbox
+ input[type="checkbox"] {
+ display: none;
+ }
+}
diff --git a/sass/type.scss b/sass/type.scss
new file mode 100644
index 0000000..d135e15
--- /dev/null
+++ b/sass/type.scss
@@ -0,0 +1,23 @@
+//
+// Typography
+// --------------------------------------------------
+
+h1, h2, h3, h4, h5, h6 {
+ margin-top: 0;
+ margin-bottom: 10px;
+ line-height: 1;
+}
+h1, .h1 { font-size: 36px; }
+h2, .h2 { font-size: 30px; }
+h3, .h3 { font-size: 24px; }
+h4, .h4 { font-size: 18px; }
+h5, .h5 { font-size: 14px; margin-top: 20px; }
+h6, .h6 { font-size: 12px; margin-top: 20px; }
+
+// Paragraphs
+p {
+ margin-top: 0;
+ margin-bottom: 10px;
+ font-size: 14px;
+ color: #777;
+}
diff --git a/sass/variables.scss b/sass/variables.scss
new file mode 100644
index 0000000..de2d9a2
--- /dev/null
+++ b/sass/variables.scss
@@ -0,0 +1,58 @@
+//
+// Variables
+// --------------------------------------------------
+
+
+// Type
+// --------------------------------------------------
+$font-family-default: "Helvetica Neue", Helvetica, sans-serif;
+$font-size-default: 17px;
+$font-weight: 500;
+$font-weight-light: 400;
+$line-height-default: 21px;
+
+
+// Colors
+// --------------------------------------------------
+
+// Main theme colors
+$primary-color: #428bca;
+$chrome-color: #fff;
+
+// Action colors
+$default-color: #fff;
+$positive-color: #5cb85c;
+$negative-color: #d9534f;
+
+
+// Bars
+// --------------------------------------------------
+
+$bar-base-height: 44px;
+$bar-tab-height: 50px;
+$bar-side-spacing: 10px;
+
+
+// Cards
+// --------------------------------------------------
+
+$card-bg: #fff;
+
+
+// Buttons
+// --------------------------------------------------
+
+$button-font-size: 12px;
+
+
+// Transitions
+// --------------------------------------------------
+
+$timing-fuction: cubic-bezier(.1,.5,.1,1); // Inspired by @c2prods
+
+
+// Borders
+// --------------------------------------------------
+
+$border-default: 1px solid #ddd;
+$border-radius: 6px;
diff --git a/test/app/checkout.html b/test/app/checkout.html
deleted file mode 100644
index 2e41a9a..0000000
--- a/test/app/checkout.html
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Movie finder</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
-
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../dist/touch-icons/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../dist/touch-icons/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
-
- <link rel="stylesheet" href="../../dist/ratchet.css">
- <link rel="stylesheet" href="css/app.css">
- <script src="../../dist/ratchet.js"></script>
- <script src="../../dos/js/fingerblast.js"></script>
-
- </head>
- <body>
- <header class="bar-title">
- <a class="button-prev" href="choose-theater.html" data-transition="slide-out">
- Back
- </a>
- <h1 class="title">Buy tickets</h1>
- </header>
-
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item active">
- <a href="index.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Movies</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="theaters.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Theaters</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="settings.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Settings</div>
- </a>
- </li>
- </ul>
- </nav>
-
- <div class="content">
- <div class="checkout-form content-padded">
- <form>
- <div class="input-group">
- <div class="input-row">
- <input type="text" placeholder="Fullname">
- </div>
- <div class="input-row">
- <input type="email" placeholder="Email">
- </div>
- </div>
-
- <div class="input-group">
- <div class="input-row">
- <input type="text" placeholder="Name on card">
- </div>
- <div class="input-row">
- <input type="text" placeholder="Credit card number">
- </div>
- <div class="input-row">
- <input type="text" placeholder="Security code">
- </div>
- </div>
-
- <a class="button-positive button-block">Checkout</a>
- </form>
- </div>
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/test/app/choose-movie.html b/test/app/choose-movie.html
deleted file mode 100644
index c27bf33..0000000
--- a/test/app/choose-movie.html
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Movie finder</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
-
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../dist/touch-icons/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../dist/touch-icons/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
-
- <link rel="stylesheet" href="../../dist/ratchet.css">
- <link rel="stylesheet" href="css/app.css">
- <script src="../../dist/ratchet.js"></script>
-
- </head>
- <body>
-
- <header class="bar-title">
- <a class="button-prev" href="theaters.html" data-transition="slide-out">
- Back
- </a>
- <h1 class="title">Choose a movie</h1>
- </header>
- <nav class="bar-standard bar-header-secondary">
- <form>
- <input type="search" placeholder="Search for movies">
- </form>
- </nav>
-
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item">
- <a href="index.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Movies</div>
- </a>
- </li>
- <li class="tab-item active">
- <a href="theaters.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Theaters</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="settings.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Settings</div>
- </a>
- </li>
- </ul>
- </nav>
-
- <div class="content">
-
- <ul class="list">
- <li class="list-divider">Recommended movies</li>
- <li>
- <strong>Argo</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Skyfall: 007</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Wreck-it Ralph</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li class="list-divider">Top movies</li>
- <li>
- <strong>Movie 4</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 5</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 6</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 7</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 8</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 9</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 10</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 11</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Movie 12</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- </ul>
-
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/test/app/choose-theater.html b/test/app/choose-theater.html
deleted file mode 100644
index 1bec8dd..0000000
--- a/test/app/choose-theater.html
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Movie finder</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
-
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../dist/touch-icons/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../dist/touch-icons/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
-
- <link rel="stylesheet" href="../../dist/ratchet.css">
- <link rel="stylesheet" href="css/app.css">
- <script src="../../dist/ratchet.js"></script>
- <script src="../../docs/js/fingerblast.js"></script>
-
- </head>
- <body>
-
- <header class="bar-title">
- <a class="button-prev" href="index.html" data-transition="slide-out">
- Back
- </a>
- <h1 class="title">Argo</h1>
- </header>
-
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item active">
- <a href="index.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Movies</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="theaters.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Theaters</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="settings.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Settings</div>
- </a>
- </li>
- </ul>
- </nav>
-
- <div class="content">
-
- <ul class="list">
- <li class="list-divider">Theaters nearby</li>
- <li>
- <strong>Metreon 16</strong>
- <p>1.3 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>AMC 5</strong>
- <p>3.5 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Regal 42</strong>
- <p>7.3 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>Shorline theater</strong>
- <p>12.5 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>AMC 16</strong>
- <p>12.2 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>BW3 16</strong>
- <p>13.4 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>MC Hammer 16</strong>
- <p>14.1 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>AMC 3</strong>
- <p>14.3 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>AMC 2</strong>
- <p>14.7 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- <li>
- <strong>AMC 10</strong>
- <p>15 miles away</p>
- <a class="button-positive" href="checkout.html" data-transition="slide-in">Buy Tickets</a>
- </li>
- </ul>
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/test/app/css/app.css b/test/app/css/app.css
deleted file mode 100644
index c53cafc..0000000
--- a/test/app/css/app.css
+++ /dev/null
@@ -1,12 +0,0 @@
-.slider {
- margin-bottom: 0;
- height: 150px;
-}
-
-.slider li img {
- width: 100%;
-}
-
-.form-wrapper {
- padding: 10px;
-} \ No newline at end of file
diff --git a/test/app/index.html b/test/app/index.html
deleted file mode 100644
index f37a6f4..0000000
--- a/test/app/index.html
+++ /dev/null
@@ -1,160 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Movie finder</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
-
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../dist/touch-icons/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../dist/touch-icons/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
-
- <link rel="stylesheet" href="../../dist/ratchet.css">
- <link rel="stylesheet" href="css/app.css">
- <script src="../../dist/ratchet.js"></script>
-
- </head>
- <body>
-
- <header class="bar-title">
- <h1 class="title">Movie finder</h1>
- </header>
- <nav class="bar-standard bar-header-secondary">
- <form>
- <input type="search" placeholder="Search">
- </form>
- </nav>
-
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item active">
- <a href="index.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Movies</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="theaters.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Theaters</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="settings.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Settings</div>
- </a>
- </li>
- </ul>
- </nav>
-
- <div class="content">
-
- <div class="slider">
- <ul>
- <li>
- <img src="img/argo.png">
- </li>
- <li>
- <img src="img/skyfall.png">
- </li>
- <li>
- <img src="img/ralph.png">
- </li>
- </ul>
- </div>
-
- <ul class="list">
- <li class="list-divider">Recommended movies</li>
- <li>
- <a href="choose-theater.html">
- <strong>Argo</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Skyfall: 007</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Wreck-it Ralph</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li class="list-divider">Top movies</li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 4</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 5</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 6</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 7</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 8</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 9</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 10</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 11</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-theater.html" data-transition="slide-in">
- <strong>Movie 12</strong>
- <p>Lorem ipsum dolor sit amet</p>
- <span class="chevron"></span>
- </a>
- </li>
- </ul>
-
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/test/app/settings.html b/test/app/settings.html
deleted file mode 100644
index eaed189..0000000
--- a/test/app/settings.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Movie finder</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
-
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../dist/touch-icons/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../dist/touch-icons/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
-
- <link rel="stylesheet" href="../../dist/ratchet.css">
- <link rel="stylesheet" href="css/app.css">
- <script src="../../dist/ratchet.js"></script>
- <script src="../../docs/js/fingerblast.js"></script>
-
- </head>
- <body>
-
- <header class="bar-title">
- <h1 class="title">Settings</h1>
- </header>
-
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item">
- <a href="index.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Movies</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="theaters.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Theaters</div>
- </a>
- </li>
- <li class="tab-item active">
- <a href="settings.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Settings</div>
- </a>
- </li>
- </ul>
- </nav>
-
- <div class="content">
- <div class="form-wrapper">
- <form>
- <div 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>
- </div>
- <a class="button-block">Save changes</a>
- </form>
- </div>
-
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/test/app/theaters.html b/test/app/theaters.html
deleted file mode 100644
index 3032120..0000000
--- a/test/app/theaters.html
+++ /dev/null
@@ -1,131 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Movie finder</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
-
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../dist/touch-icons/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../dist/touch-icons/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/touch-icons/apple-touch-icon-57x57.png">
-
- <link rel="stylesheet" href="../../dist/ratchet.css">
- <link rel="stylesheet" href="css/app.css">
- <script src="../../dist/ratchet.js"></script>
-
- </head>
- <body>
-
- <header class="bar-title">
- <h1 class="title">Find a theater</h1>
- </header>
- <nav class="bar-standard bar-header-secondary">
- <form>
- <input type="search" placeholder="Search">
- </form>
- </nav>
-
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item">
- <a href="index.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Movies</div>
- </a>
- </li>
- <li class="tab-item active">
- <a href="theaters.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Theaters</div>
- </a>
- </li>
- <li class="tab-item">
- <a href="settings.html" data-transition="fade">
- <img class="tab-icon" src="../../docs/img/icon-hamburger.png">
- <div class="tab-label">Settings</div>
- </a>
- </li>
- </ul>
- </nav>
-
- <div class="content">
-
- <ul class="list">
- <li class="list-divider">Theaters nearby</li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>Metreon 16</strong>
- <p>1.3 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>AMC 5</strong>
- <p>3.5 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>Regal 42</strong>
- <p>7.3 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>Shorline theater</strong>
- <p>12.5 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>AMC 16</strong>
- <p>12.2 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>BW3 16</strong>
- <p>13.4 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>MC Hammer 16</strong>
- <p>14.1 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>AMC 3</strong>
- <p>14.3 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>AMC 2</strong>
- <p>14.7 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- <li>
- <a href="choose-movie.html" data-transition="slide-in">
- <strong>AMC 10</strong>
- <p>15 miles away</p>
- <span class="chevron"></span>
- </a>
- </li>
- </ul>
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/test/components/index.html b/test/components/index.html
deleted file mode 100644
index 03cd8e5..0000000
--- a/test/components/index.html
+++ /dev/null
@@ -1,549 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Testing</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="stylesheet" href="../../lib/css/base.css">
- <link rel="stylesheet" href="../../lib/css/bars.css">
- <link rel="stylesheet" href="../../lib/css/lists.css">
- <link rel="stylesheet" href="../../lib/css/forms.css">
- <link rel="stylesheet" href="../../lib/css/buttons.css">
- <link rel="stylesheet" href="../../lib/css/chevrons.css">
- <link rel="stylesheet" href="../../lib/css/counts.css">
- <link rel="stylesheet" href="../../lib/css/segmented-controllers.css">
- <link rel="stylesheet" href="../../lib/css/popovers.css">
- <link rel="stylesheet" href="../../lib/css/sliders.css">
- <link rel="stylesheet" href="../../lib/css/toggles.css">
- <link rel="stylesheet" href="../../lib/css/push.css">
- <script src="../../lib/js/push.js"></script>
- <script src="../../lib/js/toggles.js"></script>
- <script src="../../lib/js/sliders.js"></script>
- <script src="../../lib/js/popovers.js"></script>
- <script src="../../lib/js/segmented-controllers.js"></script>
-
- <style>
- [class*="bar"] {
- position: relative;
- }
- .slider,
- .slider li,
- .slider li img {
- width: 100%;
- }
- </style>
-
- </head>
-
-<!-- ontouchstart property makes :active/:hover behaviors work on everything -->
-<body ontouchstart="">
-
- <div class="content">
-
- <header class="bar-title">
- <ul class="segmented-controller">
- <li class="active">
- <a href="#item1">Thing one</a>
- </li>
- <li>
- <a href="#item2">Thing two</a>
- </li>
- </ul>
- </header>
-
- <div>
- <div id="item1" class="segmented-controller-item active"><p>section #1</p></div>
- <div id="item2" class="segmented-controller-item"><p>section #2</p></div>
- </div>
-
-
- <!-- SLIDER ============================================================ -->
- <div class="slider">
- <ul>
- <li>
- <img src="http://ionehellobeautiful.files.wordpress.com/2010/05/lebron-james3.jpg">
- </li>
- <li>
- <img src="http://www.nba.com/media/allstar2006/james_300_060115.jpg">
- </li>
- <li>
- <img src="http://hoopedia.nba.com/images/e/eb/Lebron-james_streetclothes.jpg">
- </li>
- </ul>
- </div>
- <div class="slider">
- <ul>
- <li>
- <img src="http://ionehellobeautiful.files.wordpress.com/2010/05/lebron-james3.jpg">
- </li>
- <li>
- <img src="http://www.nba.com/media/allstar2006/james_300_060115.jpg">
- </li>
- <li>
- <img src="http://hoopedia.nba.com/images/e/eb/Lebron-james_streetclothes.jpg">
- </li>
- </ul>
- </div>
-
- <!-- POPOVER ============================================================ -->
- <div id="myPopover" class="popover">
- <header class="popover-header">
- <a class="button" href="#">
- Open
- </a>
- <h3 class="title">Popover title</h3>
- <a class="button" href="#">
- Filter
- </a>
- </header>
- <ul class="list">
- <li>Item1</li>
- <li>Item2</li>
- <li>Item3</li>
- <li class="list-divider">With counts</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="count">1</span></li>
- <li>Item2 <span class="count">1</span></li>
- <li>Item3 <span class="count">1</span></li>
- <li class="list-divider">With chevrons</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="chevron"></span></li>
- <li>Item2 <span class="chevron"></span></li>
- <li>Item3 <span class="chevron"></span></li>
- </ul>
- </div>
-
- <!-- TITLEBAR ============================================================ -->
-
- <!-- Title-bar left and right buttons -->
- <header class="bar-title">
- <a class="button button-prev" href="#">
- Left
- </a>
- <h1 class="title">Title</h1>
- <a class="button button-next" href="#">
- Right
- </a>
- </header>
-
- <!-- Title-bar -->
- <header class="bar-title">
- <h1 class="title"><a href="#myPopover">Title</a></h1>
- </header>
-
- <!-- Title-bar left button -->
- <header class="bar-title">
- <a class="button open-shelf" href="#">
- Open fatty
- </a>
- <h1 class="title">Title</h1>
- </header>
-
- <!-- Title-bar right button -->
- <header class="bar-title">
- <h1 class="title">Title</h1>
- <a class="button" href="#">
- Filter
- </a>
- </header>
-
- <div class="test"></div>
-
- <!-- Title-bar right button -->
- <header class="bar-title">
- <ul class="segmented-controller">
- <li class="active">
- <a href="#">Thing one</a>
- </li>
- <li>
- <a href="#">Thing two</a>
- </li>
- <li>
- <a href="#">Thing three</a>
- </li>
- </ul>
- </header>
-
- <!-- Title-bar left button -->
- <header class="bar-title" id="newshit">
- <a class="button open-shelf" href="#">
- Open
- </a>
- <ul class="segmented-controller">
- <li>
- <a href="#">Thing one</a>
- </li>
- <li class="active">
- <a href="#">Thing two</a>
- </li>
- </ul>
- </header>
-
- <!-- Title-bar left button -->
- <header class="bar-title">
- <ul class="segmented-controller">
- <li>
- <a href="#">Thing one</a>
- </li>
- <li class="active">
- <a href="#">Thing two</a>
- </li>
- </ul>
- <a class="button" href="#">
- Filter
- </a>
- </header>
-
- <!-- Title-bar left button -->
- <header class="bar-title">
- <a class="button open-shelf" href="#">
- Open
- </a>
- <ul class="segmented-controller">
- <li>
- <a href="#">Thing one</a>
- </li>
- <li class="active">
- <a href="#">Thing two</a>
- </li>
- </ul>
- <a class="button" href="#">
- Filter
- </a>
- </header>
-
- <!-- BAR-TAB ============================================================ -->
-
- <!-- Bar-tab 5 -->
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item active">
- <img class="tab-icon" src="../docs/img/icon-home.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-profile.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-messages.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-hamburger.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-settings.png" alt="">
- <div class="tab-label">test</div>
- </li>
- </ul>
- </nav>
-
- <!-- Bar-tab 4 -->
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item active">
- <img class="tab-icon" src="../docs/img/icon-home.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-profile.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-messages.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-settings.png" alt="">
- <div class="tab-label">test</div>
- </li>
- </ul>
- </nav>
-
- <!-- Bar-tab 3 -->
- <nav class="bar-tab">
- <ul class="tab-inner">
- <li class="tab-item active">
- <img class="tab-icon" src="../docs/img/icon-home.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-messages.png" alt="">
- <div class="tab-label">test</div>
- </li>
- <li class="tab-item">
- <img class="tab-icon" src="../docs/img/icon-settings.png" alt="">
- <div class="tab-label">test</div>
- </li>
- </ul>
- </nav>
-
-
- <!-- SEARCH BAR ============================================================ -->
- <!-- Search bar -->
- <div class="bar-standard">
- <form>
- <input type="search" placeholder="Search">
- </form>
- </div>
-
-
- <!-- CONTROLLER BAR ============================================================ -->
-
- <!-- Segmented controller as a bar -->
- <nav class="bar-standard">
- <ul class="segmented-controller">
- <li>
- <a href="#">Thing one</a>
- </li>
- <li class="active">
- <a href="#">Thing two</a>
- </li>
- </ul>
- </nav>
-
- <!-- Segmented controller as a bar w/ 3 options -->
- <nav class="bar-standard">
- <ul class="segmented-controller">
- <li>
- <a href="#">Thing one</a>
- </li>
- <li class="active">
- <a href="#">Thing two</a>
- </li>
- <li>
- <a href="#">Thing one</a>
- </li>
- </ul>
- </nav>
-
- <!-- BUTTON BAR ============================================================ -->
-
- <!-- Button bar -->
- <div class="bar-standard">
- <a class="button-block">Block level button</a>
- </div>
-
- <!-- Button bar main -->
- <div class="bar-standard">
- <a class="button-main button-block">Block level button</a>
- </div>
-
- <!-- Button bar positive -->
- <div class="bar-standard">
- <a class="button-positive button-block">Block level button</a>
- </div>
-
- <!-- Button bar negative -->
- <div class="bar-standard">
- <a class="button-negative button-block">Block level button</a>
- </div>
-
- <!-- BUTTONS ============================================================ -->
-
- <!-- Standard buttons -->
- <a class="button">Button</a>
- <a class="button-main">Button</a>
- <a class="button-positive">Button</a>
- <a class="button-negative">Button</a>
-
- <!-- Buttons w/ counts -->
- <a class="button">Button <span class="count">1</span></a>
- <a class="button-main">Button <span class="count">1</span></a>
- <a class="button-positive">Button <span class="count">1</span></a>
- <a class="button-negative">Button <span class="count">1</span></a>
-
- <!-- Buttons at block level -->
- <a class="button-block">Block level button</a>
- <a class="button-main button-block">Block level button</a>
- <a class="button-positive button-block">Block level button</a>
- <a class="button-negative button-block">Block level button</a>
-
- <!-- Buttons at block level w/ counts -->
- <a class="button-block">Block level button <span class="count">1</span></a>
- <a class="button-main button-block">Block level button <span class="count">1</span></a>
- <a class="button-positive button-block">Block level button <span class="count">1</span></a>
- <a class="button-negative button-block">Block level button <span class="count">1</span></a>
-
- <!-- TOGGLE ============================================================ -->
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
-
- <!-- COUNTS ============================================================ -->
- <span class="count">1</span>
- <span class="count-main">2</span>
- <span class="count-positive">3</span>
- <span class="count-negative">4</span>
- <span class="count">5</span>
-
- <!-- LIST ============================================================ -->
- <ul class="list">
- <li>Item1</li>
- <li>Item2</li>
- <li>Item3</li>
- <li class="list-divider">With counts</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="count">1</span></li>
- <li>Item2 <span class="count">1</span></li>
- <li>Item3 <span class="count">1</span></li>
- <li class="list-divider">With chevrons</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="chevron"></span></li>
- <li>Item2 <span class="chevron"></span></li>
- <li>Item3 <span class="chevron"></span></li>
- <li class="list-divider">With chevrons &amp; counts</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="chevron"></span><span class="count-main">1</span></li>
- <li>Item2 <span class="chevron"></span><span class="count-negative">1</span></li>
- <li>Item3 <span class="chevron"></span><span class="count-positive">1</span></li>
- <li class="list-divider">With buttons</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <a class="button">Button</a></li>
- <li>Item2 <a class="button-main">Button</a></li>
- <li>Item3 <a class="button-positive">Button</a></li>
- <li>Item4 <a class="button-negative">Button</a></li>
- <li class="list-divider">With a toggle</li>
- <li>
- Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- <li>
- <a href="#">
- Item2
- </a>
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- <li>
- Item3
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- </ul>
-
- <ul class="list inset">
- <li class="list-divider">Normal</li>
- <li>Item1</li>
- <li>Item2</li>
- <li>Item3</li>
- <li class="list-divider">With counts</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="count">1</span></li>
- <li>Item2 <span class="count">1</span></li>
- <li>Item3 <span class="count">1</span></li>
- <li class="list-divider">With chevrons</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="chevron"></span></li>
- <li>Item2 <span class="chevron"></span></li>
- <li>Item3 <span class="chevron"></span></li>
- <li class="list-divider">With chevrons &amp; counts</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <span class="chevron"></span><span class="count">1</span></li>
- <li>Item2 <span class="chevron"></span><span class="count">1</span></li>
- <li>Item3 <span class="chevron"></span><span class="count">1</span></li>
- <li class="list-divider">With buttons</li>
- <li>Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4 <a class="button">Button</a></li>
- <li>Item2 <a class="button-main">Button</a></li>
- <li>Item3 <a class="button-positive">Button</a></li>
- <li>Item4 <a class="button-negative">Button</a></li>
- <li class="list-divider">With a toggle</li>
- <li>
- Item1 <br> Item1.2 <br> Item1.3 <br> Item1.4
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- <li>
- Item2
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- <li>
- Item3
- <div class="toggle">
- <div class="toggle-handle"></div>
- </div>
- </li>
- <li class="list-divider">Bottom list-divider test</li>
- </ul>
-
- <!-- List with <a>'s -->
- <ul class="inset list">
- <li>
- <a href="#">Item1</a>
- </li>
- <li>
- <a href="#">Item2</a>
- </li>
- </ul>
-
- <!-- SEGMENTED CONTROLLER ============================================================ -->
-
- <!-- Segmented controller with 2 tabs -->
- <ul class="segmented-controller">
- <li><a href="#">Thing one</a></li>
- <li class="active"><a href="#">Thing two</a></li>
- </ul>
-
- <!-- Segmented controller with 3 tabs -->
- <ul class="segmented-controller">
- <li><a href="#">Thing one</a></li>
- <li><a href="#">Thing two</a></li>
- <li class="active"><a href="#">Thing three</a></li>
- </ul>
-
- <!-- Segmented controller with 4 tabs -->
- <ul class="segmented-controller">
- <li><a href="#">Thing one</a></li>
- <li><a href="#">Thing two</a></li>
- <li class="active"><a href="#">Thing three</a></li>
- <li><a href="#">Thing four</a></li>
- </ul>
-
- <!-- Segmented controller with 5 tabs -->
- <ul class="segmented-controller">
- <li><a href="#">Thing one</a></li>
- <li><a href="#">Thing two</a></li>
- <li class="active"><a href="#">Thing three</a></li>
- <li><a href="#">Thing four</a></li>
- <li><a href="#">Thing five</a></li>
- </ul>
-
- <!-- FORMS ============================================================ -->
-
- <!-- Input -->
- <form>
- <input type="text" placeholder="Full name">
- <input type="search" placeholder="Search">
- <textarea rows="5"></textarea>
- <a class="button button-block">Choose existing</a>
- </form>
-
- <!-- Input group -->
- <form class="input-group">
- <input type="text" placeholder="Full name">
- <input type="email" placeholder="Email">
- <input type="text" placeholder="Username">
- </form>
-
- <!-- Input group with labels-->
- <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>
-
-</body>
-</html> \ No newline at end of file
diff --git a/test/components/modals.html b/test/components/modals.html
deleted file mode 100644
index b094550..0000000
--- a/test/components/modals.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Modal slideup</title>
-
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
-
- <link rel="stylesheet" href="../../lib/css/base.css">
- <link rel="stylesheet" href="../../lib/css/bars.css">
- <link rel="stylesheet" href="../../lib/css/lists.css">
- <link rel="stylesheet" href="../../lib/css/forms.css">
- <link rel="stylesheet" href="../../lib/css/buttons.css">
- <link rel="stylesheet" href="../../lib/css/chevrons.css">
- <link rel="stylesheet" href="../../lib/css/counts.css">
- <link rel="stylesheet" href="../../lib/css/segmented-controllers.css">
- <link rel="stylesheet" href="../../lib/css/popovers.css">
- <link rel="stylesheet" href="../../lib/css/modals.css">
- <link rel="stylesheet" href="../../lib/css/sliders.css">
- <link rel="stylesheet" href="../../lib/css/toggles.css">
- <link rel="stylesheet" href="../../lib/css/push.css">
- <script src="../../lib/js/push.js"></script>
- <script src="../../lib/js/toggles.js"></script>
- <script src="../../lib/js/sliders.js"></script>
- <script src="../../lib/js/popovers.js"></script>
- <script src="../../lib/js/modals.js"></script>
- <script src="../../lib/js/segmented-controllers.js"></script>
- </head>
- <body>
-
- <header class="bar-title">
- <h1 class="title">Modal slideup</h1>
- </header>
-
- <div class="content content-padded">
- <a href="#myModal" class="button">Open modal</a>
- </div>
-
- <div id="myModal" class="modal">
- <header class="bar-title">
- <h1 class="title">Modal</h1>
- <a class="button" href="#myModal">
- Close
- </a>
- </header>
-
- <div class="content content-padded">
- <p>Honey, check it out, you got me mesmerized
- With your black hair and fat-ass thighs
- Street poetry is my everyday
- But yo, I gotta stop when you trot my way
- If I was workin at the club you would not pay
- Aiyyo, my man phife diggy, he got somthin to say</p>
-
- <p>I like em brown, yellow, puero rican or hatian
- Name is phife dawg from the zulu nation
- Told you in the jam that we can get down
- Now lets knock the boots like the group h-town
- You got bbd all on your bedroom wall
- But Im above the rim and this is how I ball
- A pretty little somethin on the new york street
- This is how I represent over this here beat</p>
- <p>Talkin bout you</p>
-
- <p>Yo, I took you out</p>
- <p>But sex was on my mind for the whole damn route
- My mind was in a frenzy and a horny state
- But I couldnt drop dimes cause *you couldnt relate*</p>
- </div>
- </div>
-
- </body>
-</html> \ No newline at end of file