Showing preview only (516K chars total). Download the full file or copy to clipboard to get everything.
Repository: twbs/ratchet
Branch: master
Commit: c662c76a3691
Files: 92
Total size: 489.5 KB
Directory structure:
gitextract_7wb2yfi2/
├── .gitattributes
├── .gitignore
├── .travis.yml
├── CNAME
├── CONTRIBUTING.md
├── Gruntfile.js
├── LICENSE
├── README.md
├── _config.yml
├── bower.json
├── dist/
│ ├── css/
│ │ ├── ratchet-theme-android.css
│ │ ├── ratchet-theme-ios.css
│ │ └── ratchet.css
│ └── js/
│ └── ratchet.js
├── docs/
│ ├── LICENSE
│ ├── _data/
│ │ └── ratchicons.yml
│ ├── _includes/
│ │ ├── ad.html
│ │ ├── browser-warning.html
│ │ ├── download-module.html
│ │ ├── footer.html
│ │ ├── header.html
│ │ ├── jump.html
│ │ ├── masthead.html
│ │ └── toolbar.html
│ ├── _layouts/
│ │ ├── default.html
│ │ └── home.html
│ ├── about.html
│ ├── assets/
│ │ ├── css/
│ │ │ ├── docs.css
│ │ │ └── pygments-manni.css
│ │ └── js/
│ │ ├── docs.js
│ │ └── fingerblast.js
│ ├── components.html
│ ├── dist/
│ │ ├── css/
│ │ │ ├── ratchet-theme-android.css
│ │ │ ├── ratchet-theme-ios.css
│ │ │ └── ratchet.css
│ │ └── js/
│ │ └── ratchet.js
│ ├── examples/
│ │ ├── app-android-notes/
│ │ │ ├── css/
│ │ │ │ └── app.css
│ │ │ └── index.html
│ │ ├── app-ios-mail/
│ │ │ ├── css/
│ │ │ │ └── app.css
│ │ │ ├── inbox.html
│ │ │ └── index.html
│ │ └── app-movies/
│ │ ├── choose-theater.html
│ │ ├── css/
│ │ │ └── app.css
│ │ └── index.html
│ ├── examples.html
│ ├── getting-started.html
│ ├── index.html
│ ├── one.html
│ ├── robots.txt
│ ├── sitemap.xml
│ ├── template.html
│ └── two.html
├── grunt/
│ └── ratchicons-data-generator.js
├── js/
│ ├── .jscsrc
│ ├── .jshintrc
│ ├── common.js
│ ├── modals.js
│ ├── popovers.js
│ ├── push.js
│ ├── segmented-controllers.js
│ ├── sliders.js
│ ├── tests/
│ │ ├── .jshintrc
│ │ ├── SpecRunner.html
│ │ ├── commonSpec.js
│ │ ├── modalsSpec.js
│ │ └── sliderSpec.js
│ └── toggles.js
├── package.json
└── sass/
├── .csscomb.json
├── .csslintrc
├── badges.scss
├── bars.scss
├── base.scss
├── buttons.scss
├── cards.scss
├── docs.scss
├── forms.scss
├── mixins.scss
├── modals.scss
├── normalize.scss
├── popovers.scss
├── push.scss
├── ratchet.scss
├── ratchicons.scss
├── segmented-controls.scss
├── sliders.scss
├── table-views.scss
├── theme-android.scss
├── theme-ios.scss
├── toggles.scss
├── type.scss
└── variables.scss
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitattributes
================================================
# Enforce Unix newlines
*.css text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.scss text eol=lf
*.svg text eol=lf
*.xml text eol=lf
*.yml text eol=lf
# Don't diff or textually merge source maps
*.map binary
================================================
FILE: .gitignore
================================================
# Ignore docs files
_gh_pages
_site
.ruby-version
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
*.vi
*~
# OS or Editor folders
.DS_Store
._*
Thumbs.db
.cache
.project
.settings
.tmproj
*.esproj
nbproject
*.sublime-project
*.sublime-workspace
.idea
# Komodo
*.komodoproject
.komodotools
# Jekyll metadata
docs/.jekyll-metadata
# Folders to ignore
node_modules
bower_components
.grunt
================================================
FILE: .travis.yml
================================================
sudo: required
dist: trusty
language: node_js
git:
depth: 10
node_js:
- "4"
- "5"
env:
matrix:
- RUBY_VERSION=2.2
before_install:
- rvm install $RUBY_VERSION
- rvm use $RUBY_VERSION --fuzzy
- export GEMDIR=$(rvm gemdir)
install:
- travis_retry npm install -g grunt-cli
- travis_retry npm install
- travis_retry gem install --no-document "jekyll:~>3.1"
matrix:
fast_finish: true
notifications:
slack: heybb:51atQXKR2rpnbohAZ0X1vNbE
================================================
FILE: CNAME
================================================
goratchet.com
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing to Ratchet
## Types of issues
The GitHub issue tracker should only be used for one of the
following:
+ **Bugs** — when a feature of the project has been _identified as
broken_.
+ **Feature requests** — when you ask for a _new feature_ to be added to a
project.
+ **Contribution enquiries** — when you want to discuss whether a _new
feature_ or _change_ would be accepted in a project before you begin
development work on it.
These are some things that don't belong in the issue tracker:
+ **Please avoid personal support requests.** We cannot
provide personal support for implementation issues. The best place for help
is generally going to be StackOverflow, Twitter, IRC, etc.
+ **Please avoid derailing issues.** Keep the discussion on topic and respect
the opinions of others.
## Bugs
A bug is a _demonstrable problem_ that is caused by the code in the
repository.
If you've come across a problem with the code and you're letting us know about
it, _thank you_. We appreciate your time and the effort you're making to help
improve the code for everyone else!
Please read the following guidelines for reporting bugs:
1. **Use the GitHub issue search** — check if the issue has already been
reported. If it has been, please comment on the existing issue.
2. **Check if the issue has been fixed** — the latest `master` or
development branch may already contain a fix.
3. **Isolate the demonstrable problem** — make sure that the code in the
project's repository is _definitely_ responsible for the issue. Create a
[reduced test case](http://css-tricks.com/6263-reduced-test-cases/) - an
extremely simple and immediately viewable example of the issue.
4. **Include a live example** — provide a link to your reduced test case
when appropriate (e.g. if the issue is related to front-end technologies).
Please use [jsFiddle](http://jsfiddle.net) to host examples.
Please try to be as detailed as possible in your report too. What is your
environment? What steps will reproduce the issue? What browser(s) and OS
experience the problem? What would you expect to be the outcome? All these
details will help me and others to assess and fix any potential bugs.
### Example of a good bug report
> Short and descriptive title
>
> A summary of the issue and the browser/OS environment in which it occurs. If
> suitable, include the steps required to reproduce the bug.
>
> 1. This is the first step
> 2. This is the second step
> 3. Further steps, etc.
>
> `<url>` - a link to the reduced test case
>
> Any other information you want to share that is relevant to the issue being
> reported. This might include the lines of code that you have identified as
> causing the bug, and potential solutions (and your opinions on their
> merits).
A good bug report shouldn't leave us needing to chase you up to get further
information that is required to assess or fix the bug.
## Feature requests
Feature requests are welcome! Please provide links to examples or articles that
help to illustrate the specifics of a feature you're requesting. The more
detail, the better. It will help us to decide whether the feature is something I
agree should become part of the project.
## Contribution enquiries
Contribution enquiries should take place before any significant pull request,
otherwise you risk spending a lot of time working on something that we might not
want to pull into the repository.
In this regard, some contribution enquires may be feature requests that you
would like to have a go at implementing yourself if they are wanted. Other
enquiries might revolve around refactoring code or porting a project to
different languages.
## Pull requests
Good pull requests - patches, improvements, new features - are a fantastic
help.
If you've spotted any small, obvious errors and want to help out by patching it,
that will be much appreciated.
If your contribution involves a significant amount of work or substantial
changes to any part of the project, please open a "contribution enquiry" issue
first to check that the work is wanted or matches the goals of the project.
All pull requests should remain focused in scope and avoid containing unrelated
commits.
Please follow this process; it's the best way to get your work included in the
project:
1. [Fork](https://github.com/twbs/ratchet/fork) the project.
2. Clone your fork (`git clone
git@github.com:<your-username>/<repo-name>.git`).
3. Add an `upstream` remote (`git remote add upstream
git://github.com/<upsteam-owner>/<repo-name>.git`).
4. Get the latest changes from upstream (e.g. `git pull upstream
<dev-branch>`).
5. Create a new topic branch to contain your feature, change, or fix (`git
checkout -b <topic-branch-name>`).
6. Make sure that your changes adhere to the current coding conventions used
throughout the project - indentation, accurate comments, etc.
7. Commit your changes in logical chunks; use git's [interactive
rebase](https://help.github.com/articles/interactive-rebase) feature to tidy
up your commits before making them public. Please adhere to these [git commit
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
or your pull request is unlikely be merged into the main project.
8. Locally merge (or rebase) the upstream branch into your topic branch.
9. Push your topic branch up to your fork (`git push origin
<topic-branch-name>`).
10. [Open a Pull Request](http://help.github.com/send-pull-requests/) with a
clear title and description. Please mention which browsers you tested in.
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 `sass/` and `js/`.
## Special thanks to @necolas
For writing the original [issue-guidelines](https://github.com/necolas/issue-guidelines/) from which these were adapted.
================================================
FILE: Gruntfile.js
================================================
/*!
* Ratchet's Gruntfile
* http://goratchet.com
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
*/
/* jshint node: true */
module.exports = function (grunt) {
'use strict';
// Force use of Unix newlines
grunt.util.linefeed = '\n';
RegExp.quote = function (string) {
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
};
var generateRatchiconsData = require('./grunt/ratchicons-data-generator.js');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Metadata.
meta: {
distPath: 'dist/',
docsAssetsPath: 'docs/assets/',
docsDistPath: 'docs/dist/',
docsPath: 'docs/',
jsPath: 'js/',
jsTestPath: 'js/tests/',
srcPath: 'sass/'
},
banner: '/*!\n' +
' * =====================================================\n' +
' * Ratchet v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed under <%= pkg.license %> (https://github.com/twbs/ratchet/blob/master/LICENSE)\n' +
' *\n' +
' * v<%= pkg.version %> designed by @connors.\n' +
' * =====================================================\n' +
' */\n',
clean: {
dist: ['<%= meta.distPath %>', '<%= meta.docsDistPath %>']
},
concat: {
ratchet: {
options: {
banner: '<%= banner %>'
},
src: [
'js/common.js',
'js/modals.js',
'js/popovers.js',
'js/push.js',
'js/segmented-controllers.js',
'js/sliders.js',
'js/toggles.js'
],
dest: '<%= meta.distPath %>js/<%= pkg.name %>.js'
}
},
sass: {
options: {
outputStyle: 'expanded',
precision: 6,
sourceComments: false,
sourcemap: false,
style: 'expanded'
},
core: {
src: 'sass/ratchet.scss',
dest: '<%= meta.distPath %>css/<%= pkg.name %>.css'
},
android: {
src: 'sass/theme-android.scss',
dest: '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.css'
},
ios: {
src: 'sass/theme-ios.scss',
dest: '<%= meta.distPath %>css/<%= pkg.name %>-theme-ios.css'
},
docs: {
src: 'sass/docs.scss',
dest: '<%= meta.docsAssetsPath %>css/docs.css'
}
},
usebanner: {
dist: {
options: {
position: 'top',
banner: '<%= banner %>'
},
files: {
src: [
'<%= meta.distPath %>css/*.css',
'<%= meta.docsAssetsPath %>css/docs.css'
]
}
}
},
csscomb: {
options: {
config: 'sass/.csscomb.json'
},
core: {
files: {
'<%= sass.core.dest %>': '<%= sass.core.dest %>'
}
},
android: {
files: {
'<%= sass.android.dest %>': '<%= sass.android.dest %>'
}
},
ios: {
files: {
'<%= sass.ios.dest %>': '<%= sass.ios.dest %>'
}
},
docs: {
files: {
'<%= sass.docs.dest %>': '<%= sass.docs.dest %>'
}
}
},
copy: {
fonts: {
expand: true,
src: 'fonts/*',
dest: '<%= meta.distPath %>'
},
docs: {
expand: true,
cwd: '<%= meta.distPath %>',
src: [
'**/*'
],
dest: '<%= meta.docsDistPath %>'
}
},
autoprefixer: {
options: {
browsers: [
'Android 2.3',
'Android >= 4',
'Chrome >= 20',
'Firefox >= 24', // Firefox 24 is the latest ESR
'Explorer >= 9',
'iOS >= 6',
'Opera >= 12',
'Safari >= 6'
]
},
core: {
src: '<%= sass.core.dest %>'
},
android: {
options: {
browsers: [
'Android 2.3',
'Android >= 4',
'Chrome >= 20',
'Firefox >= 24', // Firefox 24 is the latest ESR
'Opera >= 12'
]
},
src: '<%= sass.android.dest %>'
},
ios: {
options: {
browsers: ['iOS >= 6']
},
src: '<%= sass.ios.dest %>'
},
docs: {
src: '<%= sass.docs.dest %>'
}
},
cssmin: {
options: {
keepSpecialComments: '*' // keep all important comments
},
ratchet: {
src: '<%= meta.distPath %>css/<%= pkg.name %>.css',
dest: '<%= meta.distPath %>css/<%= pkg.name %>.min.css',
options: {
sourceMap: true
}
},
theme: {
files: {
'<%= meta.distPath %>css/<%= pkg.name %>-theme-ios.min.css': '<%= meta.distPath %>css/<%= pkg.name %>-theme-ios.css',
'<%= meta.distPath %>css/<%= pkg.name %>-theme-android.min.css': '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.css'
}
},
docs: {
src: [
'<%= meta.docsAssetsPath %>css/docs.css',
'<%= meta.docsAssetsPath %>css/pygments-manni.css'
],
dest: '<%= meta.docsAssetsPath %>css/docs.min.css',
options: {
sourceMap: true
}
}
},
uglify: {
options: {
banner: '<%= banner %>',
compress: {
warnings: false
},
mangle: true,
preserveComments: false
},
ratchet: {
src: '<%= concat.ratchet.dest %>',
dest: '<%= meta.distPath %>js/<%= pkg.name %>.min.js',
options: {
sourceMap: true
}
},
docs: {
src: [
'<%= meta.docsAssetsPath %>js/docs.js',
'<%= meta.docsAssetsPath %>js/fingerblast.js'
],
dest: '<%= meta.docsAssetsPath %>js/docs.min.js'
}
},
watch: {
options: {
hostname: 'localhost',
livereload: true,
port: 8000
},
js: {
files: '<%= meta.jsPath %>**/*.js',
tasks: ['dist-js', 'copy']
},
css: {
files: '<%= meta.srcPath %>**/*.scss',
tasks: ['dist-css', 'copy']
},
html: {
files: '<%= meta.docsPath %>**',
tasks: ['jekyll']
}
},
jekyll: {
options: {
config: '_config.yml'
},
docs: {},
github: {
options: {
raw: 'github: true'
}
}
},
htmlmin: {
dist: {
options: {
collapseWhitespace: true,
conservativeCollapse: true,
minifyCSS: true,
minifyJS: true,
removeAttributeQuotes: true,
removeComments: true
},
expand: true,
cwd: '_site',
dest: '_site',
src: [
'**/*.html'
]
}
},
jshint: {
options: {
jshintrc: 'js/.jshintrc'
},
grunt: {
src: ['Gruntfile.js', 'grunt/*.js']
},
src: {
src: 'js/*.js'
},
docs: {
src: ['<%= meta.docsAssetsPath %>/js/docs.js', '<%= meta.docsAssetsPath %>/js/fingerblast.js']
},
tests: {
options: {
jshintrc: 'js/tests/.jshintrc'
},
src: 'js/tests/*.js'
}
},
jscs: {
options: {
config: 'js/.jscsrc'
},
grunt: {
src: '<%= jshint.grunt.src %>'
},
src: {
src: '<%= jshint.src.src %>'
},
docs: {
src: '<%= jshint.docs.src %>'
},
tests: {
src: '<%= jshint.tests.src %>'
}
},
csslint: {
options: {
csslintrc: 'sass/.csslintrc'
},
src: [
'<%= meta.distPath %>/css/<%= pkg.name %>.css',
'<%= meta.distPath %>/css/<%= pkg.name %>-theme-android.css',
'<%= meta.distPath %>/css/<%= pkg.name %>-theme-ios.css'
],
docs: {
options: {
ids: false
},
src: ['<%= meta.docsAssetsPath %>/css/docs.css']
}
},
htmllint: {
options: {
ignore: [
'Attribute "ontouchstart" not allowed on element "body" at this point.',
'Consider using the "h1" element as a top-level heading only (all "h1" elements are treated as top-level headings by many screen readers and other tools).'
]
},
src: '_site/**/*.html'
},
sed: {
versionNumber: {
pattern: (function () {
var old = grunt.option('oldver');
return old ? RegExp.quote(old) : old;
})(),
replacement: grunt.option('newver'),
exclude: [
'dist/fonts',
'docs/assets',
'fonts',
'node_modules'
],
recursive: true
}
},
connect: {
site: {
options: {
base: '_site/',
hostname: 'localhost',
livereload: true,
open: true,
port: 8000
}
}
},
compress: {
main: {
options: {
archive: 'ratchet-<%= pkg.version %>-dist.zip',
mode: 'zip',
level: 9,
pretty: true
},
files: [
{
expand: true,
cwd: 'dist/',
src: ['**'],
dest: 'ratchet-<%= pkg.version %>-dist'
}
]
}
},
jasmine: {
src: '<%= jshint.src.src %>',
options: {
specs: '<%= jshint.tests.src %>',
styles: 'dist/ratchet.min.css',
display: 'short',
vendor: [
'<%= meta.docsAssetsPath %>js/fingerblast.js',
'<%= jshint.src.src %>',
'<%= meta.jsTestPath %>vendor/touchfaker.min.js'
],
outfile: 'js/tests/SpecRunner.html',
keepRunner: true
}
}
});
// Load the plugins
require('load-grunt-tasks')(grunt, { scope: 'devDependencies' });
require('time-grunt')(grunt);
// Default task(s).
grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'usebanner', 'csscomb', 'cssmin']);
grunt.registerTask('dist-js', ['concat', 'uglify']);
grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js', 'copy', 'build-ratchicons-data']);
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
grunt.registerTask('build', ['dist']);
grunt.registerTask('default', ['dist']);
grunt.registerTask('test', ['dist', 'csslint', 'jshint', 'jscs', 'jasmine', 'validate-html']);
grunt.registerTask('server', ['dist', 'jekyll:docs', 'connect', 'watch']);
grunt.registerTask('prep-release', ['dist', 'jekyll:github', 'htmlmin', 'compress']);
grunt.registerTask('build-ratchicons-data', function () { generateRatchiconsData.call(this, grunt); });
// Version numbering task.
// grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
// This can be overzealous, so its changes should always be manually reviewed!
grunt.registerTask('change-version-number', 'sed');
};
================================================
FILE: LICENSE
================================================
The MIT License (MIT)
Copyright (c) 2015 connors and other contributors
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 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.
================================================
FILE: README.md
================================================
# [Ratchet](http://goratchet.com)
[](https://github.com/twbs/ratchet/releases)
[](https://travis-ci.org/twbs/ratchet)
[](https://david-dm.org/twbs/ratchet#info=devDependencies)
Build mobile apps with simple HTML, CSS, and JS components.
## Table of contents
* [Getting started](#getting-started)
* [Documentation](#documentation)
* [Support](#support)
* [Contributing](#contributing)
* [Troubleshooting](#troubleshooting)
* [Versioning](#versioning)
* [Maintainers](#maintainers)
* [License](#license)
## Getting started
* Clone the repo with `git clone https://github.com/twbs/ratchet.git` or just [download](http://github.com/twbs/ratchet/archive/v2.0.2.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
* [Check out examples](http://goratchet.com/examples/)
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).
### What's included
Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:
```
ratchet/
├── css/
│ ├── ratchet.css
│ ├── ratchet.min.css
│ ├── ratchet-theme-android.css
│ ├── ratchet-theme-android.min.css
│ ├── ratchet-theme-ios.css
│ └── ratchet-theme-ios.min.css
├── js/
│ ├── ratchet.js
│ └── ratchet.min.js
└── fonts/
├── ratchicons.eot
├── ratchicons.svg
├── ratchicons.ttf
└── ratchicons.woff
```
We provide compiled CSS and JS (`ratchet.*`), as well as compiled and minified CSS and JS (`ratchet.min.*`). The Ratchicon fonts are included, as are the optional Android and iOS platform themes.
## 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) (requires v3.0.x).
* **Windows users:** Read [this unofficial guide](http://jekyll-windows.juthilo.com/) to get Jekyll up and running without problems.
2. Install the Ruby-based syntax highlighter, [Rouge](https://github.com/jneen/rouge), with `gem install rouge`.
3. From the root `/ratchet` directory, run `jekyll serve` in the command line.
4. Open <http://localhost:4000> in your browser, and boom!
Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com/docs/home/).
### Documentation for previous releases
Documentation for v1.0.2 has been made available for the time being at <http://goratchet.com/1.0.2/> while folks transition to Ratchet 2.
[Previous releases](https://github.com/twbs/ratchet/releases) and their documentation are also available for download.
## Support
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).
## Contributing
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
A small list of "gotchas" is provided below for designers and developers starting to work with Ratchet.
* Ratchet is designed to respond to touch events from a mobile device. In order to use mouse click events (for desktop browsing and testing), you have a few options:
* Enable touch event emulation in Chrome (found in the overrides tab in the web inspector preferences)
* Use a JavaScript library like fingerblast.js to emulate touch events (ideally only loaded from desktop devices)
* Script tags containing JavaScript will not be executed on pages that are loaded with push.js. If you would like to attach event handlers to elements on other pages, document-level event delegation is a common solution.
* 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>`
## Versioning
For transparency into our release cycle and in striving to maintain backward compatibility, Ratchet is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we'll adhere to these rules whenever possible.
Releases will be numbered with the following format:
`<major>.<minor>.<patch>`
And constructed with the following guidelines:
* Breaking backward compatibility **bumps the major** while resetting minor and patch
* New additions without breaking backward compatibility **bumps the minor** while resetting the patch
* Bug fixes and misc changes **bumps only the patch**
For more information on SemVer, please visit <http://semver.org/>.
## Maintainers
Connor Sears
* <https://twitter.com/connors>
* <https://github.com/connors>
Created by Connor Sears, Dave Gamache, and Jacob Thornton.
## License
Ratchet is licensed under the [MIT License](http://opensource.org/licenses/MIT).
================================================
FILE: _config.yml
================================================
# Meta data
name: Ratchet
authors: Connor Sears
description: Build mobile apps with simple HTML, CSS, and JS components.
# Dependencies
highlighter: rouge
# Permalinks
permalink: pretty
# Server
source: docs
port: 4000
url: http://goratchet.com
================================================
FILE: bower.json
================================================
{
"name": "ratchet",
"description": "Build mobile apps with simple HTML, CSS, and JS components.",
"keywords": [
"css",
"js",
"fonts",
"ios",
"android",
"mobile",
"prototype"
],
"homepage": "http://goratchet.com",
"main": [
"sass/ratchet.scss",
"dist/css/ratchet.css",
"dist/js/ratchet.js",
"dist/fonts/ratchicons.eot",
"dist/fonts/ratchicons.svg",
"dist/fonts/ratchicons.ttf",
"dist/fonts/ratchicons.woff"
],
"ignore": [
"_config.yml",
".travis.yml",
"CNAME",
"CONTRIBUTING.md",
"docs"
]
}
================================================
FILE: dist/css/ratchet-theme-android.css
================================================
/*!
* =====================================================
* Ratchet v2.0.2 (http://goratchet.com)
* Copyright 2016 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
*
* v2.0.2 designed by @connors.
* =====================================================
*/
body {
font-family: "Roboto", sans-serif;
font-size: 18px;
line-height: 22px;
color: #222;
}
a {
color: #33b5e5;
}
a:active {
color: #1a9bcb;
}
.content {
background-color: #f2f2f2;
}
.bar-nav ~ .content {
padding-top: 50px;
}
.bar-header-secondary ~ .content {
padding-top: 100px;
}
.bar-tab ~ .content {
padding-top: 50px;
padding-bottom: 0;
}
.bar-footer ~ .content {
padding-bottom: 50px;
}
.bar-footer-secondary ~ .content {
padding-bottom: 100px;
}
.btn {
padding: 8px 15px;
font-size: 14px;
color: #222;
background-color: #cecece;
border: 0;
border-radius: 2px;
-webkit-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);
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);
}
.btn:active, .btn.active {
color: #222;
background-color: #999;
border: 0;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary {
color: #fff;
background-color: #33b5e5;
border: 0;
}
.btn-primary:active, .btn-primary.active {
color: #fff;
background-color: #1a9bcb;
border: 0;
}
.btn-positive {
color: #fff;
background-color: #9c0;
border: 0;
}
.btn-positive:active, .btn-positive.active {
color: #fff;
background-color: #739900;
border: 0;
}
.btn-negative {
color: #fff;
background-color: #f44;
border: 0;
}
.btn-negative:active, .btn-negative.active {
color: #fff;
background-color: #f11;
border: 0;
}
.btn-outlined {
background-color: transparent;
border: 1px solid #999;
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-outlined.btn-primary {
color: #33b5e5;
border: 1px solid #33b5e5;
}
.btn-outlined.btn-primary:active {
background-color: #33b5e5;
border: 1px solid #33b5e5;
}
.btn-outlined.btn-positive {
color: #9c0;
border: 1px solid #9c0;
}
.btn-outlined.btn-positive:active {
background-color: #9c0;
border: 1px solid #9c0;
}
.btn-outlined.btn-negative {
color: #f44;
border: 1px solid #f44;
}
.btn-outlined.btn-negative:active {
background-color: #f44;
border: 1px solid #f44;
}
.btn-outlined:active {
background-color: #999;
border: 1px solid #999;
-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, .15);
}
.btn .badge.badge-inverted {
background-color: transparent;
}
.btn:active .badge {
color: #fff;
}
.bar {
height: 50px;
background-color: #ddd;
border-bottom: 1px solid #b1b1b1;
-webkit-box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, .07);
box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(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-top: 1px solid #b1b1b1;
border-bottom: 0;
-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;
font-size: 18px;
line-height: 49px;
color: #33b5e5;
}
.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: #999;
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: #9c0;
}
.badge-positive.badge-inverted {
color: #9c0;
background-color: transparent;
}
.badge-negative {
color: #fff;
background-color: #f44;
}
.badge-negative.badge-inverted {
color: #f44;
background-color: transparent;
}
.card {
background-color: transparent;
border-color: #d9d9d9;
border-radius: 2px;
}
.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 {
color: inherit;
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;
background-color: transparent;
border-top: 0;
border-bottom: 2px solid #a9a9a9;
}
.table-view-cell .navigate-left > .btn,
.table-view-cell .navigate-left > .badge,
.table-view-cell .navigate-left > .toggle,
.table-view-cell .navigate-right > .btn,
.table-view-cell .navigate-right > .badge,
.table-view-cell .navigate-right > .toggle,
.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 .navigate-left > .btn,
.table-view-cell > a .navigate-left > .badge,
.table-view-cell > a .navigate-left > .toggle,
.table-view-cell > a .navigate-right > .btn,
.table-view-cell > a .navigate-right > .badge,
.table-view-cell > a .navigate-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: 15px;
}
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);
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
box-shadow: 0 1px 1px rgba(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 {
height: 40px;
border-bottom: 1px solid #d9d9d9;
}
.input-row label {
padding-top: 10px;
padding-bottom: 10px;
}
.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, .25);
box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.segmented-control .control-item {
padding-top: 10px;
padding-bottom: 10px;
color: #222;
border-left: 1px solid #999;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.segmented-control .control-item:first-child {
border-left-width: 0;
}
.segmented-control .control-item:active, .segmented-control .control-item.active {
background-color: #999;
}
.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: #9c0;
}
.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: #f44;
}
.popover {
top: 47px;
left: 15px;
width: 200px;
margin-left: 0;
border: 1px solid #9b9b9b;
border-radius: 0;
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .2);
box-shadow: 0 0 3px rgba(0, 0, 0, .2);
-webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out;
-o-transition: -o-transform .1s ease-in-out, opacity .2s ease-in-out;
transition: transform .1s ease-in-out, opacity .2s ease-in-out;
-webkit-transform: scale(.75);
-o-transform: scale(.75);
transform: scale(.75);
}
.popover:before {
display: none;
}
.popover.visible {
-webkit-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
.backdrop {
background-color: transparent;
}
.popover .bar {
border-radius: 0;
}
.popover .bar-nav ~ .table-view {
padding-top: 50px;
}
.popover .table-view {
border-radius: 12px;
}
.toggle {
width: 104px;
height: 28px;
background-color: #d7d7d7;
border: 2px solid #d7d7d7;
border-radius: 0;
}
.toggle .toggle-handle {
top: 0;
left: 0;
width: 50px;
height: 24px;
background-color: #bebebe;
border: 1px solid #b5b5b5;
border-radius: 2px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .1);
}
.toggle:before {
top: 1px;
right: auto;
left: 11px;
z-index: 3;
color: #fff;
}
.toggle.active {
background-color: #d7d7d7;
border: 2px solid #d7d7d7;
}
.toggle.active .toggle-handle {
margin-right: 2px;
background-color: #33b5e5;
border-color: #33b5e5;
-webkit-transform: translate3d(50px, 0, 0);
transform: translate3d(50px, 0, 0);
}
.toggle.active:before {
right: 14px;
left: auto;
color: #fff;
}
.navigate-left:after,
.push-left:after {
content: '';
}
.navigate-right:after,
.push-right:after {
content: '';
}
.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';
}
================================================
FILE: dist/css/ratchet-theme-ios.css
================================================
/*!
* =====================================================
* Ratchet v2.0.2 (http://goratchet.com)
* Copyright 2016 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
*
* v2.0.2 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 {
color: #929292;
background-color: rgba(247, 247, 247, .98);
border: 1px solid #929292;
-webkit-transition: all;
transition: all;
-webkit-transition-timing-function: linear;
transition-timing-function: linear;
-webkit-transition-duration: .2s;
transition-duration: .2s;
}
.btn:active, .btn.active {
color: #fff;
background-color: #929292;
}
.btn-primary {
color: #fff;
background-color: #007aff;
border: 1px solid #007aff;
}
.btn-primary:active, .btn-primary.active {
background-color: #0062cc;
border: 1px solid #0062cc;
}
.btn-positive {
color: #fff;
background-color: #4cd964;
border: 1px solid #4cd964;
}
.btn-positive:active, .btn-positive.active {
background-color: #2ac845;
border: 1px solid #2ac845;
}
.btn-negative {
color: #fff;
background-color: #dd524d;
border: 1px solid #dd524d;
}
.btn-negative:active, .btn-negative.active {
background-color: #cf2d28;
border: 1px solid #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, .15);
}
.btn .badge.badge-inverted {
background-color: transparent;
}
.btn:active .badge {
color: #fff;
}
.bar {
background-color: rgba(247, 247, 247, .98);
border-bottom: 0;
box-shadow: 0 0 1px rgba(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;
}
.bar-tab {
border-top: 0;
}
.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 {
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-repeat: no-repeat;
background-position: 0 100%, 0 0;
border-top: 0;
border-bottom: 0;
}
.table-view .table-view-cell {
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-repeat: no-repeat;
background-position: 15px 100%;
border-bottom: 0;
}
.table-view .table-view-cell:last-child {
background-image: none;
}
.table-view .table-view-cell > a:not(.btn):active {
color: inherit;
}
.table-view .table-view-divider {
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-repeat: no-repeat;
background-position: 0 100%, 0 0;
border-top: 0;
border-bottom: 0;
}
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);
}
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-group {
padding: 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-repeat: no-repeat;
background-position: 0 100%, 0 0;
border: 0;
}
.input-group input {
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-repeat: no-repeat;
background-position: 15px 100%;
border: 0;
}
.input-group input:last-child {
background-image: none;
}
.input-row {
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-repeat: no-repeat;
background-position: 15px 100%;
border-bottom: 0;
}
.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 .1s linear;
transition: background-color .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: #dff8e4;
}
.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;
transition: -webkit-transform .2s ease-in-out, opacity .2s ease-in-out;
}
.popover:before {
border-bottom: 15px solid rgba(247, 247, 247, .98);
}
.popover .bar {
box-shadow: none;
}
.popover .bar-nav {
border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.popover .table-view {
background-image: none;
border-radius: 12px;
}
.modal {
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .1, 1);
}
.modal.active {
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .1, 1);
}
.toggle {
width: 47px;
border: 2px solid #e6e6e6;
box-shadow: inset 0 0 0 0 #e1e1e1;
-webkit-transition-duration: .2s;
transition-duration: .2s;
-webkit-transition-property: box-shadow, border;
transition-property: box-shadow, border;
}
.toggle .toggle-handle {
border: 1px solid rgba(0, 0, 0, .2);
box-shadow: 0 3px 3px rgba(0, 0, 0, .08);
-webkit-transition-property: -webkit-transform, border, width;
transition-property: transform, border, width;
}
.toggle:before {
display: none;
}
.toggle.active {
background-color: transparent;
border: 2px solid #4cd964;
box-shadow: inset 0 0 0 13px #4cd964;
}
.toggle.active .toggle-handle {
-webkit-transform: translate3d(17px, 0, 0);
transform: translate3d(17px, 0, 0);
}
.toggle.active .toggle-handle {
border-color: #4cd964;
}
.content.fade {
-webkit-transition: opacity .2s ease-in-out;
transition: opacity .2s ease-in-out;
}
.content.sliding {
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .1, 1);
}
.content.sliding.sliding-in, .content.sliding.right:not([class*="sliding-in"]) {
-webkit-animation-name: fadeOverlay;
animation-name: fadeOverlay;
-webkit-animation-duration: .4s;
animation-duration: .4s;
}
.content.sliding.right:not([class*="sliding-in"]) {
-webkit-animation-direction: reverse;
animation-direction: reverse;
}
.content.sliding.left {
-webkit-transform: translate3d(-20%, 0, 0);
transform: translate3d(-20%, 0, 0);
}
@-webkit-keyframes fadeOverlay {
from {
box-shadow: 0 0 10px transparent, -320px 0 0 transparent;
}
to {
box-shadow: 0 0 10px rgba(0, 0, 0, .3), -320px 0 0 rgba(0, 0, 0, .1);
}
}
================================================
FILE: dist/css/ratchet.css
================================================
/*!
* =====================================================
* Ratchet v2.0.2 (http://goratchet.com)
* Copyright 2016 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
*
* v2.0.2 designed by @connors.
* =====================================================
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
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-color: transparent;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
margin: .67em 0;
font-size: 2em;
}
mark {
color: #000;
background: #ff0;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sup {
top: -.5em;
}
sub {
bottom: -.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
height: 0;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
pre {
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
margin: 0;
font: inherit;
color: inherit;
}
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 {
padding: 0;
border: 0;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
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-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
-webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
fieldset {
padding: .35em .625em .75em;
margin: 0 2px;
border: 1px solid #c0c0c0;
}
legend {
padding: 0;
border: 0;
}
textarea {
overflow: auto;
}
optgroup {
font-weight: bold;
}
table {
border-spacing: 0;
border-collapse: collapse;
}
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: transparent;
}
a:active {
color: #3071a9;
}
.content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
background-color: #fff;
}
.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;
}
.text-center {
text-align: center;
}
.pull-left {
float: left;
}
.pull-right {
float: right;
}
.clearfix:before, .clearfix:after {
display: table;
content: " ";
}
.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 {
margin-top: 20px;
font-size: 14px;
}
h6, .h6 {
margin-top: 20px;
font-size: 12px;
}
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;
white-space: nowrap;
vertical-align: top;
cursor: pointer;
background-color: #fff;
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;
background-color: #428bca;
border: 1px solid #428bca;
}
.btn-primary:active, .btn-primary.active {
color: #fff;
background-color: #3071a9;
border: 1px solid #3071a9;
}
.btn-positive {
color: #fff;
background-color: #5cb85c;
border: 1px solid #5cb85c;
}
.btn-positive:active, .btn-positive.active {
color: #fff;
background-color: #449d44;
border: 1px solid #449d44;
}
.btn-negative {
color: #fff;
background-color: #d9534f;
border: 1px solid #d9534f;
}
.btn-negative:active, .btn-negative.active {
color: #fff;
background-color: #c9302c;
border: 1px solid #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;
width: 100%;
padding: 15px 0;
margin-bottom: 10px;
font-size: 18px;
}
input[type="submit"],
input[type="reset"],
input[type="button"] {
width: 100%;
}
.btn .badge {
margin: -2px -4px -2px 4px;
font-size: 12px;
background-color: rgba(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;
background-color: #fff;
border-bottom: 1px solid #ddd;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.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-top: 1px solid #ddd;
border-bottom: 0;
}
.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 {
bottom: 0;
display: table;
width: 100%;
height: 50px;
padding: 0;
table-layout: fixed;
border-top: 1px solid #ddd;
border-bottom: 0;
}
.bar-tab .tab-item {
position: relative;
display: table-cell;
width: 1%;
height: 50px;
color: #929292;
text-align: center;
vertical-align: middle;
}
.bar-tab .tab-item.active, .bar-tab .tab-item:active {
color: #428bca;
}
.bar-tab .tab-item .badge {
position: absolute;
top: 3px;
left: 50%;
vertical-align: top;
}
.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;
line-height: 44px;
color: #428bca;
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, .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 {
margin: 10px;
overflow: hidden;
background-color: #fff;
border: 1px solid #ddd;
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-left-radius: 6px;
border-top-right-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 #ddd;
border-bottom: 1px solid #ddd;
}
.table-view-cell {
position: relative;
padding: 11px 65px 11px 15px;
overflow: hidden;
border-bottom: 1px solid #ddd;
}
.table-view-cell:last-child {
border-bottom: 0;
}
.table-view-cell > a:not(.btn) {
position: relative;
display: block;
padding: inherit;
margin: -11px -65px -11px -15px;
overflow: hidden;
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;
font-weight: 500;
color: #999;
background-color: #fafafa;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.table-view .media,
.table-view .media-body {
overflow: hidden;
}
.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%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
}
.table-view-cell .navigate-left > .btn,
.table-view-cell .navigate-left > .badge,
.table-view-cell .navigate-left > .toggle,
.table-view-cell .navigate-right > .btn,
.table-view-cell .navigate-right > .badge,
.table-view-cell .navigate-right > .toggle,
.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 .navigate-left > .btn,
.table-view-cell > a .navigate-left > .badge,
.table-view-cell > a .navigate-left > .toggle,
.table-view-cell > a .navigate-right > .btn,
.table-view-cell > a .navigate-right > .badge,
.table-view-cell > a .navigate-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;
-webkit-appearance: none;
padding: 0 15px;
margin-bottom: 15px;
line-height: 21px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 3px;
outline: none;
}
input[type="search"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0 10px;
font-size: 16px;
border-radius: 20px;
}
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, .1);
box-shadow: inset 0 1px 1px rgba(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-right: 0;
border-left: 0;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.input-row {
height: 35px;
overflow: hidden;
border-bottom: 1px solid #ddd;
}
.input-row label {
float: left;
width: 35%;
padding: 8px 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: #fff;
border: 1px solid #ccc;
border-radius: 3px;
}
.segmented-control .control-item {
display: table-cell;
width: 1%;
padding-top: 6px;
padding-bottom: 7px;
overflow: hidden;
line-height: 1;
color: #333;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
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: #fff;
border-radius: 6px;
-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, .1);
box-shadow: 0 0 15px rgba(0, 0, 0, .1);
opacity: 0;
-webkit-transition: all .25s linear;
-o-transition: all .25s linear;
transition: all .25s linear;
-webkit-transform: translate3d(0, -15px, 0);
-ms-transform: translate3d(0, -15px, 0);
transform: translate3d(0, -15px, 0);
}
.popover:before {
position: absolute;
top: -15px;
left: 50%;
width: 0;
height: 0;
margin-left: -15px;
content: '';
border-right: 15px solid transparent;
border-bottom: 15px solid #fff;
border-left: 15px solid transparent;
}
.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, .3);
}
.popover .btn-block {
margin-bottom: 5px;
}
.popover .btn-block:last-child {
margin-bottom: 0;
}
.popover .bar-nav {
border-bottom: 1px solid #ddd;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
-webkit-box-shadow: none;
box-shadow: none;
}
.popover .table-view {
max-height: 300px;
margin-bottom: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
background-color: #fff;
border-top: 0;
border-bottom: 0;
border-radius: 6px;
}
.modal {
position: fixed;
top: 0;
z-index: 11;
width: 100%;
min-height: 100%;
overflow: hidden;
background-color: #fff;
opacity: 0;
-webkit-transition: -webkit-transform .25s, opacity 1ms .25s;
-o-transition: -o-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 {
height: 100%;
opacity: 1;
-webkit-transition: -webkit-transform .25s;
-o-transition: -o-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 0s linear;
-o-transition: all 0s linear;
transition: all 0s linear;
}
.slider .slide-group .slide {
display: inline-block;
width: 100%;
height: 100%;
font-size: 14px;
vertical-align: top;
}
.toggle {
position: relative;
display: block;
width: 74px;
height: 30px;
background-color: #fff;
border: 2px solid #ddd;
border-radius: 20px;
-webkit-transition-duration: .2s;
-o-transition-duration: .2s;
transition-duration: .2s;
-webkit-transition-property: background-color, border;
-o-transition-property: background-color, border;
transition-property: background-color, border;
}
.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-duration: .2s;
-o-transition-duration: .2s;
transition-duration: .2s;
-webkit-transition-property: -webkit-transform, border, width;
-o-transition-property: -o-transform, border, width;
transition-property: transform, border, width;
}
.toggle:before {
position: absolute;
top: 3px;
right: 11px;
font-size: 13px;
color: #999;
text-transform: uppercase;
content: "Off";
}
.toggle.active {
background-color: #5cb85c;
border: 2px solid #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;
-webkit-transition: opacity .4s;
-o-transition: opacity .4s;
transition: opacity .4s;
}
.content.fade.in {
opacity: 1;
}
.content.sliding {
z-index: 2;
-webkit-transition: -webkit-transform .4s;
-o-transition: -o-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);
}
.navigate-left:after,
.navigate-right:after,
.push-left:after,
.push-right:after {
position: absolute;
top: 50%;
display: inline-block;
font-family: Ratchicons;
font-size: inherit;
line-height: 1;
color: #bbb;
text-decoration: none;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
-webkit-font-smoothing: antialiased;
}
.navigate-left:after,
.push-left:after {
left: 15px;
content: '\e822';
}
.navigate-right:after,
.push-right:after {
right: 15px;
content: '\e826';
}
@font-face {
font-family: Ratchicons;
font-style: normal;
font-weight: normal;
src: url("../fonts/ratchicons.eot");
src: url("../fonts/ratchicons.eot?#iefix") format("embedded-opentype"), url("../fonts/ratchicons.woff") format("woff"), url("../fonts/ratchicons.ttf") format("truetype"), url("../fonts/ratchicons.svg#svgFontName") format("svg");
}
.icon {
display: inline-block;
font-family: Ratchicons;
font-size: 24px;
line-height: 1;
text-decoration: none;
-webkit-font-smoothing: antialiased;
}
.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-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-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-search:before {
content: '\e819';
}
.icon-share:before {
content: '\e81a';
}
.icon-sound:before {
content: '\e827';
}
.icon-sound2:before {
content: '\e828';
}
.icon-sound3:before {
content: '\e80b';
}
.icon-sound4:before {
content: '\e80c';
}
.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';
}
.icon-right-nav:before {
content: '\e818';
}
.icon-right:before {
content: '\e826';
}
.icon-down-nav:before {
content: '\e814';
}
.icon-down:before {
content: '\e820';
}
.icon-left-nav:before {
content: '\e82d';
}
.icon-left:before {
content: '\e822';
}
================================================
FILE: dist/js/ratchet.js
================================================
/*!
* =====================================================
* Ratchet v2.0.2 (http://goratchet.com)
* Copyright 2016 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
*
* v2.0.2 designed by @connors.
* =====================================================
*/
/* ========================================================================
* Ratchet: common.js v2.0.2
* http://goratchet.com/
* ========================================================================
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
// Compatible With CustomEvent
if (!window.CustomEvent) {
window.CustomEvent = function (type, config) {
var e = document.createEvent('CustomEvent');
e.initCustomEvent(type, config.bubbles, config.cancelable, config.detail);
return e;
};
}
// Create Ratchet namespace
if (typeof window.RATCHET === 'undefined') {
window.RATCHET = {};
}
// Original script from http://davidwalsh.name/vendor-prefix
window.RATCHET.getBrowserCapabilities = (function () {
var styles = window.getComputedStyle(document.documentElement, '');
var pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];
return {
prefix: '-' + pre + '-',
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform'
};
})();
window.RATCHET.getTransitionEnd = (function () {
var el = document.createElement('ratchet');
var transEndEventNames = {
WebkitTransition : 'webkitTransitionEnd',
MozTransition : 'transitionend',
OTransition : 'oTransitionEnd otransitionend',
transition : 'transitionend'
};
for (var name in transEndEventNames) {
if (el.style[name] !== undefined) {
return transEndEventNames[name];
}
}
return transEndEventNames.transition;
})();
}());
/* ========================================================================
* Ratchet: modals.js v2.0.2
* http://goratchet.com/components#modals
* ========================================================================
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
var findModals = function (target) {
var i;
var 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 && modal.classList.contains('modal')) {
var eventToDispatch = null;
if (modal.classList.contains('active')) {
eventToDispatch = new CustomEvent('modalClose', {
bubbles: true,
cancelable: true
});
}
else {
eventToDispatch = new CustomEvent('modalOpen', {
bubbles: true,
cancelable: true
});
}
modal.dispatchEvent(eventToDispatch);
modal.classList.toggle('active');
event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
}
});
}());
/* ========================================================================
* Ratchet: popovers.js v2.0.2
* http://goratchet.com/components#popovers
* ========================================================================
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
var popover;
var findPopovers = function (target) {
var i;
var 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(window.RATCHET.getTransitionEnd, onPopoverHidden);
};
var backdrop = (function () {
var element = document.createElement('div');
element.classList.add('backdrop');
element.addEventListener('touchend', function () {
popover.addEventListener(window.RATCHET.getTransitionEnd, 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);
}());
/* ========================================================================
* Ratchet: push.js v2.0.2
* http://goratchet.com/components#push
* ========================================================================
* inspired by @defunkt's jquery.pjax.js
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
/* global _gaq: true */
!(function () {
'use strict';
var noop = function () {};
// Pushstate caching
// ==================
var isScrolling;
var maxCacheLength = 20;
var cacheMapping = sessionStorage;
var domCache = {};
// Change these to unquoted camelcase in the next major version bump
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);
};
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()];
}
if (getCached(PUSH.id).url) {
window.history.pushState(null, '', getCached(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) {
if (bars.hasOwnProperty(key)) {
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, function () {
triggerStateChange();
}
);
PUSH.id = id;
document.body.offsetHeight; // force reflow to prevent scroll
};
// Core PUSH functionality
// =======================
var PUSH = function (options) {
var key;
var xhr = PUSH.xhr;
options.container = options.container || options.transition ? document.querySelector('.content') : document.body;
var isFileProtocol = /^file:/.test(window.location.protocol);
for (key in bars) {
if (bars.hasOwnProperty(key)) {
options[key] = options[key] || document.querySelector(bars[key]);
}
}
if (xhr && xhr.readyState < 4) {
xhr.onreadystatechange = noop;
xhr.abort();
}
xhr = new XMLHttpRequest();
if (isFileProtocol) {
xhr.open('GET', options.url, false);
} else {
xhr.open('GET', options.url, true);
xhr.setRequestHeader('X-PUSH', 'true');
xhr.onreadystatechange = function () {
if (options._timeout) {
clearTimeout(options._timeout);
}
if (xhr.readyState === 4) {
if (xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
}
}
};
}
if (!PUSH.id) {
cacheReplace({
id : +new Date(),
url : window.location.href,
title : document.title,
timeout : options.timeout,
transition : options.transition
});
}
cacheCurrentContent();
if (options.timeout) {
options._timeout = setTimeout(function () { xhr.abort('timeout'); }, options.timeout);
}
xhr.send();
if (isFileProtocol) {
if (xhr.status === 0 || xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
}
}
if (xhr.readyState && !options.ignorePush) {
cachePush();
}
};
function cacheCurrentContent () {
domCache[PUSH.id] = document.body.cloneNode(true);
}
// 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) {
if (bars.hasOwnProperty(key)) {
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) {
if (complete) {
complete();
}
}
if (transition === 'fade') {
container.offsetWidth; // force reflow
container.classList.remove('in');
var fadeContainerEnd = function () {
container.removeEventListener(window.RATCHET.getTransitionEnd, fadeContainerEnd);
swap.classList.add('in');
swap.addEventListener(window.RATCHET.getTransitionEnd, fadeSwapEnd);
};
var fadeSwapEnd = function () {
swap.removeEventListener(window.RATCHET.getTransitionEnd, fadeSwapEnd);
container.parentNode.removeChild(container);
swap.classList.remove('fade');
swap.classList.remove('in');
if (complete) {
complete();
}
};
container.addEventListener(window.RATCHET.getTransitionEnd, fadeContainerEnd);
}
if (/slide/.test(transition)) {
var slideEnd = function () {
swap.removeEventListener(window.RATCHET.getTransitionEnd, slideEnd);
swap.classList.remove('sliding', 'sliding-in');
swap.classList.remove(swapDirection);
container.parentNode.removeChild(container);
if (complete) {
complete();
}
};
container.offsetWidth; // force reflow
swapDirection = enter ? 'right' : 'left';
containerDirection = enter ? 'left' : 'right';
container.classList.add(containerDirection);
swap.classList.remove(swapDirection);
swap.addEventListener(window.RATCHET.getTransitionEnd, slideEnd);
}
};
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;
var 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 extendWithDom = function (obj, fragment, dom) {
var i;
var result = {};
for (i in obj) {
if (obj.hasOwnProperty(i)) {
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') || document.querySelector('title');
var text = 'innerText' in data.title ? 'innerText' : 'textContent';
data.title = data.title && data.title[text].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);
// TODO : Remove this line in the next major version
window.PUSH = PUSH;
window.RATCHET.push = PUSH;
}());
/* ========================================================================
* Ratchet: segmented-controllers.js v2.0.2
* http://goratchet.com/components#segmentedControls
* ========================================================================
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
var getTarget = function (target) {
var i;
var 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();
}
});
}());
/* ========================================================================
* Ratchet: sliders.js v2.0.2
* http://goratchet.com/components#sliders
* ========================================================================
Adapted from Brad Birdsall's swipe
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
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 startedMoving;
var transformPrefix = window.RATCHET.getBrowserCapabilities.prefix;
var transformProperty = window.RATCHET.getBrowserCapabilities.transform;
var getSlider = function (target) {
var i;
var 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[transformProperty].match(/translate3d\(([^,]*)/);
var ret = translate3d ? translate3d[1] : 0;
return parseInt(ret, 10);
};
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[transformPrefix + 'transition-duration'] = 0;
};
var onTouchMove = function (e) {
if (e.touches.length > 1 || !slider) {
return; // Exit if a pinch || no slider
}
// adjust the starting position if we just started to avoid jumpage
if (!startedMoving) {
pageX += (e.touches[0].pageX - pageX) - 1;
}
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' && startedMoving) {
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[transformProperty] = 'translate3d(' + offsetX + 'px,0,0)';
// started moving
startedMoving = true;
};
var onTouchEnd = function (e) {
if (!slider || isScrolling) {
return;
}
// we're done moving
startedMoving = false;
setSlideNumber((+new Date()) - startTime < 1000 && Math.abs(deltaX) > 15 ? (deltaX < 0 ? -1 : 1) : 0);
offsetX = slideNumber * sliderWidth;
slider.style[transformPrefix + 'transition-duration'] = '.2s';
slider.style[transformProperty] = '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);
}());
/* ========================================================================
* Ratchet: toggles.js v2.0.2
* http://goratchet.com/components#toggles
* ========================================================================
Adapted from Brad Birdsall's swipe
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
var start = {};
var touchMove = false;
var distanceX = false;
var toggle = false;
var transformProperty = window.RATCHET.getBrowserCapabilities.transform;
var findToggle = function (target) {
var i;
var 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[transformProperty] = 'translate3d(0,0,0)');
}
if (distanceX > offset) {
return (handle.style[transformProperty] = 'translate3d(' + offset + 'px,0,0)');
}
handle.style[transformProperty] = '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[transformProperty] = 'translate3d(' + offset + 'px,0,0)';
} else {
handle.style[transformProperty] = '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;
});
}());
================================================
FILE: docs/LICENSE
================================================
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/.
================================================
FILE: docs/_data/ratchicons.yml
================================================
# This file is generated via Grunt task. **Do not edit directly.**
# See the 'build-ratchicons-data' task in Gruntfile.js.
- icon-back
- icon-bars
- icon-caret
- icon-check
- icon-close
- icon-code
- icon-compose
- icon-download
- icon-edit
- icon-forward
- icon-gear
- icon-home
- icon-info
- icon-list
- icon-more-vertical
- icon-more
- icon-pages
- icon-pause
- icon-person
- icon-play
- icon-plus
- icon-refresh
- icon-search
- icon-share
- icon-sound
- icon-sound2
- icon-sound3
- icon-sound4
- icon-star-filled
- icon-star
- icon-stop
- icon-trash
- icon-up-nav
- icon-up
- icon-right-nav
- icon-right
- icon-down-nav
- icon-down
- icon-left-nav
- icon-left
================================================
FILE: docs/_includes/ad.html
================================================
<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>
================================================
FILE: docs/_includes/browser-warning.html
================================================
<!--[if lt IE 9]>
<div class="bs-callout bs-callout-danger">
<h4>Attention!</h4>
<p>
Looks like your current browser is old and doesn't support many features used in this page.
Please take a second to <a href="http://browsehappy.com/">upgrade to a more modern browser</a>.
</p>
</div>
<![endif]-->
================================================
FILE: docs/_includes/download-module.html
================================================
<div class="docs-module">
<h4 class="docs-module-title">Ratchet</h4>
<p>Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.</p>
<a href="https://github.com/twbs/ratchet/releases/download/v2.0.2/ratchet-2.0.2-dist.zip" class="btn btn-block btn-primary" data-ignore="push" onClick="_gaq.push(['_trackEvent', 'Downloads', 'V2.0.2-dist']);">Download Ratchet</a>
<p class="version">Currently v2.0.2</p>
</div>
<div class="docs-module">
<h4 class="docs-module-title">Source code</h4>
<p>If you haven't already, download the source code for Ratchet.</p>
<a href="https://github.com/twbs/ratchet/archive/v2.0.2.zip" class="btn btn-block btn-primary" data-ignore="push" onClick="_gaq.push(['_trackEvent', 'Downloads', 'V2.0.2']);">Download source</a>
</div>
================================================
FILE: docs/_includes/footer.html
================================================
<div class="docs-footer">
<!-- Social links -->
<ul class="social">
<li>
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=ratchet&type=watch&count=true" width="100" height="20"></iframe>
</li>
<li>
<a data-ignore="push" href="https://twitter.com/share" class="twitter-share-button" data-url="http://goratchet.com" data-text="Ratchet – Build mobile apps with simple HTML, CSS, and JS components." data-via="GoRatchet">Tweet</a>
</li>
<li><a data-ignore="push" href="https://twitter.com/goratchet" class="twitter-follow-button" data-show-count="true">
Follow @GoRatchet</a>
</li>
</ul>
<p class="docs-footer-text">Code licensed under the <a href="https://github.com/twbs/ratchet/blob/master/LICENSE" data-ignore="push">MIT License</a> and the docs are licensed under <a href="https://github.com/twbs/ratchet/blob/master/docs/LICENSE" data-ignore="push">CC BY 3.0</a>. Ratchet was lovingly crafted by <a href="https://twitter.com/connors" data-ignore="push">Connor Sears</a>.</p>
<ul class="docs-footer-links">
<li>Currently v2.0.2</li>
<li>·</li>
<li><a href="https://github.com/twbs/ratchet/issues" data-ignore="push">Issues</a></li>
<li>·</li>
<li><a href="https://github.com/twbs/ratchet/releases" data-ignore="push">Releases</a></li>
<li>·</li>
<li><a href="http://goratchet.com/1.0.2/" data-ignore="push">Legacy v1.0.2 Docs</a></li>
</ul>
</div>
{% comment %}
Inject Twitter widgets asynchronously. Snippet snipped from Twitter's
JS interface site: https://dev.twitter.com/docs/tfw-javascript
* "js.async=1;" added to add async attribute to the generated script tag.
{% endcomment %}
<script>
window.twttr = (function (d,s,id) {
var t, js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; js.async=1;
js.src="//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
}(document, "script", "twitter-wjs"));
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="/dist/js/ratchet.min.js"></script>
<script src="/assets/js/docs.min.js"></script>
================================================
FILE: docs/_includes/header.html
================================================
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<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">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Google Web Fonts -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,500,700%7COpen+Sans:400,300">
<link rel="stylesheet" href="/dist/css/ratchet.min.css">
<link rel="stylesheet" href="/assets/css/docs.min.css">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/img/apple-touch-icon-114x114.png">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-36050008-1', 'goratchet.com');
ga('send', 'pageview');
</script>
================================================
FILE: docs/_includes/jump.html
================================================
<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>
================================================
FILE: docs/_includes/masthead.html
================================================
<header class="docs-masthead clearfix">
<div class="container">
<div class="column">
<h1 class="docs-title">
<a href="/" data-ignore="push">Ratchet</a>
</h1>
<nav class="docs-nav clearfix">
<a class="docs-nav-trigger icon icon-bars pull-right js-docs-nav-trigger" href="#"></a>
<div class="docs-nav-group">
<a class="docs-nav-item" href="/" data-ignore="push">Home</a>
<a class="docs-nav-item" href="/getting-started" data-ignore="push">Getting started</a>
<a class="docs-nav-item" href="/components" data-ignore="push">Components</a>
<a class="docs-nav-item" href="/examples" data-ignore="push">Examples</a>
<a class="docs-nav-item" href="/about" data-ignore="push">About</a>
<a class="docs-nav-item" href="https://github.com/twbs/ratchet" data-ignore="push">GitHub project</a>
</div>
</nav>
</div>
</div>
</header>
================================================
FILE: docs/_includes/toolbar.html
================================================
<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>
================================================
FILE: docs/_layouts/default.html
================================================
<!DOCTYPE html>
<html>
<head>
{% include header.html %}
</head>
<body ontouchstart="">
{% include browser-warning.html %}
{{ content }}
</body>
</html>
================================================
FILE: docs/_layouts/home.html
================================================
<!DOCTYPE html>
<html>
<head>
{% include header.html %}
</head>
<body class="docs-home" ontouchstart="">
{% include browser-warning.html %}
{{ content }}
</body>
</html>
================================================
FILE: docs/about.html
================================================
---
layout: default
title: About · Ratchet
---
<div class="docs-sub-header">
{% include masthead.html %}
<div class="container">
<div class="docs-sub-content">
<h2 class="page-title">About</h2>
<p class="page-description">Learn about the project's history and meet the maintaining team.</p>
</div>
{% include ad.html %}
</div>
</div>
<div class="container">
<div class="column-group">
<div class="column lg-units-8 docs-content">
<div class="docs-section">
<h2>History</h2>
<p>The idea for Ratchet was developed by <a href="https://twitter.com/connors">@connors</a>, <a href="https://twitter.com/dhg">@dhg</a>, and <a href="https://twitter.com/fat">@fat</a> in mid-2012. Before it became a full fledged framework, Ratchet began as a series of HTML/CSS prototypes of the Twitter for iPhone app. These prototypes became invaluable to the process of testing new feature designs that ended up being shipped as part of the native mobile app.</p>
<p>As it became clear that this was the quickest and most effective way to design mobile apps, components were abstracted from these prototypes and became the framework you know today.</p>
<p>Released in November 2012, Ratchet quickly became one of the most popular prototyping tools on GitHub. Following that initial launch, we released v2 – a complete rewrite. With v2 we've abstracted the platform specific styles into their own theme CSS files, added an icon set called Ratchicons, and offically became part of the Bootstrap family.</p>
</div>
<div class="docs-section">
<h2>Team</h2>
<p class="lead">Ratchet is maintained by one of its creators, a couple of core contributors, and its awesome community.</p>
<div class="list-group">
<div class="list-group-item">
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=connors&type=follow"></iframe>
<a class="team-member" href="https://github.com/connors">
<img src="http://www.gravatar.com/avatar/53d633ae4622de17906338910085275a" alt="@connors">
<div class="team-member-info">
<strong>Connor Sears</strong>
@connors
</div>
</a>
</div>
<div class="list-group-item">
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=mdo&type=follow"></iframe>
<a class="team-member" href="https://github.com/mdo">
<img src="http://www.gravatar.com/avatar/bc4ab438f7a4ce1c406aadc688427f2c" alt="@mdo">
<div class="team-member-info">
<strong>Mark Otto</strong>
@mdo
</div>
</a>
</div>
</div>
<p>Get involved with Ratchet development by <a href="https://github.com/twbs/ratchet/issues/new">opening an issue</a> or submitting a pull request. Read our <a href="https://github.com/twbs/ratchet/blob/master/CONTRIBUTING.md">contributing guidelines</a> for information on how we develop.</p>
</div>
</div>
<div class="column lg-units-4">
{% include download-module.html %}
</div>
</div>
<div class="column">
<!-- Footer -->
{% include footer.html %}
</div>
</div>
================================================
FILE: docs/assets/css/docs.css
================================================
/*!
* =====================================================
* Ratchet v2.0.2 (http://goratchet.com)
* Copyright 2016 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
*
* v2.0.2 designed by @connors.
* =====================================================
*/
html,
body {
width: 100%;
height: 100%;
}
body {
position: relative !important;
font: 400 14px/1.5 "Open Sans", sans-serif;
color: #333;
-webkit-text-size-adjust: 100%;
background-color: #fff;
-webkit-font-smoothing: antialiased;
}
.docs-content {
font-size: 14px;
}
@media screen and (min-width: 768px) {
.docs-content {
font-size: 18px;
}
}
.docs-content h1, .docs-content h2, .docs-content h3, .docs-content h4, .docs-content h5, .docs-content h6 {
font-weight: 400;
color: #222;
}
.docs-content h2 {
margin-bottom: .25em;
font-size: 2em;
}
.docs-content h3 {
margin-bottom: .5em;
font-size: 1.25em;
}
.docs-content p {
margin-bottom: 1.5em;
font-size: 1em;
color: #555;
}
.docs-content .lead {
font-size: 1.1em;
color: #777;
}
.docs-header,
.docs-sub-header {
position: relative;
background-color: #0a1855;
background-image: -webkit-gradient(linear, left bottom, right top, color-stop(0%, #0a1855), color-stop(100%, #da0024));
background-image: -webkit-linear-gradient(45deg, #0a1855 0%, #da0024 100%);
background-image: -o-linear-gradient(45deg, #0a1855 0%, #da0024 100%);
background-image: linear-gradient(45deg, #0a1855 0%, #da0024 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0a1855', endColorstr='#da0024', GradientType=1 );
}
.docs-header {
height: 100vh;
min-height: 750px;
}
.docs-header .carbonad {
position: relative !important;
margin-top: 0 !important;
-webkit-animation-name: fadeintext;
-o-animation-name: fadeintext;
animation-name: fadeintext;
-webkit-animation-duration: 2s;
-o-animation-duration: 2s;
animation-duration: 2s;
}
.docs-header .version {
margin-top: 15px;
color: rgba(255, 255, 255, .5);
text-align: center;
}
.docs-header-bottom {
position: absolute;
right: 0;
bottom: 0;
left: 0;
}
@media screen and (min-width: 768px) {
.docs-header {
min-height: 870px;
}
.docs-header .carbonad {
left: 50% !important;
width: 330px !important;
margin-bottom: 60px !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;
-o-transform: translateY(-50%) !important;
transform: translateY(-50%) !important;
}
}
.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%;
z-index: 20;
margin-bottom: 0;
font-size: 22px;
font-weight: 400;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
-o-transform: translateX(-50%);
transform: translateX(-50%);
}
.docs-nav .docs-nav-trigger {
color: #fff;
opacity: .7;
}
.docs-nav .docs-nav-trigger.active {
opacity: 1;
}
.docs-nav .docs-nav-group {
position: absolute;
top: 40px;
right: 0;
left: 0;
z-index: 20;
height: 0;
overflow: hidden;
background-color: rgba(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-size: 22px;
}
.docs-jump-menu,
.docs-component-group {
display: none;
}
.docs-title a,
.docs-nav-item {
color: #fff;
-webkit-transition: opacity .2s linear;
-o-transition: opacity .2s linear;
transition: opacity .2s linear;
}
.docs-title a:active, .docs-title a:focus,
.docs-nav-item:active,
.docs-nav-item:focus {
color: #fff;
opacity: .5;
}
@media screen and (min-width: 768px) {
.docs-title {
position: static;
float: left;
font-weight: 300;
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
}
.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: 15px;
display: block;
color: #777;
cursor: pointer;
-webkit-transition: opacity .2 linear;
-o-transition: opacity .2 linear;
transition: opacity .2 linear;
}
.docs-jump-menu:hover {
color: #428bca;
}
.docs-jump-menu:active {
opacity: .5;
}
.docs-jump-menu .icon-list {
margin-right: 3px;
font-size: 16px;
}
.docs-jump-menu .icon-caret {
position: relative;
top: 4px;
margin-left: -5px;
}
.docs-component-group {
position: absolute;
top: 35px;
left: 15px;
padding-top: 10px;
padding-bottom: 10px;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, .2);
border-radius: 3px;
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .05);
box-shadow: 0 0 8px rgba(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, .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;
}
}
.docs-header-content {
position: relative;
padding: 50px 10px;
text-align: center;
-webkit-animation-name: fadeintext;
-o-animation-name: fadeintext;
animation-name: fadeintext;
-webkit-animation-duration: 2s;
-o-animation-duration: 2s;
animation-duration: 2s;
}
.docs-header-content .btn {
display: block;
padding: 15px 60px 16px;
margin-bottom: 0;
font-size: 18px;
color: #0a1855;
background-color: #fff;
border: 0;
-webkit-transition: all .2s linear;
-o-transition: all .2s linear;
transition: all .2s linear;
}
.docs-header-content .btn:hover {
background-color: #fff;
-webkit-box-shadow: 0 0 50px rgba(255, 255, 255, .3);
box-shadow: 0 0 50px rgba(255, 255, 255, .3);
}
.docs-header-content .btn:active {
opacity: .5;
}
.docs-subtitle {
max-width: 750px;
margin: 0 auto 20px;
font-size: 28px;
font-weight: 300;
line-height: 38px;
color: #fff;
}
@media screen and (min-width: 768px) {
.docs-header-content {
top: 30%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
}
.docs-header-content .btn {
display: inline-block;
}
.docs-subtitle {
margin-bottom: 30px;
font-size: 41px;
line-height: 60px;
}
}
.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;
font-family: "Open Sans", sans-serif !important;
color: rgba(255, 255, 255, .65) !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;
}
@media screen and (min-width: 768px) {
.carbonad {
width: 360px !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;
}
}
.docs-sub-content {
position: relative;
padding: 55px 15px 65px;
overflow: hidden;
color: #fff;
text-align: center;
}
.docs-sub-content .page-title,
.docs-sub-content .page-description {
margin-top: 0;
margin-bottom: 0;
font-weight: 300;
}
.docs-sub-content .page-title {
margin-bottom: 5px;
font-size: 40px;
}
.docs-sub-content .page-description {
font-size: 24px;
color: #fff;
opacity: .7;
}
@media screen and (min-width: 768px) {
.docs-sub-content {
margin-right: 380px;
text-align: left;
}
}
.docs-section {
padding-top: 50px;
padding-bottom: 50px;
border-bottom: 1px solid #ddd;
}
.docs-section:last-child {
border-bottom: 0;
}
@media screen and (min-width: 768px) {
.docs-module {
margin-top: 35px;
}
}
.docs-module {
padding: 20px;
margin-top: 20px;
border: 1px solid #ddd;
border-radius: 3px;
}
.docs-module .btn-block {
margin-bottom: 0;
}
.version {
margin-top: 10px;
margin-bottom: 0;
font-size: 90%;
color: #777;
}
.docs-footer {
padding: 30px 20px;
margin-top: 50px;
font-size: 14px;
color: #777;
text-align: center;
border-top: 1px solid #ddd;
}
.docs-footer .social {
padding: 0 0 20px;
margin: 0;
list-style: none;
}
.docs-footer .social li {
display: inline-block;
height: 20px;
vertical-align: top;
}
.docs-footer .social .twitter-follow-button {
margin-top: 5px;
}
@media screen and (min-width: 768px) {
.docs-footer .social .twitter-follow-button {
margin-top: 0;
}
}
.docs-footer-text {
margin-top: 0;
margin-bottom: 0;
}
@media screen and (min-width: 768px) {
.docs-footer-text {
width: 550px;
padding-right: 0;
padding-left: 0;
margin: 0 auto;
}
}
.docs-footer-links {
padding-left: 0;
}
.docs-footer-links li {
display: inline;
padding-right: 3px;
padding-left: 3px;
}
.docs-header .docs-footer {
margin-top: 0;
border-top: 1px solid rgba(255, 255, 255, .1);
}
.docs-header .docs-footer .docs-footer-text,
.docs-header .docs-footer .docs-footer-links {
color: rgba(255, 255, 255, .5);
}
.docs-header .docs-footer .docs-footer-text a,
.docs-header .docs-footer .docs-footer-links a {
color: rgba(255, 255, 255, .8);
}
.github-btn {
overflow: hidden;
border: 0;
}
.docs-component-toolbar {
position: fixed;
top: 0;
right: 0;
bottom: auto;
left: 0;
z-index: 20;
height: 44px;
padding-top: 8px;
padding-bottom: 8px;
background-color: #fff;
border-bottom: 1px solid #ddd;
-webkit-transition: -webkit-transform .5s;
-o-transition: -o-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: 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: 30px;
}
.example-wrap {
margin-bottom: 30px;
}
.example-wrap .example {
display: block;
width: 100%;
padding: 3px;
overflow: hidden;
border: 1px solid #ddd;
border-radius: 3px;
}
.example-wrap .example-title {
margin-top: 10px;
}
.example-wrap img {
display: block;
width: 100%;
height: auto;
}
code {
padding: 2px 4px;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 90%;
background-color: #f9f9f9;
border-radius: 3px;
}
.component {
padding: 50px 15px;
margin-right: -15px;
margin-left: -15px;
border-bottom: 1px solid #ddd;
}
.component.no-border {
border-bottom: 0;
}
@media screen and (min-width: 768px) {
.component {
border-bottom: 0;
}
}
.component-title {
margin-bottom: 10px;
font-size: 24px;
line-height: 34px;
}
.component-description {
margin-bottom: 15px;
font-size: 16px;
}
.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 #ddd;
border-bottom: 1px solid #ddd;
}
.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: 300px;
}
.component-example .slider .slide {
height: 300px;
}
.component-example .slide img {
width: 100%;
}
.component-example .slide-text {
position: absolute;
top: 45%;
left: 0;
width: 100%;
font-size: 24px;
color: #fff;
text-align: center;
text-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
.component-example-fullbleed,
.highlight {
margin-right: -15px;
margin-left: -15px;
}
.bar-nav ~ .content {
padding: 0;
}
.highlight pre {
padding: 15px;
margin-top: 15px;
overflow-x: auto;
font-size: 13px;
color: #777;
word-wrap: normal;
white-space: pre;
background-color: #fafafa;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.highlight pre code {
padding: 0;
}
@media screen and (min-width: 768px) {
.component,
.component-example-fullbleed,
.highlight {
margin-right: 0;
margin-left: 0;
}
.component {
padding-right: 0;
padding-left: 0;
opacity: .3;
-webkit-transition: opacity .2s ease-in-out;
-o-transition: opacity .2s ease-in-out;
transition: opacity .2s ease-in-out;
}
.component.active {
opacity: 1;
}
.component-example {
display: none;
}
.highlight pre {
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
border-radius: 3px;
}
}
#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,
#buttonsWithIconsInDevice .btn {
margin-top: 10px;
margin-right: 100px;
margin-left: 10px;
}
#blockButtonsInDevice .btn-block {
width: 300px;
margin: 10px auto;
}
#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;
}
.toggle {
cursor: pointer;
}
#popoversInDevice #iwindow:before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 11;
content: '';
background-color: rgba(0, 0, 0, .3);
}
@media screen and (min-width: 768px) {
.popover {
position: absolute;
top: 72px;
display: block;
opacity: 1;
}
}
#modalsInDevice #iwindow > .btn {
margin: 10px;
}
@media screen and (min-width: 768px) {
.slider .slide {
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.slider .slide img {
display: block;
width: 100%;
height: 570px;
}
.slider .slide-group .slide-text {
position: absolute;
top: 45%;
left: 0;
width: 100%;
font-size: 24px;
color: #fff;
text-align: center;
text-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
}
.device {
display: none;
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 17px;
line-height: 21px;
}
@media screen and (min-width: 768px) {
.device {
position: relative;
top: 50px;
display: block;
width: 395px;
height: 813px;
margin-left: -20px;
font-family: "Helvetica Neue", sans-serif;
background-image: url("../img/device-sprite.png");
background-repeat: no-repeat;
background-position: 0 0;
-webkit-background-size: 300% 300%;
background-size: 300%;
-webkit-transition: background-image .1s linear;
-o-transition: background-image .1s linear;
transition: background-image .1s linear;
}
.device.device-fixed {
position: fixed;
right: auto;
}
.device .device-content {
position: absolute;
top: 117px;
left: 37px;
width: 321px;
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;
right: 0;
bottom: 0;
left: 0;
}
}
@media screen and (min-width: 1200px) {
.device {
margin-left: 39px;
}
}
hr {
height: 0;
margin: 10px 0 30px;
clear: both;
border: solid #ddd;
border-width: 1px 0 0;
}
.column-group:before, .column-group:after {
display: table;
content: " ";
}
.column-group:after {
clear: both;
}
.container {
position: relative;
padding-right: 0;
padding-left: 0;
margin-right: auto;
margin-left: auto;
}
.column-group {
width: auto;
}
.column {
float: left;
width: 100%;
padding-right: 15px;
padding-left: 15px;
}
.column.pull-right {
float: right;
}
.column .column-group {
margin-right: -15px;
margin-left: -15px;
}
@media screen and (min-width: 768px) {
.container {
max-width: 940px;
padding: 0;
}
.lg-units-4 {
width: 33.333%;
}
.lg-units-5 {
width: 41.666%;
}
.lg-units-7 {
width: 58.333%;
}
.lg-units-8 {
width: 66.666%;
}
}
@media screen and (min-width: 1200px) {
.container {
max-width: 1170px;
}
}
.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 {
color: #929292;
background-color: rgba(247, 247, 247, .98);
border: 1px solid #929292;
-webkit-transition: all;
-o-transition: all;
transition: all;
-webkit-transition-timing-function: linear;
-o-transition-timing-function: linear;
transition-timing-function: linear;
-webkit-transition-duration: .2s;
-o-transition-duration: .2s;
transition-duration: .2s;
}
.platform-ios .btn:active, .platform-ios .btn.active {
color: #fff;
background-color: #929292;
}
.platform-ios .btn-primary {
color: #fff;
background-color: #007aff;
border: 1px solid #007aff;
}
.platform-ios .btn-primary:active, .platform-ios .btn-primary.active {
background-color: #0062cc;
border: 1px solid #0062cc;
}
.platform-ios .btn-positive {
color: #fff;
background-color: #4cd964;
border: 1px solid #4cd964;
}
.platform-ios .btn-positive:active, .platform-ios .btn-positive.active {
background-color: #2ac845;
border: 1px solid #2ac845;
}
.platform-ios .btn-negative {
color: #fff;
background-color: #dd524d;
border: 1px solid #dd524d;
}
.platform-ios .btn-negative:active, .platform-ios .btn-negative.active {
background-color: #cf2d28;
border: 1px solid #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, .15);
}
.platform-ios .btn .badge.badge-inverted {
background-color: transparent;
}
.platform-ios .btn:active .badge {
color: #fff;
}
.platform-ios .bar {
background-color: rgba(247, 247, 247, .98);
border-bottom: 0;
-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .85);
box-shadow: 0 0 1px rgba(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;
}
.platform-ios .bar-tab {
border-top: 0;
}
.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 {
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-repeat: no-repeat;
background-position: 0 100%, 0 0;
border-top: 0;
border-bottom: 0;
}
.platform-ios .table-view .table-view-cell {
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-repeat: no-repeat;
background-position: 15px 100%;
border-bottom: 0;
}
.platform-ios .table-view .table-view-cell:last-child {
background-image: none;
}
.platform-ios .table-view .table-view-cell > a:not(.btn):active {
color: inherit;
}
.platform-ios .table-view .table-view-divider {
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-repeat: no-repeat;
background-position: 0 100%, 0 0;
border-top: 0;
border-bottom: 0;
}
.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, .2);
}
.platform-ios input[type="search"] {
height: 34px;
text-align: center;
background-color: rgba(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;
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-repeat: no-repeat;
background-position: 0 100%, 0 0;
border: 0;
}
.platform-ios .input-group input {
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-repeat: no-repeat;
background-position: 15px 100%;
border: 0;
}
.platform-ios .input-group input:last-child {
background-image: none;
}
.platform-ios .input-row {
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-repeat: no-repeat;
background-position: 15px 100%;
border-bottom: 0;
}
.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 .1s linear;
-o-transition: background-color .1s linear;
transition: background-color .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: #dff8e4;
}
.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;
transition: -webkit-transform .2s ease-in-out, opacity .2s ease-in-out;
}
.platform-ios .popover:before {
border-bottom: 15px solid rgba(247, 247, 247, .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, .15);
}
.platform-ios .popover .table-view {
background-image: none;
border-radius: 12px;
}
.platform-ios .modal {
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
-o-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .1, 1);
}
.platform-ios .modal.active {
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
-o-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .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-duration: .2s;
-o-transition-duration: .2s;
transition-duration: .2s;
-webkit-transition-property: -webkit-box-shadow, border;
-o-transition-property: box-shadow, border;
transition-property: box-shadow, border;
}
.platform-ios .toggle .toggle-handle {
border: 1px solid rgba(0, 0, 0, .2);
-webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, .08);
box-shadow: 0 3px 3px rgba(0, 0, 0, .08);
-webkit-transition-property: -webkit-transform, border, width;
-o-transition-property: -o-transform, border, width;
transition-property: transform, border, width;
}
.platform-ios .toggle:before {
display: none;
}
.platform-ios .toggle.active {
background-color: transparent;
border: 2px solid #4cd964;
-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 .2s ease-in-out;
-o-transition: opacity .2s ease-in-out;
transition: opacity .2s ease-in-out;
}
.platform-ios .content.sliding {
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
-o-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .1, 1);
}
.platform-ios .content.sliding.sliding-in, .platform-ios .content.sliding.right:not([class*="sliding-in"]) {
-webkit-animation-name: fadeOverlay;
-o-animation-name: fadeOverlay;
animation-name: fadeOverlay;
-webkit-animation-duration: .4s;
-o-animation-duration: .4s;
animation-duration: .4s;
}
.platform-ios .content.sliding.right:not([class*="sliding-in"]) {
-webkit-animation-direction: reverse;
-o-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);
}
@-webkit-keyframes fadeOverlay {
from {
-webkit-box-shadow: 0 0 10px transparent, -320px 0 0 transparent;
box-shadow: 0 0 10px transparent, -320px 0 0 transparent;
}
to {
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .3), -320px 0 0 rgba(0, 0, 0, .1);
box-shadow: 0 0 10px rgba(0, 0, 0, .3), -320px 0 0 rgba(0, 0, 0, .1);
}
}
.platform-ios .device {
background-position: -395px 0;
}
.platform-ios .device .device-content {
background-color: #efeff4;
}
.platform-android body {
font-family: "Roboto", sans-serif;
font-size: 18px;
line-height: 22px;
color: #222;
}
.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-header-secondary ~ .content {
padding-top: 100px;
}
.platform-android .bar-tab ~ .content {
padding-top: 50px;
padding-bottom: 0;
}
.platform-android .bar-footer ~ .content {
padding-bottom: 50px;
}
.platform-android .bar-footer-secondary ~ .content {
padding-bottom: 100px;
}
.platform-android .btn {
padding: 8px 15px;
font-size: 14px;
color: #222;
background-color: #cecece;
border: 0;
border-radius: 2px;
-webkit-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);
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);
}
.platform-android .btn:active, .platform-android .btn.active {
color: #222;
background-color: #999;
border: 0;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.platform-android .btn-primary {
color: #fff;
background-color: #33b5e5;
border: 0;
}
.platform-android .btn-primary:active, .platform-android .btn-primary.active {
color: #fff;
background-color: #1a9bcb;
border: 0;
}
.platform-android .btn-positive {
color: #fff;
background-color: #9c0;
border: 0;
}
.platform-android .btn-positive:active, .platform-android .btn-positive.active {
color: #fff;
background-color: #739900;
border: 0;
}
.platform-android .btn-negative {
color: #fff;
background-color: #f44;
border: 0;
}
.platform-android .btn-negative:active, .platform-android .btn-negative.active {
color: #fff;
background-color: #f11;
border: 0;
}
.platform-android .btn-outlined {
background-color: transparent;
border: 1px solid #999;
-webkit-box-shadow: none;
box-shadow: none;
}
.platform-android .btn-outlined.btn-primary {
color: #33b5e5;
border: 1px solid #33b5e5;
}
.platform-android .btn-outlined.btn-primary:active {
background-color: #33b5e5;
border: 1px solid #33b5e5;
}
.platform-android .btn-outlined.btn-positive {
color: #9c0;
border: 1px solid #9c0;
}
.platform-android .btn-outlined.btn-positive:active {
background-color: #9c0;
border: 1px solid #9c0;
}
.platform-android .btn-outlined.btn-negative {
color: #f44;
border: 1px solid #f44;
}
.platform-android .btn-outlined.btn-negative:active {
background-color: #f44;
border: 1px solid #f44;
}
.platform-android .btn-outlined:active {
background-color: #999;
border: 1px solid #999;
-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, .15);
}
.platform-android .btn .badge.badge-inverted {
background-color: transparent;
}
.platform-android .btn:active .badge {
color: #fff;
}
.platform-android .bar {
height: 50px;
background-color: #ddd;
border-bottom: 1px solid #b1b1b1;
-webkit-box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, .07);
box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(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-top: 1px solid #b1b1b1;
border-bottom: 0;
-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;
font-size: 18px;
line-height: 49px;
color: #33b5e5;
}
.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: #999;
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: #9c0;
}
.platform-android .badge-positive.badge-inverted {
color: #9c0;
background-color: transparent;
}
.platform-android .badge-negative {
color: #fff;
background-color: #f44;
}
.platform-android .badge-negative.badge-inverted {
color: #f44;
background-color: transparent;
}
.platform-android .card {
background-color: transparent;
border-color: #d9d9d9;
border-radius: 2px;
}
.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 {
color: inherit;
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;
background-color: transparent;
border-top: 0;
border-bottom: 2px solid #a9a9a9;
}
.platform-android .table-view-cell .navigate-left > .btn,
.platform-android .table-view-cell .navigate-left > .badge,
.platform-android .table-view-cell .navigate-left > .toggle,
.platform-android .table-view-cell .navigate-right > .btn,
.platform-android .table-view-cell .navigate-right > .badge,
.platform-android .table-view-cell .navigate-right > .toggle,
.platform-android .table-view-cell .push-left > .btn,
.platform-android .table-view-cell .push-left > .badge,
.platform-android .table-view-cell .push-left > .toggle,
.platform-android .table-view-cell .push-right > .btn,
.platform-android .table-view-cell .push-right > .badge,
.platform-android .table-view-cell .push-right > .toggle,
.platform-android .table-view-cell > a .navigate-left > .btn,
.platform-android .table-view-cell > a .navigate-left > .badge,
.platform-android .table-view-cell > a .navigate-left > .toggle,
.platform-android .table-view-cell > a .navigate-right > .btn,
.platform-android .table-view-cell > a .navigate-right > .badge,
.platform-android .table-view-cell > a .navigate-right > .toggle,
.platform-android .table-view-cell > a .push-left > .btn,
.platform-android .table-view-cell > a .push-left > .badge,
.platform-android .table-view-cell > a .push-left > .toggle,
.platform-android .table-view-cell > a .push-right > .btn,
.platform-android .table-view-cell > a .push-right > .badge,
.platform-android .table-view-cell > a .push-right > .toggle {
right: 15px;
}
.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, .2);
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
box-shadow: 0 1px 1px rgba(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 {
height: 40px;
border-bottom: 1px solid #d9d9d9;
}
.platform-android .input-row label {
padding-top: 10px;
padding-bottom: 10px;
}
.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, .25);
box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.platform-android .segmented-control .control-item {
padding-top: 10px;
padding-bottom: 10px;
color: #222;
border-left: 1px solid #999;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .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: #999;
}
.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: #9c0;
}
.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: #f44;
}
.platform-android .popover {
top: 47px;
left: 15px;
width: 200px;
margin-left: 0;
border: 1px solid #9b9b9b;
border-radius: 0;
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .2);
box-shadow: 0 0 3px rgba(0, 0, 0, .2);
-webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out;
-o-transition: -o-transform .1s ease-in-out, opacity .2s ease-in-out;
transition: transform .1s ease-in-out, opacity .2s ease-in-out;
-webkit-transform: scale(.75);
-ms-transform: scale(.75);
-o-transform: scale(.75);
transform: scale(.75);
}
.platform-android .popover:before {
display: none;
}
.platform-android .popover.visible {
-webkit-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
.platform-android .backdrop {
background-color: transparent;
}
.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;
background-color: #d7d7d7;
border: 2px solid #d7d7d7;
border-radius: 0;
}
.platform-android .toggle .toggle-handle {
top: 0;
left: 0;
width: 50px;
height: 24px;
background-color: #bebebe;
border: 1px solid #b5b5b5;
border-radius: 2px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .1);
}
.platform-android .toggle:before {
top: 1px;
right: auto;
left: 11px;
z-index: 3;
color: #fff;
}
.platform-android .toggle.active {
background-color: #d7d7d7;
border: 2px solid #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 {
right: 14px;
left: auto;
color: #fff;
}
.platform-android .navigate-left:after,
.platform-android .push-left:after {
content: '';
}
.platform-android .navigate-right:after,
.platform-android .push-right:after {
content: '';
}
.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-position: -790px 0;
}
.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);
-o-transform: scale(1);
transform: scale(1);
}
.platform-android .bar ~ .content {
padding: 0;
}
@-webkit-keyframes fadeintext {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.bs-callout {
padding: 20px;
margin: 20px 0;
border-left: 3px solid #eee;
}
.bs-callout h4 {
margin-top: 0;
margin-bottom: 5px;
}
.bs-callout p:last-child {
margin-bottom: 0;
}
.bs-callout code {
background-color: #fff;
border-radius: 3px;
}
.bs-callout-danger {
background-color: #fdf7f7;
border-color: #d9534f;
}
.bs-callout-danger h4 {
color: #d9534f;
}
.bs-callout-warning {
background-color: #fcf8f2;
border-color: #f0ad4e;
}
.bs-callout-warning h4 {
color: #f0ad4e;
}
.bs-callout-info {
background-color: #f4f8fa;
border-color: #5bc0de;
}
.bs-callout-info h4 {
color: #5bc0de;
}
.list-group {
padding-left: 0;
margin-bottom: 20px;
}
.list-group-item:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.list-group-item {
position: relative;
display: block;
padding: 10px 15px;
margin-bottom: -1px;
background-color: #fff;
border: 1px solid #ddd;
}
.list-group .team-member {
font-size: 14px;
line-height: 32px;
color: #555;
}
.list-group img {
float: left;
width: 32px;
margin-right: 10px;
border-radius: 4px;
}
.list-group .team-member-info {
overflow: hidden;
}
.list-group .github-btn {
float: right;
width: 121px;
height: 20px;
margin-top: 6px;
}
.browser-support-table td,
.browser-support-table th {
padding: 5px;
border: 1px solid #ddd;
}
.browser-support-maybe {
color: #fff;
background-color: #f0ad4e;
}
.browser-support-yes {
background-color: #9c0;
}
.browser-support-no {
background-color: #f44;
}
================================================
FILE: docs/assets/css/pygments-manni.css
================================================
.hll { background-color: #ffffcc }
/*{ background: #f0f3f3; }*/
.c { color: #999; } /* Comment */
.err { color: #AA0000; background-color: #FFAAAA } /* Error */
.k { color: #006699; } /* Keyword */
.o { color: #555555 } /* Operator */
.cm { color: #999; } /* Comment.Multiline */ /* Edited to remove italics and make into comment */
.cp { color: #009999 } /* Comment.Preproc */
.c1 { color: #999; } /* Comment.Single */
.cs { color: #999; } /* Comment.Special */
.gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
.ge { font-style: italic } /* Generic.Emph */
.gr { color: #FF0000 } /* Generic.Error */
.gh { color: #003300; } /* Generic.Heading */
.gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
.go { color: #AAAAAA } /* Generic.Output */
.gp { color: #000099; } /* Generic.Prompt */
.gs { } /* Generic.Strong */
.gu { color: #003300; } /* Generic.Subheading */
.gt { color: #99CC66 } /* Generic.Traceback */
.kc { color: #006699; } /* Keyword.Constant */
.kd { color: #006699; } /* Keyword.Declaration */
.kn { color: #006699; } /* Keyword.Namespace */
.kp { color: #006699 } /* Keyword.Pseudo */
.kr { color: #006699; } /* Keyword.Reserved */
.kt { color: #007788; } /* Keyword.Type */
.m { color: #FF6600 } /* Literal.Number */
.s { color: #d44950 } /* Literal.String */
.na { color: #4f9fcf } /* Name.Attribute */
.nb { color: #336666 } /* Name.Builtin */
.nc { color: #00AA88; } /* Name.Class */
.no { color: #336600 } /* Name.Constant */
.nd { color: #9999FF } /* Name.Decorator */
.ni { color: #999999; } /* Name.Entity */
.ne { color: #CC0000; } /* Name.Exception */
.nf { color: #CC00FF } /* Name.Function */
.nl { color: #9999FF } /* Name.Label */
.nn { color: #00CCFF; } /* Name.Namespace */
.nt { color: #2f6f9f; } /* Name.Tag */
.nv { color: #003333 } /* Name.Variable */
.ow { color: #000000; } /* Operator.Word */
.w { color: #bbbbbb } /* Text.Whitespace */
.mf { color: #FF6600 } /* Literal.Number.Float */
.mh { color: #FF6600 } /* Literal.Number.Hex */
.mi { color: #FF6600 } /* Literal.Number.Integer */
.mo { color: #FF6600 } /* Literal.Number.Oct */
.sb { color: #CC3300 } /* Literal.String.Backtick */
.sc { color: #CC3300 } /* Literal.String.Char */
.sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
.s2 { color: #CC3300 } /* Literal.String.Double */
.se { color: #CC3300; } /* Literal.String.Escape */
.sh { color: #CC3300 } /* Literal.String.Heredoc */
.si { color: #AA0000 } /* Literal.String.Interpol */
.sx { color: #CC3300 } /* Literal.String.Other */
.sr { color: #33AAAA } /* Literal.String.Regex */
.s1 { color: #CC3300 } /* Literal.String.Single */
.ss { color: #FFCC33 } /* Literal.String.Symbol */
.bp { color: #336666 } /* Name.Builtin.Pseudo */
.vc { color: #003333 } /* Name.Variable.Class */
.vg { color: #003333 } /* Name.Variable.Global */
.vi { color: #003333 } /* Name.Variable.Instance */
.il { color: #FF6600 } /* Literal.Number.Integer.Long */
.css .o,
.css .o + .nt,
.css .nt + .nt { color: #999; }
================================================
FILE: docs/assets/js/docs.js
================================================
/* jshint jquery: true */
/* global FingerBlast: true */
$(function () {
'use strict';
var doc;
var device;
var windowWidth;
var windowHeight;
var pageHeight;
var contentPadding;
var footerHeight;
var navComponentLinks;
var componentsList;
var componentLinks;
var contentSection;
var currentActive;
var topCache;
var win;
var bod;
var eventListeners;
var toolbarToggle;
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'), 10);
footerHeight = $('.docs-footer').outerHeight(false);
toolbarToggle = $('.js-docs-component-toolbar');
// Device placement
if (windowWidth >= 768 && device.offset()) {
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();
// exit if no device
if (!device.length) {
return;
}
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', '');
}
function updateContent(content) {
$('#iwindow').html(content);
}
// 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 .language-html').text());
}
break;
}
}
};
// 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 () {
if (window.FingerBlast) {
new FingerBlast('.device-content');
}
});
});
================================================
FILE: docs/assets/js/fingerblast.js
================================================
// FINGERBLAST.js
// --------------
// Adapted from phantom limb by Brian Cartensen
/* jshint bitwise: false */
/* global GLOBAL: true */
(function () {
'use strict';
function FingerBlast (element) {
this.element = typeof element === 'string' ? document.querySelector(element) : element;
if (this.element) {
this.listen();
}
}
FingerBlast.prototype = {
x: NaN,
y: NaN,
startDistance: NaN,
startAngle: NaN,
mouseIsDown: false,
listen: function () {
var activate = this.activate.bind(this);
var deactivate = this.deactivate.bind(this);
function contains (element, ancestor) {
var descendants;
var index;
var descendant;
if (!element) {
return;
}
if ('compareDocumentPosition' in ancestor) {
return !!(ancestor.compareDocumentPosition(element) & 16);
} else if ('contains' in ancestor) {
return ancestor !== element && ancestor.contains(element);
} else {
for ((descendants = ancestor.getElementsByTagName('*')), index = 0; (descendant = descendants[index++]);) {
if (descendant === element) {
return true;
}
}
return false;
}
}
this.element.addEventListener('mouseover', function (e) {
var target = e.relatedTarget;
if (target !== this && !contains(target, this)) {
activate();
}
});
this.element.addEventListener('mouseout', function (e) {
var target = e.relatedTarget;
if (target !== this && !contains(target, this)) {
deactivate(e);
}
});
},
activate: function () {
if (this.active) {
return;
}
this.element.addEventListener('mousedown', (this.touchStart = this.touchStart.bind(this)), true);
this.element.addEventListener('mousemove', (this.touchMove = this.touchMove.bind(this)), true);
this.element.addEventListener('mouseup', (this.touchEnd = this.touchEnd.bind(this)), true);
this.element.addEventListener('click', (this.click = this.click.bind(this)), true);
this.active = true;
},
deactivate: function (e) {
this.active = false;
if (this.mouseIsDown) {
this.touchEnd(e);
}
this.element.removeEventListener('mousedown', this.touchStart, true);
this.element.removeEventListener('mousemove', this.touchMove, true);
this.element.removeEventListener('mouseup', this.touchEnd, true);
this.element.removeEventListener('click', this.click, true);
},
click: function (e) {
if (e.synthetic) {
return;
}
e.preventDefault();
e.stopPropagation();
},
touchStart: function (e) {
gitextract_7wb2yfi2/
├── .gitattributes
├── .gitignore
├── .travis.yml
├── CNAME
├── CONTRIBUTING.md
├── Gruntfile.js
├── LICENSE
├── README.md
├── _config.yml
├── bower.json
├── dist/
│ ├── css/
│ │ ├── ratchet-theme-android.css
│ │ ├── ratchet-theme-ios.css
│ │ └── ratchet.css
│ └── js/
│ └── ratchet.js
├── docs/
│ ├── LICENSE
│ ├── _data/
│ │ └── ratchicons.yml
│ ├── _includes/
│ │ ├── ad.html
│ │ ├── browser-warning.html
│ │ ├── download-module.html
│ │ ├── footer.html
│ │ ├── header.html
│ │ ├── jump.html
│ │ ├── masthead.html
│ │ └── toolbar.html
│ ├── _layouts/
│ │ ├── default.html
│ │ └── home.html
│ ├── about.html
│ ├── assets/
│ │ ├── css/
│ │ │ ├── docs.css
│ │ │ └── pygments-manni.css
│ │ └── js/
│ │ ├── docs.js
│ │ └── fingerblast.js
│ ├── components.html
│ ├── dist/
│ │ ├── css/
│ │ │ ├── ratchet-theme-android.css
│ │ │ ├── ratchet-theme-ios.css
│ │ │ └── ratchet.css
│ │ └── js/
│ │ └── ratchet.js
│ ├── examples/
│ │ ├── app-android-notes/
│ │ │ ├── css/
│ │ │ │ └── app.css
│ │ │ └── index.html
│ │ ├── app-ios-mail/
│ │ │ ├── css/
│ │ │ │ └── app.css
│ │ │ ├── inbox.html
│ │ │ └── index.html
│ │ └── app-movies/
│ │ ├── choose-theater.html
│ │ ├── css/
│ │ │ └── app.css
│ │ └── index.html
│ ├── examples.html
│ ├── getting-started.html
│ ├── index.html
│ ├── one.html
│ ├── robots.txt
│ ├── sitemap.xml
│ ├── template.html
│ └── two.html
├── grunt/
│ └── ratchicons-data-generator.js
├── js/
│ ├── .jscsrc
│ ├── .jshintrc
│ ├── common.js
│ ├── modals.js
│ ├── popovers.js
│ ├── push.js
│ ├── segmented-controllers.js
│ ├── sliders.js
│ ├── tests/
│ │ ├── .jshintrc
│ │ ├── SpecRunner.html
│ │ ├── commonSpec.js
│ │ ├── modalsSpec.js
│ │ └── sliderSpec.js
│ └── toggles.js
├── package.json
└── sass/
├── .csscomb.json
├── .csslintrc
├── badges.scss
├── bars.scss
├── base.scss
├── buttons.scss
├── cards.scss
├── docs.scss
├── forms.scss
├── mixins.scss
├── modals.scss
├── normalize.scss
├── popovers.scss
├── push.scss
├── ratchet.scss
├── ratchicons.scss
├── segmented-controls.scss
├── sliders.scss
├── table-views.scss
├── theme-android.scss
├── theme-ios.scss
├── toggles.scss
├── type.scss
└── variables.scss
SYMBOL INDEX (6 symbols across 5 files)
FILE: dist/js/ratchet.js
function cacheCurrentContent (line 489) | function cacheCurrentContent () {
FILE: docs/assets/js/docs.js
function updateContent (line 145) | function updateContent(content) {
FILE: docs/assets/js/fingerblast.js
function FingerBlast (line 12) | function FingerBlast (element) {
function contains (line 33) | function contains (element, ancestor) {
FILE: docs/dist/js/ratchet.js
function cacheCurrentContent (line 489) | function cacheCurrentContent () {
FILE: js/push.js
function cacheCurrentContent (line 281) | function cacheCurrentContent () {
Condensed preview — 92 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (532K chars).
[
{
"path": ".gitattributes",
"chars": 263,
"preview": "# Enforce Unix newlines\n*.css text eol=lf\n*.html text eol=lf\n*.js text eol=lf\n*.json text eol=lf\n*.md text eol"
},
{
"path": ".gitignore",
"chars": 428,
"preview": "# Ignore docs files\n_gh_pages\n_site\n.ruby-version\n\n# Numerous always-ignore extensions\n*.diff\n*.err\n*.orig\n*.log\n*.rej\n*"
},
{
"path": ".travis.yml",
"chars": 468,
"preview": "sudo: required\n\ndist: trusty\n\nlanguage: node_js\n\ngit:\n depth: 10\n\nnode_js:\n - \"4\"\n - \"5\"\n\nenv:\n matrix:\n - RUBY_V"
},
{
"path": "CNAME",
"chars": 14,
"preview": "goratchet.com\n"
},
{
"path": "CONTRIBUTING.md",
"chars": 5975,
"preview": "# Contributing to Ratchet\n\n## Types of issues\n\nThe GitHub issue tracker should only be used for one of the\nfollowing:\n\n+"
},
{
"path": "Gruntfile.js",
"chars": 11099,
"preview": "/*!\n * Ratchet's Gruntfile\n * http://goratchet.com\n * Copyright 2015 Connor Sears\n * Licensed under MIT (https://github."
},
{
"path": "LICENSE",
"chars": 1097,
"preview": "The MIT License (MIT)\n\nCopyright (c) 2015 connors and other contributors\n\nPermission is hereby granted, free of charge, "
},
{
"path": "README.md",
"chars": 5765,
"preview": "# [Ratchet](http://goratchet.com)\n[](https://gi"
},
{
"path": "_config.yml",
"chars": 289,
"preview": "# Meta data\nname: Ratchet\nauthors: Connor Sears\ndescription: Build mobile apps with simple HTML, CSS, and "
},
{
"path": "bower.json",
"chars": 585,
"preview": "{\n \"name\": \"ratchet\",\n \"description\": \"Build mobile apps with simple HTML, CSS, and JS components.\",\n \"keywords\": [\n "
},
{
"path": "dist/css/ratchet-theme-android.css",
"chars": 12460,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "dist/css/ratchet-theme-ios.css",
"chars": 10619,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "dist/css/ratchet.css",
"chars": 24863,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "dist/js/ratchet.js",
"chars": 29211,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "docs/LICENSE",
"chars": 19465,
"preview": "Creative Commons Legal Code\n\nAttribution 3.0 Unported\n\n CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT P"
},
{
"path": "docs/_data/ratchicons.yml",
"chars": 665,
"preview": "# This file is generated via Grunt task. **Do not edit directly.**\n# See the 'build-ratchicons-data' task in Gruntfile.j"
},
{
"path": "docs/_includes/ad.html",
"chars": 368,
"preview": "<div id=\"carbonads-container\"><div class=\"carbonad\"><div id=\"azcarbon\"></div><script type=\"text/javascript\">var z = docu"
},
{
"path": "docs/_includes/browser-warning.html",
"chars": 326,
"preview": "<!--[if lt IE 9]>\n <div class=\"bs-callout bs-callout-danger\">\n <h4>Attention!</h4>\n <p>\n Looks like your cur"
},
{
"path": "docs/_includes/download-module.html",
"chars": 809,
"preview": "<div class=\"docs-module\">\n <h4 class=\"docs-module-title\">Ratchet</h4>\n <p>Compiled and minified CSS, JavaScript, and f"
},
{
"path": "docs/_includes/footer.html",
"chars": 2329,
"preview": "<div class=\"docs-footer\">\n <!-- Social links -->\n <ul class=\"social\">\n <li>\n <iframe class=\"github-btn\" src=\"h"
},
{
"path": "docs/_includes/header.html",
"chars": 1242,
"preview": "<meta charset=\"utf-8\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n<title>{{ page.title }}</title>\n<meta name="
},
{
"path": "docs/_includes/jump.html",
"chars": 1275,
"preview": "<span class=\"docs-jump-menu pull-left js-jump-menu\">\n <span class=\"icon icon-list\"></span>\n Jump to\n <span class=\"ico"
},
{
"path": "docs/_includes/masthead.html",
"chars": 945,
"preview": "<header class=\"docs-masthead clearfix\">\n <div class=\"container\">\n <div class=\"column\">\n <h1 class=\"docs-title\">"
},
{
"path": "docs/_includes/toolbar.html",
"chars": 551,
"preview": "<div class=\"docs-component-toolbar js-docs-component-toolbar\">\n <div class=\"container\">\n <div class=\"column units-2\""
},
{
"path": "docs/_layouts/default.html",
"chars": 172,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n {% include header.html %}\n </head>\n <body ontouchstart=\"\">\n {% include browser-"
},
{
"path": "docs/_layouts/home.html",
"chars": 190,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n {% include header.html %}\n </head>\n <body class=\"docs-home\" ontouchstart=\"\">\n {"
},
{
"path": "docs/about.html",
"chars": 3325,
"preview": "---\nlayout: default\ntitle: About · Ratchet\n---\n\n<div class=\"docs-sub-header\">\n {% include masthead.html %}\n <di"
},
{
"path": "docs/assets/css/docs.css",
"chars": 50013,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "docs/assets/css/pygments-manni.css",
"chars": 3036,
"preview": ".hll { background-color: #ffffcc }\n /*{ background: #f0f3f3; }*/\n.c { color: #999; } /* Comment */\n.err { color: #AA0000"
},
{
"path": "docs/assets/js/docs.js",
"chars": 5366,
"preview": "/* jshint jquery: true */\n/* global FingerBlast: true */\n\n$(function () {\n 'use strict';\n\n var doc;\n var device;\n va"
},
{
"path": "docs/assets/js/fingerblast.js",
"chars": 7834,
"preview": "// FINGERBLAST.js\n// --------------\n// Adapted from phantom limb by Brian Cartensen\n\n/* jshint bitwise: false */\n/* glob"
},
{
"path": "docs/components.html",
"chars": 43444,
"preview": "---\nlayout: default\ntitle: Components · Ratchet\n---\n\n<div class=\"docs-sub-header\">\n {% include masthead.html %}\n"
},
{
"path": "docs/dist/css/ratchet-theme-android.css",
"chars": 12460,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "docs/dist/css/ratchet-theme-ios.css",
"chars": 10619,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "docs/dist/css/ratchet.css",
"chars": 24863,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "docs/dist/js/ratchet.js",
"chars": 29211,
"preview": "/*!\n * =====================================================\n * Ratchet v2.0.2 (http://goratchet.com)\n * Copyright 2016 "
},
{
"path": "docs/examples/app-android-notes/css/app.css",
"chars": 62,
"preview": ".slider,\n.slider img {\n margin-bottom: 0;\n height: 150px;\n}\n"
},
{
"path": "docs/examples/app-android-notes/index.html",
"chars": 5300,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Notes</title>\n <meta name=\"viewport\" content=\"i"
},
{
"path": "docs/examples/app-ios-mail/css/app.css",
"chars": 169,
"preview": ".updated-text {\n position: absolute;\n left: 0;\n right: 0;\n padding: 10px 0;\n font-size: 11px;\n text-align: center;"
},
{
"path": "docs/examples/app-ios-mail/inbox.html",
"chars": 3860,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Mail</title>\n <meta name=\"viewport\" content=\"in"
},
{
"path": "docs/examples/app-ios-mail/index.html",
"chars": 3297,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Mail</title>\n <meta name=\"viewport\" content=\"in"
},
{
"path": "docs/examples/app-movies/choose-theater.html",
"chars": 2846,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Movie finder</title>\n <meta name=\"viewport\" con"
},
{
"path": "docs/examples/app-movies/css/app.css",
"chars": 126,
"preview": ".slider {\n margin-bottom: 0;\n}\n.slider img {\n width: auto;\n height: 150px;\n}\n.content-padded {\n margin: 30px 15px 15"
},
{
"path": "docs/examples/app-movies/index.html",
"chars": 6738,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Movie finder</title>\n <meta name=\"viewport\" con"
},
{
"path": "docs/examples.html",
"chars": 2014,
"preview": "---\nlayout: default\ntitle: Examples · Ratchet\n---\n\n<div class=\"docs-sub-header\">\n {% include masthead.html %}\n "
},
{
"path": "docs/getting-started.html",
"chars": 10954,
"preview": "---\nlayout: default\ntitle: Getting started · Ratchet\n---\n\n<div class=\"docs-sub-header\">\n {% include masthead.htm"
},
{
"path": "docs/index.html",
"chars": 585,
"preview": "---\nlayout: home\ntitle: Ratchet\n---\n\n<div class=\"docs-header\">\n {% include masthead.html %}\n <div class=\"docs-header-c"
},
{
"path": "docs/one.html",
"chars": 1084,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Ratchet</title>\n <meta name=\"description\" conte"
},
{
"path": "docs/robots.txt",
"chars": 123,
"preview": "---\n---\n\n# www.robotstxt.org/\n\n# Allow crawling of all content\nUser-agent: *\nDisallow:\nSitemap: {{ site.url }}/sitemap.x"
},
{
"path": "docs/sitemap.xml",
"chars": 748,
"preview": "---\n---\n\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schema"
},
{
"path": "docs/template.html",
"chars": 2512,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Ratchet template page</title>\n\n <!-- Sets initi"
},
{
"path": "docs/two.html",
"chars": 1155,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Ratchet</title>\n <meta name=\"description\" conte"
},
{
"path": "grunt/ratchicons-data-generator.js",
"chars": 1479,
"preview": "/*!\n * Ratchet Grunt task for Ratchicons data generation\n * http://goratchet.com\n * Original script from Bootstrap (http"
},
{
"path": "js/.jscsrc",
"chars": 2444,
"preview": "{\n \"disallowEmptyBlocks\": true,\n \"disallowKeywords\": [\"with\"],\n \"disallowMixedSpacesAndTabs\": true,\n \"disallowMultip"
},
{
"path": "js/.jshintrc",
"chars": 244,
"preview": "{\n \"bitwise\" : true,\n \"browser\" : true,\n \"devel\" : true,\n \"eqeqeq\" : true,\n \"expr\" : true,\n \"forin\" : true"
},
{
"path": "js/common.js",
"chars": 1799,
"preview": "/* ========================================================================\n * Ratchet: common.js v2.0.2\n * http://gorat"
},
{
"path": "js/modals.js",
"chars": 1634,
"preview": "/* ========================================================================\n * Ratchet: modals.js v2.0.2\n * http://gorat"
},
{
"path": "js/popovers.js",
"chars": 2092,
"preview": "/* ========================================================================\n * Ratchet: popovers.js v2.0.2\n * http://gor"
},
{
"path": "js/push.js",
"chars": 13982,
"preview": "/* ========================================================================\n * Ratchet: push.js v2.0.2\n * http://goratch"
},
{
"path": "js/segmented-controllers.js",
"chars": 1802,
"preview": "/* ========================================================================\n * Ratchet: segmented-controllers.js v2.0.2\n"
},
{
"path": "js/sliders.js",
"chars": 4178,
"preview": "/* ========================================================================\n * Ratchet: sliders.js v2.0.2\n * http://gora"
},
{
"path": "js/tests/.jshintrc",
"chars": 64,
"preview": "{\n \"devel\" : true,\n \"es3\" : false,\n \"jasmine\" : true\n}\n"
},
{
"path": "js/tests/SpecRunner.html",
"chars": 1728,
"preview": "<!doctype html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <title>Jasmine Spec Runner</title>\n <link rel=\"shortcut icon\" "
},
{
"path": "js/tests/commonSpec.js",
"chars": 653,
"preview": "describe('Common', function () {\n it('RATCHET namespace is defined', function () {\n expect(typeof RATCHET !== 'undef"
},
{
"path": "js/tests/modalsSpec.js",
"chars": 1732,
"preview": "describe('Modals', function () {\n beforeEach(function () {\n var templateModal = [\n '<a id=\"linkOpenModal\" hre"
},
{
"path": "js/tests/sliderSpec.js",
"chars": 921,
"preview": "describe('Slider', function () {\n var slider = null;\n beforeEach(function () {\n var templateSlider = [\n '<div cl"
},
{
"path": "js/toggles.js",
"chars": 3413,
"preview": "/* ========================================================================\n * Ratchet: toggles.js v2.0.2\n * http://gora"
},
{
"path": "package.json",
"chars": 1450,
"preview": "{\n \"name\": \"ratchet\",\n \"description\": \"Build mobile apps with simple HTML, CSS, and JS components.\",\n \"version\": \"2.0"
},
{
"path": "sass/.csscomb.json",
"chars": 8099,
"preview": "{\n \"always-semicolon\": true,\n \"block-indent\": 2,\n \"color-case\": \"lower\",\n \"color-shorthand\": true,\n \"element-case\":"
},
{
"path": "sass/.csslintrc",
"chars": 391,
"preview": "{\n \"adjoining-classes\": false,\n \"box-sizing\": false,\n \"box-model\": false,\n \"compatible-vendor-prefixes\": false,\n \"f"
},
{
"path": "sass/badges.scss",
"chars": 870,
"preview": "//\n// Badges\n// --------------------------------------------------\n\n.badge {\n display: inline-block;\n padding: 2px 9px"
},
{
"path": "sass/bars.scss",
"chars": 4814,
"preview": "//\n// Bars\n// --------------------------------------------------\n\n.bar {\n position: fixed;\n right: 0;\n left: 0;\n z-i"
},
{
"path": "sass/base.scss",
"chars": 2005,
"preview": "//\n// Base styles\n// --------------------------------------------------\n\n// Use box sizing on all the things!\n* {\n -web"
},
{
"path": "sass/buttons.scss",
"chars": 3497,
"preview": "//\n// Buttons\n// --------------------------------------------------\n\n.btn {\n position: relative;\n display: inline-bloc"
},
{
"path": "sass/cards.scss",
"chars": 883,
"preview": "//\n// Cards\n// --------------------------------------------------\n\n.card {\n margin: $bar-side-spacing;\n overflow: hidd"
},
{
"path": "sass/docs.scss",
"chars": 20548,
"preview": "@import \"variables.scss\";\n@import \"mixins.scss\";\n\n// Clearfix mixin for docs\n\n//\n// Documentation\n// -------------------"
},
{
"path": "sass/forms.scss",
"chars": 2628,
"preview": "//\n// Forms\n// --------------------------------------------------\n\n// Force form elements to inherit font styles\ninput,\n"
},
{
"path": "sass/mixins.scss",
"chars": 5109,
"preview": "//\n// Mixins\n// --------------------------------------------------\n\n\n// General\n// -------------------------------------"
},
{
"path": "sass/modals.scss",
"chars": 695,
"preview": "//\n// Modals\n// --------------------------------------------------\n\n.modal {\n position: fixed;\n top: 0;\n z-index: 11;"
},
{
"path": "sass/normalize.scss",
"chars": 7560,
"preview": "/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\n\n//\n// 1. Set default font family to sans-s"
},
{
"path": "sass/popovers.scss",
"chars": 2108,
"preview": "//\n// Popovers (to be used with popovers.js)\n// --------------------------------------------------\n\n.popover {\n positio"
},
{
"path": "sass/push.scss",
"chars": 1189,
"preview": "//\n// Push styles (to be used with push.js)\n// --------------------------------------------------\n\n.content {\n // Fade "
},
{
"path": "sass/ratchet.scss",
"chars": 542,
"preview": "\n// Variables\n@import \"variables.scss\";\n\n// Mixins\n@import \"mixins.scss\";\n\n// Normalize & Base CSS\n@import \"normalize.sc"
},
{
"path": "sass/ratchicons.scss",
"chars": 3135,
"preview": "//\n// Ratchicons\n// --------------------------------------------------\n\n@font-face {\n font-family: Ratchicons;\n font-w"
},
{
"path": "sass/segmented-controls.scss",
"chars": 2105,
"preview": "//\n// Segmented controllers\n// --------------------------------------------------\n\n.segmented-control {\n position: rela"
},
{
"path": "sass/sliders.scss",
"chars": 672,
"preview": "//\n// Slider styles (to be used with sliders.js)\n// --------------------------------------------------\n\n// Width of slid"
},
{
"path": "sass/table-views.scss",
"chars": 2307,
"preview": "//\n// Table views\n// --------------------------------------------------\n\n.table-view {\n padding-left: 0;\n margin-top: "
},
{
"path": "sass/theme-android.scss",
"chars": 14639,
"preview": "@import \"mixins.scss\";\n\n//\n// Android theme\n// Visuals and interactions in the style of Android\n//\n// ------------------"
},
{
"path": "sass/theme-ios.scss",
"chars": 11509,
"preview": "@import \"mixins.scss\";\n\n//\n// iOS theme\n// Visuals and interactions in the style of iOS\n//\n// --------------------------"
},
{
"path": "sass/toggles.scss",
"chars": 1389,
"preview": "//\n// Toggle styles (to be used with toggles.js)\n// --------------------------------------------------\n\n.toggle {\n posi"
},
{
"path": "sass/type.scss",
"chars": 462,
"preview": "//\n// Typography\n// --------------------------------------------------\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n marg"
},
{
"path": "sass/variables.scss",
"chars": 1298,
"preview": "//\n// Variables\n// --------------------------------------------------\n\n\n// Type\n// -------------------------------------"
}
]
About this extraction
This page contains the full source code of the twbs/ratchet GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 92 files (489.5 KB), approximately 137.0k tokens, and a symbol index with 6 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.