diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..d6ba1f4b0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# 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 diff --git a/.gitignore b/.gitignore index 0a1ab686e..92175a833 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +# Ignore docs files +_gh_pages +_site +.ruby-version + # Numerous always-ignore extensions *.diff *.err @@ -9,7 +14,6 @@ *.zip *.vi *~ -*.sass-cache # OS or Editor folders .DS_Store @@ -23,14 +27,16 @@ Thumbs.db nbproject *.sublime-project *.sublime-workspace +.idea # Komodo *.komodoproject .komodotools +# Jekyll metadata +docs/.jekyll-metadata + # Folders to ignore -.hg -.svn -.CVS -.idea -node_modules \ No newline at end of file +node_modules +bower_components +.grunt diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..90f2d8c6e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +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 diff --git a/CNAME b/CNAME new file mode 100644 index 000000000..aff77b6d7 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +goratchet.com diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c61c4f39a..1a386364d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing to Ratchet -## Types of issues +## Types of issues The GitHub issue tracker should only be used for one of the following: @@ -24,7 +24,7 @@ These are some things that don't belong in the issue tracker: + **Please avoid derailing issues.** Keep the discussion on topic and respect the opinions of others. -## Bugs +## Bugs A bug is a _demonstrable problem_ that is caused by the code in the repository. @@ -55,7 +55,7 @@ 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: +### Example of a good bug report > Short and descriptive title > @@ -76,14 +76,14 @@ details will help me and others to assess and fix any potential bugs. 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 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 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 @@ -94,7 +94,7 @@ 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 +## Pull requests Good pull requests - patches, improvements, new features - are a fantastic help. @@ -112,7 +112,7 @@ commits. Please follow this process; it's the best way to get your work included in the project: -1. [Fork](http://help.github.com/fork-a-repo/) the project. +1. [Fork](https://github.com/twbs/ratchet/fork) the project. 2. Clone your fork (`git clone git@github.com:/.git`). @@ -146,6 +146,8 @@ project: If you have any other questions about contributing, please feel free to contact us. +**Don't edit files in `dist/`.** You should edit files in `sass/` and `js/`. + ## Special thanks to @necolas -For writing the original [issue-guidelines](https://github.com/necolas/issue-guidelines/) from which these were adapted. \ No newline at end of file +For writing the original [issue-guidelines](https://github.com/necolas/issue-guidelines/) from which these were adapted. diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..2e629eb48 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,447 @@ +/*! + * 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'); +}; diff --git a/LICENSE b/LICENSE index 1c5c40902..8e6fa2319 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,20 @@ -Copyright (c) 2012 DHG, CONNORS, FAT and other contributors +The MIT License (MIT) -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Copyright (c) 2015 connors and other contributors -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile deleted file mode 100644 index 7ebbf6fc6..000000000 --- a/Makefile +++ /dev/null @@ -1,69 +0,0 @@ -# -# BUILD LIB FILES -# - -build: - mkdir -p dist - cat lib/css/base.css lib/css/bars.css lib/css/lists.css lib/css/forms.css lib/css/buttons.css lib/css/chevrons.css lib/css/counts.css lib/css/segmented-controllers.css lib/css/popovers.css lib/css/modals.css lib/css/sliders.css lib/css/toggles.css lib/css/push.css > ./dist/ratchet.tmp.css - cat lib/js/*.js > ./dist/ratchet.tmp.js - @echo "/**\n * ==================================\n * Ratchet v1.0.1\n * Licensed under The MIT License\n * http://opensource.org/licenses/MIT\n * ==================================\n */\n" > ./dist/copywrite.txt - cat ./dist/copywrite.txt ./dist/ratchet.tmp.js > ./dist/ratchet.js - cat ./dist/copywrite.txt ./dist/ratchet.tmp.css > ./dist/ratchet.css - rm ./dist/ratchet.tmp.css ./dist/ratchet.tmp.js ./dist/copywrite.txt - - -# -# START DOCS SERVER -# - -docs: - open http://localhost:8000/docs - python -m SimpleHTTPServer - - -# -# BUILDS GH-PAGES BRANCH -# - -gh-pages: build - mkdir -p gh-pages - cp -r docs/ gh-pages/ - cp -r lib gh-pages/lib - cp -r dist gh-pages/dist - cd gh-pages - cp -r dist ratchet - zip -r ratchet.zip ratchet - rm -rf ratchet - cd .. - git fetch origin - git checkout gh-pages - sed -i -e 's/\.\.\//\.\//g' gh-pages/index.html - sed -i -e 's/\.\.\//\.\//g' gh-pages/one.html - sed -i -e 's/\.\.\//\.\//g' gh-pages/two.html - rm -rf ./css - rm -rf ./img - rm -rf ./js - rm -rf ./lib - rm -rf ./dist - mv gh-pages/* . - rm -rf ./*-e - rm -rf gh-pages - -# -# START DEMO SERVER -# - -demo: build_demo - open http://localhost:8000/test/app - python -m SimpleHTTPServer - -# -# START TEST SERVER -# - -test: - open http://localhost:8000/test - python -m SimpleHTTPServer - - -.PHONY: docs demo test gh-pages \ No newline at end of file diff --git a/README.md b/README.md index c267e1e9b..d676ed5e7 100644 --- a/README.md +++ b/README.md @@ -1,67 +1,118 @@ -# Ratchet +# [Ratchet](http://goratchet.com) +[![GitHub Release](https://img.shields.io/github/release/twbs/ratchet.svg)](https://github.com/twbs/ratchet/releases) +[![Build Status](https://img.shields.io/travis/twbs/ratchet/master.svg)](https://travis-ci.org/twbs/ratchet) +[![devDependency Status](https://img.shields.io/david/dev/twbs/ratchet.svg)](https://david-dm.org/twbs/ratchet#info=devDependencies) -Prototype mobile apps with simple HTML, CSS and JS components. +Build mobile apps with simple HTML, CSS, and JS components. -## Getting Started +## Table of contents -- Clone the repo `git clone git@github.com:maker/ratchet.git` or just [download](http://maker.github.com/ratchet/ratchet.zip) the bundled CSS and JS -- [Read the docs](http://maker.github.com/ratchet) to learn about the components and how to get a prototype on your phone -- We will have example apps to check out very soon! +* [Getting started](#getting-started) +* [Documentation](#documentation) +* [Support](#support) +* [Contributing](#contributing) +* [Troubleshooting](#troubleshooting) +* [Versioning](#versioning) +* [Maintainers](#maintainers) +* [License](#license) -Take note that our master branch is our active, unstable development branch and that if you're looking to download a stable copy of the repo, check the [tagged downloads](https://github.com/maker/ratchet/tags). +## 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 . 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 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 while folks transition to Ratchet 2. + +[Previous releases](https://github.com/twbs/ratchet/releases) and their documentation are also available for download. ## Support -Ratchet was developed to support iOS 5+ for iPhone. Questions or discussions about Ratchet should happen in the [Google group](https://groups.google.com/forum/#!forum/goratchet) or hit us up on Twitter [@goRatchet](http://www.twitter.com/goratchet). +Questions or discussions about Ratchet should happen in the [Google group](https://groups.google.com/forum/#!forum/goratchet) or hit us up on Twitter [@GoRatchet](https://twitter.com/goratchet). -## Reporting bugs & contributing +## Contributing -Please file a Github issue to [report a bug](http://github.com/maker/ratchet/issues). When reporting a bug, be sure to follow the [contributor guidelines](https://github.com/maker/ratchet/blob/master/CONTRIBUTING.md). +Please file a GitHub issue to [report a bug](https://github.com/twbs/ratchet/issues). When reporting a bug, be sure to follow the [contributor guidelines](https://github.com/twbs/ratchet/blob/master/CONTRIBUTING.md). ## Troubleshooting -A small list of "gotchas" are provided below for designers and developers starting to work with Ratchet +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 ` to serve up the files in the current directory to `http://localhost:` -- 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 ``` to serve up the files in the current directory to ```http://localhost:``` +## Versioning -## Future features +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. -Ratchet is just getting started. Here are some of the immediate features we're thinking about: +Releases will be numbered with the following format: -- Shelf (exposable left hand navigation a la Path or Facebook) -- Gridviews -- Notifications -- Slide control -- More list views options -- Improved active states (especially for lists) -- Docking list dividers -- Touch library for richer touch events (swipes, long press, etc) -- Autocomplete -- Hiding title bar (hides with scroll) +`..` -Even these are just the short-term goals though. We eventually want to extend Ratchet beyond the prototying for iPhone and create HTML/CSS/JS components for iPad and Android devices. Our dream is that Ratchet becomes the best way to create mobile experiences with web standard languages. +And constructed with the following guidelines: -## Authors +* 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** -Dave Gamache +For more information on SemVer, please visit . -- http://twitter.com/dhg -- http://github.com/dhgamache +## Maintainers Connor Sears -- http://twitter.com/connors -- http://github.com/connors +* +* -Jacob Thornton -- http://twitter.com/fat -- http://github.com/fat +Created by Connor Sears, Dave Gamache, and Jacob Thornton. ## License diff --git a/_config.yml b/_config.yml new file mode 100644 index 000000000..5d9972b15 --- /dev/null +++ b/_config.yml @@ -0,0 +1,15 @@ +# 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 diff --git a/bower.json b/bower.json new file mode 100644 index 000000000..9ae7be1eb --- /dev/null +++ b/bower.json @@ -0,0 +1,30 @@ +{ + "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" + ] +} diff --git a/component.json b/component.json deleted file mode 100644 index 5354c9498..000000000 --- a/component.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "ratchet", - "version": "1.0.1", - "main": ["./dist/ratchet.js", "./dist/ratchet.css"] -} \ No newline at end of file diff --git a/dist/css/ratchet-theme-android.css b/dist/css/ratchet-theme-android.css new file mode 100644 index 000000000..946cd3c07 --- /dev/null +++ b/dist/css/ratchet-theme-android.css @@ -0,0 +1,676 @@ +/*! + * ===================================================== + * 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'; +} diff --git a/dist/css/ratchet-theme-android.min.css b/dist/css/ratchet-theme-android.min.css new file mode 100644 index 000000000..44780f29e --- /dev/null +++ b/dist/css/ratchet-theme-android.min.css @@ -0,0 +1,9 @@ +/*! + * ===================================================== + * 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. + * ===================================================== + */.input-group input:last-child,.table-view .table-view-cell:last-child{background-image:none}body{font-family:Roboto,sans-serif;font-size:18px;line-height:22px;color:#222}.bar .btn-link,.title{line-height:49px;font-size:18px}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-negative:active,.btn-outlined.btn-positive:active,.btn-outlined.btn-primary: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,.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;text-align:left}.bar .btn{top:7px;padding-top:10px;padding-bottom:10px}.bar .btn-link{top:0;padding:0;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}.card,.table-view{background-color:transparent}.badge-negative.badge-inverted{color:#f44;background-color:transparent}.card{border-color:#d9d9d9;border-radius:2px}.table-view .table-view-cell{border-bottom:1px solid #d9d9d9}.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:700;text-transform:uppercase;background-color:transparent;border-top:0;border-bottom:2px solid #a9a9a9}.table-view-cell .navigate-left>.badge,.table-view-cell .navigate-left>.btn,.table-view-cell .navigate-left>.toggle,.table-view-cell .navigate-right>.badge,.table-view-cell .navigate-right>.btn,.table-view-cell .navigate-right>.toggle,.table-view-cell .push-left>.badge,.table-view-cell .push-left>.btn,.table-view-cell .push-left>.toggle,.table-view-cell .push-right>.badge,.table-view-cell .push-right>.btn,.table-view-cell .push-right>.toggle,.table-view-cell>a .navigate-left>.badge,.table-view-cell>a .navigate-left>.btn,.table-view-cell>a .navigate-left>.toggle,.table-view-cell>a .navigate-right>.badge,.table-view-cell>a .navigate-right>.btn,.table-view-cell>a .navigate-right>.toggle,.table-view-cell>a .push-left>.badge,.table-view-cell>a .push-left>.btn,.table-view-cell>a .push-left>.toggle,.table-view-cell>a .push-right>.badge,.table-view-cell>a .push-right>.btn,.table-view-cell>a .push-right>.toggle{right:15px}.input-group,input[type=number],input[type=email],input[type=url],input[type=tel],input[type=color],input[type=search],input[type=text],input[type=password],input[type=datetime],input[type=datetime-local],input[type=date],input[type=month],input[type=time],input[type=week],select,textarea{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}.input-group,select,textarea{height:auto}.input-group{padding:0;border:0}.input-row label,.segmented-control .control-item{padding-top:10px;padding-bottom:10px}.input-group input{border:0;border-bottom:1px solid #d9d9d9;-webkit-box-shadow:none;box-shadow:none}.input-row{height:40px;border-bottom:1px solid #d9d9d9}.input-row label+input{background-image:none;border-bottom:0}.segmented-control{font-size:14px;background-color:#cecece;border:0;border-radius:2px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.25);box-shadow:0 1px 1px rgba(0,0,0,.25)}.segmented-control .control-item{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,.navigate-right:after,.push-left:after,.push-right:after{content:''}.icon-caret:before{content:'\e800'}.icon-down-nav:before,.icon-down:before{content:'\e801'}.icon-download:before{content:'\e802'}.icon-left-nav:before,.icon-left:before{content:'\e803'}.icon-more-vertical:before{content:'\e804'}.icon-more:before{content:'\e805'}.icon-right-nav:before,.icon-right:before{content:'\e806'}.icon-search:before{content:'\e807'}.icon-share:before{content:'\e808'}.icon-up-nav:before,.icon-up:before{content:'\e809'} \ No newline at end of file diff --git a/dist/css/ratchet-theme-ios.css b/dist/css/ratchet-theme-ios.css new file mode 100644 index 000000000..341a9bd0d --- /dev/null +++ b/dist/css/ratchet-theme-ios.css @@ -0,0 +1,494 @@ +/*! + * ===================================================== + * 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,"), url("data:image/svg+xml;utf8,"); + 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,"); + 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,"), url("data:image/svg+xml;utf8,"); + 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,"), url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: 0 100%, 0 0; + border: 0; +} + +.input-group input { + background-image: url("data:image/svg+xml;utf8,"); + 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,"); + 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); + } +} diff --git a/dist/css/ratchet-theme-ios.min.css b/dist/css/ratchet-theme-ios.min.css new file mode 100644 index 000000000..135f377aa --- /dev/null +++ b/dist/css/ratchet-theme-ios.min.css @@ -0,0 +1,9 @@ +/*! + * ===================================================== + * 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,.h6,h5,h6,p{color:#8f8f94}.h5,.h6,h5,h6{font-weight:400;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-link,.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-negative:active,.btn-outlined.btn-positive:active,.btn-outlined.btn-primary:active{color:#fff}.btn-link{color:#007aff;border:none}.bar-tab,.bar.bar-footer,.bar.bar-footer-secondary,.bar.bar-footer-secondary-tab,.table-view{border-top:0}.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}.tab-item{color:#929292}.bar-nav .btn-link,.tab-item.active,.tab-item:active{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,.card .table-view-cell:last-child{background-image:none}.table-view{background-image:url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:0 100%,0 0;border-bottom:0}.table-view .table-view-cell{background-image:url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:15px 100%;border-bottom:0}.table-view .table-view-cell:last-child{background-image:none}.input-group,.table-view .table-view-divider{background-image:url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:0 100%,0 0}.table-view .table-view-cell>a:not(.btn):active{color:inherit}.table-view .table-view-divider{border-top:0;border-bottom:0}.input-group,input[type=text],input[type=email],input[type=url],input[type=tel],input[type=color],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],select,textarea{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}.input-group,select,textarea{height:auto}.input-group{padding:0;border:0}.input-group input,.input-row{background-repeat:no-repeat;background-position:15px 100%}.input-group input{background-image:url("data:image/svg+xml;utf8,");border:0}.input-group input:last-child{background-image:none}.input-row{background-image:url("data:image/svg+xml;utf8,");border-bottom:0}.input-row label+input,.input-row:last-child,.popover .table-view{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{border-radius:12px}.modal,.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);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.right:not([class*=sliding-in]),.content.sliding.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)}} \ No newline at end of file diff --git a/dist/css/ratchet.css b/dist/css/ratchet.css new file mode 100644 index 000000000..c8d14e3b2 --- /dev/null +++ b/dist/css/ratchet.css @@ -0,0 +1,1524 @@ +/*! + * ===================================================== + * 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'; +} diff --git a/dist/css/ratchet.min.css b/dist/css/ratchet.min.css new file mode 100644 index 000000000..6178e77f0 --- /dev/null +++ b/dist/css/ratchet.min.css @@ -0,0 +1,10 @@ +/*! + * ===================================================== + * 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 */img,legend{border:0}legend,td,th{padding:0}body,mark{color:#000}.btn-block,input[type=button],input[type=reset],input[type=submit]{width:100%}.btn,.text-center,.title{text-align:center}.btn,.slider .slide-group,.title{white-space:nowrap}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}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;color:#428bca;text-decoration:none;-webkit-tap-highlight-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}.content,body{top:0;background-color:#fff;right:0;left:0}sub{bottom:-.25em}.bar-footer,.content,body{bottom: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,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}.input-row label,body,button,input,select,textarea{font-family:"Helvetica Neue",Helvetica,sans-serif}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-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}table{border-spacing:0;border-collapse:collapse}.bar-nav~.content,.popover .bar~.table-view{padding-top:44px}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{margin:0;position:fixed;font-size:17px;line-height:21px}a:active{color:#3071a9}.content{position:absolute;overflow:auto;-webkit-overflow-scrolling:touch}.content>*{-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}.bar-header-secondary~.content{padding-top:88px}.bar-footer~.content{padding-bottom:44px}.bar-footer-secondary~.content{padding-bottom:88px}.bar-tab~.content{padding-bottom:50px}.bar-footer-secondary-tab~.content{padding-bottom:94px}.content-padded{margin:10px}.pull-left{float:left}.pull-right{float:right}.clearfix:after,.clearfix:before{display:table;content:" "}.clearfix:after{clear:both}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:10px;line-height:1}.h5,.h6,h5,h6{margin-top:20px}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{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;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-link,.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-negative:active,.btn-outlined.btn-positive:active,.btn-outlined.btn-primary:active{color:#fff}.btn-link{padding-top:6px;padding-bottom:6px;color:#428bca;border:0}.btn-link.active,.btn-link:active{color:#3071a9;background-color:transparent}.btn-block{display:block;padding:15px 0;margin-bottom:10px;font-size:18px}.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-negative:active .badge-inverted,.btn-positive:active .badge-inverted,.btn-primary: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-tab,.title{width:100%;padding:0}.bar-footer,.bar-footer-secondary,.bar-footer-secondary-tab,.bar-tab{border-top:1px solid #ddd;border-bottom:0}.bar-header-secondary{top:44px}.bar-footer-secondary{bottom:44px}.bar-footer-secondary-tab{bottom:50px}.bar-nav{top:0}.title{position:absolute;display:block;margin:0 -10px;font-size:17px;font-weight:500;line-height:44px;color:#000}.title a{color:inherit}.bar-tab{bottom:0;display:table;height:50px;table-layout:fixed}.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}.card,.table-view{background-color:#fff}.badge-negative.badge-inverted{color:#d9534f}.card{margin:10px;overflow:hidden;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,.table-view-cell{border-bottom:1px solid #ddd}.table-view{padding-left:0;margin-top:0;margin-bottom:15px;list-style:none;border-top:1px solid #ddd}.table-view-cell{position:relative;padding:11px 65px 11px 15px;overflow:hidden}.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>.badge,.table-view-cell>.btn,.table-view-cell>.toggle,.table-view-cell>a>.badge,.table-view-cell>a>.btn,.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>.badge,.table-view-cell .navigate-left>.btn,.table-view-cell .navigate-left>.toggle,.table-view-cell .navigate-right>.badge,.table-view-cell .navigate-right>.btn,.table-view-cell .navigate-right>.toggle,.table-view-cell .push-left>.badge,.table-view-cell .push-left>.btn,.table-view-cell .push-left>.toggle,.table-view-cell .push-right>.badge,.table-view-cell .push-right>.btn,.table-view-cell .push-right>.toggle,.table-view-cell>a .navigate-left>.badge,.table-view-cell>a .navigate-left>.btn,.table-view-cell>a .navigate-left>.toggle,.table-view-cell>a .navigate-right>.badge,.table-view-cell>a .navigate-right>.btn,.table-view-cell>a .navigate-right>.toggle,.table-view-cell>a .push-left>.badge,.table-view-cell>a .push-left>.btn,.table-view-cell>a .push-left>.toggle,.table-view-cell>a .push-right>.badge,.table-view-cell>a .push-right>.btn,.table-view-cell>a .push-right>.toggle{right:35px}.content>.table-view:first-child{margin-top:15px}button,input,select,textarea{font-size:17px}input[type=password],input[type=datetime],input[type=datetime-local],input[type=date],input[type=month],input[type=time],input[type=week],input[type=email],input[type=url],input[type=tel],input[type=color],input[type=number],input[type=search],input[type=text],select,textarea{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:0}select,textarea{height:auto}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}select{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;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}.control-content,.popover{display:none}.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.active{display:block}.popover{position:fixed;top:55px;left:50%;z-index:20;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}.backdrop,.modal{position:fixed;top:0}.popover.visible{opacity:1;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.backdrop{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,.slider{overflow:hidden;width:100%}.modal{z-index:11;min-height:100%;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{background-color:#000}.slider .slide-group{position:relative;font-size:0;-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}.icon,.navigate-left:after,.navigate-right:after,.push-left:after,.push-right:after{display:inline-block;font-family:Ratchicons;line-height:1;text-decoration:none;-webkit-font-smoothing:antialiased}.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%;font-size:inherit;color:#bbb;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.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:400;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{font-size:24px}.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'} +/*# sourceMappingURL=ratchet.min.css.map */ \ No newline at end of file diff --git a/dist/css/ratchet.min.css.map b/dist/css/ratchet.min.css.map new file mode 100644 index 000000000..36fd05e67 --- /dev/null +++ b/dist/css/ratchet.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["dist/css/ratchet.css"],"names":[],"mappings":";;;;;;;;4EAmGA,IAwGA,OAEE,OAAQ,EAFV,OAkBA,GACA,GACE,QAAS,EASX,KA9JA,KAuKE,MAAO,KAwNT,WAUA,mBADA,kBADA,mBAGE,MAAO,KA3GT,KA5DA,aA+OA,OAmCE,WAAY,OAtNd,KAyzBA,qBAtoBA,OAicE,YAAa,OA19Bf,KACE,YAAa,WACb,yBAA0B,KACtB,qBAAsB,KAO5B,QACA,MACA,QACA,WACA,OACA,OACA,OACA,OACA,KACA,KACA,IACA,QACA,QACE,QAAS,MAGX,MACA,OACA,SACA,MACE,QAAS,aACT,eAAgB,SAGlB,sBACE,QAAS,KACT,OAAQ,EAGV,SACA,SACE,QAAS,KAGX,EACE,iBAAkB,YAsMlB,MAAO,QACP,gBAAiB,KAEjB,4BAA6B,YAtM/B,SACA,QACE,QAAS,EAGX,YACE,cAAe,IAAI,OAGrB,EAwJA,SAvJA,OACE,YAAa,IAGf,IACE,WAAY,OAGd,GACE,OAAQ,MAAM,EAIhB,KAEE,WAAY,KAGd,MACE,UAAW,IAGb,IACA,IACE,SAAU,SACV,UAAW,IACX,YAAa,EACb,eAAgB,SAGlB,IACE,IAAK,MAoKP,SAxBA,KA0BE,IAAK,EAoHL,iBAAkB,KAnHlB,MAAO,EAkPP,KAAM,EAtZR,IACE,OAAQ,OAqaV,YArQA,SAxBA,KA8RE,OAAQ,EA/ZV,eACE,SAAU,OAGZ,OACE,OAAQ,IAAI,KAGd,GACE,OAAQ,EACR,mBAAoB,YACjB,gBAAiB,YACZ,WAAY,YAGtB,IA0FA,SAzFE,SAAU,KAGZ,KACA,IACA,IACA,KACE,YAAa,UAAW,UACxB,UAAW,IAGb,O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S,QAGX,oBACE,QAAS,QAGX,mBACE,QAAS,QAGX,mBACE,QAAS,QAGX,oBACE,QAAS,QAGX,oBACE,QAAS,QAGX,oBACE,QAAS,QAGX,yBACE,QAAS,QAGX,kBACE,QAAS,QAGX,kBACE,QAAS,QAGX,mBACE,QAAS,QAGX,oBACE,QAAS,QAGX,gBACE,QAAS,QAGX,uBACE,QAAS,QAGX,mBACE,QAAS,QAGX,sBACE,QAAS,QAGX,kBACE,QAAS,QAGX,sBACE,QAAS,QAGX,kBACE,QAAS"} \ No newline at end of file diff --git a/dist/fonts/ratchicons.eot b/dist/fonts/ratchicons.eot new file mode 100644 index 000000000..536e57258 Binary files /dev/null and b/dist/fonts/ratchicons.eot differ diff --git a/dist/fonts/ratchicons.svg b/dist/fonts/ratchicons.svg new file mode 100644 index 000000000..3abf5dd10 --- /dev/null +++ b/dist/fonts/ratchicons.svg @@ -0,0 +1,61 @@ + + + +Copyright (C) 2014 by original authors @ fontello.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dist/fonts/ratchicons.ttf b/dist/fonts/ratchicons.ttf new file mode 100644 index 000000000..927eb58c3 Binary files /dev/null and b/dist/fonts/ratchicons.ttf differ diff --git a/dist/fonts/ratchicons.woff b/dist/fonts/ratchicons.woff new file mode 100644 index 000000000..25f1e75af Binary files /dev/null and b/dist/fonts/ratchicons.woff differ diff --git a/dist/js/ratchet.js b/dist/js/ratchet.js new file mode 100644 index 000000000..7defe2ce7 --- /dev/null +++ b/dist/js/ratchet.js @@ -0,0 +1,1073 @@ +/*! + * ===================================================== + * 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 (/]*>([\s\S.]*)<\/head>/i)[0]; + body.innerHTML = responseText.match(/]*>([\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; + }); + +}()); diff --git a/dist/js/ratchet.min.js b/dist/js/ratchet.min.js new file mode 100644 index 000000000..7ce0a9736 --- /dev/null +++ b/dist/js/ratchet.min.js @@ -0,0 +1,12 @@ +/*! + * ===================================================== + * 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. + * ===================================================== + */ + +!function(){"use strict";window.CustomEvent||(window.CustomEvent=function(a,b){var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c}),"undefined"==typeof window.RATCHET&&(window.RATCHET={}),window.RATCHET.getBrowserCapabilities=function(){var a=window.getComputedStyle(document.documentElement,""),b=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];return{prefix:"-"+b+"-",transform:b[0].toUpperCase()+b.substr(1)+"Transform"}}(),window.RATCHET.getTransitionEnd=function(){var a=document.createElement("ratchet"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return b[c];return b.transition}()}(),!function(){"use strict";var a=function(a){for(var b,c=document.querySelectorAll("a");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a},b=function(b){var c=a(b.target);return c&&c.hash?document.querySelector(c.hash):void 0};window.addEventListener("touchend",function(a){var c=b(a);if(c&&c.classList.contains("modal")){var d=null;d=c.classList.contains("active")?new CustomEvent("modalClose",{bubbles:!0,cancelable:!0}):new CustomEvent("modalOpen",{bubbles:!0,cancelable:!0}),c.dispatchEvent(d),c.classList.toggle("active"),a.preventDefault()}})}(),!function(){"use strict";var a,b=function(a){for(var b,c=document.querySelectorAll("a");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a},c=function(){a.style.display="none",a.removeEventListener(window.RATCHET.getTransitionEnd,c)},d=function(){var b=document.createElement("div");return b.classList.add("backdrop"),b.addEventListener("touchend",function(){a.addEventListener(window.RATCHET.getTransitionEnd,c),a.classList.remove("visible"),a.parentNode.removeChild(d)}),b}(),e=function(c){var d=b(c.target);if(d&&d.hash&&!(d.hash.indexOf("/")>0)){try{a=document.querySelector(d.hash)}catch(e){a=null}if(null!==a&&a&&a.classList.contains("popover"))return a}},f=function(a){var b=e(a);b&&(b.style.display="block",b.offsetHeight,b.classList.add("visible"),b.parentNode.appendChild(d))};window.addEventListener("touchend",f)}(),!function(){"use strict";function a(){f[p.id]=document.body.cloneNode(!0)}var b,c=function(){},d=20,e=sessionStorage,f={},g={"slide-in":"slide-out","slide-out":"slide-in",fade:"fade"},h={bartab:".bar-tab",barnav:".bar-nav",barfooter:".bar-footer",barheadersecondary:".bar-header-secondary"},i=function(a,b){p.id=a.id,b&&(a=l(a.id)),e[a.id]=JSON.stringify(a),window.history.replaceState(a.id,a.title,a.url)},j=function(){var a=p.id,b=JSON.parse(e.cacheForwardStack||"[]"),c=JSON.parse(e.cacheBackStack||"[]");for(c.push(a);b.length;)delete e[b.shift()];for(;c.length>d;)delete e[c.shift()];l(p.id).url&&window.history.pushState(null,"",l(p.id).url),e.cacheForwardStack=JSON.stringify(b),e.cacheBackStack=JSON.stringify(c)},k=function(a,b){var c="forward"===b,d=JSON.parse(e.cacheForwardStack||"[]"),f=JSON.parse(e.cacheBackStack||"[]"),g=c?f:d,h=c?d:f;p.id&&g.push(p.id),h.pop(),e.cacheForwardStack=JSON.stringify(d),e.cacheBackStack=JSON.stringify(f)},l=function(a){return JSON.parse(e[a]||null)||{}},m=function(a){var c=u(a.target);if(!(!c||a.which>1||a.metaKey||a.ctrlKey||b||location.protocol!==c.protocol||location.host!==c.host||!c.hash&&/#/.test(c.href)||c.hash&&c.href.replace(c.hash,"")===location.href.replace(location.hash,"")||"push"===c.getAttribute("data-ignore")))return c},n=function(a){var b=m(a);b&&(a.preventDefault(),p({url:b.href,hash:b.hash,timeout:b.getAttribute("data-timeout"),transition:b.getAttribute("data-transition")}))},o=function(a){var b,c,d,i,j,m,n,o,q=a.state;if(q&&e[q]){if(j=p.id]*>([\s\S.]*)<\/head>/i)[0],d.innerHTML=f.match(/]*>([\s\S.]*)<\/body>/i)[0]):(c=d=document.createElement("div"),c.innerHTML=f),e.title=c.querySelector("title")||document.querySelector("title");var g="innerText"in e.title?"innerText":"textContent";return e.title=e.title&&e.title[g].trim(),b.transition?e=w(e,".content",d):e.contents=d,e};window.addEventListener("touchstart",function(){b=!1}),window.addEventListener("touchmove",function(){b=!0}),window.addEventListener("touchend",n),window.addEventListener("click",function(a){m(a)&&a.preventDefault()}),window.addEventListener("popstate",o),window.PUSH=p,window.RATCHET.push=p}(),!function(){"use strict";var a=function(a){for(var b,c=document.querySelectorAll(".segmented-control .control-item");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a};window.addEventListener("touchend",function(b){var c,d,e,f=a(b.target),g="active",h="."+g;if(f&&(c=f.parentNode.querySelector(h),c&&c.classList.remove(g),f.classList.add(g),f.hash&&(e=document.querySelector(f.hash)))){d=e.parentNode.querySelectorAll(h);for(var i=0;i .slide-group");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a},r=function(){var a=c.style[p].match(/translate3d\(([^,]*)/),b=a?a[1]:0;return parseInt(b,10)},s=function(a){var b=a?0>d?"ceil":"floor":"round";k=Math[b](r()/(m/c.children.length)),k+=a,k=Math.min(k,0),k=Math.max(-(c.children.length-1),k)},t=function(f){if(c=q(f.target)){var k=c.querySelector(".slide");m=k.offsetWidth*c.children.length,l=void 0,j=c.offsetWidth,i=1,g=-(c.children.length-1),h=+new Date,a=f.touches[0].pageX,b=f.touches[0].pageY,d=0,e=0,s(0),c.style[o+"transition-duration"]=0}},u=function(h){h.touches.length>1||!c||(n||(a+=h.touches[0].pageX-a-1),d=h.touches[0].pageX-a,e=h.touches[0].pageY-b,a=h.touches[0].pageX,b=h.touches[0].pageY,"undefined"==typeof l&&n&&(l=Math.abs(e)>Math.abs(d)),l||(f=d/i+r(),h.preventDefault(),i=0===k&&d>0?a/j+1.25:k===g&&0>d?Math.abs(a)/j+1.25:1,c.style[p]="translate3d("+f+"px,0,0)",n=!0))},v=function(a){c&&!l&&(n=!1,s(+new Date-h<1e3&&Math.abs(d)>15?0>d?-1:1:0),f=k*j,c.style[o+"transition-duration"]=".2s",c.style[p]="translate3d("+f+"px,0,0)",a=new CustomEvent("slide",{detail:{slideNumber:Math.abs(k)},bubbles:!0,cancelable:!0}),c.parentNode.dispatchEvent(a))};window.addEventListener("touchstart",t),window.addEventListener("touchmove",u),window.addEventListener("touchend",v)}(),!function(){"use strict";var a={},b=!1,c=!1,d=!1,e=window.RATCHET.getBrowserCapabilities.transform,f=function(a){for(var b,c=document.querySelectorAll(".toggle");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a};window.addEventListener("touchstart",function(c){if(c=c.originalEvent||c,d=f(c.target)){var e=d.querySelector(".toggle-handle"),g=d.clientWidth,h=e.clientWidth,i=d.classList.contains("active")?g-h:0;a={pageX:c.touches[0].pageX-i,pageY:c.touches[0].pageY},b=!1}}),window.addEventListener("touchmove",function(f){if(f=f.originalEvent||f,!(f.touches.length>1)&&d){var g=d.querySelector(".toggle-handle"),h=f.touches[0],i=d.clientWidth,j=g.clientWidth,k=i-j;if(b=!0,c=h.pageX-a.pageX,!(Math.abs(c)c)return g.style[e]="translate3d(0,0,0)";if(c>k)return g.style[e]="translate3d("+k+"px,0,0)";g.style[e]="translate3d("+c+"px,0,0)",d.classList[c>i/2-j/2?"add":"remove"]("active")}}}),window.addEventListener("touchend",function(a){if(d){var f=d.querySelector(".toggle-handle"),g=d.clientWidth,h=f.clientWidth,i=g-h,j=!b&&!d.classList.contains("active")||b&&c>g/2-h/2;j?f.style[e]="translate3d("+i+"px,0,0)":f.style[e]="translate3d(0,0,0)",d.classList[j?"add":"remove"]("active"),a=new CustomEvent("toggle",{detail:{isActive:j},bubbles:!0,cancelable:!0}),d.dispatchEvent(a),b=!1,d=!1}})}(); +//# sourceMappingURL=ratchet.min.js.map \ No newline at end of file diff --git a/dist/js/ratchet.min.js.map b/dist/js/ratchet.min.js.map new file mode 100644 index 000000000..662bd01df --- /dev/null +++ b/dist/js/ratchet.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["ratchet.js"],"names":["window","CustomEvent","type","config","e","document","createEvent","initCustomEvent","bubbles","cancelable","detail","RATCHET","getBrowserCapabilities","styles","getComputedStyle","documentElement","pre","Array","prototype","slice","call","join","match","OLink","prefix","transform","toUpperCase","substr","getTransitionEnd","el","createElement","transEndEventNames","WebkitTransition","MozTransition","OTransition","transition","name","undefined","style","findModals","target","i","modals","querySelectorAll","parentNode","length","getModal","event","modalToggle","hash","querySelector","addEventListener","modal","classList","contains","eventToDispatch","dispatchEvent","toggle","preventDefault","popover","findPopovers","popovers","onPopoverHidden","display","removeEventListener","backdrop","element","add","remove","removeChild","getPopover","anchor","indexOf","error","showHidePopover","offsetHeight","appendChild","cacheCurrentContent","domCache","PUSH","id","body","cloneNode","isScrolling","noop","maxCacheLength","cacheMapping","sessionStorage","transitionMap","slide-in","slide-out","fade","bars","bartab","barnav","barfooter","barheadersecondary","cacheReplace","data","updates","getCached","JSON","stringify","history","replaceState","title","url","cachePush","cacheForwardStack","parse","cacheBackStack","push","shift","pushState","cachePop","direction","forward","pushStack","popStack","pop","getTarget","findTarget","which","metaKey","ctrlKey","location","protocol","host","test","href","replace","getAttribute","touchend","timeout","popstate","key","barElement","activeObj","activeDom","transitionFrom","transitionFromObj","state","ignorePush","extendWithDom","hasOwnProperty","swapContent","contents","triggerStateChange","options","xhr","container","isFileProtocol","readyState","onreadystatechange","abort","XMLHttpRequest","open","setRequestHeader","_timeout","clearTimeout","status","success","failure","Date","setTimeout","send","parseXHR","locationReplace","_gaq","Error","swap","complete","enter","containerDirection","swapDirection","insertBefore","innerHTML","offsetWidth","fadeContainerEnd","fadeSwapEnd","slideEnd","toggles","obj","fragment","dom","result","Object","keys","forEach","head","responseText","text","trim","segmentedControls","activeTab","activeBodies","targetBody","targetTab","className","classSelector","pageX","pageY","slider","deltaX","deltaY","offsetX","lastSlide","startTime","resistance","sliderWidth","slideNumber","scrollableArea","startedMoving","transformPrefix","transformProperty","getSlider","sliders","getScroll","translate3d","ret","parseInt","setSlideNumber","offset","round","Math","children","min","max","onTouchStart","firstItem","touches","onTouchMove","abs","onTouchEnd","start","touchMove","distanceX","findToggle","originalEvent","handle","toggleWidth","clientWidth","handleWidth","current","slideOn","isActive"],"mappings":";;;;;;;;;;CAiBE,WACA,YAGKA,QAAOC,cACVD,OAAOC,YAAc,SAAUC,EAAMC,GACnC,GAAIC,GAAIC,SAASC,YAAY,cAE7B,OADAF,GAAEG,gBAAgBL,EAAMC,EAAOK,QAASL,EAAOM,WAAYN,EAAOO,QAC3DN,IAKmB,mBAAnBJ,QAAOW,UAChBX,OAAOW,YAITX,OAAOW,QAAQC,uBAAyB,WACtC,GAAIC,GAASb,OAAOc,iBAAiBT,SAASU,gBAAiB,IAC3DC,GAAOC,MAAMC,UAAUC,MACtBC,KAAKP,GACLQ,KAAK,IACLC,MAAM,sBAA0C,KAAjBT,EAAOU,QAAiB,GAAI,MAC5D,EACJ,QAC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BT,IAAclL,EAAOJ,UAAUC,SAAS,WAAeqL,GAAcC,EAAaI,EAAc,EAAIE,EAAc,CAElIE,GACFL,EAAOzM,MAAMgL,GAAqB,eAAiBQ,EAAS,UAE5DiB,EAAOzM,MAAMgL,GAAqB,qBAGpC7J,EAAOJ,UAAU+L,EAAU,MAAQ,UAAU,UAE7ChP,EAAI,GAAIH,aAAY,UAClBS,QACE2O,SAAUD,GAEZ5O,SAAS,EACTC,YAAY,IAGdgD,EAAOD,cAAcpD,GAErBuO,GAAY,EACZlL,GAAY","file":"ratchet.min.js"} \ No newline at end of file diff --git a/dist/ratchet.css b/dist/ratchet.css deleted file mode 100644 index 9d025afc4..000000000 --- a/dist/ratchet.css +++ /dev/null @@ -1,1286 +0,0 @@ -/** - * ================================== - * Ratchet v1.0.1 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ================================== - */ - -/* Hard reset --------------------------------------------------- */ - -html, -body, -div, -span, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -img, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -b, -u, -i, -center, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -article, -aside, -canvas, -details, -embed, -figure, -figcaption, -footer, -header, -hgroup, -menu, -nav, -output, -section, -summary, -time, -audio, -video { - padding: 0; - margin: 0; - border: 0; -} - -/* Prevents iOS text size adjust after orientation change, without disabling (Thanks to @necolas) */ -html { - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -/* Base styles --------------------------------------------------- */ - -body { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - font: 14px/1.25 "Helvetica Neue", sans-serif; - color: #222; - background-color: #fff; -} - -/* Universal link styling */ -a { - color: #0882f0; - text-decoration: none; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Removes the dark touch outlines on links */ -} - -/* Wrapper to be used around all content not in .bar-title and .bar-tab */ -.content { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - overflow: auto; - background-color: #fff; - -webkit-transition-property: top, bottom; - transition-property: top, bottom; - -webkit-transition-duration: .2s, .2s; - transition-duration: .2s, .2s; - -webkit-transition-timing-function: linear, linear; - transition-timing-function: linear, linear; - -webkit-overflow-scrolling: touch; -} - -/* Hack to force all relatively and absolutely positioned elements still render while scrolling - Note: This is a bug for "-webkit-overflow-scrolling: touch" */ -.content > * { - -webkit-transform: translateZ(0px); - transform: translateZ(0px); -} - -/* Utility wrapper to pad in components like forms, block buttons and segmented-controllers so they're not full-bleed */ -.content-padded { - padding: 10px; -} - -/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab. - Note: For these to work, content must come after both bars in the markup */ -.bar-title ~ .content { - top: 44px; -} -.bar-tab ~ .content { - bottom: 51px; -} -.bar-header-secondary ~ .content { - top: 88px; -}/* General bar styles --------------------------------------------------- */ - -[class*="bar-"] { - position: fixed; - right: 0; - left: 0; - z-index: 10; - height: 44px; - padding: 5px; - box-sizing: border-box; -} - -/* Modifier class to dock any bar below .bar-title */ -.bar-header-secondary { - top: 45px; -} - -/* Modifier class to dock any bar to bottom of viewport */ -.bar-footer { - bottom: 0; -} - -/* Generic bar for wrapping buttons, segmented controllers, etc. */ -.bar-standard { - background-color: #f2f2f2; - background-image: -webkit-linear-gradient(top, #f2f2f2 0, #e5e5e5 100%); - background-image: linear-gradient(to bottom, #f2f2f2 0, #e5e5e5 100%); - border-bottom: 1px solid #aaa; - box-shadow: inset 0 1px 1px -1px #fff; -} - -/* Flip border position to top for footer bars */ -.bar-footer.bar-standard, -.bar-footer-secondary.bar-standard { - border-top: 1px solid #aaa; - border-bottom-width: 0; -} - -/* Title bar --------------------------------------------------- */ - -/* Bar docked to top of viewport for showing page title and actions */ -.bar-title { - top: 0; - display: -webkit-box; - display: box; - background-color: #1eb0e9; - background-image: -webkit-linear-gradient(top, #1eb0e9 0, #109adc 100%); - background-image: linear-gradient(to bottom, #1eb0e9 0, #109adc 100%); - border-bottom: 1px solid #0e5895; - box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .8); - -webkit-box-orient: horizontal; - box-orient: horizontal; -} - -/* Centered text in the .bar-title */ -.bar-title .title { - position: absolute; - top: 0; - left: 0; - display: block; - width: 100%; - font-size: 20px; - font-weight: bold; - line-height: 44px; - color: #fff; - text-align: center; - text-shadow: 0 -1px rgba(0, 0, 0, .5); - white-space: nowrap; -} - -.bar-title > a:not([class*="button"]) { - display: block; - width: 100%; - height: 100%; -} - -/* Retain specified title color */ -.bar-title .title a { - color: inherit; -} - -/* Tab bar --------------------------------------------------- */ - -/* Bar docked to bottom used for primary app navigation */ -.bar-tab { - bottom: 0; - height: 50px; - padding: 0; - background-color: #393939; - background-image: -webkit-linear-gradient(top, #393939 0, #2b2b2b 100%); - background-image: linear-gradient(to bottom, #393939 0, #2b2b2b 100%); - border-top: 1px solid #000; - border-bottom-width: 0; - box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .6); -} - -/* Wrapper for individual tab */ -.tab-inner { - display: -webkit-box; - display: box; - height: 100%; - list-style: none; - -webkit-box-orient: horizontal; - box-orient: horizontal; -} - -/* Navigational tab */ -.tab-item { - height: 100%; - padding-top: 9px; - text-align: center; - box-sizing: border-box; - -webkit-box-flex: 1; - box-flex: 1; -} - -/* Active state for tab */ -.tab-item.active { - box-shadow: inset 0 0 20px rgba(0, 0, 0, .5); -} - -/* Icon for tab */ -.tab-icon { - display: block; - height: 18px; - margin: 0 auto; -} - -/* Label for tab */ -.tab-label { - margin-top: 1px; - font-size: 10px; - font-weight: bold; - color: #fff; - text-shadow: 0 1px rgba(0, 0, 0, .3); -} - -/* Buttons in title bars --------------------------------------------------- */ - -/* Generic style for all buttons in .bar-title */ -.bar-title [class*="button"] { - position: relative; - z-index: 10; /* Places buttons over full width title */ - font-size: 12px; - line-height: 23px; - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); - background-color: #1eb0e9; - background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%); - background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%); - border: 1px solid #0e5895; - box-shadow: 0 1px rgba(255, 255, 255, .25); - -webkit-box-flex: 0; - box-flex: 0; -} - - -/* Hacky way to right align buttons outside of flex-box system - Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */ -.bar-title .title + [class*="button"]:last-child, -.bar-title .button + [class*="button"]:last-child, -.bar-title [class*="button"].pull-right { - position: absolute; - top: 5px; - right: 5px; -} - -/* Override standard button active states */ -.bar-title .button:active { - color: #fff; - background-color: #0876b1; -} - -/* Directional buttons in title bars (thanks to @GregorAdams for solution - http://cssnerd.com/2011/11/30/the-best-pure-css3-ios-style-arrow-back-button/) --------------------------------------------------- */ - -/* Add relative positioning so :before content is positioned properly */ -.bar-title .button-prev, -.bar-title .button-next { - position: relative; -} - -/* Prev/next button base styles */ -.bar-title .button-prev { - margin-left: 7px; /* Push over to make room for :before content */ - border-left: 0; - border-bottom-left-radius: 10px 15px; - border-top-left-radius: 10px 15px; -} -.bar-title .button-next { - margin-right: 7px; /* Push over to make room for :before content */ - border-right: 0; - border-top-right-radius: 10px 15px; - border-bottom-right-radius: 10px 15px; -} - -/* Pointed part of directional button */ -.bar-title .button-prev:before, -.bar-title .button-next:before { - position: absolute; - top: 2px; - width: 27px; - height: 27px; - border-radius: 30px 100px 2px 40px / 2px 40px 30px 100px; - content: ''; - box-shadow: inset 1px 0 #0e5895, inset 0 1px #0e5895; - -webkit-mask-image: -webkit-gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); - mask-image: gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); -} -.bar-title .button-prev:before { - left: -5px; - background-image: -webkit-gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); - background-image: gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); - border-left: 1.5px solid rgba(255, 255, 255, .25); - -webkit-transform: rotate(-45deg) skew(-10deg, -10deg); - transform: rotate(-45deg) skew(-10deg, -10deg); -} -.bar-title .button-next:before { - right: -5px; - background-image: -webkit-gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); - background-image: gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); - border-top: 1.5px solid rgba(255, 255, 255, .25); - -webkit-transform: rotate(135deg) skew(-10deg, -10deg); - transform: rotate(135deg) skew(-10deg, -10deg); -} - -/* Active states for the directional buttons */ -.bar-title .button-prev:active, -.bar-title .button-next:active, -.bar-title .button-prev:active:before, -.bar-title .button-next:active:before { - color: #fff; - background-color: #0876b1; - background-image: none; -} -.bar-title .button-prev:active:before, -.bar-title .button-next:active:before { - content: ''; -} -.bar-title .button-prev:active:before { - box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2); -} -.bar-title .button-next:active:before { - box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .2); -} - -/* Block buttons in any bar --------------------------------------------------- */ - -/* Add proper padding and replace buttons normal dropshadow with a shine from bar */ -[class*="bar"] .button-block { - padding: 7px 0; - margin-bottom: 0; - box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px rgba(255, 255, 255, .8); -} - -/* Override standard padding changes for .button-blocks */ -[class*="bar"] .button-block:active { - padding: 7px 0; -} - -/* Segmented controller in any bar --------------------------------------------------- */ - -/* Remove standard segmented bottom margin */ -[class*="bar-"] .segmented-controller { - margin-bottom: 0; -} - -/* Add margins between segmented controllers and buttons */ -[class*="bar-"] .segmented-controller + [class*="button"], -[class*="bar-"] [class*="button"] + .segmented-controller { - margin-left: 5px; -} - -/* Segmented controller in a title bar --------------------------------------------------- */ - -.bar-title .segmented-controller { - line-height: 18px; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); - background-color: #1eb0e9; - background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%); - background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%); - border: 1px solid #0e5895; - border-radius: 3px; - box-shadow: 0 1px rgba(255, 255, 255, .25); - -webkit-box-flex: 1; - box-flex: 1; -} - -/* Set color for tab border and highlight */ -.bar-title .segmented-controller li { - border-left: 1px solid #0e5895; - box-shadow: inset 1px 0 rgba(255, 255, 255, .25); -} - -/* Remove inset shadow from first tab or one to the right of the active tab */ -.bar-title .segmented-controller .active + li, -.bar-title .segmented-controller li:first-child { - box-shadow: none; -} - -/* Remove left-hand border from first tab */ -.bar-title .segmented-controller li:first-child { - border-left-width: 0; -} - -/* Depressed state (active) */ -.bar-title .segmented-controller li.active { - background-color: #0082c4; - box-shadow: inset 0 1px 6px rgba(0, 0, 0, .3); -} - -/* Set color of links to white */ -.bar-title .segmented-controller li > a { - color: #fff; -} - - -/* Search forms in standard bar --------------------------------------------------- */ - -/* Position/size search bar within the bar */ -.bar-standard input[type=search] { - height: 32px; - margin: 0; -}/* Lists --------------------------------------------------- */ - -/* Remove usual bullet styles from list */ -.list { - margin-bottom: 10px; - list-style: none; - background-color: #fff; -} - -/* Pad each list item and add dividers */ -.list li { - position: relative; - padding: 20px 60px 20px 10px; /* Given extra right padding to accomodate counts, chevrons or buttons */ - border-bottom: 1px solid rgba(0, 0, 0, .1); -} - -/* Give top border to first list items */ -.list li:first-child { - border-top: 1px solid rgba(0, 0, 0, .1); -} - -/* If a list of links, make sure the child takes up full list item tap area (want to avoid selecting child buttons though) */ -.list li > a:not([class*="button"]) { - position: relative; - display: block; - padding: inherit; - margin: -20px -60px -20px -10px; - color: inherit; -} - -/* Inset list --------------------------------------------------- */ - -.list.inset { - width: auto; - margin-right: 10px; - margin-left: 10px; - border: 1px solid rgba(0, 0, 0, .1); - border-radius: 6px; - box-sizing: border-box; -} - -/* Remove border from first/last standard list items to avoid double border at top/bottom of lists */ -.list.inset li:first-child { - border-top-width: 0; -} -.list.inset li:last-child { - border-bottom-width: 0; -} - - -/* List dividers --------------------------------------------------- */ - -.list .list-divider { - position: relative; - top: -1px; - padding-top: 6px; - padding-bottom: 6px; - font-size: 12px; - font-weight: bold; - line-height: 18px; - text-shadow: 0 1px 0 rgba(255, 255, 255, .5); - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0, #eee 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0, #eee 100%); - border-top: 1px solid rgba(0, 0, 0, .1); - border-bottom: 1px solid rgba(0, 0, 0, .1); - box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4); -} - -/* Rounding first divider on inset lists and remove border on the top */ -.list.inset .list-divider:first-child { - top: 0; - border-top-width: 0; - border-radius: 6px 6px 0 0; -} - -/* Rounding last divider on inset lists */ -.list.inset .list-divider:last-child { - border-radius: 0 0 6px 6px; -} - -/* Right-aligned subcontent in lists (chevrons, buttons, counts and toggles) --------------------------------------------------- */ -.list .chevron, -.list [class*="button"], -.list [class*="count"], -.list .toggle { - position: absolute; - top: 50%; - right: 10px; -} - - /* Position chevrons/counts vertically centered on the right in list items */ -.list .chevron, -.list [class*="count"] { - margin-top: -10px; /* Half height of chevron */ -} - -/* Push count over if there's a sibling chevron */ -.list .chevron + [class*="count"] { - right: 30px; -} - -/* Position buttons vertically centered on the right in list items */ -.list [class*="button"] { - left: auto; - margin-top: -14px; /* Half height of button */ -} - -.list .toggle { - margin-top: -15px; /* Half height of toggle */ -}/* Forms --------------------------------------------------- */ - -/* Force form elements to inherit font styles */ -input, -textarea, -button, -select { - font-family: inherit; - font-size: inherit; -} - -/* Stretch inputs/textareas to full width and add height to maintain a consistent baseline */ -select, -textarea, -input[type="text"], -input[type=search], -input[type="password"], -input[type="datetime"], -input[type="datetime-local"], -input[type="date"], -input[type="month"], -input[type="time"], -input[type="week"], -input[type="number"], -input[type="email"], -input[type="url"], -input[type="tel"], -input[type="color"], -.input-group { - width: 100%; - height: 40px; - padding: 10px; - margin-bottom: 10px; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, .2); - border-radius: 3px; - box-shadow: 0 1px 1px rgba(255, 255, 255, .2), inset 0 1px 1px rgba(0, 0, 0, .1); - -webkit-appearance: none; - box-sizing: border-box; -} - -/* Fully round search input */ -input[type=search] { - height: 34px; - font-size: 14px; - border-radius: 30px; -} - -/* Allow text area's height to grow larger than a normal input */ -textarea { - height: auto; -} - -/* Style select button to look like part of the Ratchet's style */ -select { - height: auto; - font-size: 14px; - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0%, #d4d4d4 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0%, #d4d4d4 100%); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1); -} - - -/* Input groups (cluster multiple inputs together into a single group) --------------------------------------------------- */ - -/* Reset from initial form setup styles */ -.input-group { - width: auto; - height: auto; - padding: 0; -} - -/* Remove spacing, borders, shadows and rounding since it all belongs on the .input-group not the input */ -.input-group input { - margin-bottom: 0; - background-color: transparent; - border: 0; - border-bottom: 1px solid rgba(0, 0, 0, .2); - border-radius: 0; - box-shadow: none; -} - -/* Remove bottom border on last input to avoid double bottom border */ -.input-group input:last-child { - border-bottom-width: 0; -} - -/* Input groups with labels --------------------------------------------------- */ - -/* To use labels with input groups, wrap a label and an input in an .input-row */ -.input-row { - overflow: hidden; - border-bottom: 1px solid rgba(0, 0, 0, .2); -} - -/* Remove bottom border on last input-row to avoid double bottom border */ -.input-row:last-child { - border-bottom-width: 0; -} - -/* Labels get floated left with a set percentage width */ -.input-row label { - float: left; - width: 25%; - padding: 11px 10px 9px 13px; /* Optimizing the baseline for mobile. */ - font-weight: bold; -} - -/* Actual inputs float to right of labels and also have a set percentage */ -.input-row label + input { - float: right; - width: 65%; - padding-left: 0; - margin-bottom: 0; - border-bottom: 0; -}/* General button styles --------------------------------------------------- */ - -[class*="button"] { - position: relative; - display: inline-block; - padding: 4px 12px; - margin: 0; - font-weight: bold; - line-height: 18px; - color: #333; - text-align: center; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - vertical-align: top; - cursor: pointer; - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%); - border: 1px solid rgba(0, 0, 0, .3); - border-radius: 3px; - box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05); -} - -/* Active */ -[class*="button"]:active { - padding-top: 5px; - padding-bottom: 3px; - color: #333; - background-color: #ccc; - background-image: none; - box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2); -} - -/* Button modifiers --------------------------------------------------- */ - -/* Overriding styles for buttons with modifiers */ -.button-main, -.button-positive, -.button-negative { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); -} - -/* Main button */ -.button-main { - background-color: #1eafe7; - background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%); - background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%); - border: 1px solid #117aaa; -} - -/* Positive button */ -.button-positive { - background-color: #34ba15; - background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%); - background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%); - border: 1px solid #278f0f; -} - -/* Negative button */ -.button-negative { - background-color: #e71e1e; - background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%); - background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%); - border: 1px solid #b51a1a; -} - -/* Active state for buttons with modifiers */ -.button-main:active, -.button-positive:active, -.button-negative:active { - color: #fff; -} -.button-main:active { - background-color: #0876b1; -} -.button-positive:active { - background-color: #298f11; -} -.button-negative:active { - background-color: #b21a1a; -} - -/* Block level buttons (full width buttons) */ -.button-block { - display: block; - padding: 11px 0 13px; - margin-bottom: 10px; - font-size: 16px; -} - -/* Active state for block level buttons */ -.button-block:active { - padding: 12px 0; -} - -/* Counts in buttons --------------------------------------------------- */ - -/* Generic styles for all counts within buttons */ -[class*="button"] [class*="count"] { - padding-top: 2px; - padding-bottom: 2px; - margin-right: -4px; - margin-left: 4px; - text-shadow: none; - background-color: rgba(0, 0, 0, .2); - box-shadow: inset 0 1px 1px -1px #000000, 0 1px 1px -1px #fff; -} - -/* Position counts within block level buttons - Note: These are absolutely positioned so that text of button isn't "pushed" by count and always - stays at true center of button */ -.button-block [class*="count"] { - position: absolute; - right: 0; - padding-top: 4px; - padding-bottom: 4px; - margin-right: 10px; -}/* Chevrons --------------------------------------------------- */ - -.chevron { - display: block; - height: 20px; -} - -/* Base styles for both 1/2's of the chevron */ -.chevron:before, -.chevron:after { - position: relative; - display: block; - width: 12px; - height: 4px; - background-color: #999; - content: ''; -} - -/* Position and rotate respective 1/2's of the chevron */ -.chevron:before { - top: 5px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); -} -.chevron:after { - top: 7px; - -webkit-transform: rotate(-45deg); - transform: rotate(-45deg); -}/* General count styles --------------------------------------------------- */ - -[class*="count"] { - display: inline-block; - padding: 4px 9px; - font-size: 12px; - font-weight: bold; - line-height: 13px; - color: #fff; - background-color: rgba(0, 0, 0, .3); - border-radius: 100px; -} - -/* Count modifiers --------------------------------------------------- */ - -/* Overriding styles for counts with modifiers */ -.count-main, -.count-positive, -.count-negative { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); -} - -/* Main count */ -.count-main { - background-color: #1eafe7; - background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%); - background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%); -} - -/* Positive count */ -.count-positive { - background-color: #34ba15; - background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%); - background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%); -} - -/* Negative count */ -.count-negative { - background-color: #e71e1e; - background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%); - background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%); -}/* Segmented controllers --------------------------------------------------- */ - -.segmented-controller { - display: -webkit-box; - display: box; - margin-bottom: 10px; - overflow: hidden; - font-size: 12px; - font-weight: bold; - text-shadow: 0 1px rgba(255, 255, 255, .5); - list-style: none; - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%); - border: 1px solid #aaa; - border-radius: 3px; - box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(255, 255, 255, .8); - -webkit-box-orient: horizontal; - box-orient: horizontal; -} - -/* Section within controller */ -.segmented-controller li { - overflow: hidden; - text-align: center; - white-space: nowrap; - border-left: 1px solid #aaa; - box-shadow: inset 1px 0 rgba(255, 255, 255, .5); - -webkit-box-flex: 1; - box-flex: 1; -} - -/* Link that fills each section */ -.segmented-controller li > a { - display: block; - padding: 8px 16px; - overflow: hidden; - line-height: 15px; - color: #333; - text-overflow: ellipsis; -} - -/* Remove border-left and shadow from first section */ -.segmented-controller li:first-child { - border-left-width: 0; - box-shadow: none; -} - -/* Active segment of controller */ -.segmented-controller li.active { - background-color: #ccc; - box-shadow: inset 0 1px 5px rgba(0, 0, 0, .3); -} - -.segmented-controller-item { - display: none; -} - -.segmented-controller-item.active { - display: block; -}/* Popovers (to be used with popovers.js) --------------------------------------------------- */ - -.popover { - position: fixed; - top: 55px; - left: 50%; - z-index: 20; - display: none; - width: 280px; - padding: 5px; - margin-left: -146px; - background-color: #555; - background-image: -webkit-linear-gradient(top, #555 5%, #555 6%, #111 30%); - background-image: linear-gradient(to bottom, #555 5%, #555 6%,#111 30%); - border: 1px solid #111; - border-radius: 6px; - opacity: 0; - box-shadow: inset 0 1px 1px -1px #fff, 0 3px 10px rgba(0, 0, 0, .3); - -webkit-transform: translate3d(0, -15px, 0); - transform: translate3d(0, -15px, 0); - -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out; - transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out; -} - -/* Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution) */ -.popover:before, -.popover:after { - position: absolute; - left: 50%; - width: 0; - height: 0; - content: ''; -} -.popover:before { - top: -20px; - margin-left: -21px; - border-right: 21px solid transparent; - border-bottom: 21px solid #111; - border-left: 21px solid transparent; -} -.popover:after { - top: -19px; - margin-left: -20px; - border-right: 20px solid transparent; - border-bottom: 20px solid #555; - border-left: 20px solid transparent; -} - -/* Wrapper for a title and buttons */ -.popover-header { - display: -webkit-box; - display: box; - height: 34px; - margin-bottom: 5px; -} - -/* Centered title for popover */ -.popover-header .title { - position: absolute; - top: 0; - left: 0; - width: 100%; - margin: 15px 0; - font-size: 16px; - font-weight: bold; - line-height: 12px; - color: #fff; - text-align: center; - text-shadow: 0 -1px rgba(0, 0, 0, .5); -} - -/* Generic style for all buttons in .popover-header */ -.popover-header [class*="button"] { - z-index: 25; - font-size: 12px; - line-height: 22px; - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); - background-color: #454545; - background-image: -webkit-linear-gradient(top, #454545 0, #353535 100%); - background-image: linear-gradient(to bottom, #454545 0, #353535 100%); - border: 1px solid #111; - -webkit-box-flex: 0; - box-flex: 0; -} - -/* Hacky way to right align buttons outside of flex-box system - Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */ -.popover-header .title + [class*="button"]:last-child, -.popover-header .button + [class*="button"]:last-child, -.popover-header [class*="button"].pull-right { - position: absolute; - top: 5px; - right: 5px; -} - -/* Active state for popover header buttons */ -.popover-header .button:active { - color: #fff; - background-color: #0876b1; -} - -/* Popover animation --------------------------------------------------- */ - -.popover.visible { - opacity: 1; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} - -/* Backdrop (used as invisible touch escape) --------------------------------------------------- */ - -.backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 10; -} - -/* Block level buttons in popovers --------------------------------------------------- */ - -/* Positioning and giving darker border to look sharp against dark popover */ -.popover .button-block { - margin-bottom: 5px; - border: 1px solid #111; -} - -/* Remove extra margin on bottom of last button */ -.popover .button-block:last-child { - margin-bottom: 0; -} - -/* Lists in popovers --------------------------------------------------- */ - -.popover .list { - width: auto; - max-height: 250px; - margin-right: 0; - margin-bottom: 0; - margin-left: 0; - overflow: auto; - background-color: #fff; - border: 1px solid #000; - border-radius: 3px; - -webkit-overflow-scrolling: touch; -}/* Modals --------------------------------------------------- */ -.modal { - position: fixed; - top: 0; - opacity: 0; - z-index: 11; - width: 100%; - min-height: 100%; - overflow: hidden; - background-color: #fff; - -webkit-transform: translate3d(0, 100%, 0); - transform: translate3d(0, 100%, 0); - -webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s; - transition: transform .25s ease-in-out, opacity 1ms .25s; -} - -/* Modal - When active --------------------------------------------------- */ -.modal.active { - opacity: 1; - height: 100%; - -webkit-transition: -webkit-transform .25s ease-in-out; - transition: transform .25 ease-in-out; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -}/* Slider styles (to be used with sliders.js) --------------------------------------------------- */ - -/* Width/height of slider */ -.slider, -.slider > li { - width: 100%; - height: 200px; -} - -/* Outer wrapper for slider */ -.slider { - overflow: hidden; - background-color: #000; -} - -/* Inner wrapper for slider (width of all slides together) */ -.slider > ul { - position: relative; - font-size: 0; /* Remove spaces from inline-block children */ - white-space: nowrap; - -webkit-transition: all 0 linear; - transition: all 0 linear; -} - -/* Individual slide */ -.slider > ul > li { - display: inline-block; - vertical-align: top; /* Ensure that li always aligns to top */ - width: 100%; - height: 100%; -} - -/* Required reset of font-size to same as standard body */ -.slider > ul > li > * { - font-size: 14px; -}/* Toggle styles (to be used with toggles.js) --------------------------------------------------- */ - -.toggle { - position: relative; - width: 75px; - height: 28px; - background-color: #eee; - border: 1px solid #bbb; - border-radius: 20px; - box-shadow: inset 0 0 4px rgba(0, 0, 0, .1); -} - -/* Text indicating "on" or "off". Default is "off" */ -.toggle:before { - position: absolute; - right: 13px; - font-weight: bold; - line-height: 28px; - color: #777; - text-shadow: 0 1px #fff; - text-transform: uppercase; - content: "Off"; -} - -/* Sliding handle */ -.toggle-handle { - position: absolute; - top: -1px; - left: -1px; - z-index: 2; - width: 28px; - height: 28px; - background-color: #fff; - background-image: -webkit-linear-gradient(top, #fff 0, #f2f2f2 100%); - background-image: linear-gradient(to bottom, #fff 0, #f2f2f2 100%); - border: 1px solid rgba(0, 0, 0, .2); - border-radius: 100px; - -webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out; - transition: transform 0.1s ease-in-out, border 0.1s ease-in-out; -} - -/* Active state for toggle */ -.toggle.active { - background-color: #19a8e4; - background-image: -webkit-linear-gradient(top, #088cd4 0, #19a8e4 100%); - background-image: linear-gradient(to bottom, #088cd4 0, #19a8e4 100%); - border: 1px solid #096c9d; - box-shadow: inset 0 0 15px rgba(255, 255, 255, .25); -} - -/* Active state for toggle handle */ -.toggle.active .toggle-handle { - border-color: #0a76ad; - -webkit-transform: translate3d(48px,0,0); - transform: translate3d(48px,0,0); -} - -/* Change "off" to "on" for active state */ -.toggle.active:before { - right: auto; - left: 15px; - color: #fff; - text-shadow: 0 -1px rgba(0, 0, 0, 0.25); - content: "On"; -}/* Push styles (to be used with push.js) --------------------------------------------------- */ - -/* Fade animation */ -.content.fade { - left: 0; - opacity: 0; - -webkit-transition: opacity .2s ease-in-out; - transition: opacity .2s ease-in-out; -} -.content.fade.in { - opacity: 1; -} - -/* Slide animation */ -.content.slide { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - -webkit-transition: -webkit-transform .25s ease-in-out; - transition: transform .25s ease-in-out; -} -.content.slide.left { - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); -} -.content.slide.right { - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); -} \ No newline at end of file diff --git a/dist/ratchet.js b/dist/ratchet.js deleted file mode 100644 index 084a559ae..000000000 --- a/dist/ratchet.js +++ /dev/null @@ -1,765 +0,0 @@ -/** - * ================================== - * Ratchet v1.0.1 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ================================== - */ - -/* ---------------------------------- - * MODAL v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - 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.toggle('active'); - }); -}();/* ---------------------------------- - * POPOVER v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - - var popover; - - var findPopovers = function (target) { - var i, popovers = document.querySelectorAll('a'); - for (; target && target !== document; target = target.parentNode) { - for (i = popovers.length; i--;) { if (popovers[i] === target) return target; } - } - }; - - var onPopoverHidden = function () { - document.body.removeChild(backdrop); - popover.style.display = 'none'; - popover.removeEventListener('webkitTransitionEnd', onPopoverHidden); - } - - var backdrop = function () { - var element = document.createElement('div'); - - element.classList.add('backdrop'); - - element.addEventListener('touchend', function () { - popover.addEventListener('webkitTransitionEnd', onPopoverHidden); - popover.classList.remove('visible'); - }); - - return element; - }(); - - var getPopover = function (e) { - var anchor = findPopovers(e.target); - - if (!anchor || !anchor.hash) return; - - popover = document.querySelector(anchor.hash); - - if (!popover || !popover.classList.contains('popover')) return; - - return popover; - } - - window.addEventListener('touchend', 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('click', function (e) { if (getPopover(e)) e.preventDefault(); }); - -}(); -/* ---------------------------------- - * PUSH v1.0.0 - * Licensed under The MIT License - * inspired by chris's jquery.pjax.js - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - - var noop = function () {}; - - - // Pushstate cacheing - // ================== - - var isScrolling; - var maxCacheLength = 20; - var cacheMapping = sessionStorage; - var domCache = {}; - var transitionMap = { - 'slide-in' : 'slide-out', - 'slide-out' : 'slide-in', - 'fade' : 'fade' - }; - var bars = { - bartab : '.bar-tab', - bartitle : '.bar-title', - barfooter : '.bar-footer', - barheadersecondary : '.bar-header-secondary' - } - - var cacheReplace = function (data, updates) { - PUSH.id = data.id; - if (updates) data = getCached(data.id); - cacheMapping[data.id] = JSON.stringify(data); - window.history.replaceState(data.id, data.title, data.url); - domCache[data.id] = document.body.cloneNode(true); - }; - - var cachePush = function () { - var id = PUSH.id; - - var cacheForwardStack = JSON.parse(cacheMapping.cacheForwardStack || '[]'); - var cacheBackStack = JSON.parse(cacheMapping.cacheBackStack || '[]'); - - cacheBackStack.push(id); - - while (cacheForwardStack.length) delete cacheMapping[cacheForwardStack.shift()]; - while (cacheBackStack.length > maxCacheLength) delete cacheMapping[cacheBackStack.shift()]; - - window.history.pushState(null, '', cacheMapping[PUSH.id].url); - - cacheMapping.cacheForwardStack = JSON.stringify(cacheForwardStack); - cacheMapping.cacheBackStack = JSON.stringify(cacheBackStack); - }; - - var cachePop = function (id, direction) { - var forward = direction == 'forward'; - var cacheForwardStack = JSON.parse(cacheMapping.cacheForwardStack || '[]'); - var cacheBackStack = JSON.parse(cacheMapping.cacheBackStack || '[]'); - var pushStack = forward ? cacheBackStack : cacheForwardStack; - var popStack = forward ? cacheForwardStack : cacheBackStack; - - if (PUSH.id) pushStack.push(PUSH.id); - popStack.pop(); - - cacheMapping.cacheForwardStack = JSON.stringify(cacheForwardStack); - cacheMapping.cacheBackStack = JSON.stringify(cacheBackStack); - }; - - var getCached = function (id) { - return JSON.parse(cacheMapping[id] || null) || {}; - }; - - var getTarget = function (e) { - var target = findTarget(e.target); - - if ( - ! target - || e.which > 1 - || e.metaKey - || e.ctrlKey - || isScrolling - || location.protocol !== target.protocol - || location.host !== target.host - || !target.hash && /#/.test(target.href) - || target.hash && target.href.replace(target.hash, '') === location.href.replace(location.hash, '') - || target.getAttribute('data-ignore') == 'push' - ) return; - - return target; - }; - - - // Main event handlers (touchend, popstate) - // ========================================== - - var touchend = function (e) { - var target = getTarget(e); - - if (!target) return; - - e.preventDefault(); - - PUSH({ - url : target.href, - hash : target.hash, - timeout : target.getAttribute('data-timeout'), - transition : target.getAttribute('data-transition') - }); - }; - - var popstate = function (e) { - var key; - var barElement; - var activeObj; - var activeDom; - var direction; - var transition; - var transitionFrom; - var transitionFromObj; - var id = e.state; - - if (!id || !cacheMapping[id]) return; - - direction = PUSH.id < id ? 'forward' : 'back'; - - cachePop(id, direction); - - activeObj = getCached(id); - activeDom = domCache[id]; - - if (activeObj.title) document.title = activeObj.title; - - if (direction == 'back') { - transitionFrom = JSON.parse(direction == 'back' ? cacheMapping.cacheForwardStack : cacheMapping.cacheBackStack); - transitionFromObj = getCached(transitionFrom[transitionFrom.length - 1]); - } else { - transitionFromObj = activeObj; - } - - if (direction == 'back' && !transitionFromObj.id) return PUSH.id = id; - - transition = direction == 'back' ? transitionMap[transitionFromObj.transition] : transitionFromObj.transition; - - if (!activeDom) { - return PUSH({ - id : activeObj.id, - url : activeObj.url, - title : activeObj.title, - timeout : activeObj.timeout, - transition : transition, - ignorePush : true - }); - } - - if (transitionFromObj.transition) { - activeObj = extendWithDom(activeObj, '.content', activeDom.cloneNode(true)); - for (key in bars) { - barElement = document.querySelector(bars[key]) - if (activeObj[key]) swapContent(activeObj[key], barElement); - else if (barElement) barElement.parentNode.removeChild(barElement); - } - } - - swapContent( - (activeObj.contents || activeDom).cloneNode(true), - document.querySelector('.content'), - transition - ); - - PUSH.id = id; - - document.body.offsetHeight; // force reflow to prevent scroll - }; - - - // Core PUSH functionality - // ======================= - - var PUSH = function (options) { - var key; - var data = {}; - var xhr = PUSH.xhr; - - options.container = options.container || options.transition ? document.querySelector('.content') : document.body; - - for (key in bars) { - options[key] = options[key] || document.querySelector(bars[key]); - } - - if (xhr && xhr.readyState < 4) { - xhr.onreadystatechange = noop; - xhr.abort() - } - - xhr = new XMLHttpRequest(); - xhr.open('GET', options.url, true); - xhr.setRequestHeader('X-PUSH', 'true'); - - xhr.onreadystatechange = function () { - if (options._timeout) clearTimeout(options._timeout); - if (xhr.readyState == 4) xhr.status == 200 ? success(xhr, options) : failure(options.url); - }; - - if (!PUSH.id) { - cacheReplace({ - id : +new Date, - url : window.location.href, - title : document.title, - timeout : options.timeout, - transition : null - }); - } - - if (options.timeout) { - options._timeout = setTimeout(function () { xhr.abort('timeout'); }, options.timeout); - } - - xhr.send(); - - if (xhr.readyState && !options.ignorePush) cachePush(); - }; - - - // Main XHR handlers - // ================= - - var success = function (xhr, options) { - var key; - var barElement; - var data = parseXHR(xhr, options); - - if (!data.contents) return locationReplace(options.url); - - if (data.title) document.title = data.title; - - if (options.transition) { - for (key in bars) { - barElement = document.querySelector(bars[key]) - if (data[key]) swapContent(data[key], barElement); - else if (barElement) barElement.parentNode.removeChild(barElement); - } - } - - swapContent(data.contents, options.container, options.transition, function () { - cacheReplace({ - id : options.id || +new Date, - url : data.url, - title : data.title, - timeout : options.timeout, - transition : options.transition - }, options.id); - triggerStateChange(); - }); - - if (!options.ignorePush && window._gaq) _gaq.push(['_trackPageview']) // google analytics - if (!options.hash) return; - }; - - var failure = function (url) { - throw new Error('Could not get: ' + url) - }; - - - // PUSH helpers - // ============ - - var swapContent = function (swap, container, transition, complete) { - var enter; - var containerDirection; - var swapDirection; - - if (!transition) { - if (container) container.innerHTML = swap.innerHTML; - else if (swap.classList.contains('content')) document.body.appendChild(swap); - else document.body.insertBefore(swap, document.querySelector('.content')); - } else { - enter = /in$/.test(transition); - - if (transition == 'fade') { - container.classList.add('in'); - container.classList.add('fade'); - swap.classList.add('fade'); - } - - if (/slide/.test(transition)) { - swap.classList.add(enter ? 'right' : 'left'); - swap.classList.add('slide'); - container.classList.add('slide'); - } - - container.parentNode.insertBefore(swap, container); - } - - if (!transition) complete && complete(); - - if (transition == 'fade') { - container.offsetWidth; // force reflow - container.classList.remove('in'); - container.addEventListener('webkitTransitionEnd', fadeContainerEnd); - - function fadeContainerEnd() { - container.removeEventListener('webkitTransitionEnd', fadeContainerEnd); - swap.classList.add('in'); - swap.addEventListener('webkitTransitionEnd', fadeSwapEnd); - } - function fadeSwapEnd () { - swap.removeEventListener('webkitTransitionEnd', fadeSwapEnd); - container.parentNode.removeChild(container); - swap.classList.remove('fade'); - swap.classList.remove('in'); - complete && complete(); - } - } - - if (/slide/.test(transition)) { - container.offsetWidth; // force reflow - swapDirection = enter ? 'right' : 'left' - containerDirection = enter ? 'left' : 'right' - container.classList.add(containerDirection); - swap.classList.remove(swapDirection); - swap.addEventListener('webkitTransitionEnd', slideEnd); - - function slideEnd() { - swap.removeEventListener('webkitTransitionEnd', slideEnd); - swap.classList.remove('slide'); - swap.classList.remove(swapDirection); - container.parentNode.removeChild(container); - complete && complete(); - } - } - }; - - var triggerStateChange = function () { - var e = new CustomEvent('push', { - detail: { state: getCached(PUSH.id) }, - bubbles: true, - cancelable: true - }); - - window.dispatchEvent(e); - }; - - var findTarget = function (target) { - var i, toggles = document.querySelectorAll('a'); - for (; target && target !== document; target = target.parentNode) { - for (i = toggles.length; i--;) { if (toggles[i] === target) return target; } - } - }; - - var locationReplace = function (url) { - window.history.replaceState(null, '', '#'); - window.location.replace(url); - }; - - var parseURL = function (url) { - var a = document.createElement('a'); a.href = url; return a; - }; - - var extendWithDom = function (obj, fragment, dom) { - var i; - var result = {}; - - for (i in obj) result[i] = obj[i]; - - Object.keys(bars).forEach(function (key) { - var el = dom.querySelector(bars[key]); - if (el) el.parentNode.removeChild(el); - result[key] = el; - }); - - result.contents = dom.querySelector(fragment); - - return result; - }; - - var parseXHR = function (xhr, options) { - var head; - var body; - var data = {}; - var responseText = xhr.responseText; - - data.url = options.url; - - if (!responseText) return data; - - if (/]*>([\s\S.]*)<\/head>/i)[0] - body.innerHTML = responseText.match(/]*>([\s\S.]*)<\/body>/i)[0] - } else { - head = body = document.createElement('div'); - head.innerHTML = responseText; - } - - data.title = head.querySelector('title'); - data.title = data.title && data.title.innerText.trim(); - - if (options.transition) data = extendWithDom(data, '.content', body); - else data.contents = body; - - return data; - }; - - - // Attach PUSH event handlers - // ========================== - - window.addEventListener('touchstart', function () { isScrolling = false; }); - window.addEventListener('touchmove', function () { isScrolling = true; }) - window.addEventListener('touchend', touchend); - window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); }); - window.addEventListener('popstate', popstate); - -}();/* ---------------------------------- - * TABS v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - var getTarget = function (target) { - var i, popovers = document.querySelectorAll('.segmented-controller li a'); - for (; target && target !== document; target = target.parentNode) { - for (i = popovers.length; i--;) { if (popovers[i] === target) return target; } - } - }; - - window.addEventListener("touchend", function (e) { - var activeTab; - var activeBody; - var targetBody; - var targetTab; - var className = 'active'; - var classSelector = '.' + className; - var targetAnchor = getTarget(e.target); - - if (!targetAnchor) return; - - targetTab = targetAnchor.parentNode; - activeTab = targetTab.parentNode.querySelector(classSelector); - - if (activeTab) activeTab.classList.remove(className); - - targetTab.classList.add(className); - - if (!targetAnchor.hash) return; - - targetBody = document.querySelector(targetAnchor.hash); - - if (!targetBody) return; - - activeBody = targetBody.parentNode.querySelector(classSelector); - - if (activeBody) activeBody.classList.remove(className); - - targetBody.classList.add(className) - }); - - window.addEventListener('click', function (e) { if (getTarget(e.target)) e.preventDefault(); }); -}();/* ---------------------------------- - * SLIDER v1.0.0 - * Licensed under The MIT License - * Adapted from Brad Birdsall's swipe - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - - var pageX; - var pageY; - var slider; - var deltaX; - var deltaY; - var offsetX; - var lastSlide; - var startTime; - var resistance; - var sliderWidth; - var slideNumber; - var isScrolling; - var scrollableArea; - - var getSlider = function (target) { - var i, sliders = document.querySelectorAll('.slider ul'); - for (; target && target !== document; target = target.parentNode) { - for (i = sliders.length; i--;) { if (sliders[i] === target) return target; } - } - } - - var getScroll = function () { - var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/); - return parseInt(translate3d ? translate3d[1] : 0) - }; - - var setSlideNumber = function (offset) { - var round = offset ? (deltaX < 0 ? 'ceil' : 'floor') : 'round'; - slideNumber = Math[round](getScroll() / ( scrollableArea / slider.children.length) ); - slideNumber += offset; - slideNumber = Math.min(slideNumber, 0); - slideNumber = Math.max(-(slider.children.length - 1), slideNumber); - } - - var onTouchStart = function (e) { - slider = getSlider(e.target); - - if (!slider) return; - - var firstItem = slider.querySelector('li'); - - 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; - - setSlideNumber(0); - - slider.style['-webkit-transition-duration'] = 0; - }; - - var onTouchMove = function (e) { - if (e.touches.length > 1 || !slider) return; // Exit if a pinch || no slider - - deltaX = e.touches[0].pageX - pageX; - deltaY = e.touches[0].pageY - pageY; - pageX = e.touches[0].pageX; - pageY = e.touches[0].pageY; - - if (typeof isScrolling == 'undefined') { - isScrolling = Math.abs(deltaY) > Math.abs(deltaX); - } - - if (isScrolling) return; - - offsetX = (deltaX / resistance) + getScroll(); - - e.preventDefault(); - - resistance = slideNumber == 0 && deltaX > 0 ? (pageX / sliderWidth) + 1.25 : - slideNumber == lastSlide && deltaX < 0 ? (Math.abs(pageX) / sliderWidth) + 1.25 : 1; - - slider.style.webkitTransform = 'translate3d(' + offsetX + 'px,0,0)'; - }; - - var onTouchEnd = function (e) { - if (!slider || isScrolling) return; - - setSlideNumber( - (+new Date) - startTime < 1000 && Math.abs(deltaX) > 15 ? (deltaX < 0 ? -1 : 1) : 0 - ); - - offsetX = slideNumber * sliderWidth; - - slider.style['-webkit-transition-duration'] = '.2s'; - slider.style.webkitTransform = 'translate3d(' + offsetX + 'px,0,0)'; - - e = new CustomEvent('slide', { - detail: { slideNumber: Math.abs(slideNumber) }, - bubbles: true, - cancelable: true - }); - - slider.parentNode.dispatchEvent(e); - }; - - window.addEventListener('touchstart', onTouchStart); - window.addEventListener('touchmove', onTouchMove); - window.addEventListener('touchend', onTouchEnd); - -}(); -/* ---------------------------------- - * TOGGLE v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - - var start = {}; - var touchMove = false; - var distanceX = false; - var toggle = false; - - var findToggle = function (target) { - var i, toggles = document.querySelectorAll('.toggle'); - for (; target && target !== document; target = target.parentNode) { - for (i = toggles.length; i--;) { if (toggles[i] === target) return target; } - } - } - - window.addEventListener('touchstart', function (e) { - e = e.originalEvent || e; - - toggle = findToggle(e.target); - - if (!toggle) return; - - var handle = toggle.querySelector('.toggle-handle'); - var toggleWidth = toggle.offsetWidth; - var handleWidth = handle.offsetWidth; - var offset = toggle.classList.contains('active') ? toggleWidth - handleWidth : 0; - - start = { pageX : e.touches[0].pageX - offset, pageY : e.touches[0].pageY }; - touchMove = false; - - // todo: probably should be moved to the css - toggle.style['-webkit-transition-duration'] = 0; - }); - - window.addEventListener('touchmove', function (e) { - 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.offsetWidth; - var handleWidth = handle.offsetWidth; - var offset = toggleWidth - handleWidth; - - touchMove = true; - distanceX = current.pageX - start.pageX; - - if (Math.abs(distanceX) < Math.abs(current.pageY - start.pageY)) return; - - e.preventDefault(); - - if (distanceX < 0) return handle.style.webkitTransform = 'translate3d(0,0,0)'; - if (distanceX > offset) return handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)'; - - handle.style.webkitTransform = 'translate3d(' + distanceX + 'px,0,0)'; - - toggle.classList[(distanceX > (toggleWidth/2 - handleWidth/2)) ? 'add' : 'remove']('active'); - }); - - window.addEventListener('touchend', function (e) { - if (!toggle) return; - - var handle = toggle.querySelector('.toggle-handle'); - var toggleWidth = toggle.offsetWidth; - var handleWidth = handle.offsetWidth; - var offset = toggleWidth - handleWidth; - var slideOn = (!touchMove && !toggle.classList.contains('active')) || (touchMove && (distanceX > (toggleWidth/2 - handleWidth/2))); - - if (slideOn) handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)'; - else handle.style.webkitTransform = 'translate3d(0,0,0)'; - - toggle.classList[slideOn ? 'add' : 'remove']('active'); - - e = new CustomEvent('toggle', { - detail: { isActive: slideOn }, - bubbles: true, - cancelable: true - }); - - toggle.dispatchEvent(e); - - touchMove = false; - toggle = false; - }); - -}(); diff --git a/dist/template.html b/dist/template.html deleted file mode 100644 index 887c7668e..000000000 --- a/dist/template.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - Ratchet template page - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Ratchet

-
- - -
- - - \ No newline at end of file diff --git a/dist/touch-icons/apple-touch-icon-114x114.png b/dist/touch-icons/apple-touch-icon-114x114.png deleted file mode 100644 index de146614a..000000000 Binary files a/dist/touch-icons/apple-touch-icon-114x114.png and /dev/null differ diff --git a/dist/touch-icons/apple-touch-icon-57x57.png b/dist/touch-icons/apple-touch-icon-57x57.png deleted file mode 100644 index 539694283..000000000 Binary files a/dist/touch-icons/apple-touch-icon-57x57.png and /dev/null differ diff --git a/dist/touch-icons/apple-touch-icon-72x72.png b/dist/touch-icons/apple-touch-icon-72x72.png deleted file mode 100644 index a214d69f0..000000000 Binary files a/dist/touch-icons/apple-touch-icon-72x72.png and /dev/null differ diff --git a/docs/LICENSE b/docs/LICENSE new file mode 100644 index 000000000..0334caf02 --- /dev/null +++ b/docs/LICENSE @@ -0,0 +1,319 @@ +Creative Commons Legal Code + +Attribution 3.0 Unported + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR + DAMAGES RESULTING FROM ITS USE. + +License + +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE +COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY +COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS +AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE +TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY +BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS +CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND +CONDITIONS. + +1. Definitions + + a. "Adaptation" means a work based upon the Work, or upon the Work and + other pre-existing works, such as a translation, adaptation, + derivative work, arrangement of music or other alterations of a + literary or artistic work, or phonogram or performance and includes + cinematographic adaptations or any other form in which the Work may be + recast, transformed, or adapted including in any form recognizably + derived from the original, except that a work that constitutes a + Collection will not be considered an Adaptation for the purpose of + this License. For the avoidance of doubt, where the Work is a musical + work, performance or phonogram, the synchronization of the Work in + timed-relation with a moving image ("synching") will be considered an + Adaptation for the purpose of this License. + b. "Collection" means a collection of literary or artistic works, such as + encyclopedias and anthologies, or performances, phonograms or + broadcasts, or other works or subject matter other than works listed + in Section 1(f) below, which, by reason of the selection and + arrangement of their contents, constitute intellectual creations, in + which the Work is included in its entirety in unmodified form along + with one or more other contributions, each constituting separate and + independent works in themselves, which together are assembled into a + collective whole. A work that constitutes a Collection will not be + considered an Adaptation (as defined above) for the purposes of this + License. + c. "Distribute" means to make available to the public the original and + copies of the Work or Adaptation, as appropriate, through sale or + other transfer of ownership. + d. "Licensor" means the individual, individuals, entity or entities that + offer(s) the Work under the terms of this License. + e. "Original Author" means, in the case of a literary or artistic work, + the individual, individuals, entity or entities who created the Work + or if no individual or entity can be identified, the publisher; and in + addition (i) in the case of a performance the actors, singers, + musicians, dancers, and other persons who act, sing, deliver, declaim, + play in, interpret or otherwise perform literary or artistic works or + expressions of folklore; (ii) in the case of a phonogram the producer + being the person or legal entity who first fixes the sounds of a + performance or other sounds; and, (iii) in the case of broadcasts, the + organization that transmits the broadcast. + f. "Work" means the literary and/or artistic work offered under the terms + of this License including without limitation any production in the + literary, scientific and artistic domain, whatever may be the mode or + form of its expression including digital form, such as a book, + pamphlet and other writing; a lecture, address, sermon or other work + of the same nature; a dramatic or dramatico-musical work; a + choreographic work or entertainment in dumb show; a musical + composition with or without words; a cinematographic work to which are + assimilated works expressed by a process analogous to cinematography; + a work of drawing, painting, architecture, sculpture, engraving or + lithography; a photographic work to which are assimilated works + expressed by a process analogous to photography; a work of applied + art; an illustration, map, plan, sketch or three-dimensional work + relative to geography, topography, architecture or science; a + performance; a broadcast; a phonogram; a compilation of data to the + extent it is protected as a copyrightable work; or a work performed by + a variety or circus performer to the extent it is not otherwise + considered a literary or artistic work. + g. "You" means an individual or entity exercising rights under this + License who has not previously violated the terms of this License with + respect to the Work, or who has received express permission from the + Licensor to exercise rights under this License despite a previous + violation. + h. "Publicly Perform" means to perform public recitations of the Work and + to communicate to the public those public recitations, by any means or + process, including by wire or wireless means or public digital + performances; to make available to the public Works in such a way that + members of the public may access these Works from a place and at a + place individually chosen by them; to perform the Work to the public + by any means or process and the communication to the public of the + performances of the Work, including by public digital performance; to + broadcast and rebroadcast the Work by any means including signs, + sounds or images. + i. "Reproduce" means to make copies of the Work by any means including + without limitation by sound or visual recordings and the right of + fixation and reproducing fixations of the Work, including storage of a + protected performance or phonogram in digital form or other electronic + medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, +limit, or restrict any uses free from copyright or rights arising from +limitations or exceptions that are provided for in connection with the +copyright protection under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, +Licensor hereby grants You a worldwide, royalty-free, non-exclusive, +perpetual (for the duration of the applicable copyright) license to +exercise the rights in the Work as stated below: + + a. to Reproduce the Work, to incorporate the Work into one or more + Collections, and to Reproduce the Work as incorporated in the + Collections; + b. to create and Reproduce Adaptations provided that any such Adaptation, + including any translation in any medium, takes reasonable steps to + clearly label, demarcate or otherwise identify that changes were made + to the original Work. For example, a translation could be marked "The + original work was translated from English to Spanish," or a + modification could indicate "The original work has been modified."; + c. to Distribute and Publicly Perform the Work including as incorporated + in Collections; and, + d. to Distribute and Publicly Perform Adaptations. + e. For the avoidance of doubt: + + i. Non-waivable Compulsory License Schemes. In those jurisdictions in + which the right to collect royalties through any statutory or + compulsory licensing scheme cannot be waived, the Licensor + reserves the exclusive right to collect such royalties for any + exercise by You of the rights granted under this License; + ii. Waivable Compulsory License Schemes. In those jurisdictions in + which the right to collect royalties through any statutory or + compulsory licensing scheme can be waived, the Licensor waives the + exclusive right to collect such royalties for any exercise by You + of the rights granted under this License; and, + iii. Voluntary License Schemes. The Licensor waives the right to + collect royalties, whether individually or, in the event that the + Licensor is a member of a collecting society that administers + voluntary licensing schemes, via that society, from any exercise + by You of the rights granted under this License. + +The above rights may be exercised in all media and formats whether now +known or hereafter devised. The above rights include the right to make +such modifications as are technically necessary to exercise the rights in +other media and formats. Subject to Section 8(f), all rights not expressly +granted by Licensor are hereby reserved. + +4. Restrictions. The license granted in Section 3 above is expressly made +subject to and limited by the following restrictions: + + a. You may Distribute or Publicly Perform the Work only under the terms + of this License. You must include a copy of, or the Uniform Resource + Identifier (URI) for, this License with every copy of the Work You + Distribute or Publicly Perform. You may not offer or impose any terms + on the Work that restrict the terms of this License or the ability of + the recipient of the Work to exercise the rights granted to that + recipient under the terms of the License. You may not sublicense the + Work. You must keep intact all notices that refer to this License and + to the disclaimer of warranties with every copy of the Work You + Distribute or Publicly Perform. When You Distribute or Publicly + Perform the Work, You may not impose any effective technological + measures on the Work that restrict the ability of a recipient of the + Work from You to exercise the rights granted to that recipient under + the terms of the License. This Section 4(a) applies to the Work as + incorporated in a Collection, but this does not require the Collection + apart from the Work itself to be made subject to the terms of this + License. If You create a Collection, upon notice from any Licensor You + must, to the extent practicable, remove from the Collection any credit + as required by Section 4(b), as requested. If You create an + Adaptation, upon notice from any Licensor You must, to the extent + practicable, remove from the Adaptation any credit as required by + Section 4(b), as requested. + b. If You Distribute, or Publicly Perform the Work or any Adaptations or + Collections, You must, unless a request has been made pursuant to + Section 4(a), keep intact all copyright notices for the Work and + provide, reasonable to the medium or means You are utilizing: (i) the + name of the Original Author (or pseudonym, if applicable) if supplied, + and/or if the Original Author and/or Licensor designate another party + or parties (e.g., a sponsor institute, publishing entity, journal) for + attribution ("Attribution Parties") in Licensor's copyright notice, + terms of service or by other reasonable means, the name of such party + or parties; (ii) the title of the Work if supplied; (iii) to the + extent reasonably practicable, the URI, if any, that Licensor + specifies to be associated with the Work, unless such URI does not + refer to the copyright notice or licensing information for the Work; + and (iv) , consistent with Section 3(b), in the case of an Adaptation, + a credit identifying the use of the Work in the Adaptation (e.g., + "French translation of the Work by Original Author," or "Screenplay + based on original Work by Original Author"). The credit required by + this Section 4 (b) may be implemented in any reasonable manner; + provided, however, that in the case of a Adaptation or Collection, at + a minimum such credit will appear, if a credit for all contributing + authors of the Adaptation or Collection appears, then as part of these + credits and in a manner at least as prominent as the credits for the + other contributing authors. For the avoidance of doubt, You may only + use the credit required by this Section for the purpose of attribution + in the manner set out above and, by exercising Your rights under this + License, You may not implicitly or explicitly assert or imply any + connection with, sponsorship or endorsement by the Original Author, + Licensor and/or Attribution Parties, as appropriate, of You or Your + use of the Work, without the separate, express prior written + permission of the Original Author, Licensor and/or Attribution + Parties. + c. Except as otherwise agreed in writing by the Licensor or as may be + otherwise permitted by applicable law, if You Reproduce, Distribute or + Publicly Perform the Work either by itself or as part of any + Adaptations or Collections, You must not distort, mutilate, modify or + take other derogatory action in relation to the Work which would be + prejudicial to the Original Author's honor or reputation. Licensor + agrees that in those jurisdictions (e.g. Japan), in which any exercise + of the right granted in Section 3(b) of this License (the right to + make Adaptations) would be deemed to be a distortion, mutilation, + modification or other derogatory action prejudicial to the Original + Author's honor and reputation, the Licensor will waive or not assert, + as appropriate, this Section, to the fullest extent permitted by the + applicable national law, to enable You to reasonably exercise Your + right under Section 3(b) of this License (right to make Adaptations) + but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR +OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY +KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, +INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, +FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF +LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, +WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION +OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE +LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR +ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES +ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS +BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + a. This License and the rights granted hereunder will terminate + automatically upon any breach by You of the terms of this License. + Individuals or entities who have received Adaptations or Collections + from You under this License, however, will not have their licenses + terminated provided such individuals or entities remain in full + compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will + survive any termination of this License. + b. Subject to the above terms and conditions, the license granted here is + perpetual (for the duration of the applicable copyright in the Work). + Notwithstanding the above, Licensor reserves the right to release the + Work under different license terms or to stop distributing the Work at + any time; provided, however that any such election will not serve to + withdraw this License (or any other license that has been, or is + required to be, granted under the terms of this License), and this + License will continue in full force and effect unless terminated as + stated above. + +8. Miscellaneous + + a. Each time You Distribute or Publicly Perform the Work or a Collection, + the Licensor offers to the recipient a license to the Work on the same + terms and conditions as the license granted to You under this License. + b. Each time You Distribute or Publicly Perform an Adaptation, Licensor + offers to the recipient a license to the original Work on the same + terms and conditions as the license granted to You under this License. + c. If any provision of this License is invalid or unenforceable under + applicable law, it shall not affect the validity or enforceability of + the remainder of the terms of this License, and without further action + by the parties to this agreement, such provision shall be reformed to + the minimum extent necessary to make such provision valid and + enforceable. + d. No term or provision of this License shall be deemed waived and no + breach consented to unless such waiver or consent shall be in writing + and signed by the party to be charged with such waiver or consent. + e. This License constitutes the entire agreement between the parties with + respect to the Work licensed here. There are no understandings, + agreements or representations with respect to the Work not specified + here. Licensor shall not be bound by any additional provisions that + may appear in any communication from You. This License may not be + modified without the mutual written agreement of the Licensor and You. + f. The rights granted under, and the subject matter referenced, in this + License were drafted utilizing the terminology of the Berne Convention + for the Protection of Literary and Artistic Works (as amended on + September 28, 1979), the Rome Convention of 1961, the WIPO Copyright + Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 + and the Universal Copyright Convention (as revised on July 24, 1971). + These rights and subject matter take effect in the relevant + jurisdiction in which the License terms are sought to be enforced + according to the corresponding provisions of the implementation of + those treaty provisions in the applicable national law. If the + standard suite of rights granted under applicable copyright law + includes additional rights not granted under this License, such + additional rights are deemed to be included in the License; this + License is not intended to restrict the license of any rights under + applicable law. + + +Creative Commons Notice + + Creative Commons is not a party to this License, and makes no warranty + whatsoever in connection with the Work. Creative Commons will not be + liable to You or any party on any legal theory for any damages + whatsoever, including without limitation any general, special, + incidental or consequential damages arising in connection to this + license. Notwithstanding the foregoing two (2) sentences, if Creative + Commons has expressly identified itself as the Licensor hereunder, it + shall have all rights and obligations of Licensor. + + Except for the limited purpose of indicating to the public that the + Work is licensed under the CCPL, Creative Commons does not authorize + the use by either party of the trademark "Creative Commons" or any + related trademark or logo of Creative Commons without the prior + written consent of Creative Commons. Any permitted use will be in + compliance with Creative Commons' then-current trademark usage + guidelines, as may be published on its website or otherwise made + available upon request from time to time. For the avoidance of doubt, + this trademark restriction does not form part of this License. + + Creative Commons may be contacted at http://creativecommons.org/. \ No newline at end of file diff --git a/docs/_data/ratchicons.yml b/docs/_data/ratchicons.yml new file mode 100644 index 000000000..5af932f09 --- /dev/null +++ b/docs/_data/ratchicons.yml @@ -0,0 +1,43 @@ +# 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 diff --git a/docs/_includes/ad.html b/docs/_includes/ad.html new file mode 100644 index 000000000..821a92107 --- /dev/null +++ b/docs/_includes/ad.html @@ -0,0 +1 @@ +
diff --git a/docs/_includes/browser-warning.html b/docs/_includes/browser-warning.html new file mode 100644 index 000000000..829538341 --- /dev/null +++ b/docs/_includes/browser-warning.html @@ -0,0 +1,9 @@ + diff --git a/docs/_includes/download-module.html b/docs/_includes/download-module.html new file mode 100644 index 000000000..db8ef7277 --- /dev/null +++ b/docs/_includes/download-module.html @@ -0,0 +1,12 @@ +
+

Ratchet

+

Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.

+ Download Ratchet +

Currently v2.0.2

+
+ +
+

Source code

+

If you haven't already, download the source code for Ratchet.

+ Download source +
diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html new file mode 100644 index 000000000..b22b66cf2 --- /dev/null +++ b/docs/_includes/footer.html @@ -0,0 +1,45 @@ + + +{% 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 %} + + + + + diff --git a/docs/_includes/header.html b/docs/_includes/header.html new file mode 100644 index 000000000..5454852a2 --- /dev/null +++ b/docs/_includes/header.html @@ -0,0 +1,26 @@ + + +{{ page.title }} + + + + + + + + + + + + + + + + diff --git a/docs/_includes/jump.html b/docs/_includes/jump.html new file mode 100644 index 000000000..afb61605b --- /dev/null +++ b/docs/_includes/jump.html @@ -0,0 +1,21 @@ + + + Jump to + + + + diff --git a/docs/_includes/masthead.html b/docs/_includes/masthead.html new file mode 100644 index 000000000..8e746cee4 --- /dev/null +++ b/docs/_includes/masthead.html @@ -0,0 +1,20 @@ +
+
+ +
+
diff --git a/docs/_includes/toolbar.html b/docs/_includes/toolbar.html new file mode 100644 index 000000000..d04c04308 --- /dev/null +++ b/docs/_includes/toolbar.html @@ -0,0 +1,19 @@ +
+
+
+ {% include jump.html %} + + +
+
+
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html new file mode 100644 index 000000000..1e2dacc39 --- /dev/null +++ b/docs/_layouts/default.html @@ -0,0 +1,10 @@ + + + + {% include header.html %} + + + {% include browser-warning.html %} + {{ content }} + + diff --git a/docs/_layouts/home.html b/docs/_layouts/home.html new file mode 100644 index 000000000..f72016550 --- /dev/null +++ b/docs/_layouts/home.html @@ -0,0 +1,10 @@ + + + + {% include header.html %} + + + {% include browser-warning.html %} + {{ content }} + + diff --git a/docs/about.html b/docs/about.html new file mode 100644 index 000000000..d3fdd0e2b --- /dev/null +++ b/docs/about.html @@ -0,0 +1,67 @@ +--- +layout: default +title: About · Ratchet +--- + +
+ {% include masthead.html %} +
+
+

About

+

Learn about the project's history and meet the maintaining team.

+
+ {% include ad.html %} +
+
+ +
+
+
+
+

History

+

The idea for Ratchet was developed by @connors, @dhg, and @fat 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.

+

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.

+

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.

+
+ +
+

Team

+

Ratchet is maintained by one of its creators, a couple of core contributors, and its awesome community.

+ + + +

Get involved with Ratchet development by opening an issue or submitting a pull request. Read our contributing guidelines for information on how we develop.

+
+
+ +
+ {% include download-module.html %} +
+
+ +
+ + {% include footer.html %} +
+
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css new file mode 100644 index 000000000..3f980cb0d --- /dev/null +++ b/docs/assets/css/docs.css @@ -0,0 +1,2348 @@ +/*! + * ===================================================== + * 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,"), url("data:image/svg+xml;utf8,"); + 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,"); + 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,"), url("data:image/svg+xml;utf8,"); + 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,"), url("data:image/svg+xml;utf8,"); + 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,"); + 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,"); + 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; +} diff --git a/docs/assets/css/docs.min.css b/docs/assets/css/docs.min.css new file mode 100644 index 000000000..2e95a7f13 --- /dev/null +++ b/docs/assets/css/docs.min.css @@ -0,0 +1,10 @@ +/*! + * ===================================================== + * 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. + * ===================================================== + */.docs-component-toolbar .segmented-control .control-item,.toggle{cursor:pointer}body,html{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}.ge,.sd{font-style:italic}.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-component-group,.docs-jump-menu{display:none}.docs-nav-item,.docs-title a{color:#fff;-webkit-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.docs-nav-item:active,.docs-nav-item:focus,.docs-title a:active,.docs-title a: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:after,.docs-component-group:before{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:0 0!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-tag,.carbonad-text{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-tag a,.carbonad-text a{color:#fff!important}.carbonad #azcarbon>img{display:none}.docs-sub-content{position:relative;padding:55px 15px 65px;overflow:hidden;color:#fff;text-align:center}.docs-sub-content .page-description,.docs-sub-content .page-title{margin-top:0;margin-bottom:0;font-weight:300}.docs-sub-content .page-title{margin-bottom:5px;font-size:40px}.docs-module .btn-block,.version{margin-bottom:0}.docs-sub-content .page-description{font-size:24px;color:#fff;opacity:.7}@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{margin-right:380px;text-align:left}.docs-module{margin-top:35px}}.docs-section{padding-top:50px;padding-bottom:50px;border-bottom:1px solid #ddd}.docs-section:last-child{border-bottom:0}.docs-module{padding:20px;margin-top:20px;border:1px solid #ddd;border-radius:3px}.version{margin-top:10px;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}.docs-footer-text{margin-top:0;margin-bottom:0}@media screen and (min-width:768px){.docs-footer .social .twitter-follow-button{margin-top:0}.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-links,.docs-header .docs-footer .docs-footer-text{color:rgba(255,255,255,.5)}.docs-header .docs-footer .docs-footer-links a,.docs-header .docs-footer .docs-footer-text 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-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-example,.device{font-family:"Helvetica Neue",Helvetica,sans-serif}.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-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,.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}#buttonsBadgesInDevice .btn,#buttonsInDevice .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}#popoversInDevice #iwindow:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:11;content:'';background-color:rgba(0,0,0,.3)}#modalsInDevice #iwindow>.btn{margin:10px}@media screen and (min-width:768px){.popover{position:absolute;top:72px;display:block;opacity:1}.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-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 .bar,.device .content,.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:after,.column-group:before{display:table;content:" "}.platform-android .popover:before,.platform-ios .toggle:before{display:none}.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 .h6,.platform-ios h5,.platform-ios h6,.platform-ios p{color:#8f8f94}.platform-ios .h5,.platform-ios .h6,.platform-ios h5,.platform-ios h6{font-weight:400;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-link,.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-negative:active,.platform-ios .btn-outlined.btn-positive:active,.platform-ios .btn-outlined.btn-primary:active{color:#fff}.platform-ios .btn-link{color:#007aff;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-android .bar.bar-footer-secondary,.platform-android .bar.bar-footer-secondary-tab,.platform-ios .bar.bar-footer-secondary-tab{bottom:50px}.platform-ios .bar-tab,.platform-ios .bar.bar-footer,.platform-ios .bar.bar-footer-secondary,.platform-ios .bar.bar-footer-secondary-tab{border-top:0}.platform-ios .tab-item{color:#929292}.platform-ios .bar-nav .btn-link,.platform-ios .tab-item.active,.platform-ios .tab-item:active{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,.platform-ios .card .table-view-cell:last-child{background-image:none}.platform-ios .table-view{background-image:url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,");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,");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 .input-group,.platform-ios .table-view .table-view-divider{background-image:url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:0 100%,0 0}.platform-ios .table-view .table-view-cell>a:not(.btn):active{color:inherit}.platform-ios .table-view .table-view-divider{border-top:0;border-bottom:0}.platform-ios .input-group,.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[type=text],.platform-ios input[type=search],.platform-ios input[type=password],.platform-ios select,.platform-ios textarea{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 .input-group,.platform-ios select,.platform-ios textarea{height:auto}.platform-ios .input-group{padding:0;border:0}.platform-ios .input-group input,.platform-ios .input-row{background-repeat:no-repeat;background-position:15px 100%}.platform-ios .input-group input{background-image:url("data:image/svg+xml;utf8,");border:0}.platform-ios .input-group input:last-child{background-image:none}.platform-ios .input-row{background-image:url("data:image/svg+xml;utf8,");border-bottom:0}.platform-android .input-group input:last-child,.platform-android .table-view .table-view-cell:last-child,.platform-ios .input-row label+input,.platform-ios .input-row:last-child,.platform-ios .popover .table-view{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{border-radius:12px}.platform-ios .modal,.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.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);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.right:not([class*=sliding-in]),.platform-ios .content.sliding.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-negative:active,.platform-android .btn-outlined.btn-positive:active,.platform-android .btn-outlined.btn-primary: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,.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 .card,.platform-android .table-view{background-color:transparent}.platform-android .badge-negative.badge-inverted{color:#f44;background-color:transparent}.platform-android .card{border-color:#d9d9d9;border-radius:2px}.platform-android .table-view .table-view-cell{border-bottom:1px solid #d9d9d9}.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:700;text-transform:uppercase;background-color:transparent;border-top:0;border-bottom:2px solid #a9a9a9}.platform-android .table-view-cell .navigate-left>.badge,.platform-android .table-view-cell .navigate-left>.btn,.platform-android .table-view-cell .navigate-left>.toggle,.platform-android .table-view-cell .navigate-right>.badge,.platform-android .table-view-cell .navigate-right>.btn,.platform-android .table-view-cell .navigate-right>.toggle,.platform-android .table-view-cell .push-left>.badge,.platform-android .table-view-cell .push-left>.btn,.platform-android .table-view-cell .push-left>.toggle,.platform-android .table-view-cell .push-right>.badge,.platform-android .table-view-cell .push-right>.btn,.platform-android .table-view-cell .push-right>.toggle,.platform-android .table-view-cell>a .navigate-left>.badge,.platform-android .table-view-cell>a .navigate-left>.btn,.platform-android .table-view-cell>a .navigate-left>.toggle,.platform-android .table-view-cell>a .navigate-right>.badge,.platform-android .table-view-cell>a .navigate-right>.btn,.platform-android .table-view-cell>a .navigate-right>.toggle,.platform-android .table-view-cell>a .push-left>.badge,.platform-android .table-view-cell>a .push-left>.btn,.platform-android .table-view-cell>a .push-left>.toggle,.platform-android .table-view-cell>a .push-right>.badge,.platform-android .table-view-cell>a .push-right>.btn,.platform-android .table-view-cell>a .push-right>.toggle{right:15px}.platform-android .input-group,.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[type=text],.platform-android input[type=search],.platform-android input[type=password],.platform-android select,.platform-android textarea{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 .input-group,.platform-android select,.platform-android textarea{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-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.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 .navigate-right:after,.platform-android .push-left:after,.platform-android .push-right:after{content:''}.platform-android .icon-caret:before{content:'\e800'}.platform-android .icon-down-nav:before,.platform-android .icon-down:before{content:'\e801'}.platform-android .icon-download:before{content:'\e802'}.platform-android .icon-left-nav:before,.platform-android .icon-left:before{content:'\e803'}.platform-android .icon-more-vertical:before{content:'\e804'}.platform-android .icon-more:before{content:'\e805'}.platform-android .icon-right-nav:before,.platform-android .icon-right:before{content:'\e806'}.platform-android .icon-search:before{content:'\e807'}.platform-android .icon-share:before{content:'\e808'}.platform-android .icon-up-nav:before,.platform-android .icon-up: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}.hll{background-color:#ffc}.c{color:#999}.err{color:#A00;background-color:#FAA}.k{color:#069}.o{color:#555}.cm{color:#999}.cp{color:#099}.c1,.cs{color:#999}.gd{background-color:#FCC;border:1px solid #C00}.gr{color:red}.gh{color:#030}.gi{background-color:#CFC;border:1px solid #0C0}.go{color:#AAA}.gp{color:#009}.gu{color:#030}.gt{color:#9C6}.kc,.kd,.kn,.kp,.kr{color:#069}.kt{color:#078}.m{color:#F60}.s{color:#d44950}.na{color:#4f9fcf}.nb{color:#366}.nc{color:#0A8}.no{color:#360}.nd{color:#99F}.ni{color:#999}.ne{color:#C00}.nf{color:#C0F}.nl{color:#99F}.nn{color:#0CF}.nt{color:#2f6f9f}.nv{color:#033}.ow{color:#000}.w{color:#bbb}.mf,.mh,.mi,.mo{color:#F60}.s2,.sb,.sc,.sd,.se,.sh{color:#C30}.si{color:#A00}.sx{color:#C30}.sr{color:#3AA}.s1{color:#C30}.ss{color:#FC3}.bp{color:#366}.vc,.vg,.vi{color:#033}.il{color:#F60}.css .nt+.nt,.css .o,.css .o+.nt{color:#999} +/*# sourceMappingURL=docs.min.css.map */ \ No newline at end of file diff --git a/docs/assets/css/docs.min.css.map b/docs/assets/css/docs.min.css.map new file mode 100644 index 000000000..3ce41050c --- /dev/null +++ b/docs/assets/css/docs.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["docs/assets/css/docs.css","docs/assets/css/pygments-manni.css"],"names":[],"mappings":";;;;;;;;AAqkBA,yDA0PA,QACE,OAAQ,QA7zBV,KADA,KAEE,MAAO,KACP,OAAQ,KAGV,KACE,SAAU,mBACV,KAAM,IAAI,KAAM,IAAI,YAAa,WACjC,MAAO,KACP,yBAA0B,KAC1B,iBAAkB,KAElB,uBAAwB,YCJ1B,IAqCA,IAAsB,WAAY,OD9BlC,cACE,UAAW,KAGb,oCACE,cACE,UAAW,MAIf,iBAAkB,iBA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MAAO,KACb,IAAM,MAAO,KACb,IAAM,MAAO,QACb,IAAM,MAAO,KACb,IAAM,MAAO,KACb,GAAK,MAAO,KACZ,IACA,IACA,IACA,IAHM,MAAO,KAOb,IAHA,IACA,IACA,IAEA,IACA,IAFM,MAAO,KAGb,IAAM,MAAO,KACb,IAAM,MAAO,KACb,IAAM,MAAO,KACb,IAAM,MAAO,KACb,IAAM,MAAO,KACb,IAAM,MAAO,KACb,IACA,IACA,IAFM,MAAO,KAGb,IAAM,MAAO,KAIb,aAFA,QACA,YACiB,MAAO"} \ No newline at end of file diff --git a/docs/assets/css/pygments-manni.css b/docs/assets/css/pygments-manni.css new file mode 100644 index 000000000..1b3c92cb2 --- /dev/null +++ b/docs/assets/css/pygments-manni.css @@ -0,0 +1,66 @@ +.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; } diff --git a/docs/assets/img/apple-touch-icon-114x114.png b/docs/assets/img/apple-touch-icon-114x114.png new file mode 100644 index 000000000..b9e979ae0 Binary files /dev/null and b/docs/assets/img/apple-touch-icon-114x114.png differ diff --git a/docs/assets/img/apple-touch-icon-57x57.png b/docs/assets/img/apple-touch-icon-57x57.png new file mode 100644 index 000000000..3011c25be Binary files /dev/null and b/docs/assets/img/apple-touch-icon-57x57.png differ diff --git a/docs/assets/img/apple-touch-icon-72x72.png b/docs/assets/img/apple-touch-icon-72x72.png new file mode 100644 index 000000000..c06d1a088 Binary files /dev/null and b/docs/assets/img/apple-touch-icon-72x72.png differ diff --git a/docs/assets/img/device-sprite.png b/docs/assets/img/device-sprite.png new file mode 100644 index 000000000..2c3e398c0 Binary files /dev/null and b/docs/assets/img/device-sprite.png differ diff --git a/docs/assets/img/example-android.png b/docs/assets/img/example-android.png new file mode 100644 index 000000000..8b07225fc Binary files /dev/null and b/docs/assets/img/example-android.png differ diff --git a/docs/assets/img/example-ios.png b/docs/assets/img/example-ios.png new file mode 100644 index 000000000..c758edd12 Binary files /dev/null and b/docs/assets/img/example-ios.png differ diff --git a/docs/assets/img/example.png b/docs/assets/img/example.png new file mode 100644 index 000000000..6b600b20a Binary files /dev/null and b/docs/assets/img/example.png differ diff --git a/docs/assets/img/slide-1.jpg b/docs/assets/img/slide-1.jpg new file mode 100644 index 000000000..5e5b4ce81 Binary files /dev/null and b/docs/assets/img/slide-1.jpg differ diff --git a/docs/assets/img/slide-2.jpg b/docs/assets/img/slide-2.jpg new file mode 100644 index 000000000..5998630b6 Binary files /dev/null and b/docs/assets/img/slide-2.jpg differ diff --git a/docs/assets/img/slide-3.jpg b/docs/assets/img/slide-3.jpg new file mode 100644 index 000000000..8ce6d7496 Binary files /dev/null and b/docs/assets/img/slide-3.jpg differ diff --git a/docs/assets/js/docs.js b/docs/assets/js/docs.js new file mode 100644 index 000000000..753ffba1c --- /dev/null +++ b/docs/assets/js/docs.js @@ -0,0 +1,192 @@ +/* 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'); + } + }); +}); diff --git a/docs/assets/js/docs.min.js b/docs/assets/js/docs.min.js new file mode 100644 index 000000000..1cb616177 --- /dev/null +++ b/docs/assets/js/docs.min.js @@ -0,0 +1,10 @@ +/*! + * ===================================================== + * 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. + * ===================================================== + */ +$(function(){"use strict";var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=function(){l=0,m=[],n=$(window),a=$(document),o=$(document.body),b=b||$(".js-device"),h=$(".js-jump-menu"),i=$(".js-component-group"),j=$(".component-example a"),k=$(".component"),m=k.map(function(){return $(this).offset().top}),d=$(window).height()/3,c=$(window).width(),e=$(document).height(),f=parseInt($(".docs-content").css("padding-bottom"),10),g=$(".docs-footer").outerHeight(!1),q=$(".js-docs-component-toolbar"),c>=768&&b.offset()&&(b.initialLeft=b.offset().left,b.initialTop=b.initialTop||b.offset().top,b.dockingOffset=($(window).height()-b.height())/2),t(),u(),v(),p||s()},s=function(){p=!0,b.on("click",function(a){a.preventDefault()}),$(".js-docs-nav-trigger").on("click",function(){var a=$(".docs-nav-group"),b=$(".js-docs-nav-trigger");b.toggleClass("active"),a.toggleClass("active")}),h.click(function(a){a.stopPropagation(),a.preventDefault(),i.toggleClass("active")}),a.on("click",function(){i.removeClass("active")}),$(".platform-switch").on("click",function(){var a=$(".docs-components"),b=$(this).attr("data-platform");a.hasClass("platform-ios")?(a.removeClass("platform-ios"),a.addClass(b)):a.hasClass("platform-android")?(a.removeClass("platform-android"),a.addClass(b)):a.addClass(b),$(this).siblings(".active").removeClass("active"),$(this).addClass("active")}),n.on("scroll",u),n.on("scroll",v)},t=function(){if(c=$(window).width(),768>=c){var a=$(".content");a.length>1&&$(a[0]).remove()}},u=function(){function a(a){$("#iwindow").html(a)}if(!(768>=c)){var e,f=n.scrollTop();if(b.length){b.initialTop-f<=b.dockingOffset?(b[0].className="device device-fixed",b.css({top:b.dockingOffset})):(b[0].className="device",b[0].setAttribute("style",""));for(var g=k.length;g--;)if(m[g]-f=b?q.addClass("visible"):b>=a&&(q.removeClass("visible"),i.removeClass("active"))};$(window).on("load resize",r),$(window).on("load",function(){window.FingerBlast&&new FingerBlast(".device-content")})}),function(){"use strict";function a(a){this.element="string"==typeof a?document.querySelector(a):a,this.element&&this.listen()}a.prototype={x:NaN,y:NaN,startDistance:NaN,startAngle:NaN,mouseIsDown:!1,listen:function(){function a(a,b){var c,d,e;if(a){if("compareDocumentPosition"in b)return!!(16&b.compareDocumentPosition(a));if("contains"in b)return b!==a&&b.contains(a);for(c=b.getElementsByTagName("*"),d=0;e=c[d++];)if(e===a)return!0;return!1}}var b=this.activate.bind(this),c=this.deactivate.bind(this);this.element.addEventListener("mouseover",function(c){var d=c.relatedTarget;d===this||a(d,this)||b()}),this.element.addEventListener("mouseout",function(b){var d=b.relatedTarget;d===this||a(d,this)||c(b)})},activate:function(){this.active||(this.element.addEventListener("mousedown",this.touchStart=this.touchStart.bind(this),!0),this.element.addEventListener("mousemove",this.touchMove=this.touchMove.bind(this),!0),this.element.addEventListener("mouseup",this.touchEnd=this.touchEnd.bind(this),!0),this.element.addEventListener("click",this.click=this.click.bind(this),!0),this.active=!0)},deactivate:function(a){this.active=!1,this.mouseIsDown&&this.touchEnd(a),this.element.removeEventListener("mousedown",this.touchStart,!0),this.element.removeEventListener("mousemove",this.touchMove,!0),this.element.removeEventListener("mouseup",this.touchEnd,!0),this.element.removeEventListener("click",this.click,!0)},click:function(a){a.synthetic||(a.preventDefault(),a.stopPropagation())},touchStart:function(a){a.synthetic||/input|textarea/.test(a.target.tagName.toLowerCase())||(this.mouseIsDown=!0,a.preventDefault(),a.stopPropagation(),this.fireTouchEvents("touchstart",a))},touchMove:function(a){a.synthetic||(a.preventDefault(),a.stopPropagation(),this.move(a.clientX,a.clientY),this.mouseIsDown&&this.fireTouchEvents("touchmove",a))},touchEnd:function(a){a.synthetic||(this.mouseIsDown=!1,a.preventDefault(),a.stopPropagation(),this.fireTouchEvents("touchend",a),this.target&&(this.target.dispatchEvent(this.createMouseEvent("mouseover",a)),this.target.dispatchEvent(this.createMouseEvent("mousemove",a)),this.target.dispatchEvent(this.createMouseEvent("mousedown",a))))},fireTouchEvents:function(a,b){var c=[],d=[];if(this.target){var e="on"+a;if(e in this.target&&(console.warn("Converting `"+e+"` property to event listener.",this.target),this.target.addEventListener(a,this.target[e],!1),delete this.target[e]),this.target.hasAttribute(e)){console.warn("Converting `"+e+"` attribute to event listener.",this.target);var f=new GLOBAL.Function("event",this.target.getAttribute(e));this.target.addEventListener(a,f,!1),this.target.removeAttribute(e)}var g=this.createMouseEvent(a,b);if(c.push(g),c.length>1){var h=c[0].pageX-c[1].pageX,i=c[0].pageY-c[1].pageY,j=Math.sqrt(Math.pow(h,2)+Math.pow(i,2)),k=Math.atan2(h,i)*(180/Math.PI),l="gesturechange";"touchstart"===a&&(l="gesturestart",this.startDistance=j,this.startAngle=k),"touchend"===a&&(l="gestureend"),c.forEach(function(a){var b=this.createMouseEvent.call(a._finger,l,a);d.push(b)}.bind(this)),c.concat(d).forEach(function(a){a.scale=j/this.startDistance,a.rotation=this.startAngle-k})}c.forEach(function(a){a.touches=c.filter(function(a){return~a.type.indexOf("touch")&&"touchend"!==a.type}),a.changedTouches=c.filter(function(b){return~b.type.indexOf("touch")&&b._finger.target===a._finger.target}),a.targetTouches=a.changedTouches.filter(function(a){return~a.type.indexOf("touch")&&"touchend"!==a.type})}),c.concat(d).forEach(function(a,b){a.identifier=b,a._finger.target.dispatchEvent(a)})}},createMouseEvent:function(a,b){var c=new MouseEvent(a,{view:window,detail:b.detail,bubbles:!0,cancelable:!0,target:this.target||b.relatedTarget,clientX:this.x||b.clientX,clientY:this.y||b.clientY,screenX:this.x||b.screenX,screenY:this.y||b.screenY,ctrlKey:b.ctrlKey,shiftKey:b.shiftKey,altKey:b.altKey,metaKey:b.metaKey,button:b.button});return c.synthetic=!0,c._finger=this,c},move:function(a,b){isNaN(a)||isNaN(b)?this.target=null:(this.x=a,this.y=b,this.mouseIsDown||(this.target=document.elementFromPoint(a,b)))}},window.FingerBlast=a}(); \ No newline at end of file diff --git a/docs/assets/js/fingerblast.js b/docs/assets/js/fingerblast.js new file mode 100644 index 000000000..5d5d6461c --- /dev/null +++ b/docs/assets/js/fingerblast.js @@ -0,0 +1,273 @@ +// 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) { + if (e.synthetic || /input|textarea/.test(e.target.tagName.toLowerCase())) { + return; + } + + this.mouseIsDown = true; + + e.preventDefault(); + e.stopPropagation(); + + this.fireTouchEvents('touchstart', e); + }, + + touchMove: function (e) { + if (e.synthetic) { + return; + } + + e.preventDefault(); + e.stopPropagation(); + + this.move(e.clientX, e.clientY); + + if (this.mouseIsDown) { + this.fireTouchEvents('touchmove', e); + } + }, + + touchEnd: function (e) { + if (e.synthetic) { + return; + } + + this.mouseIsDown = false; + + e.preventDefault(); + e.stopPropagation(); + + this.fireTouchEvents('touchend', e); + + if (!this.target) { + return; + } + + // Mobile Safari moves all the mouse events to fire after the touchend event. + this.target.dispatchEvent(this.createMouseEvent('mouseover', e)); + this.target.dispatchEvent(this.createMouseEvent('mousemove', e)); + this.target.dispatchEvent(this.createMouseEvent('mousedown', e)); + }, + + fireTouchEvents: function (eventName, originalEvent) { + var events = []; + var gestures = []; + + if (!this.target) { + return; + } + + // Convert 'ontouch*' properties and attributes to listeners. + var onEventName = 'on' + eventName; + + if (onEventName in this.target) { + console.warn('Converting `' + onEventName + '` property to event listener.', this.target); + this.target.addEventListener(eventName, this.target[onEventName], false); + delete this.target[onEventName]; + } + + if (this.target.hasAttribute(onEventName)) { + console.warn('Converting `' + onEventName + '` attribute to event listener.', this.target); + var handler = new GLOBAL.Function('event', this.target.getAttribute(onEventName)); + this.target.addEventListener(eventName, handler, false); + this.target.removeAttribute(onEventName); + } + + // Set up a new event with the coordinates of the finger. + var touch = this.createMouseEvent(eventName, originalEvent); + + events.push(touch); + + // Figure out scale and rotation. + if (events.length > 1) { + var x = events[0].pageX - events[1].pageX; + var y = events[0].pageY - events[1].pageY; + + var distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); + var angle = Math.atan2(x, y) * (180 / Math.PI); + + var gestureName = 'gesturechange'; + + if (eventName === 'touchstart') { + gestureName = 'gesturestart'; + this.startDistance = distance; + this.startAngle = angle; + } + + if (eventName === 'touchend') { + gestureName = 'gestureend'; + } + + events.forEach(function (event) { + var gesture = this.createMouseEvent.call(event._finger, gestureName, event); + gestures.push(gesture); + }.bind(this)); + + events.concat(gestures).forEach(function (event) { + event.scale = distance / this.startDistance; + event.rotation = this.startAngle - angle; + }); + } + + // Loop through the events array and fill in each touch array. + events.forEach(function (touch) { + touch.touches = events.filter(function (e) { + return ~e.type.indexOf('touch') && e.type !== 'touchend'; + }); + + touch.changedTouches = events.filter(function (e) { + return ~e.type.indexOf('touch') && e._finger.target === touch._finger.target; + }); + + touch.targetTouches = touch.changedTouches.filter(function (e) { + return ~e.type.indexOf('touch') && e.type !== 'touchend'; + }); + }); + + // Then fire the events. + events.concat(gestures).forEach(function (event, i) { + event.identifier = i; + event._finger.target.dispatchEvent(event); + }); + }, + + createMouseEvent: function (eventName, originalEvent) { + var e = new MouseEvent(eventName, { + view : window, + detail : originalEvent.detail, + bubbles : true, + cancelable : true, + target : this.target || originalEvent.relatedTarget, + clientX : this.x || originalEvent.clientX, + clientY : this.y || originalEvent.clientY, + screenX : this.x || originalEvent.screenX, + screenY : this.y || originalEvent.screenY, + ctrlKey : originalEvent.ctrlKey, + shiftKey : originalEvent.shiftKey, + altKey : originalEvent.altKey, + metaKey : originalEvent.metaKey, + button : originalEvent.button + }); + + e.synthetic = true; + e._finger = this; + + return e; + }, + + move: function (x, y) { + if (isNaN(x) || isNaN(y)) { + this.target = null; + } else { + this.x = x; + this.y = y; + + if (!this.mouseIsDown) { + this.target = document.elementFromPoint(x, y); + } + } + } + }; + + window.FingerBlast = FingerBlast; + +}()); diff --git a/docs/components.html b/docs/components.html new file mode 100644 index 000000000..695012e67 --- /dev/null +++ b/docs/components.html @@ -0,0 +1,1298 @@ +--- +layout: default +title: Components · Ratchet +--- + +
+ {% include masthead.html %} +
+
+

Components

+

Design patterns that serve as basic building blocks.

+
+ {% include ad.html %} +
+ {% include toolbar.html %} +
+ +
+ +
+
+ +
+
+
+
+

Title

+
+
+
+
+
+ +
+ +
+

Title bar

+

Title bars are full width and docked to the top of the viewport.

+ +
+
+

Title

+
+
+ +{% highlight html %} +
+

Title

+
+{% endhighlight %} + +
+ +
+

Title bar with buttons

+

Buttons in a title bar are left or right aligned and should be used for actions. Use the .pull-right or .pull-left utility classes to float the buttons. Also, be sure to place any floated elements before the title.

+ +
+
+ + +

Title

+
+
+ +{% highlight html %} +
+ + +

Title

+
+{% endhighlight %} + +
+ +
+

Title bar with icons

+

Icons can also be used for actions in toolbars. Again, be sure to use utility classes to float the icons into position.

+ +
+
+ + +

Title

+
+
+ +{% highlight html %} +
+ + +

Title

+
+{% endhighlight %} + +
+ +
+

Title bar with link buttons and icons

+

Link buttons can be used in tool bars to remove the outline. Use these in conjuction with icons to recreate the nav feel from iOS7. Note the use of .btn-nav to bring the buttons a little bit closer to the edge of the viewport.

+ +
+
+ + +

Title

+
+
+ +{% highlight html %} +
+ + +

Title

+
+{% endhighlight %} + +
+ +
+

Title bar with segmented control

+

Title bars can also house segmented controls. Feel free to add accompanying buttons too. The control will automatically layout itself out correctly.

+ +
+
+ + +
+ One + Two + Three +
+
+
+ +{% highlight html %} +
+ + +
+ One + Two + Three +
+
+{% endhighlight %} + +
+ + + + + +
+

Standard bars

+

Standard bars are basic fixed elements that can be positioned in four places. These can be used to house buttons, icons, or segmented controls (see following examples).

+ +
+ + + + +
+ +
+
+ +{% highlight html %} + + + + +
+ +
+ + + + + + +{% endhighlight %} + +
+ + +
+

Typography

+

Use headings and paragraphs to title and describe sections of your app. Apply or wrap elements with .content-padded to give the content space around the screen.

+ +
+
+

h1. Heading

+

h2. Heading

+

h3. Heading

+

h4. Heading

+
h5. Heading
+
h6. Heading
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation ullamco.

+
+
+ +{% highlight html %} +
+

h1. Heading

+

h2. Heading

+

h3. Heading

+

h4. Heading

+
h5. Heading
+
h6. Heading
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, + quis nostrud exercitation ullamco.

+
+{% endhighlight %} + +
+ + +
+

Table views

+

Table views can be used for organizing data, showing collections of links, or a series of controls.

+ +
+
    +
  • Item 1
  • +
  • Item 2
  • +
  • Divider
  • +
  • Item 3
  • +
+
+ +{% highlight html %} +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Divider
  • +
  • Item 3
  • +
+{% endhighlight %} + +
+ +
+

Table view with chevrons

+

Chevrons should be used to indicate that the item is linked. Just apply the classes .navigate-right or .navigate-left to use a chevron.

+ + + +{% highlight html %} + +{% endhighlight %} +

Note: Table views with the Android theme don't have chevrons to comply with Android Design guidelines. More information can be found here.

+
+ +
+

Table view with badges

+

Badges are a great way of showing data.

+ +
+
    +
  • Item 1 4
  • +
  • Item 2 1
  • +
  • Item 3 5
  • +
+
+ +{% highlight html %} +
    +
  • Item 1 4
  • +
  • Item 2 1
  • +
  • Item 3 5
  • +
+{% endhighlight %} + +
+ + + +
+

Table view with media (images)

+

Showing media inside table views is easy. This component to perfect for images and text.

+ + + +{% highlight html %} + +{% endhighlight %} + +
+ + + +
+

Table view with buttons

+ +
+
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
+
+ +{% highlight html %} +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
  • Item 4
  • +
+{% endhighlight %} + +
+ +
+

Table view with toggles

+ +
+
    +
  • + Item 1 +
    +
    +
    +
  • +
  • + Item 2 +
    +
    +
    +
  • +
  • + Item 3 +
    +
    +
    +
  • +
+
+ +{% highlight html %} +
    +
  • + Item 1 +
    +
    +
    +
  • +
  • + Item 2 +
    +
    +
    +
  • +
  • + Item 3 +
    +
    +
    +
  • +
+{% endhighlight %} + +
+ +
+

Carded table views

+

Use .card to wrap any content in a padded element.

+ +
+
+
    +
  • Item 1
  • +
  • Item 2
  • +
  • Divider
  • +
  • Item 3
  • +
  • Item 4
  • +
+
+
+ +{% highlight html %} +
+
    +
  • Item 1
  • +
  • Item 2
  • +
  • Divider
  • +
  • Item 3
  • +
  • Item 4
  • +
+
+{% endhighlight %} + +
+ + +
+

Buttons

+

Buttons come in many flavors and should be used for user actions.

+ +
+ + + + + + + + + + +
+ +{% highlight html %} + + + + + + + + + + +{% endhighlight %} + +
+ + +
+

Buttons with icons

+

Ratchicons work inside buttons too.

+ +
+ + + + + +
+ +{% highlight html %} + + + + + +{% endhighlight %} + +
+ +
+

Buttons with badges

+ +
+ + + + +
+ +{% highlight html %} + + + + + + + + + +{% endhighlight %} + +
+ +
+

Block buttons

+ +
+ + + + + + + + + +
+ +{% highlight html %} + + + + + + + + + +{% endhighlight %} + +
+ + +
+

Segmented control

+

Content sections that are to be swapped in and out by the controller should all be siblings and have the class .control-content. Then, just give each content section an id and point the link in the segmented control to that id.

+ +
+ +
+ Item 1 + Item 2 + Item 3 +
+
+ +{% highlight html %} + +
+ Item 1 + Item 2 + Item 3 +
+{% endhighlight %} + +
+ + +
+

Badges

+

Badges come in four flavors and should be used to indicate "how many" of something there are. Adding the a class of .badge-inverted will remove the badges background color.

+ +
+ 1 + 2 + 3 + 4 + 1 + 2 + 3 + 4 +
+ +{% highlight html %} +1 +2 +3 +4 + +1 +2 +3 +4 +{% endhighlight %} + +
+ + +
+

Forms

+ +
+
+ + + + +
+
+ +{% highlight html %} +
+ + + + +
+{% endhighlight %} + +
+ + +
+

Form with input group

+ +
+
+ + + +
+
+ +{% highlight html %} +
+ + + +
+{% endhighlight %} + +
+ + +
+

Form with input group and labels

+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ +{% highlight html %} +
+
+ + +
+
+ + +
+
+ + +
+
+{% endhighlight %} + +
+ + +
+

Toggles

+

Toggles can be used by sliding or tapping the control.

+ +
+
+
+
+
+ +{% highlight html %} +
+
+
+
+
+
+{% endhighlight %} + +

Toggles.js binds an event to the document that returns a detail object and can be used to fire a callback.

+ +{% highlight js %} +// Only needed if you want to fire a callback +document +.querySelector('#myToggle') +.addEventListener('toggle', myFunction) +{% endhighlight %} + +
+ + +
+

Popovers

+ +{% highlight html %} +
+
+

Popover title

+
+
    +
  • Item1
  • +
  • Item2
  • +
  • Item3
  • +
  • Item4
  • +
  • Item5
  • +
  • Item6
  • +
  • Item7
  • +
  • Item8
  • +
+
+{% endhighlight %} + +

Popovers are designed to only fire from title bars. Set the value of the title href to the id of a popover, like so:

+ +{% highlight html %} +
+ +

+ Tap title + +

+
+
+{% endhighlight %} +
+ + +
+

Modals

+ +
+ Open modal + +
+ +{% highlight html %} +Open modal + +{% endhighlight %} + +

Modals are designed to only fire from links. Set the value of the toggle links href to the id of a modal.

+ +
+ + +
+

Sliders

+

Can be used with any number of slides with any type of content.

+ +
+
+
+
+ Mountain and sky + + + Slide me + +
+
+ Giant mecha +
+
+ Big Ben +
+
+
+
+ +{% highlight html %} +
+
+
+ + + + Slide me + +
+
+ +
+
+ +
+
+
+{% endhighlight %} + +

Sliders.js binds an event to the document that returns a detail object and can be used to fire a callback.

+ +{% highlight js %} +// Only needed if you want to fire a callback +document +.querySelector('#mySlider') +.addEventListener('slide', myFunction) +{% endhighlight %} + +
+ + +
+

Push

+

Push.js is the engine that connects Ratchet pages together with AJAX and the history api. Push.js is listening to all clicks on a page, so just make sure it's included and link something in your Ratchet project up.

+ +{% highlight html %} + +Two +{% endhighlight %} + +

This will use push to replace everything in the .content div with the .content of two.html. Also, it will either update or remove .bar-nav and .bar-tab according to their presences in two.html.

+ +

Now that pages are being loaded through push, it's easy to specify transitions for animations between pages. There are three different transitions to chose from: fade, slide-in, or slide-out.

+ +{% highlight html %} + +Two +{% endhighlight %} + +

A working version of push:

+ +
+
+

Push

+
+ +
+ +{% highlight html %} +
+

Push

+
+ +{% endhighlight %} + +

Have a link you don't want to intercepted by push? Try this:

+ +{% highlight html %} + +Google +{% endhighlight %} + +

Push.js binds an event to the document that returns a detail object and can be used to fire a callback.

+ +{% highlight js %} +// Only needed if you want to fire a callback +window.addEventListener('push', myFunction); +{% endhighlight %} + +

Push.js can be triggered manually by using the PUSH(options) function. When passing options, url is required, container, transition and timeout are optional. As of version 2.1.0 Ratchet has its own namespace and can also be called with RATCHET.push(options).

+ +{% highlight js %} +PUSH({url: "/signin"}); +RATCHET.push({url: "/signin"}); +{% endhighlight %} + +
+ + +
+

Ratchicons

+

Use Ratchicons in your application to help inform interactions.

+ +
+
+ {% for iconClassName in site.data.ratchicons %} + + {% endfor %} +
+
+ +{% highlight html %} +
{% for iconClassName in site.data.ratchicons %} + {% endfor %} +
+{% endhighlight %} + +
+ + + {% include footer.html %} +
+
+
diff --git a/docs/css/docs.css b/docs/css/docs.css deleted file mode 100644 index b4057d446..000000000 --- a/docs/css/docs.css +++ /dev/null @@ -1,1146 +0,0 @@ -/* Base styles --------------------------------------------------- */ - -body { - position: static !important; /* Overrides the fixed positioning of body in Ratchet */ - font-family: "proxima-nova", "HelveticaNeue-Light", "Helvetica Neue Light", Helvetica, Arial, sans-serif; - font-size: 14px; - line-height: 1.6; - color: #333; - background-color: #fff; - -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */ - -webkit-text-size-adjust: 100%; -} - - -/* Typography --------------------------------------------------- */ - -hr { - height: 0; - margin: 10px 0 30px; - border: solid #ddd; - border-width: 1px 0 0; - clear: both; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - text-rendering: optimizeLegibility; -} - - -/* Docs structural styles --------------------------------------------------- */ - -.docs-outer-wrapper { - position: relative; -} - -.docs-inner-wrapper { - width: 1000px; - margin: 0 auto; -} - -/* Masthead (navigation) --------------------------------------------------- */ - -.docs-masthead { - position: fixed; - top: 0; - right: 0; - left: 0; - z-index: 100; - padding: 10px 0; - background-color: #fff; - border-bottom: 1px solid #ddd; - box-shadow: 0 0 5px rgba(0,0,0,.1); -} - -.docs-masthead .docs-inner-wrapper { - line-height: 40px; -} - -.docs-masthead-title { - font-weight: 700; - font-size: 21px; - text-transform: uppercase; - letter-spacing: 5px; -} - -.docs-navigation { - float: right; - font-size: 15px; -} - -.nav-item { - position: relative; - float: left; - margin-right: 30px; - list-style: none; -} - -.nav-item:last-child { - margin-right: 0; -} - -.nav-item a { - position: relative; - color: #777; - text-decoration: none; -} - -.nav-item a:hover { - color: #555; -} - -/* Give the components link a bit more room to fit the caret */ -.nav-item.nav-components { - margin-right: 45px; -} - -/* Give the components link a down caret */ -.nav-components-link:after { - content: ''; - position: absolute; - right: 0; - width: 0; - height: 0; - top: 8px; - right: -15px; - margin-left: -4px; - border-right: 4px solid transparent; - border-top: 4px solid #777; - border-left: 4px solid transparent; -} - -/* The components list dropdown */ -.components-list { - position: absolute; - display: none; - top: 45px; - left: -20px; - z-index: -1; - padding: 10px 0; - line-height: 1.1; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0,0,0,.2); - border-radius: 3px; - box-shadow: 0 0 8px rgba(0,0,0,.05); -} - -.components-list.active { - z-index: 100; - display: block; -} - -.components-list:before, -.components-list:after { - content: ''; - position: absolute; - left: 30px; - width: 0; - height: 0; -} - -.components-list:before { - top: -11px; - margin-left: -11px; - border-right: 11px solid transparent; - border-bottom: 11px solid rgba(0,0,0,.3); - border-left: 11px solid transparent; -} - -.components-list:after { - top: -10px; - margin-left: -10px; - border-right: 10px solid transparent; - border-bottom: 10px solid #fff; - border-left: 10px solid transparent; -} - -.components-list li { - list-style: none; -} - -.components-list li:last-child { - padding-bottom: 0; -} - -.components-list li a { - display: block; - width: 150px; - padding: 10px 20px; -} - -.components-list li a:hover { - color: #fff; - background-color: #1eb0e9; -} - -/* Jumbo header --------------------------------------------------- */ - -.docs-header { - height: 530px; - margin-top: 60px; - background-color: #02122b; - background-image: url(../img/header-bg.jpg); - background-size: cover; - box-shadow: inset 0 0 10px rgba(0,0,0,.6); -} - -.docs-header-text { - position: relative; - z-index: 3; - top: 140px; - width: 800px; - margin: 0 auto; - color: #fff; - text-align: center; - text-shadow: 0 0 5px #000; - -webkit-animation: fadeintext 2s; - -moz-animation: fadeintext 2s; -} - -.docs-header-subtitle { - margin-bottom: 35px; - font-size: 45px; - font-weight: 300; - line-height: 55px; -} - -.docs-btn { - display: inline-block; - padding: 18px 40px; - color: #fff; - font-size: 24px; - font-weight: 700; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); - text-decoration: none; - line-height: 1; - background-color: #f26629; /* Old browsers */ - background-image: -moz-linear-gradient(top, #f95e0c 0%, #e53003 100%); /* FF3.6+ */ - background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f95e0c), color-stop(100%,#e53003)); /* Chrome,Safari4+ */ - background-image: -webkit-linear-gradient(top, #f95e0c 0%,#e53003 100%); /* Chrome10+,Safari5.1+ */ - background-image: -o-linear-gradient(top, #f95e0c 0%,#e53003 100%); /* Opera 11.10+ */ - background-image: -ms-linear-gradient(top, #f95e0c 0%,#e53003 100%); /* IE10+ */ - background-image: linear-gradient(to bottom, #f95e0c 0%,#e53003 100%); /* W3C */ - border-radius: 3px; - box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 5px 5px rgba(0,0,0,.2); -} - -.docs-btn:hover { - color: #fff; - background-color: #ff7234; /* Old browsers */ - background-image: -moz-linear-gradient(top, #f95e0c 0%, #cd2a02 100%); /* FF3.6+ */ - background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f95e0c), color-stop(100%,#cd2a02)); /* Chrome,Safari4+ */ - background-image: -webkit-linear-gradient(top, #f95e0c 0%,#cd2a02 100%); /* Chrome10+,Safari5.1+ */ - background-image: -o-linear-gradient(top, #f95e0c 0%,#cd2a02 100%); /* Opera 11.10+ */ - background-image: -ms-linear-gradient(top, #f95e0c 0%,#cd2a02 100%); /* IE10+ */ - background-image: linear-gradient(to bottom, #f95e0c 0%,#cd2a02 100%); /* W3C */ -} - -.docs-btn:active { - padding: 19px 40px 17px; - background-color: #cd2a02; - background-image: none; - box-shadow: inset 0 0 5px rgba(0,0,0,.4); -} - -/* Styles for the social media buttons */ -.social { - position: absolute; - bottom: 0; - left: 0; - right: 0; - padding: 20px 0; - background-color: rgba(0,0,0,.3); - -webkit-animation: fadeinsocial 2.5s; - -moz-animation: fadeinsocial 2.5s; -} - -.social ul { - height: 20px; - padding-left: 20px; - list-style: none; - text-align: center; -} - -.social li { - display: inline-block; - height: 20px; - padding: 0; - vertical-align: top; -} - -/* Overiding our framework button styles so our social buttons aren't messed up */ -.twitter-follow-button, -.twitter-follow-button:hover, -.twitter-follow-button:active, -.twitter-share-button, -.twitter-share-button:hover, -.twitter-share-button:active { - padding: 0; - border: none; - border-radius: 0; - background: none; - box-shadow: none; -} - - -/* iPhone previewer --------------------------------------------------- */ - -.iphone { - position: relative; - top: 50px; - float: right; - width: 375px; - height: 806px; - font-family: "Helvetica Neue", sans-serif; - background-image: url("../img/iphone.png"); -} - -.iphone-fixed, -.iphone-bottom { - left: 50%; - margin-left: 125px; -} - -.iphone-fixed { - position: fixed; - top: 30px; -} - -.iphone-bottom { - position: absolute; - top: auto; - bottom: 130px; -} - -.iphone .iphone-content { - position: absolute; - top: 147px; - left: 27px; - width: 320px; - height: 548px; - overflow: hidden; - background-color: white; -} - -.iphone .content, -.component-example .content { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.component-example .content { - position: relative; -} - -/* Mad override to avoid it being styled like the block level link */ -.component-example .list a[data-transition="slide-out"], -.iphone .list a[data-transition="slide-out"] { - padding: 0; - display: inline; - margin: 0; - color: #0882f0; -} - -/* Content layout --------------------------------------------------- */ - -.content-section { - position: relative; - padding-top: 80px; -} - -/* Section header --------------------------------------------------- */ - -.section-header { - padding-bottom: 30px; - text-align: center; - border-bottom: 1px solid #ddd; -} - -.section-title { - font-size: 60px; - font-weight: 700; - line-height: 1; - color: #333; -} - -.section-description { - font-weight: 300; - font-size: 24px; - color: #777; -} - -.section-informational { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - background-color: #fafafa; - padding-bottom: 70px; -} - -/* Getting started & page setup --------------------------------------------------- */ - -.steps { - overflow: hidden; - padding-top: 40px; -} - -.steps .step { - float: left; - width: 306px; - margin-right: 40px; - list-style: none; -} - -.step-title { - font-size: 18px; - font-weight: 700; -} - -.step-description { - color: #777; - margin-bottom: 10px; -} - -.steps .step:last-child { - margin-right: 0; -} - -/* Components --------------------------------------------------- */ - -.section-components { - padding-bottom: 350px; - background-color: #fff; -} - -.component { - position: relative; - padding-top: 80px; - width: 550px; - margin-top: 1px; - font-family: "proxima-nova", "HelveticaNeue-Light", "Helvetica Neue Light", Helvetica, Arial, sans-serif; - font-weight: 300; - opacity: .3; /* Fade content back until the user scrolls to it. */ - -webkit-transition: opacity .2s ease-in-out; -} - -.component:last-child { - margin-bottom: 320px; -} - -/* Active class applied when the specific component is in focus */ -.component.active { - opacity: 1; -} - -.component-title { - font-size: 28px; - font-weight: 300; - line-height: 35px; -} - -.component-description { - margin-bottom: 13px; - color: #777; - font-size: 18px; - line-height: 26px; - font-weight: 300; -} - -.component-note { - margin-top: 10px; - color: #999; - font-size: 14px; - line-height: 18px; - font-style: italic; -} - -.component-title + .component-example { - margin-top: 13px; -} - -.content-section .prettyprint, -.content-section .instruction-code { - margin-top: 10px; - padding: 10px; - overflow-x: auto; - font-size: 13px; - font-family: monaco, menlo, monospace; - color: #777; - background-color: #fafafa; - border: 1px solid #ddd; - border-radius: 3px; -} - -.prettyprint + .component-description, -.component-note + .component-description { - margin-top: 36px; -} - -/* Content specific styles --------------------------------------------------- */ - -/* Make the example bars stay put in the docs */ -.iphone [class*="bar"] { - position: absolute; -} - -/* Component examples on mobile */ -.component-example { - position: relative; - display: none; - margin-bottom: 20px; - font-family: "Helvetica Neue", sans-serif; - font-weight: normal; -} - -.component-example-fullbleed { - margin-right: -20px; - margin-left: -20px; -} - -/* Bar examples */ -.component-example [class*="bar"] { - position: relative; -} - -.component-example .bar-header-secondary { - top: 0; -} - -/* List examples */ -.component-example .list { - margin-left: 0; - margin-right: 0; - background-color: #fff; -} - -.component-example .list li { - padding-right: 70px; - padding-left: 20px; -} - -.component-example .list.inset { - margin: 0; -} - -.iphone .list .segmented-controller-item, -.component-example .list .segmented-controller-item { - border-bottom-width: 0; -} - -.iphone .list { - margin-left: 0; - margin-right: 0; -} - -/* Button examples */ -#buttons [class*="button"], -#buttonsCounts [class*="button"], -#blockButtons [class*="button"] { - margin-bottom: 10px; -} - -#buttons [class*="button"]:last-child, -#buttonsCounts [class*="button"]:last-child, -#blockButtons [class*="button"]:last-child { - margin-bottom: 0; -} - -#blockButtonsInPhone .button-block { - margin-left: 5px; - margin-right: 5px; -} - -#push .component-example { - height: 108px; - overflow: hidden; -} - -#push .component-example .list { - border-left: 1px solid rgba(0, 0, 0, .1); - border-right: 1px solid rgba(0, 0, 0, .1); -} - -.iphone .btn-section .button { - display: block; - margin: 0 auto; -} - -.iphone .block-btn-section .block-button { - margin-top: 10px; -} - -.iphone .block-btn-section .block-button:first-child { - margin-top: 100px; -} - -#buttonsInPhone, -#buttonsCountsInPhone { - text-align: center; -} - -#buttonsInPhone [class*="button"], -#buttonsCountsInPhone [class*="button"] { - margin-top: 10px; -} - -#blockButtonsInPhone [class*="button"] { - margin-top: 5px; -} - -/* Counts examples */ -#countsInPhone { - text-align: center; -} - -#countsInPhone [class*="count"] { - margin-top: 10px; -} - -/* Form examples */ -.component-example form [class*="button"] { - margin-bottom: 0; -} - -.component .input-group label { - padding: 9px 10px 9px 13px; -} - -/* Toggle examples */ -#toggles .toggle { - display: inline-block; - margin-right: 10px; -} -#togglesInPhone .toggle { - margin: 10px auto 0; -} - -/* Popover examples */ -.component-example .popover { - position: relative; - display: block; - top: 0; - margin-top: 50px; - opacity: 1; -} -#popoversInPhone .popover { - position: absolute; - display: block !important; - top: 72px; - opacity: 1 !important; -} - -/* Modal example */ -.component-example .modal { - left: 0; - z-index: 10001; -} -.iphone .iphone-content .modal { - position: absolute; -} -.component-example .modal .content, -.iphone .iphone-content .modal .content { - margin-top: 44px; -} -#modalsInPhone #iwindow > .button { - margin: 10px; -} - - -/* Slider examples */ -.component-example-fullbleed .slider, -.component-example-fullbleed .slider li, -.component-example-fullbleed .slider li img, -#slidersInPhone .slider, -#slidersInPhone .slider li, -#slidersInPhone .slider li img { - width: 100%; -} - -#slidersInPhone .slider { - position: absolute; - top: 0; - left: 0; -} - -.slider .slide-text { - position: absolute; - top: 45%; - left: 0; - width: 100%; - color: #fff; - text-align: center; - font-size: 24px; - font-weight: 300; - text-shadow: 0 0 10px rgba(0,0,0,.5); -} - -/* Give inset components in the iphone correct margin */ -.iphone .list.inset, -#segmentedControllersInPhone .segmented-controller, -#formsInPhone form, -#formsWithInputGroupInPhone form, -#formsWithInputGroupAndLabelsInPhone form { - margin: 10px; -} - -#pushInPhone .list { - margin-top: 44px; -} - -/* Footer --------------------------------------------------- */ - -.docs-footer { - padding-bottom: 100px; - overflow: hidden; - color: #fff; - background-color: #151515; -} - -.docs-footer .docs-inner-wrapper { - text-align: center -} - -.docs-footer h3 { - font-size: 24px; - color: #fefefe; - font-weight: 700; -} - -.docs-footer p { - font-size: 18px; - color: #777; -} - -.avatars { - display: block; - width: 590px; - margin: 30px auto 0; -} - -.avatars li { - float: left; - height: 170px; - width: 170px; - margin-right: 40px; - list-style: none; -} - -.avatars .avatar { - display: block; - height: 100%; - width: 100%; - margin-bottom: 15px; - overflow: hidden; - border-radius: 100%; -} - -.avatars li:last-child { - margin-right: 0; -} - -.avatars img { - width: 170px; - height: 170px; -} - -/* Banner for Mozilla and IE about component rendering poorly -------------------------------------------------------------- */ -.notice-banner { - cursor: pointer; - height: 0; - opacity: 0; - padding: 0; - color: #333; - font-size: 16px; - text-align: center; - background-color: #fff9c4; /* Old browsers */ - background-image: -moz-linear-gradient(top, #fff9c4 0%, #fff38d 100%); /* FF3.6+ */ - background-image: -ms-linear-gradient(top, #fff9c4 0%,#fff38d 100%); /* IE10+ */ - background-image: linear-gradient(to bottom, #fff9c4 0%,#fff38d 100%); /* W3C */ - box-shadow: inset 0 -1px 0 rgba(0,0,0,.1); - -moz-animation: shownotice 1s infinite; -} - -/* Media queries --------------------------------------------------- */ - -@media only screen and (max-width: 1039px) { - .docs-inner-wrapper { - width: 920px; - } - - .docs-header-text { - width: 700px; - } - - .steps .step { - width: 280px; - } - - .component { - width: 500px; - } - - .iphone-fixed, - .iphone-bottom { - margin-left: 85px; - } -} -@media only screen and (min-width: 768px) and (max-width: 959px) { - .docs-header-text, - .docs-inner-wrapper { - width: 700px; - } - - .docs-header { - height: 400px; - } - - .docs-header-text { - top: 75px; - } - - .steps .step { - width: 205px; - } - - .component { - width: 300px; - } - - .iphone-fixed, - .iphone-bottom { - margin-left: -25px; - } -} -@media only screen and (max-width: 767px) { - .docs-outer-wrapper, - .docs-inner-wrapper, - .docs-header-text, - .docs-content, - .component { - width: auto; - } - - .docs-inner-wrapper { - padding-right: 20px; - padding-left: 20px; - } - - /* Have the masthead scroll away instead of being fixed */ - .docs-masthead { - position: absolute; - padding: 2px 0 1px; - } - - .docs-masthead-title { - font-size: 18px; - text-align: center; - } - - /* Hide the navigation on mobile. Scroll away! */ - .docs-navigation { - display: none; - } - - .docs-header { - height: 320px; - margin-top: 44px; - } - - .docs-header-text { - top: 50px; - } - - .docs-header-subtitle { - margin-bottom: 18px; - font-size: 24px; - line-height: 30px; - } - - .docs-btn { - width: 100%; - padding: 15px 0; - font-size: 18px; - } - - .docs-btn:active { - padding: 16px 0 14px; - } - - .social ul { - height: auto; - } - - .social li { - padding-bottom: 15px; - } - - .social li:last-child { - padding-bottom : 0; - } - - .content-section { - padding-top: 50px; - } - - .section-header { - padding-bottom: 50px; - } - - .section-title { - margin-bottom: 5px; - font-size: 40px; - } - - .section-description { - font-size: 18px; - line-height: 24px; - } - - .section-components { - padding-bottom: 0px; - } - - .section-informational { - padding-bottom: 70px; - } - - .steps .step { - float: none; - width: auto; - margin: 0 0 30px 0; - } - - .steps .step:last-child { - margin: 0; - } - - .notice-banner { - position: relative; - top: 0; - font-size: 14px; - line-height: 18px; - } - - .notice-banner:after { - display: none; - } - - .component { - padding: 50px 20px; - margin-left: -20px; - margin-right: -20px; - opacity: 1; - border-bottom: 1px solid #ddd; - } - - .component:last-child { - margin-bottom: 80px; - } - - .component-example { - display: block; - } - - /* Hacky way to get parent of slider position absolute for smooth sliding */ - #sliders .slider { - position: absolute; - top: 0; - left: 0; - z-index: 10000; - } - #sliders .prettyprint:not(.js) { - margin-top: 230px; - } - - .avatars { - overflow: hidden; - width: 280px; - margin: 10px auto 0; - } - - .avatars li { - height: 86px; - width: 86px; - margin-right: 10px; - } - - .avatars li:last-child { - margin-right: 0; - } - - .avatars img { - width: 86px; - height: 86px; - } - - /* Hide the iPhone on mobile */ - .iphone { - display: none; - } -} - -@media only screen and (max-width: 320px) { - .docs-header-text { - top: 30px; - } -} - -/* Animations --------------------------------------------------- */ - -@-webkit-keyframes fadeintext { - 0% { - opacity: 0; - -webkit-transform: translateY(20px); - } - 50% { - opacity: 0; - -webkit-transform: translateY(20px); - } - 100% { - opacity: 1; - -webkit-transform: translateY(0); - } -} - -@-webkit-keyframes fadeinsocial { - 0% { - opacity: 0; - } - 85% { - opacity: 0; - } - 100% { - opacity: 1; - } -} - -@-moz-keyframes fadeintext { - 0% { - opacity: 0; - -moz-transform: translateY(20px); - } - 50% { - opacity: 0; - -moz-transform: translateY(20px); - } - 100% { - opacity: 1; - -moz-transform: translateY(0); - } -} - -@-moz-keyframes fadeinsocial { - 0% { - opacity: 0; - } - 85% { - opacity: 0; - } - 100% { - opacity: 1; - } -} - -@-moz-keyframes shownotice { - 0% { - min-height: 30px; - padding: 20px 0; - opacity: 1; - } - 100% { - min-height: 30px; - padding: 20px 0; - opacity: 1; - } -} - -/* Add Firefox support for CSS to docs since Ratchet framework doesn't natively support Mozilla --------------------------------------------------- */ - -/* Bars.css */ -[class*="bar-"] { - -moz-box-sizing: border-box; -} -.bar-title, -.tab-inner { - display: -moz-box; - -moz-box-orient: horizontal; -} -.tab-item { - -moz-box-sizing: border-box; - -moz-box-flex: 1; -} -.bar-title [class*="button"] { - -moz-box-flex: 0; -} -.bar-title .segmented-controller { - -moz-box-flex: 1; -} - - /* forms.css */ -select, -textarea, -input[type="text"], -input[type=search], -input[type="password"], -input[type="datetime"], -input[type="datetime-local"], -input[type="date"], -input[type="month"], -input[type="time"], -input[type="week"], -input[type="number"], -input[type="email"], -input[type="url"], -input[type="tel"], -input[type="color"], -.input-group { - -moz-box-sizing: border-box; -} - -/* lists.css */ -.list.inset { - -moz-box-sizing: border-box; -} - -/* popovers.css */ -.popover-header { - display: -moz-box; -} - -/* segmented-controller.css*/ -.segmented-controller { - display: -moz-box; - -moz-box-orient: horizontal; -} -.segmented-controller li { - -moz-box-flex: 1; -} - -/* Get tab-bar to look 1/2way decent */ -.iphone .tab-item { - min-width: 64px; -} \ No newline at end of file diff --git a/docs/css/prettify.css b/docs/css/prettify.css deleted file mode 100644 index 126697087..000000000 --- a/docs/css/prettify.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#999}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:teal}.atv{color:#d14}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file diff --git a/docs/dist/css/ratchet-theme-android.css b/docs/dist/css/ratchet-theme-android.css new file mode 100644 index 000000000..946cd3c07 --- /dev/null +++ b/docs/dist/css/ratchet-theme-android.css @@ -0,0 +1,676 @@ +/*! + * ===================================================== + * 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'; +} diff --git a/docs/dist/css/ratchet-theme-android.min.css b/docs/dist/css/ratchet-theme-android.min.css new file mode 100644 index 000000000..44780f29e --- /dev/null +++ b/docs/dist/css/ratchet-theme-android.min.css @@ -0,0 +1,9 @@ +/*! + * ===================================================== + * 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. + * ===================================================== + */.input-group input:last-child,.table-view .table-view-cell:last-child{background-image:none}body{font-family:Roboto,sans-serif;font-size:18px;line-height:22px;color:#222}.bar .btn-link,.title{line-height:49px;font-size:18px}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-negative:active,.btn-outlined.btn-positive:active,.btn-outlined.btn-primary: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,.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;text-align:left}.bar .btn{top:7px;padding-top:10px;padding-bottom:10px}.bar .btn-link{top:0;padding:0;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}.card,.table-view{background-color:transparent}.badge-negative.badge-inverted{color:#f44;background-color:transparent}.card{border-color:#d9d9d9;border-radius:2px}.table-view .table-view-cell{border-bottom:1px solid #d9d9d9}.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:700;text-transform:uppercase;background-color:transparent;border-top:0;border-bottom:2px solid #a9a9a9}.table-view-cell .navigate-left>.badge,.table-view-cell .navigate-left>.btn,.table-view-cell .navigate-left>.toggle,.table-view-cell .navigate-right>.badge,.table-view-cell .navigate-right>.btn,.table-view-cell .navigate-right>.toggle,.table-view-cell .push-left>.badge,.table-view-cell .push-left>.btn,.table-view-cell .push-left>.toggle,.table-view-cell .push-right>.badge,.table-view-cell .push-right>.btn,.table-view-cell .push-right>.toggle,.table-view-cell>a .navigate-left>.badge,.table-view-cell>a .navigate-left>.btn,.table-view-cell>a .navigate-left>.toggle,.table-view-cell>a .navigate-right>.badge,.table-view-cell>a .navigate-right>.btn,.table-view-cell>a .navigate-right>.toggle,.table-view-cell>a .push-left>.badge,.table-view-cell>a .push-left>.btn,.table-view-cell>a .push-left>.toggle,.table-view-cell>a .push-right>.badge,.table-view-cell>a .push-right>.btn,.table-view-cell>a .push-right>.toggle{right:15px}.input-group,input[type=number],input[type=email],input[type=url],input[type=tel],input[type=color],input[type=search],input[type=text],input[type=password],input[type=datetime],input[type=datetime-local],input[type=date],input[type=month],input[type=time],input[type=week],select,textarea{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}.input-group,select,textarea{height:auto}.input-group{padding:0;border:0}.input-row label,.segmented-control .control-item{padding-top:10px;padding-bottom:10px}.input-group input{border:0;border-bottom:1px solid #d9d9d9;-webkit-box-shadow:none;box-shadow:none}.input-row{height:40px;border-bottom:1px solid #d9d9d9}.input-row label+input{background-image:none;border-bottom:0}.segmented-control{font-size:14px;background-color:#cecece;border:0;border-radius:2px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.25);box-shadow:0 1px 1px rgba(0,0,0,.25)}.segmented-control .control-item{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,.navigate-right:after,.push-left:after,.push-right:after{content:''}.icon-caret:before{content:'\e800'}.icon-down-nav:before,.icon-down:before{content:'\e801'}.icon-download:before{content:'\e802'}.icon-left-nav:before,.icon-left:before{content:'\e803'}.icon-more-vertical:before{content:'\e804'}.icon-more:before{content:'\e805'}.icon-right-nav:before,.icon-right:before{content:'\e806'}.icon-search:before{content:'\e807'}.icon-share:before{content:'\e808'}.icon-up-nav:before,.icon-up:before{content:'\e809'} \ No newline at end of file diff --git a/docs/dist/css/ratchet-theme-ios.css b/docs/dist/css/ratchet-theme-ios.css new file mode 100644 index 000000000..341a9bd0d --- /dev/null +++ b/docs/dist/css/ratchet-theme-ios.css @@ -0,0 +1,494 @@ +/*! + * ===================================================== + * 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,"), url("data:image/svg+xml;utf8,"); + 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,"); + 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,"), url("data:image/svg+xml;utf8,"); + 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,"), url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: 0 100%, 0 0; + border: 0; +} + +.input-group input { + background-image: url("data:image/svg+xml;utf8,"); + 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,"); + 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); + } +} diff --git a/docs/dist/css/ratchet-theme-ios.min.css b/docs/dist/css/ratchet-theme-ios.min.css new file mode 100644 index 000000000..135f377aa --- /dev/null +++ b/docs/dist/css/ratchet-theme-ios.min.css @@ -0,0 +1,9 @@ +/*! + * ===================================================== + * 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,.h6,h5,h6,p{color:#8f8f94}.h5,.h6,h5,h6{font-weight:400;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-link,.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-negative:active,.btn-outlined.btn-positive:active,.btn-outlined.btn-primary:active{color:#fff}.btn-link{color:#007aff;border:none}.bar-tab,.bar.bar-footer,.bar.bar-footer-secondary,.bar.bar-footer-secondary-tab,.table-view{border-top:0}.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}.tab-item{color:#929292}.bar-nav .btn-link,.tab-item.active,.tab-item:active{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,.card .table-view-cell:last-child{background-image:none}.table-view{background-image:url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:0 100%,0 0;border-bottom:0}.table-view .table-view-cell{background-image:url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:15px 100%;border-bottom:0}.table-view .table-view-cell:last-child{background-image:none}.input-group,.table-view .table-view-divider{background-image:url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:0 100%,0 0}.table-view .table-view-cell>a:not(.btn):active{color:inherit}.table-view .table-view-divider{border-top:0;border-bottom:0}.input-group,input[type=text],input[type=email],input[type=url],input[type=tel],input[type=color],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],select,textarea{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}.input-group,select,textarea{height:auto}.input-group{padding:0;border:0}.input-group input,.input-row{background-repeat:no-repeat;background-position:15px 100%}.input-group input{background-image:url("data:image/svg+xml;utf8,");border:0}.input-group input:last-child{background-image:none}.input-row{background-image:url("data:image/svg+xml;utf8,");border-bottom:0}.input-row label+input,.input-row:last-child,.popover .table-view{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{border-radius:12px}.modal,.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);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.right:not([class*=sliding-in]),.content.sliding.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)}} \ No newline at end of file diff --git a/docs/dist/css/ratchet.css b/docs/dist/css/ratchet.css new file mode 100644 index 000000000..c8d14e3b2 --- /dev/null +++ b/docs/dist/css/ratchet.css @@ -0,0 +1,1524 @@ +/*! + * ===================================================== + * 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'; +} diff --git a/docs/dist/css/ratchet.min.css b/docs/dist/css/ratchet.min.css new file mode 100644 index 000000000..6178e77f0 --- /dev/null +++ b/docs/dist/css/ratchet.min.css @@ -0,0 +1,10 @@ +/*! + * ===================================================== + * 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 */img,legend{border:0}legend,td,th{padding:0}body,mark{color:#000}.btn-block,input[type=button],input[type=reset],input[type=submit]{width:100%}.btn,.text-center,.title{text-align:center}.btn,.slider .slide-group,.title{white-space:nowrap}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}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;color:#428bca;text-decoration:none;-webkit-tap-highlight-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}.content,body{top:0;background-color:#fff;right:0;left:0}sub{bottom:-.25em}.bar-footer,.content,body{bottom: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,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}.input-row label,body,button,input,select,textarea{font-family:"Helvetica Neue",Helvetica,sans-serif}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-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}table{border-spacing:0;border-collapse:collapse}.bar-nav~.content,.popover .bar~.table-view{padding-top:44px}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{margin:0;position:fixed;font-size:17px;line-height:21px}a:active{color:#3071a9}.content{position:absolute;overflow:auto;-webkit-overflow-scrolling:touch}.content>*{-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}.bar-header-secondary~.content{padding-top:88px}.bar-footer~.content{padding-bottom:44px}.bar-footer-secondary~.content{padding-bottom:88px}.bar-tab~.content{padding-bottom:50px}.bar-footer-secondary-tab~.content{padding-bottom:94px}.content-padded{margin:10px}.pull-left{float:left}.pull-right{float:right}.clearfix:after,.clearfix:before{display:table;content:" "}.clearfix:after{clear:both}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:10px;line-height:1}.h5,.h6,h5,h6{margin-top:20px}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{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;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-link,.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-negative:active,.btn-outlined.btn-positive:active,.btn-outlined.btn-primary:active{color:#fff}.btn-link{padding-top:6px;padding-bottom:6px;color:#428bca;border:0}.btn-link.active,.btn-link:active{color:#3071a9;background-color:transparent}.btn-block{display:block;padding:15px 0;margin-bottom:10px;font-size:18px}.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-negative:active .badge-inverted,.btn-positive:active .badge-inverted,.btn-primary: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-tab,.title{width:100%;padding:0}.bar-footer,.bar-footer-secondary,.bar-footer-secondary-tab,.bar-tab{border-top:1px solid #ddd;border-bottom:0}.bar-header-secondary{top:44px}.bar-footer-secondary{bottom:44px}.bar-footer-secondary-tab{bottom:50px}.bar-nav{top:0}.title{position:absolute;display:block;margin:0 -10px;font-size:17px;font-weight:500;line-height:44px;color:#000}.title a{color:inherit}.bar-tab{bottom:0;display:table;height:50px;table-layout:fixed}.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}.card,.table-view{background-color:#fff}.badge-negative.badge-inverted{color:#d9534f}.card{margin:10px;overflow:hidden;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,.table-view-cell{border-bottom:1px solid #ddd}.table-view{padding-left:0;margin-top:0;margin-bottom:15px;list-style:none;border-top:1px solid #ddd}.table-view-cell{position:relative;padding:11px 65px 11px 15px;overflow:hidden}.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>.badge,.table-view-cell>.btn,.table-view-cell>.toggle,.table-view-cell>a>.badge,.table-view-cell>a>.btn,.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>.badge,.table-view-cell .navigate-left>.btn,.table-view-cell .navigate-left>.toggle,.table-view-cell .navigate-right>.badge,.table-view-cell .navigate-right>.btn,.table-view-cell .navigate-right>.toggle,.table-view-cell .push-left>.badge,.table-view-cell .push-left>.btn,.table-view-cell .push-left>.toggle,.table-view-cell .push-right>.badge,.table-view-cell .push-right>.btn,.table-view-cell .push-right>.toggle,.table-view-cell>a .navigate-left>.badge,.table-view-cell>a .navigate-left>.btn,.table-view-cell>a .navigate-left>.toggle,.table-view-cell>a .navigate-right>.badge,.table-view-cell>a .navigate-right>.btn,.table-view-cell>a .navigate-right>.toggle,.table-view-cell>a .push-left>.badge,.table-view-cell>a .push-left>.btn,.table-view-cell>a .push-left>.toggle,.table-view-cell>a .push-right>.badge,.table-view-cell>a .push-right>.btn,.table-view-cell>a .push-right>.toggle{right:35px}.content>.table-view:first-child{margin-top:15px}button,input,select,textarea{font-size:17px}input[type=password],input[type=datetime],input[type=datetime-local],input[type=date],input[type=month],input[type=time],input[type=week],input[type=email],input[type=url],input[type=tel],input[type=color],input[type=number],input[type=search],input[type=text],select,textarea{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:0}select,textarea{height:auto}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}select{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;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}.control-content,.popover{display:none}.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.active{display:block}.popover{position:fixed;top:55px;left:50%;z-index:20;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}.backdrop,.modal{position:fixed;top:0}.popover.visible{opacity:1;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.backdrop{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,.slider{overflow:hidden;width:100%}.modal{z-index:11;min-height:100%;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{background-color:#000}.slider .slide-group{position:relative;font-size:0;-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}.icon,.navigate-left:after,.navigate-right:after,.push-left:after,.push-right:after{display:inline-block;font-family:Ratchicons;line-height:1;text-decoration:none;-webkit-font-smoothing:antialiased}.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%;font-size:inherit;color:#bbb;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.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:400;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{font-size:24px}.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'} +/*# sourceMappingURL=ratchet.min.css.map */ \ No newline at end of file diff --git a/docs/dist/css/ratchet.min.css.map b/docs/dist/css/ratchet.min.css.map new file mode 100644 index 000000000..36fd05e67 --- /dev/null +++ b/docs/dist/css/ratchet.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["dist/css/ratchet.css"],"names":[],"mappings":";;;;;;;;4EAmGA,IAwGA,OAEE,OAAQ,EAFV,OAkBA,GACA,GACE,QAAS,EASX,KA9JA,KAuKE,MAAO,KAwNT,WAUA,mBADA,kBADA,mBAGE,MAAO,KA3GT,KA5DA,aA+OA,OAmCE,WAAY,OAtNd,KAyzBA,qBAtoBA,OAicE,YAAa,OA19Bf,KACE,YAAa,WACb,yBAA0B,KACtB,qBAAsB,KAO5B,QACA,MACA,QACA,WACA,OACA,OACA,OACA,OACA,KACA,KACA,IACA,QACA,QACE,QAAS,MAGX,MACA,OACA,SACA,MACE,QAAS,aACT,eAAgB,S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AEP,kBAAmB,iBACf,cAAe,iBACd,aAAc,iBACX,UAAW,iBAKrB,qBACA,iBACE,KAAM,KACN,QAAS,QAGX,sBACA,kBACE,MAAO,KACP,QAAS,QAGX,WACE,YAAa,WACb,WAAY,OACZ,YAAa,IAEb,IAAK,6BACL,IAAK,oCAAqC,4BAA6B,8BAA+B,eAAgB,6BAA8B,mBAAoB,yCAA0C,cAGpN,MAGE,UAAW,KAOb,kBACE,QAAS,QAGX,kBACE,QAAS,QAGX,mBACE,QAAS,QAGX,mBACE,QAAS,QAGX,mBACE,QAAS,QAGX,kBACE,QAAS,QAGX,qBACE,QAAS,QAGX,sBACE,QAAS,QAGX,kBACE,QAAS,QAGX,qBACE,QAAS,QAGX,kBACE,QAAS,QAGX,kBACE,QAAS,QAGX,kBACE,QAAS,QAGX,kBACE,QAAS,QAGX,2BACE,QAAS,QAGX,kBACE,QAAS,QAGX,mBACE,QAAS,QAGX,mBACE,QAAS,QAGX,oBACE,QAAS,QAGX,kBACE,QAAS,QAGX,kBACE,QAAS,QAGX,qBACE,QAAS,QAGX,oBACE,QAAS,QAGX,mBACE,QAAS,QAGX,mBACE,QAAS,QAGX,oBACE,QAAS,QAGX,oBACE,QAAS,QAGX,oBACE,QAAS,QAGX,yBACE,QAAS,QAGX,kBACE,QAAS,QAGX,kBACE,QAAS,QAGX,mBACE,QAAS,QAGX,oBACE,QAAS,QAGX,gBACE,QAAS,QAGX,uBACE,QAAS,QAGX,mBACE,QAAS,QAGX,sBACE,QAAS,QAGX,kBACE,QAAS,QAGX,sBACE,QAAS,QAGX,kBACE,QAAS"} \ No newline at end of file diff --git a/docs/dist/fonts/ratchicons.eot b/docs/dist/fonts/ratchicons.eot new file mode 100644 index 000000000..536e57258 Binary files /dev/null and b/docs/dist/fonts/ratchicons.eot differ diff --git a/docs/dist/fonts/ratchicons.svg b/docs/dist/fonts/ratchicons.svg new file mode 100644 index 000000000..3abf5dd10 --- /dev/null +++ b/docs/dist/fonts/ratchicons.svg @@ -0,0 +1,61 @@ + + + +Copyright (C) 2014 by original authors @ fontello.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/dist/fonts/ratchicons.ttf b/docs/dist/fonts/ratchicons.ttf new file mode 100644 index 000000000..927eb58c3 Binary files /dev/null and b/docs/dist/fonts/ratchicons.ttf differ diff --git a/docs/dist/fonts/ratchicons.woff b/docs/dist/fonts/ratchicons.woff new file mode 100644 index 000000000..25f1e75af Binary files /dev/null and b/docs/dist/fonts/ratchicons.woff differ diff --git a/docs/dist/js/ratchet.js b/docs/dist/js/ratchet.js new file mode 100644 index 000000000..7defe2ce7 --- /dev/null +++ b/docs/dist/js/ratchet.js @@ -0,0 +1,1073 @@ +/*! + * ===================================================== + * 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 (/]*>([\s\S.]*)<\/head>/i)[0]; + body.innerHTML = responseText.match(/]*>([\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; + }); + +}()); diff --git a/docs/dist/js/ratchet.min.js b/docs/dist/js/ratchet.min.js new file mode 100644 index 000000000..7ce0a9736 --- /dev/null +++ b/docs/dist/js/ratchet.min.js @@ -0,0 +1,12 @@ +/*! + * ===================================================== + * 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. + * ===================================================== + */ + +!function(){"use strict";window.CustomEvent||(window.CustomEvent=function(a,b){var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c}),"undefined"==typeof window.RATCHET&&(window.RATCHET={}),window.RATCHET.getBrowserCapabilities=function(){var a=window.getComputedStyle(document.documentElement,""),b=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];return{prefix:"-"+b+"-",transform:b[0].toUpperCase()+b.substr(1)+"Transform"}}(),window.RATCHET.getTransitionEnd=function(){var a=document.createElement("ratchet"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return b[c];return b.transition}()}(),!function(){"use strict";var a=function(a){for(var b,c=document.querySelectorAll("a");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a},b=function(b){var c=a(b.target);return c&&c.hash?document.querySelector(c.hash):void 0};window.addEventListener("touchend",function(a){var c=b(a);if(c&&c.classList.contains("modal")){var d=null;d=c.classList.contains("active")?new CustomEvent("modalClose",{bubbles:!0,cancelable:!0}):new CustomEvent("modalOpen",{bubbles:!0,cancelable:!0}),c.dispatchEvent(d),c.classList.toggle("active"),a.preventDefault()}})}(),!function(){"use strict";var a,b=function(a){for(var b,c=document.querySelectorAll("a");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a},c=function(){a.style.display="none",a.removeEventListener(window.RATCHET.getTransitionEnd,c)},d=function(){var b=document.createElement("div");return b.classList.add("backdrop"),b.addEventListener("touchend",function(){a.addEventListener(window.RATCHET.getTransitionEnd,c),a.classList.remove("visible"),a.parentNode.removeChild(d)}),b}(),e=function(c){var d=b(c.target);if(d&&d.hash&&!(d.hash.indexOf("/")>0)){try{a=document.querySelector(d.hash)}catch(e){a=null}if(null!==a&&a&&a.classList.contains("popover"))return a}},f=function(a){var b=e(a);b&&(b.style.display="block",b.offsetHeight,b.classList.add("visible"),b.parentNode.appendChild(d))};window.addEventListener("touchend",f)}(),!function(){"use strict";function a(){f[p.id]=document.body.cloneNode(!0)}var b,c=function(){},d=20,e=sessionStorage,f={},g={"slide-in":"slide-out","slide-out":"slide-in",fade:"fade"},h={bartab:".bar-tab",barnav:".bar-nav",barfooter:".bar-footer",barheadersecondary:".bar-header-secondary"},i=function(a,b){p.id=a.id,b&&(a=l(a.id)),e[a.id]=JSON.stringify(a),window.history.replaceState(a.id,a.title,a.url)},j=function(){var a=p.id,b=JSON.parse(e.cacheForwardStack||"[]"),c=JSON.parse(e.cacheBackStack||"[]");for(c.push(a);b.length;)delete e[b.shift()];for(;c.length>d;)delete e[c.shift()];l(p.id).url&&window.history.pushState(null,"",l(p.id).url),e.cacheForwardStack=JSON.stringify(b),e.cacheBackStack=JSON.stringify(c)},k=function(a,b){var c="forward"===b,d=JSON.parse(e.cacheForwardStack||"[]"),f=JSON.parse(e.cacheBackStack||"[]"),g=c?f:d,h=c?d:f;p.id&&g.push(p.id),h.pop(),e.cacheForwardStack=JSON.stringify(d),e.cacheBackStack=JSON.stringify(f)},l=function(a){return JSON.parse(e[a]||null)||{}},m=function(a){var c=u(a.target);if(!(!c||a.which>1||a.metaKey||a.ctrlKey||b||location.protocol!==c.protocol||location.host!==c.host||!c.hash&&/#/.test(c.href)||c.hash&&c.href.replace(c.hash,"")===location.href.replace(location.hash,"")||"push"===c.getAttribute("data-ignore")))return c},n=function(a){var b=m(a);b&&(a.preventDefault(),p({url:b.href,hash:b.hash,timeout:b.getAttribute("data-timeout"),transition:b.getAttribute("data-transition")}))},o=function(a){var b,c,d,i,j,m,n,o,q=a.state;if(q&&e[q]){if(j=p.id]*>([\s\S.]*)<\/head>/i)[0],d.innerHTML=f.match(/]*>([\s\S.]*)<\/body>/i)[0]):(c=d=document.createElement("div"),c.innerHTML=f),e.title=c.querySelector("title")||document.querySelector("title");var g="innerText"in e.title?"innerText":"textContent";return e.title=e.title&&e.title[g].trim(),b.transition?e=w(e,".content",d):e.contents=d,e};window.addEventListener("touchstart",function(){b=!1}),window.addEventListener("touchmove",function(){b=!0}),window.addEventListener("touchend",n),window.addEventListener("click",function(a){m(a)&&a.preventDefault()}),window.addEventListener("popstate",o),window.PUSH=p,window.RATCHET.push=p}(),!function(){"use strict";var a=function(a){for(var b,c=document.querySelectorAll(".segmented-control .control-item");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a};window.addEventListener("touchend",function(b){var c,d,e,f=a(b.target),g="active",h="."+g;if(f&&(c=f.parentNode.querySelector(h),c&&c.classList.remove(g),f.classList.add(g),f.hash&&(e=document.querySelector(f.hash)))){d=e.parentNode.querySelectorAll(h);for(var i=0;i .slide-group");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a},r=function(){var a=c.style[p].match(/translate3d\(([^,]*)/),b=a?a[1]:0;return parseInt(b,10)},s=function(a){var b=a?0>d?"ceil":"floor":"round";k=Math[b](r()/(m/c.children.length)),k+=a,k=Math.min(k,0),k=Math.max(-(c.children.length-1),k)},t=function(f){if(c=q(f.target)){var k=c.querySelector(".slide");m=k.offsetWidth*c.children.length,l=void 0,j=c.offsetWidth,i=1,g=-(c.children.length-1),h=+new Date,a=f.touches[0].pageX,b=f.touches[0].pageY,d=0,e=0,s(0),c.style[o+"transition-duration"]=0}},u=function(h){h.touches.length>1||!c||(n||(a+=h.touches[0].pageX-a-1),d=h.touches[0].pageX-a,e=h.touches[0].pageY-b,a=h.touches[0].pageX,b=h.touches[0].pageY,"undefined"==typeof l&&n&&(l=Math.abs(e)>Math.abs(d)),l||(f=d/i+r(),h.preventDefault(),i=0===k&&d>0?a/j+1.25:k===g&&0>d?Math.abs(a)/j+1.25:1,c.style[p]="translate3d("+f+"px,0,0)",n=!0))},v=function(a){c&&!l&&(n=!1,s(+new Date-h<1e3&&Math.abs(d)>15?0>d?-1:1:0),f=k*j,c.style[o+"transition-duration"]=".2s",c.style[p]="translate3d("+f+"px,0,0)",a=new CustomEvent("slide",{detail:{slideNumber:Math.abs(k)},bubbles:!0,cancelable:!0}),c.parentNode.dispatchEvent(a))};window.addEventListener("touchstart",t),window.addEventListener("touchmove",u),window.addEventListener("touchend",v)}(),!function(){"use strict";var a={},b=!1,c=!1,d=!1,e=window.RATCHET.getBrowserCapabilities.transform,f=function(a){for(var b,c=document.querySelectorAll(".toggle");a&&a!==document;a=a.parentNode)for(b=c.length;b--;)if(c[b]===a)return a};window.addEventListener("touchstart",function(c){if(c=c.originalEvent||c,d=f(c.target)){var e=d.querySelector(".toggle-handle"),g=d.clientWidth,h=e.clientWidth,i=d.classList.contains("active")?g-h:0;a={pageX:c.touches[0].pageX-i,pageY:c.touches[0].pageY},b=!1}}),window.addEventListener("touchmove",function(f){if(f=f.originalEvent||f,!(f.touches.length>1)&&d){var g=d.querySelector(".toggle-handle"),h=f.touches[0],i=d.clientWidth,j=g.clientWidth,k=i-j;if(b=!0,c=h.pageX-a.pageX,!(Math.abs(c)c)return g.style[e]="translate3d(0,0,0)";if(c>k)return g.style[e]="translate3d("+k+"px,0,0)";g.style[e]="translate3d("+c+"px,0,0)",d.classList[c>i/2-j/2?"add":"remove"]("active")}}}),window.addEventListener("touchend",function(a){if(d){var f=d.querySelector(".toggle-handle"),g=d.clientWidth,h=f.clientWidth,i=g-h,j=!b&&!d.classList.contains("active")||b&&c>g/2-h/2;j?f.style[e]="translate3d("+i+"px,0,0)":f.style[e]="translate3d(0,0,0)",d.classList[j?"add":"remove"]("active"),a=new CustomEvent("toggle",{detail:{isActive:j},bubbles:!0,cancelable:!0}),d.dispatchEvent(a),b=!1,d=!1}})}(); +//# sourceMappingURL=ratchet.min.js.map \ No newline at end of file diff --git a/docs/dist/js/ratchet.min.js.map b/docs/dist/js/ratchet.min.js.map new file mode 100644 index 000000000..662bd01df --- /dev/null +++ b/docs/dist/js/ratchet.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["ratchet.js"],"names":["window","CustomEvent","type","config","e","document","createEvent","initCustomEvent","bubbles","cancelable","detail","RATCHET","getBrowserCapabilities","styles","getComputedStyle","documentElement","pre","Array","prototype","slice","call","join","match","OLink","prefix","transform","toUpperCase","substr","getTransitionEnd","el","createElement","transEndEventNames","WebkitTransition","MozTransition","OTransition","transition","name","undefined","style","findModals","target","i","modals","querySelectorAll","parentNode","length","getModal","event","modalToggle","hash","querySelector","addEventListener","modal","classList","contains","eventToDispatch","dispatchEvent","toggle","preventDefault","popover","findPopovers","popovers","onPopoverHidden","display","removeEventListener","backdrop","element","add","remove","removeChild","getPopover","anchor","indexOf","error","showHidePopover","offsetHeight","appendChild","cacheCurrentContent","domCache","PUSH","id","body","cloneNode","isScrolling","noop","maxCacheLength","cacheMapping","sessionStorage","transitionMap","slide-in","slide-out","fade","bars","bartab","barnav","barfooter","barheadersecondary","cacheReplace","data","updates","getCached","JSON","stringify","history","replaceState","title","url","cachePush","cacheForwardStack","parse","cacheBackStack","push","shift","pushState","cachePop","direction","forward","pushStack","popStack","pop","getTarget","findTarget","which","metaKey","ctrlKey","location","protocol","host","test","href","replace","getAttribute","touchend","timeout","popstate","key","barElement","activeObj","activeDom","transitionFrom","transitionFromObj","state","ignorePush","extendWithDom","hasOwnProperty","swapContent","contents","triggerStateChange","options","xhr","container","isFileProtocol","readyState","onreadystatechange","abort","XMLHttpRequest","open","setRequestHeader","_timeout","clearTimeout","status","success","failure","Date","setTimeout","send","parseXHR","locationReplace","_gaq","Error","swap","complete","enter","containerDirection","swapDirection","insertBefore","innerHTML","offsetWidth","fadeContainerEnd","fadeSwapEnd","slideEnd","toggles","obj","fragment","dom","result","Object","keys","forEach","head","responseText","text","trim","segmentedControls","activeTab","activeBodies","targetBody","targetTab","className","classSelector","pageX","pageY","slider","deltaX","deltaY","offsetX","lastSlide","startTime","resistance","sliderWidth","slideNumber","scrollableArea","startedMoving","transformPrefix","transformProperty","getSlider","sliders","getScroll","translate3d","ret","parseInt","setSlideNumber","offset","round","Math","children","min","max","onTouchStart","firstItem","touches","onTouchMove","abs","onTouchEnd","start","touchMove","distanceX","findToggle","originalEvent","handle","toggleWidth","clientWidth","handleWidth","current","slideOn","isActive"],"mappings":";;;;;;;;;;CAiBE,WACA,YAGKA,QAAOC,cACVD,OAAOC,YAAc,SAAUC,EAAMC,GACnC,GAAIC,GAAIC,SAASC,YAAY,cAE7B,OADAF,GAAEG,gBAAgBL,EAAMC,EAAOK,QAASL,EAAOM,WAAYN,EAAOO,QAC3DN,IAKmB,mBAAnBJ,QAAOW,UAChBX,OAAOW,YAITX,OAAOW,QAAQC,uBAAyB,WACtC,GAAIC,GAASb,OAAOc,iBAAiBT,SAASU,gBAAiB,IAC3DC,GAAOC,MAAMC,UAAUC,MACtBC,KAAKP,GACLQ,KAAK,IACLC,MAAM,sBAA0C,KAAjBT,EAAOU,QAAiB,GAAI,MAC5D,EACJ,QACEC,OAAQ,IAAMR,EAAM,IACpBS,UAAWT,EAAI,GAAGU,cAAgBV,EAAIW,OAAO,GAAK,gBAItD3B,OAAOW,QAAQiB,iBAAmB,WAChC,GAAIC,GAAKxB,SAASyB,cAAc,WAC5BC,GACFC,iBAAmB,sBACnBC,cAAgB,gBAChBC,YAAc,gCACdC,WAAa,gBAGf,KAAK,GAAIC,KAAQL,GACf,GAAuBM,SAAnBR,EAAGS,MAAMF,GACX,MAAOL,GAAmBK,EAI9B,OAAOL,GAAmBI,kBAY5B,WACA,YAEA,IAAII,GAAa,SAAUC,GAIzB,IAHA,GAAIC,GACAC,EAASrC,SAASsC,iBAAiB,KAEhCH,GAAUA,IAAWnC,SAAUmC,EAASA,EAAOI,WACpD,IAAKH,EAAIC,EAAOG,OAAQJ,KACtB,GA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L,CAIA,GAAIsL,GAActL,EAAOP,cAAc,kBACnCiM,EAAc/O,EAAEkO,QAAQ,GACxBU,EAAcvL,EAAOwL,YACrBC,EAAcH,EAAOE,YACrBnB,EAAckB,EAAcE,CAKhC,IAHAP,GAAY,EACZC,EAAYO,EAAQ3C,MAAQkC,EAAMlC,QAE9BwB,KAAKQ,IAAII,GAAaZ,KAAKQ,IAAIW,EAAQ1C,MAAQiC,EAAMjC,QAAzD,CAMA,GAFArM,EAAEsD,iBAEc,EAAZkL,EACF,MAAQG,GAAOzM,MAAMgL,GAAqB,oBAE5C,IAAIsB,EAAYd,EACd,MAAQiB,GAAOzM,MAAMgL,GAAqB,eAAiBQ,EAAS,SAGtEiB,GAAOzM,MAAMgL,GAAqB,eAAiBsB,EAAY,UAE/DnL,EAAOJ,UAAWuL,EAAaI,EAAc,EAAIE,EAAc,EAAM,MAAQ,UAAU,cAGzFlP,OAAOmD,iBAAiB,WAAY,SAAU/C,GAC5C,GAAKqD,EAAL,CAIA,GAAIsL,GAActL,EAAOP,cAAc,kBACnC8L,EAAcvL,EAAOwL,YACrBC,EAAcH,EAAOE,YACrBnB,EAAekB,EAAcE,EAC7BE,GAAgBT,IAAclL,EAAOJ,UAAUC,SAAS,WAAeqL,GAAcC,EAAaI,EAAc,EAAIE,EAAc,CAElIE,GACFL,EAAOzM,MAAMgL,GAAqB,eAAiBQ,EAAS,UAE5DiB,EAAOzM,MAAMgL,GAAqB,qBAGpC7J,EAAOJ,UAAU+L,EAAU,MAAQ,UAAU,UAE7ChP,EAAI,GAAIH,aAAY,UAClBS,QACE2O,SAAUD,GAEZ5O,SAAS,EACTC,YAAY,IAGdgD,EAAOD,cAAcpD,GAErBuO,GAAY,EACZlL,GAAY","file":"ratchet.min.js"} \ No newline at end of file diff --git a/docs/examples.html b/docs/examples.html new file mode 100644 index 000000000..1391a0e58 --- /dev/null +++ b/docs/examples.html @@ -0,0 +1,60 @@ +--- +layout: default +title: Examples · Ratchet +--- + +
+ {% include masthead.html %} +
+
+

Examples

+

Take a look at some of these example apps built on Ratchet.

+
+ {% include ad.html %} +
+
+ +
+
+ + +
+ {% include download-module.html %} +
+
+ +
+ + {% include footer.html %} +
+
diff --git a/docs/examples/app-android-notes/css/app.css b/docs/examples/app-android-notes/css/app.css new file mode 100644 index 000000000..fd8cd5d10 --- /dev/null +++ b/docs/examples/app-android-notes/css/app.css @@ -0,0 +1,5 @@ +.slider, +.slider img { + margin-bottom: 0; + height: 150px; +} diff --git a/docs/examples/app-android-notes/index.html b/docs/examples/app-android-notes/index.html new file mode 100644 index 000000000..f55da513a --- /dev/null +++ b/docs/examples/app-android-notes/index.html @@ -0,0 +1,146 @@ + + + + + Notes + + + + + + + + + + + + + +
+ + +

+ + Notes + +

+
+
+ + + + + + + + + + diff --git a/docs/examples/app-ios-mail/css/app.css b/docs/examples/app-ios-mail/css/app.css new file mode 100644 index 000000000..dc7532a67 --- /dev/null +++ b/docs/examples/app-ios-mail/css/app.css @@ -0,0 +1,12 @@ +.updated-text { + position: absolute; + left: 0; + right: 0; + padding: 10px 0; + font-size: 11px; + text-align: center; +} + +.table-view-cell .icon { + color: #007aff; +} diff --git a/docs/examples/app-ios-mail/inbox.html b/docs/examples/app-ios-mail/inbox.html new file mode 100644 index 000000000..04e6a2bc3 --- /dev/null +++ b/docs/examples/app-ios-mail/inbox.html @@ -0,0 +1,118 @@ + + + + + Mail + + + + + + + + + + +
+ + +

All inboxes

+
+ + + + diff --git a/docs/examples/app-ios-mail/index.html b/docs/examples/app-ios-mail/index.html new file mode 100644 index 000000000..50a022e71 --- /dev/null +++ b/docs/examples/app-ios-mail/index.html @@ -0,0 +1,98 @@ + + + + + Mail + + + + + + + + + + +
+ +

Mailboxes

+
+ + + + + + + + + diff --git a/docs/examples/app-movies/choose-theater.html b/docs/examples/app-movies/choose-theater.html new file mode 100644 index 000000000..25fbcf01d --- /dev/null +++ b/docs/examples/app-movies/choose-theater.html @@ -0,0 +1,85 @@ + + + + + Movie finder + + + + + + + + + +
+ + + Back + +

Argo

+
+ +
+
+ +
+
+ +
+ +
+ + diff --git a/docs/examples/app-movies/css/app.css b/docs/examples/app-movies/css/app.css new file mode 100644 index 000000000..a5059797d --- /dev/null +++ b/docs/examples/app-movies/css/app.css @@ -0,0 +1,10 @@ +.slider { + margin-bottom: 0; +} +.slider img { + width: auto; + height: 150px; +} +.content-padded { + margin: 30px 15px 15px; +} diff --git a/docs/examples/app-movies/img/argo.png b/docs/examples/app-movies/img/argo.png new file mode 100644 index 000000000..fca956f43 Binary files /dev/null and b/docs/examples/app-movies/img/argo.png differ diff --git a/docs/examples/app-movies/img/ralph.png b/docs/examples/app-movies/img/ralph.png new file mode 100644 index 000000000..a7bb34bd4 Binary files /dev/null and b/docs/examples/app-movies/img/ralph.png differ diff --git a/docs/examples/app-movies/img/skyfall.png b/docs/examples/app-movies/img/skyfall.png new file mode 100644 index 000000000..60b90eafb Binary files /dev/null and b/docs/examples/app-movies/img/skyfall.png differ diff --git a/docs/examples/app-movies/index.html b/docs/examples/app-movies/index.html new file mode 100644 index 000000000..98c391b55 --- /dev/null +++ b/docs/examples/app-movies/index.html @@ -0,0 +1,170 @@ + + + + + Movie finder + + + + + + + + + +
+ +

Movie finder

+
+ +
+
+ +
+
+ + + + + + + diff --git a/docs/getting-started.html b/docs/getting-started.html new file mode 100644 index 000000000..6f10f0a97 --- /dev/null +++ b/docs/getting-started.html @@ -0,0 +1,246 @@ +--- +layout: default +title: Getting started · Ratchet +--- + +
+ {% include masthead.html %} +
+
+

Getting started

+

Once you've downloaded Ratchet, here's what to do next.

+
+ {% include ad.html %} +
+
+ +
+
+
+
+

Quick start

+

Quickly get up and running with a Ratchet app.

+ +

1. Create your pages

+

Use the documentation as a reference for all the available components and piece together the pages of your app. Be sure to look at the basic page template and example applications. Make sure to add ratchet-theme-ios.css or ratchet-theme-android.css to your app's <head> if you have a specific platform in mind.

+ +

2. Connect pages with push.js

+

Read about push.js then start connecting your pages. Push.js allows you to create an app that feels like a real app when you save it to your phone. Make sure that you have a server running, and that your browser is emulating touch events. Check out this tutorial on emulating touch events in Chrome (or Firefox) if you're not sure how to do that.

+ +

3. Save the app to your phone

+

There are a few ways to do this, but the simplest is to run a local server on your computer, point Safari on your iPhone to your computer, then click the button and "Add to Home Screen". For Android, check out this guide.

+
+ +
+

What's included

+

Ratchet is downloadable in two forms, within which you'll find the following directories and files, logically grouping common resources and providing both compiled and minified variations.

+ +

Precompiled Ratchet

+

Once downloaded, unzip the compressed folder to see the structure of (the compiled) Ratchet. You'll see something like this:

+ +{% highlight bash %} +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 +{% endhighlight %} + +

This is the most basic form of Ratchet: precompiled files for quick drop-in usage in nearly any web project. 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 Android and iOS platform themes.

+ +

Ratchet source code

+

The Ratchet source code download includes the precompiled CSS, JavaScript, and font assets, along with source Sass, JavaScript, and documentation. More specifically, it includes the following and more:

+{% highlight bash %} +ratchet/ +├── sass/ +├── js/ +├── fonts/ +├── dist/ +│ ├── css/ +│ ├── js/ +│ └── fonts/ +└── docs/ + └── examples/ +{% endhighlight %} + +

The sass/, js/, and fonts/ are the source code for our CSS, JS, and icon fonts (respectively). The dist/ folder includes everything listed in the precompiled download section above. The docs/ folder includes the source code for our documentation, and examples/ of Ratchet usage. Beyond that, any other included file provides support for packages, license information, and development.

+
+ + + +
+

Page setup

+

Three simple rules for structuring your Ratchet pages

+

1. Fixed bars come first

+

All fixed bars (.bar) should always be the first thing in the <body> of the page. This is really important!

+ +

2. Everything else goes in .content

+

Anything that's not a .bar should be put in a div with the class .content. Put this div after the bars in the <body> tag. The .content div is what actually scrolls in a Ratchet prototype.

+ +

3. Don't forget your meta tags

+

They're included in the template.html page included in the download, but make sure they stay in the page. They are important for Ratchet to work just right.

+
+ + + +
+

Basic template

+

Use this basic template to get your app started.

+{% highlight html %} + + + + + Ratchet template page + + + + + + + + + + + + + + + + + +
+

Ratchet

+
+ + +
+

Thanks for downloading Ratchet. This is an example HTML page that's linked up to compiled Ratchet CSS and JS, has the proper meta tags and the HTML structure. Need some more help before you start filling this with your own content? Check out some Ratchet resources:

+ +
+ + + +{% endhighlight %} +
+ + + +
+

Community

+

Stay up to date on the development of Ratchet and reach out to the community with these helpful resources.

+
    +
  1. +

    Read and subscribe to The Official Bootstrap Blog (which includes Ratchet releases and news).

    +
  2. +
  3. +

    For help using Ratchet, ask on StackOverflow using the tag ratchet-2.

    +
  4. +
  5. +

    Start a discussion on the Ratchet Google group.

    +
  6. +
+

You can also follow @goratchet on Twitter for the latest news.

+
+ +
+

Browser and OS support

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OSBrowserSupported?
Android (minimum version To Be Decided)Android stock Browser
Android (minimum version To Be Decided)Chrome
Android (minimum version To Be Decided)FirefoxTo Be Decided
iOS v7.1+Safari
iOS v7.1+ChromeTo Be Decided
Windows PhoneIE MobileTo Be Decided
Opera MiniTo Be Decided
Opera MobileTo Be Decided
+
+
+ +
+ {% include download-module.html %} +
+
+ +
+ + {% include footer.html %} +
+
diff --git a/docs/img/apple-touch-icon-114x114.png b/docs/img/apple-touch-icon-114x114.png deleted file mode 100644 index de146614a..000000000 Binary files a/docs/img/apple-touch-icon-114x114.png and /dev/null differ diff --git a/docs/img/apple-touch-icon-57x57.png b/docs/img/apple-touch-icon-57x57.png deleted file mode 100644 index 539694283..000000000 Binary files a/docs/img/apple-touch-icon-57x57.png and /dev/null differ diff --git a/docs/img/apple-touch-icon-72x72.png b/docs/img/apple-touch-icon-72x72.png deleted file mode 100644 index a214d69f0..000000000 Binary files a/docs/img/apple-touch-icon-72x72.png and /dev/null differ diff --git a/docs/img/avatar-connors.png b/docs/img/avatar-connors.png deleted file mode 100644 index 239887efc..000000000 Binary files a/docs/img/avatar-connors.png and /dev/null differ diff --git a/docs/img/avatar-dhg.png b/docs/img/avatar-dhg.png deleted file mode 100644 index 20c919b48..000000000 Binary files a/docs/img/avatar-dhg.png and /dev/null differ diff --git a/docs/img/avatar-fat.png b/docs/img/avatar-fat.png deleted file mode 100644 index 85f22f885..000000000 Binary files a/docs/img/avatar-fat.png and /dev/null differ diff --git a/docs/img/cubes.png b/docs/img/cubes.png deleted file mode 100644 index 61c093153..000000000 Binary files a/docs/img/cubes.png and /dev/null differ diff --git a/docs/img/header-bg.jpg b/docs/img/header-bg.jpg deleted file mode 100644 index 1a0e9e6c1..000000000 Binary files a/docs/img/header-bg.jpg and /dev/null differ diff --git a/docs/img/header-bg.png b/docs/img/header-bg.png deleted file mode 100644 index 4acff327c..000000000 Binary files a/docs/img/header-bg.png and /dev/null differ diff --git a/docs/img/icon-hamburger.png b/docs/img/icon-hamburger.png deleted file mode 100644 index 0ce777768..000000000 Binary files a/docs/img/icon-hamburger.png and /dev/null differ diff --git a/docs/img/icon-home.png b/docs/img/icon-home.png deleted file mode 100644 index 24a882d93..000000000 Binary files a/docs/img/icon-home.png and /dev/null differ diff --git a/docs/img/icon-messages.png b/docs/img/icon-messages.png deleted file mode 100644 index e1f0c2141..000000000 Binary files a/docs/img/icon-messages.png and /dev/null differ diff --git a/docs/img/icon-profile.png b/docs/img/icon-profile.png deleted file mode 100644 index 0da11e826..000000000 Binary files a/docs/img/icon-profile.png and /dev/null differ diff --git a/docs/img/icon-settings.png b/docs/img/icon-settings.png deleted file mode 100644 index 401e31a7b..000000000 Binary files a/docs/img/icon-settings.png and /dev/null differ diff --git a/docs/img/icon-share.png b/docs/img/icon-share.png deleted file mode 100644 index f086aeacb..000000000 Binary files a/docs/img/icon-share.png and /dev/null differ diff --git a/docs/img/iphone-forshow.png b/docs/img/iphone-forshow.png deleted file mode 100644 index d8da87bb3..000000000 Binary files a/docs/img/iphone-forshow.png and /dev/null differ diff --git a/docs/img/iphone.png b/docs/img/iphone.png deleted file mode 100644 index c92caf784..000000000 Binary files a/docs/img/iphone.png and /dev/null differ diff --git a/docs/img/noise.png b/docs/img/noise.png deleted file mode 100644 index 85c37541f..000000000 Binary files a/docs/img/noise.png and /dev/null differ diff --git a/docs/img/slide-1.jpg b/docs/img/slide-1.jpg deleted file mode 100644 index 23c671a84..000000000 Binary files a/docs/img/slide-1.jpg and /dev/null differ diff --git a/docs/img/slide-2.jpg b/docs/img/slide-2.jpg deleted file mode 100644 index 6b5e15e46..000000000 Binary files a/docs/img/slide-2.jpg and /dev/null differ diff --git a/docs/img/slide-3.jpg b/docs/img/slide-3.jpg deleted file mode 100644 index 2664eac26..000000000 Binary files a/docs/img/slide-3.jpg and /dev/null differ diff --git a/docs/index.html b/docs/index.html index cc3d0cb0b..6e745211e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,1199 +1,18 @@ - - - - - Ratchet - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-

Prototype iPhone apps with simple HTML, CSS, and JS components.

- Download Ratchet -
-
- -
- -
- - - -
-

Heads up! Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.

-
- - - - - -
-
-
-

Components

-

Design patterns that serve as basic building blocks.

-
-
-
-
-
-

Title

-
-
-
-
- - -
-

Title bar

-

Title bars are full width and docked to the top of the viewport.

- -
-
-

Title

-
-
- -
-<header class="bar-title">
-  <h1 class="title">Title</h1>
-</header>
-
- -
- -
-

Title bar with buttons

-

Buttons in a title bar are left or right aligned and should be used for actions.

- -
-
- - Left - -

Title

- - Right - -
-
- -
-<header class="bar-title">
-  <a class="button" href="#">
-    Left
-  </a>
-  <h1 class="title">Title</h1>
-  <a class="button" href="#">
-    Right
-  </a>
-</header>
-
- -
-
-

Title bar with directional buttons

-

Directional buttons in a title bar should be used for navigational purposes.

- -
-
- - Previous - -

Title

- - Next - -
-
- -
-<header class="bar-title">
-  <a class="button-prev" href="#">
-    Previous
-  </a>
-  <h1 class="title">Title</h1>
-  <a class="button-next" href="#">
-    Next
-  </a>
-</header>
-
- -
- -
-

Title bar with segmented controller

-

Title bars can also house segmented controllers (with or without accompanying buttons). It all uses flex-box to create perfectly even spacing no matter their labels.

- -
-
- - Left - - - - Right - -
-
- -
-<header class="bar-title">
-  <a class="button" href="#">
-    Left
-  </a>
-  <ul class="segmented-controller">
-    <li class="active">
-      <a href="#">One</a>
-    </li>
-    <li>
-      <a href="#">Two</a>
-    </li>
-    <li>
-      <a href="#">Three</a>
-    </li>
-  </ul>
-  <a class="button" href="#">
-    Right
-  </a>
-</header>
-
- -
- -
-

Tab bar

-

Icons should be around 24px by 18px. The gradient on an icon starts with pure white and goes to #e5e5e5 at the bottom.

- - - -
-<nav class="bar-tab">
-  <ul class="tab-inner">
-    <li class="tab-item active">
-      <a href="#">
-        <img class="tab-icon" src="img/icon-home.png">
-        <div class="tab-label">Label</div>
-      </a>
-    </li>
-    <li class="tab-item">
-      <a href="#">
-        <img class="tab-icon" src="img/icon-profile.png">
-        <div class="tab-label">Label</div>
-      </a>
-    </li>
-    <li class="tab-item">
-      <a href="#">
-        <img class="tab-icon" src="img/icon-messages.png">
-        <div class="tab-label">Label</div>
-      </a>
-    </li>
-    <li class="tab-item">
-      <a href="#">
-        <img class="tab-icon" src="img/icon-hamburger.png">
-        <div class="tab-label">Label</div>
-      </a>
-    </li>
-    <li class="tab-item">
-      <a href="#">
-        <img class="tab-icon" src="img/icon-settings.png">
-        <div class="tab-label">Label</div>
-      </a>
-    </li>
-  </ul>
-</nav>
-
- -

Note: Use push.js to actually change content.

-

Credit: Icons by Marc Haumann and Spencer Cohen from The Noun Project

-
- -
-

Standard bars

-

Standard bars are basic fixed elements that can be positioned in 3 places. These can be used to house buttons or segmented controllers (see following examples).

- -
- - - - - -
- -
-<!-- Segmented controller in standard bar fixed to top -->
-<nav class="bar-standard">
-  <ul class="segmented-controller">
-    <li class="active">
-      <a href="#">Thing one</a>
-    </li>
-    <li>
-      <a href="#">Thing two</a>
-    </li>
-    <li>
-      <a href="#">Thing three</a>
-    </li>
-  </ul>
-</nav>
-<div class="bar-standard bar-header-secondary">
-  <a class="button-block">Block level button</a>
-</div>
-
- -
- - -
-

Lists

-

Lists can be used for organizing data, showing collections of links or a series of controls.

- -
-
    -
  • List item 1
  • -
  • List item 2
  • -
  • List Divider
  • -
  • List item 3
  • -
-
- -
-<ul class="list">
-  <li>List item 1</li>
-  <li>List item 2</li>
-  <li class="list-divider">List Divider</li>
-  <li>List item 3</li>
-</ul>
-
- -
- -
-

List with chevrons

-

Chevrons are created with CSS3, so no image assets are needed. They should be used to indicate that the list item is linked.

- - - -
-<ul class="list">
-  <li>
-    <a href="#">
-      List item 1
-      <span class="chevron"></span>
-    </a>
-  </li>
-  <li>
-    <a href="#">
-      List item 2
-      <span class="chevron"></span>
-    </a>
-  </li>
-  <li>
-    <a href="#">
-      List item 3
-      <span class="chevron"></span>
-    </a>
-  </li>
-</ul>
-
- -
- -
-

List with counts

- -
-
    -
  • List item 1 4
  • -
  • List item 2 1
  • -
  • List item 3 5
  • -
-
- -
-<ul class="list">
-  <li>List item 1 <span class="count">4</span></li>
-  <li>List item 2 <span class="count">1</span></li>
-  <li>List item 3 <span class="count">5</span></li>
-</ul>
-
- -
- -
-

List with counts and chevrons

- - - -
-<ul class="list">
-  <li>
-    <a href="#">
-      List item 1
-      <span class="chevron"></span>
-      <span class="count">4</span>
-    </a>
-  </li>
-  <li>
-    <a href="#">
-      List item 2
-      <span class="chevron"></span>
-      <span class="count">1</span>
-    </a>
-  </li>
-  <li>
-    <a href="#">
-      List item 3
-      <span class="chevron"></span>
-      <span class="count">5</span>
-    </a>
-  </li>
-</ul>
-
- -
- -
-

List with buttons

- -
- -
- -
-<ul class="list">
-  <li>List item 1 <a class="button">Button</a></li>
-  <li>List item 2 <a class="button-main">Button</a></li>
-  <li>List item 3 <a class="button-positive">Button</a></li>
-  <li>List item 4 <a class="button-negative">Button</a></li>
-</ul>
-
- -
- -
-

List with toggles

- -
-
    -
  • - List item 1 -
    -
    -
    -
  • -
  • - List item 2 -
    -
    -
    -
  • -
  • - List item 3 -
    -
    -
    -
  • -
-
- -
-<ul class="list">
-  <li>
-    List item 1
-    <div class="toggle">
-      <div class="toggle-handle"></div>
-    </div>
-  </li>
-  <li>
-    List item 2
-    <div class="toggle active">
-      <div class="toggle-handle"></div>
-    </div>
-  </li>
-  <li>
-    List item 3
-    <div class="toggle">
-      <div class="toggle-handle"></div>
-    </div>
-  </li>
-</ul>
-
- -
- -
-

Inset list

- -
-
    -
  • List item 1
  • -
  • List item 2
  • -
  • List Divider
  • -
  • List item 3
  • -
  • List item 4
  • -
-
- -
-<ul class="list inset">
-  <li>List item 1</li>
-  <li>List item 2</li>
-  <li class="list-divider">List Divider</li>
-  <li>List item 3</li>
-  <li>List item 4</li>
-</ul>
-
- -
- - -
-

Buttons

-

Buttons come in four flavors and should be used for user actions.

- - - -
-<a class="button">Button</a>
-<a class="button-main">Button</a>
-<a class="button-positive">Button</a>
-<a class="button-negative">Button</a>
-
- -
- -
-

Buttons with counts

- - - -
-<a class="button">Count button<span class="count">1</span></a>
-<a class="button-main">Count button<span class="count">1</span></a>
-<a class="button-positive">Count button<span class="count">1</span></a>
-<a class="button-negative">Count button<span class="count">1</span></a>
-
- -
- -
-

Block buttons

- - - -
-<a class="button-block">Block button</a>
-<a class="button-main button-block">Block button</a>
-<a class="button-positive button-block">Block button</a>
-<a class="button-negative button-block">Block button</a>
-
- -
- - -
-

Segmented controller

-

Created with flex-box so button sizes and spacing are consistent. Content sections that are to be swapped in and out by the controller should all be siblings and have the class "segmented-controller-item". Then, just give each content section an id and point the link in the segmented controller to that id.

- -
- -
    -
  • - Item 1 -
  • -
  • - Item 2 -
  • -
  • - Item 3 -
  • -
-
- -
-<ul class="segmented-controller">
-  <li class="active">
-    <a href="#item1">Thing one</a>
-  </li>
-  <li>
-    <a href="#item2">Thing two</a>
-  </li>
-  <li>
-    <a href="#item3">Thing three</a>
-  </li>
-</ul>
-<ul class="inset list">
-  <li id="item1" class="segmented-controller-item active">
-    Item 1
-  </li>
-  <li id="item2" class="segmented-controller-item">
-    Item 2
-  </li>
-  <li id="item3" class="segmented-controller-item">
-    Item 3
-  </li>
-</ul>
-
- -
- - -
-

Counts

-

Counts come in four flavors and should be used to indicate "how many" of something there are.

- -
- 1 - 2 - 3 - 4 -
- -
-<span class="count">1</span>
-<span class="count-main">2</span>
-<span class="count-positive">3</span>
-<span class="count-negative">4</span>
-
- -
- - -
-

Forms

- -
-
- - - - Choose existing -
-
- -
-<form>
-  <input type="text" placeholder="Full name">
-  <input type="search" placeholder="Search">
-  <textarea rows="5"></textarea>
-  <a class="button button-block">Choose existing</a>
-</form>
-
- -
- - -
-

Form with input group

- -
-
- - - -
-
- -
-<form>
-  <div class="input-group">
-    <input type="text" placeholder="Full name">
-    <input type="email" placeholder="Email">
-    <input type="text" placeholder="Username">
-  </div>
-</form>
-
- -
- - -
-

Form with input group and labels

- -
-
-
- - -
-
- - -
-
- - -
-
-
- -
-<form>
-  <div class="input-group">
-    <div class="input-row">
-      <label>Full name</label>
-      <input type="text" placeholder="Mister Ratchet">
-    </div>
-    <div class="input-row">
-      <label>Email</label>
-      <input type="email" placeholder="ratchetframework@gmail.com">
-    </div>
-    <div class="input-row">
-      <label>Username</label>
-      <input type="text" placeholder="goRatchet">
-    </div>
-  </div>
-</form>
-
- -
- - -
-

Toggles

-

Toggles can be used by sliding or tapping the control.

- -
-
-
-
-
-
-
-
- -
-<div class="toggle active">
-  <div class="toggle-handle"></div>
-</div>
-<div class="toggle">
-  <div class="toggle-handle"></div>
-</div>
-
- -

Toggles.js binds an event to the document that returns a detail object and can be used to fire a callback.

- -
-// Only needed if you want to fire a callback
-document
-  .querySelector('#myToggle')
-  .addEventListener('toggle', myFunction)
-
- -
- - -
-

Popovers

- -
-
-
- - Left - -

Popover title

- - Right - -
-
    -
  • Item1
  • -
  • Item2
  • -
  • Item3
  • -
  • Item4
  • -
-
-
- -
-<div id="myPopover" class="popover">
-  <header class="popover-header">
-    <a class="button" href="#">
-      Left
-    </a>
-    <h3 class="title">Popover title</h3>
-    <a class="button" href="#">
-      Right
-    </a>
-  </header>
-  <ul class="list">
-    <li>Item1</li>
-    <li>Item2</li>
-    <li>Item3</li>
-    <li>Item4</li>
-  </ul>
-</div>
-
- -

Popovers are designed to only fire from title bars. Set the value of the title href to the id of a popover, like so:

- -
-<header class="bar-title">
-  <a href="#myPopover">
-    <h1 class="title">Title</h1>
-  </a>
-</header>
-
- -
- - -
-

Modals

- -
- Open modal - -
- - -
-<a href="#myModal" class="button">Open modal</a>
-
-<div id="myModal" class="modal">
-  <header class="bar-title">
-    <h1 class="title">Modal</h1>
-    <a class="button" href="#myModal">
-      Close
-    </a>
-  </header>
-  
-  <div class="content content-padded">
-    <p>The contents of my modal.</p>
-  </div>
-</div>
-
- -

Modals are designed to only fire from links. Set the value of the toggle links href to the id of a modal.

- -
- - -
-

Sliders

-

Can be used with any number of slides with any type of content.

- -
-
-
    -
  • - - ← Slide me -
  • -
  • - -
  • -
  • - -
  • -
-
-
- -
-<div class="slider">
-  <ul>
-    <li>
-      <img src="img/slide-1.jpg">
-      <span class="slide-text">← Slide me</span>
-    </li>
-    <li>
-      <img src="img/slide-2.jpg">
-    </li>
-    <li>
-      <img src="img/slide-3.jpg">
-    </li>
-  </ul>
-</div>
-
- -

Sliders.js binds an event to the document that returns a detail object and can be used to fire a callback.

- -
-// Only needed if you want to fire a callback
-document
-  .querySelector('#mySlider')
-  .addEventListener('slide', myFunction)
-
- -
- - -
-

Push

-

Push.js is the engine that connects Ratchet pages together with AJAX and the history api. Push.js is listening to all clicks on a page, so just make sure it's included and link something in your Ratchet project up.

- -
-<!-- A one.html link -->
-<a href="two.html">Two<a>
-
- -

This will use push to replace everything in the .content div with the .content of two.html. It will also update .bar-title and .bar-tab if you have them on both pages.

- -

Now that pages are being loaded through push, it's easy to specify transitions for animations between pages. There are three different transitions to chose from: fade, slide-in, or slide-out.

- -
-<!-- An one.html link that animates to two.html -->
-<a href="two.html" data-transition="fade">Two<a>
-
- -

A working version of push:

- -
-
-

Push

-
- -
- -
-<header class="bar-title">
-  <h1 class="title">Push</h1>
-</header>
-<div class="content">
-  <ul class="list">
-      <li>
-          <a href="two.html" data-transition="slide-in">
-              Go to page 2
-          </a>
-          <span class="chevron"></span>
-      </li>
-  </ul>
-</div>
-
- -

Have a link you don't want to intercepted by push? Try this:

- -
-<!-- Use data-ignore="push" to prevent the push.js interception -->
-<a href="http://www.google.com" data-ignore="push">Google<a>
-
- -

Push.js binds an event to the document that returns a detail object and can be used to fire a callback.

- -
-// Only needed if you want to fire a callback
-window.addEventListener('push', myFunction);
-
- -
- -
-
- - -
- - - - \ No newline at end of file +--- +layout: home +title: Ratchet +--- + +
+ {% include masthead.html %} +
+

Build mobile apps with simple HTML‚ CSS‚ and JS components.

+ Download Ratchet +

Currently v2.0.2

+
+ +
+ {% include ad.html %} + {% include footer.html %} +
+
diff --git a/docs/js/docs.js b/docs/js/docs.js deleted file mode 100755 index cdb872c58..000000000 --- a/docs/js/docs.js +++ /dev/null @@ -1,128 +0,0 @@ -$(function() { - - var doc; - var iphone; - var windowWidth; - var windowHeight; - var pageHeight; - var contentPadding; - var footerHeight; - var noticeBanner; - var componentsList; - var navComponentLinks; - var contentSection; - var currentActive; - var topCache; - var eventListeners; - - prettyPrint(); - - var initialize = function () { - currentActive = 0; - topCache = []; - win = $(window); - doc = $(document); - bod = $(document.body) - iphone = iphone || $('.iphone'); - noticeBanner = $('.notice-banner'); - navComponentLinks = $('.nav-components-link'); - componentsList = $('.components-list'); - componentLinks = $('.component-example a'); - contentSection = $('.component'); - topCache = contentSection.map(function () { return $(this).offset().top }) - windowHeight = $(window).height() / 3 - pageHeight = $(document).height(); - contentPadding = parseInt($('.docs-content').css('padding-bottom')); - footerHeight = $('.docs-footer').outerHeight(false); - - iphone.initialLeft = iphone.offset().left; - iphone.initialTop = iphone.initialTop || iphone.offset().top; - iphone.dockingOffset = ($(window).height() + 20 + $('.docs-masthead').height() - iphone.height())/2; - checkDesktopContent(); - calculateScroll(); - - if (!eventListeners) addEventListeners(); - } - - var addEventListeners = function () { - eventListeners = true; - - noticeBanner.on('click', function () { - $(this).hide(); - }); - - iphone.on('click', function (e) { - e.preventDefault(); - }); - - navComponentLinks.click(function(e) { - e.stopPropagation(); - e.preventDefault(); - componentsList.toggleClass('active'); - }) - - doc.on('click', function () { - componentsList.removeClass('active'); - }) - - win.on('scroll', calculateScroll); - } - - var checkDesktopContent = function () { - windowWidth = $(window).width(); - if (windowWidth <= 768) { - var content = $('.content') - if (content.length > 1) { - $(content[0]).remove() - } - } - } - - var calculateScroll = function() { - // if small screen don't worry about this - if (windowWidth <= 768) return - - // Save scrollTop value - var contentSectionItem; - var currentTop = win.scrollTop(); - - // If page is scrolled to bottom near footers - if(pageHeight - currentTop < footerHeight + contentPadding + 1400) { - iphone[0].className = "iphone iphone-bottom"; - iphone[0].setAttribute('style','') - } else if((iphone.initialTop - currentTop) <= iphone.dockingOffset) { - iphone[0].className = "iphone iphone-fixed"; - iphone.css({top: iphone.dockingOffset}) - } else { - iphone[0].className = "iphone" - iphone[0].setAttribute('style','') - } - - // Injection of components into phone - for (var l = contentSection.length; l--;) { - if ((topCache[l] - currentTop) < windowHeight) { - if (currentActive == l) return; - currentActive = l; - bod.find('.component.active').removeClass('active'); - contentSectionItem = $(contentSection[l]) - contentSectionItem.addClass('active') - if(contentSectionItem.attr('id')) { - iphone.attr("id", contentSectionItem.attr('id') + "InPhone"); - } else { - iphone.attr("id", "") - } - if (!contentSectionItem.hasClass('informational')) { - updateContent(contentSectionItem.find('.prettyprint').not('.js').text()) - } - break - } - } - - function updateContent(content) { - $('#iwindow').html(content); - } - } - - $(window).on('load resize', initialize); - $(window).on('load', function () { new FingerBlast('.iphone-content'); }); -}); \ No newline at end of file diff --git a/docs/js/fingerblast.js b/docs/js/fingerblast.js deleted file mode 100644 index 58543c283..000000000 --- a/docs/js/fingerblast.js +++ /dev/null @@ -1,221 +0,0 @@ -// FINGERBLAST.js -// -------------- -// Adapted from phantom limb by brian cartensen - -function FingerBlast(element) { - this.element = typeof element == 'string' ? document.querySelector(element) : 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, index, descendant; - 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) { - if (e.synthetic || /input|textarea/.test(e.target.tagName.toLowerCase())) return; - - this.mouseIsDown = true; - - e.preventDefault(); - e.stopPropagation(); - - this.fireTouchEvents('touchstart', e); - }, - - touchMove: function (e) { - if (e.synthetic) return; - - e.preventDefault(); - e.stopPropagation(); - - this.move(e.clientX, e.clientY); - - if (this.mouseIsDown) this.fireTouchEvents('touchmove', e); - }, - - touchEnd: function (e) { - if (e.synthetic) return; - - this.mouseIsDown = false; - - e.preventDefault(); - e.stopPropagation(); - - this.fireTouchEvents('touchend', e); - - if (!this.target) return; - - // Mobile Safari moves all the mouse events to fire after the touchend event. - this.target.dispatchEvent(this.createMouseEvent('mouseover', e)); - this.target.dispatchEvent(this.createMouseEvent('mousemove', e)); - this.target.dispatchEvent(this.createMouseEvent('mousedown', e)); - }, - - fireTouchEvents: function (eventName, originalEvent) { - var events = []; - var gestures = []; - - if (!this.target) return; - - // Convert "ontouch*" properties and attributes to listeners. - var onEventName = 'on' + eventName; - - if (onEventName in this.target) { - console.warn('Converting `' + onEventName + '` property to event listener.', this.target); - this.target.addEventListener(eventName, this.target[onEventName], false); - delete this.target[onEventName]; - } - - if (this.target.hasAttribute(onEventName)) { - console.warn('Converting `' + onEventName + '` attribute to event listener.', this.target); - var handler = new GLOBAL.Function('event', this.target.getAttribute(onEventName)); - this.target.addEventListener(eventName, handler, false); - this.target.removeAttribute(onEventName); - } - - // Set up a new event with the coordinates of the finger. - var touch = this.createMouseEvent(eventName, originalEvent); - - events.push(touch); - - // Figure out scale and rotation. - if (events.length > 1) { - var x = events[0].pageX - events[1].pageX; - var y = events[0].pageY - events[1].pageY; - - var distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); - var angle = Math.atan2(x, y) * (180 / Math.PI); - - var gestureName = 'gesturechange'; - - if (eventName === 'touchstart') { - gestureName = 'gesturestart'; - this.startDistance = distance; - this.startAngle = angle; - } - - if (eventName === 'touchend') gestureName = 'gestureend'; - - events.forEach(function(event) { - var gesture = this.createMouseEvent.call(event._finger, gestureName, event); - gestures.push(gesture); - }.bind(this)); - - events.concat(gestures).forEach(function(event) { - event.scale = distance / this.startDistance; - event.rotation = this.startAngle - angle; - }); - } - - // Loop through the events array and fill in each touch array. - events.forEach(function(touch) { - touch.touches = events.filter(function(e) { - return ~e.type.indexOf('touch') && e.type !== 'touchend'; - }); - - touch.changedTouches = events.filter(function(e) { - return ~e.type.indexOf('touch') && e._finger.target === touch._finger.target; - }); - - touch.targetTouches = touch.changedTouches.filter(function(e) { - return ~e.type.indexOf('touch') && e.type !== 'touchend'; - }); - }); - - // Then fire the events. - events.concat(gestures).forEach(function(event, i) { - event.identifier = i; - event._finger.target.dispatchEvent(event); - }); - }, - - createMouseEvent: function (eventName, originalEvent) { - var e = document.createEvent('MouseEvent'); - - e.initMouseEvent(eventName, true, true, - originalEvent.view, originalEvent.detail, - this.x || originalEvent.screenX, this.y || originalEvent.screenY, - this.x || originalEvent.clientX, this.y || originalEvent.clientY, - originalEvent.ctrlKey, originalEvent.shiftKey, - originalEvent.altKey, originalEvent.metaKey, - originalEvent.button, this.target || originalEvent.relatedTarget - ); - - e.synthetic = true; - e._finger = this; - - return e; - }, - - move: function (x, y) { - if (isNaN(x) || isNaN(y)) { - this.target = null; - } else { - this.x = x; - this.y = y; - - if (!this.mouseIsDown) { - this.target = document.elementFromPoint(x, y); - } - } - } -}; \ No newline at end of file diff --git a/docs/js/prettify.js b/docs/js/prettify.js deleted file mode 100644 index eef5ad7e6..000000000 --- a/docs/js/prettify.js +++ /dev/null @@ -1,28 +0,0 @@ -var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= -[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c< -f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), -l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, -q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, -q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, -"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), -a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} -for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], -"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], -H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], -J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ -I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), -["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", -/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), -["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", -hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= -!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p - + - - - - - - - - - - - - - - - - - - + - + - +
+

Push

+
- \ No newline at end of file + diff --git a/docs/robots.txt b/docs/robots.txt new file mode 100644 index 000000000..aef3fa1f6 --- /dev/null +++ b/docs/robots.txt @@ -0,0 +1,9 @@ +--- +--- + +# www.robotstxt.org/ + +# Allow crawling of all content +User-agent: * +Disallow: +Sitemap: {{ site.url }}/sitemap.xml diff --git a/docs/sitemap.xml b/docs/sitemap.xml new file mode 100644 index 000000000..7c88008f9 --- /dev/null +++ b/docs/sitemap.xml @@ -0,0 +1,22 @@ +--- +--- + + + + + {{ site.url }}/ + {{ site.time | date_to_xmlschema }} + daily + 1.0 + + {% for page in site.html_pages %} + {% if page.layout != "home" %} + + {{ site.url }}{{ page.url }} + {{ site.time | date_to_xmlschema }} + weekly + 0.7 + + {% endif %} + {% endfor %} + diff --git a/docs/template.html b/docs/template.html new file mode 100644 index 000000000..6f854cef0 --- /dev/null +++ b/docs/template.html @@ -0,0 +1,68 @@ + + + + + Ratchet template page + + + + + + + + + + + + + + + + + + + + + +
+

Ratchet

+
+ + +
+

Thanks for downloading Ratchet. This is an example HTML page that's linked up to compiled Ratchet CSS and JS, has the proper meta tags and the HTML structure. Need some more help before you start filling this with your own content? Check out some Ratchet resources:

+ +
+ + + + + diff --git a/docs/two.html b/docs/two.html index aeb6b56f7..e060d210f 100644 --- a/docs/two.html +++ b/docs/two.html @@ -6,40 +6,26 @@ - + - - - - - - - - - - - - - - - - - - + - + - +
+ +

Page two

+
- \ No newline at end of file + diff --git a/fonts/ratchicons.eot b/fonts/ratchicons.eot new file mode 100644 index 000000000..536e57258 Binary files /dev/null and b/fonts/ratchicons.eot differ diff --git a/fonts/ratchicons.svg b/fonts/ratchicons.svg new file mode 100644 index 000000000..3abf5dd10 --- /dev/null +++ b/fonts/ratchicons.svg @@ -0,0 +1,61 @@ + + + +Copyright (C) 2014 by original authors @ fontello.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/ratchicons.ttf b/fonts/ratchicons.ttf new file mode 100644 index 000000000..927eb58c3 Binary files /dev/null and b/fonts/ratchicons.ttf differ diff --git a/fonts/ratchicons.woff b/fonts/ratchicons.woff new file mode 100644 index 000000000..25f1e75af Binary files /dev/null and b/fonts/ratchicons.woff differ diff --git a/grunt/ratchicons-data-generator.js b/grunt/ratchicons-data-generator.js new file mode 100644 index 000000000..0cf07ec2b --- /dev/null +++ b/grunt/ratchicons-data-generator.js @@ -0,0 +1,44 @@ +/*! + * Ratchet Grunt task for Ratchicons data generation + * http://goratchet.com + * Original script from Bootstrap (http://getbootstrap.com). + * Bootstrap is copyright 2015 Twitter, Inc. and licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE). + */ + +/* jshint node: true */ + +'use strict'; + +var fs = require('fs'); + +module.exports = function generateRatchiconsData(grunt) { + // Pass encoding, utf8, so `readFileSync` will return a string instead of a + // buffer + var ratchiconsFile = fs.readFileSync('sass/ratchicons.scss', 'utf8'); + var ratchiconsLines = ratchiconsFile.split('\n'); + + // Use any line that starts with ".icon-" and capture the class name + var iconClassName = /^\.(icon-[^\s]+)/; + var ratchiconsData = '# This file is generated via Grunt task. **Do not edit directly.**\n' + + '# See the \'build-ratchicons-data\' task in Gruntfile.js.\n\n'; + var ratchiconsYml = 'docs/_data/ratchicons.yml'; + for (var i = 0, len = ratchiconsLines.length; i < len; i++) { + var match = ratchiconsLines[i].match(iconClassName); + + if (match !== null) { + ratchiconsData += '- ' + match[1] + '\n'; + } + } + + // Create the `_data` directory if it doesn't already exist + if (!fs.existsSync('docs/_data')) { + fs.mkdirSync('docs/_data'); + } + + try { + fs.writeFileSync(ratchiconsYml, ratchiconsData); + } catch (err) { + grunt.fail.warn(err); + } + grunt.log.writeln('File ' + ratchiconsYml.cyan + ' created.'); +}; diff --git a/js/.jscsrc b/js/.jscsrc new file mode 100644 index 000000000..0c1ff89dc --- /dev/null +++ b/js/.jscsrc @@ -0,0 +1,49 @@ +{ + "disallowEmptyBlocks": true, + "disallowKeywords": ["with"], + "disallowMixedSpacesAndTabs": true, + "disallowMultipleLineStrings": true, + "disallowMultipleVarDecl": true, + "disallowQuotedKeysInObjects": "allButReserved", + "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], + "disallowSpaceBeforeBinaryOperators": [","], + "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], + //"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true }, + "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, + "disallowSpacesInsideArrayBrackets": true, + "disallowSpacesInsideParentheses": true, + "disallowTrailingComma": true, + "disallowTrailingWhitespace": true, + //"requireBlocksOnNewline": true, + "requireCamelCaseOrUpperCaseIdentifiers": true, + "requireCapitalizedConstructors": true, + "requireCommaBeforeLineBreak": true, + "requireCurlyBraces": true, + //"requireDollarBeforejQueryAssignment": true, + "requireDotNotation": true, + "requireLineFeedAtFileEnd": true, + "requirePaddingNewLinesAfterUseStrict": true, + "requirePaddingNewLinesBeforeExport": true, + "requireParenthesesAroundIIFE": true, + "requireSemicolons": true, + "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], + "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], + "requireSpaceAfterLineComment": true, + "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], + "requireSpaceBeforeBlockStatements": true, + "requireSpaceBetweenArguments": true, + "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true }, + "requireSpacesInConditionalExpression": true, + //"requireSpacesInForStatement": true, + "requireSpacesInFunction": { "beforeOpeningCurlyBrace": true }, + "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true }, + "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true }, + "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true }, + "requireSpacesInsideObjectBrackets": "allButNested", + "validateAlignedFunctionParameters": true, + "validateIndentation": 2, + "validateLineBreaks": "LF", + "validateNewlineAfterArrayElements": true, + "validateParameterSeparator": ", ", + "validateQuoteMarks": "'" +} diff --git a/js/.jshintrc b/js/.jshintrc new file mode 100644 index 000000000..12afd2073 --- /dev/null +++ b/js/.jshintrc @@ -0,0 +1,14 @@ +{ + "bitwise" : true, + "browser" : true, + "devel" : true, + "eqeqeq" : true, + "expr" : true, + "forin" : true, + "freeze" : true, + "latedef" : false, + "nonbsp" : true, + "strict" : true, + "undef" : true, + "unused" : true +} diff --git a/js/common.js b/js/common.js new file mode 100755 index 000000000..eb462d5ed --- /dev/null +++ b/js/common.js @@ -0,0 +1,57 @@ +/* ======================================================================== + * 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; + })(); +}()); diff --git a/js/modals.js b/js/modals.js new file mode 100644 index 000000000..0012ca1df --- /dev/null +++ b/js/modals.js @@ -0,0 +1,53 @@ +/* ======================================================================== + * 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) + } + }); +}()); diff --git a/js/popovers.js b/js/popovers.js new file mode 100644 index 000000000..dc87b2b9c --- /dev/null +++ b/js/popovers.js @@ -0,0 +1,86 @@ +/* ======================================================================== + * 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); + +}()); diff --git a/lib/js/push.js b/js/push.js similarity index 51% rename from lib/js/push.js rename to js/push.js index 3a48c54c1..79ea23ad5 100644 --- a/lib/js/push.js +++ b/js/push.js @@ -1,40 +1,48 @@ -/* ---------------------------------- - * PUSH v1.0.0 - * Licensed under The MIT License - * inspired by chris's jquery.pjax.js - * http://opensource.org/licenses/MIT - * ---------------------------------- */ +/* ======================================================================== + * 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) + * ======================================================================== */ -!function () { +/* global _gaq: true */ + +!(function () { + 'use strict'; var noop = function () {}; - // Pushstate cacheing + // 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' + fade : 'fade' }; + var bars = { bartab : '.bar-tab', - bartitle : '.bar-title', + 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); + if (updates) { + data = getCached(data.id); + } cacheMapping[data.id] = JSON.stringify(data); window.history.replaceState(data.id, data.title, data.url); - domCache[data.id] = document.body.cloneNode(true); }; var cachePush = function () { @@ -45,23 +53,31 @@ cacheBackStack.push(id); - while (cacheForwardStack.length) delete cacheMapping[cacheForwardStack.shift()]; - while (cacheBackStack.length > maxCacheLength) delete cacheMapping[cacheBackStack.shift()]; + while (cacheForwardStack.length) { + delete cacheMapping[cacheForwardStack.shift()]; + } + while (cacheBackStack.length > maxCacheLength) { + delete cacheMapping[cacheBackStack.shift()]; + } - window.history.pushState(null, '', cacheMapping[PUSH.id].url); + 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 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); + if (PUSH.id) { + pushStack.push(PUSH.id); + } popStack.pop(); cacheMapping.cacheForwardStack = JSON.stringify(cacheForwardStack); @@ -75,18 +91,16 @@ 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; + 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; }; @@ -98,7 +112,9 @@ var touchend = function (e) { var target = getTarget(e); - if (!target) return; + if (!target) { + return; + } e.preventDefault(); @@ -121,7 +137,9 @@ var transitionFromObj; var id = e.state; - if (!id || !cacheMapping[id]) return; + if (!id || !cacheMapping[id]) { + return; + } direction = PUSH.id < id ? 'forward' : 'back'; @@ -130,18 +148,22 @@ activeObj = getCached(id); activeDom = domCache[id]; - if (activeObj.title) document.title = activeObj.title; + if (activeObj.title) { + document.title = activeObj.title; + } - if (direction == 'back') { - transitionFrom = JSON.parse(direction == 'back' ? cacheMapping.cacheForwardStack : cacheMapping.cacheBackStack); + 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; + if (direction === 'back' && !transitionFromObj.id) { + return (PUSH.id = id); + } - transition = direction == 'back' ? transitionMap[transitionFromObj.transition] : transitionFromObj.transition; + transition = direction === 'back' ? transitionMap[transitionFromObj.transition] : transitionFromObj.transition; if (!activeDom) { return PUSH({ @@ -157,16 +179,23 @@ if (transitionFromObj.transition) { activeObj = extendWithDom(activeObj, '.content', activeDom.cloneNode(true)); for (key in bars) { - barElement = document.querySelector(bars[key]) - if (activeObj[key]) swapContent(activeObj[key], barElement); - else if (barElement) barElement.parentNode.removeChild(barElement); + 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 + transition, function () { + triggerStateChange(); + } ); PUSH.id = id; @@ -180,48 +209,79 @@ var PUSH = function (options) { var key; - var data = {}; - var xhr = PUSH.xhr; + 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) { - options[key] = options[key] || document.querySelector(bars[key]); + if (bars.hasOwnProperty(key)) { + options[key] = options[key] || document.querySelector(bars[key]); + } } if (xhr && xhr.readyState < 4) { xhr.onreadystatechange = noop; - xhr.abort() + xhr.abort(); } xhr = new XMLHttpRequest(); - xhr.open('GET', options.url, true); - xhr.setRequestHeader('X-PUSH', 'true'); - - xhr.onreadystatechange = function () { - if (options._timeout) clearTimeout(options._timeout); - if (xhr.readyState == 4) xhr.status == 200 ? success(xhr, options) : failure(options.url); - }; + if (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, + id : +new Date(), url : window.location.href, title : document.title, timeout : options.timeout, - transition : null + transition : options.transition }); } + cacheCurrentContent(); + if (options.timeout) { options._timeout = setTimeout(function () { xhr.abort('timeout'); }, options.timeout); } xhr.send(); - if (xhr.readyState && !options.ignorePush) cachePush(); + 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 // ================= @@ -231,21 +291,30 @@ var barElement; var data = parseXHR(xhr, options); - if (!data.contents) return locationReplace(options.url); + if (!data.contents) { + return locationReplace(options.url); + } - if (data.title) document.title = data.title; + if (data.title) { + document.title = data.title; + } if (options.transition) { for (key in bars) { - barElement = document.querySelector(bars[key]) - if (data[key]) swapContent(data[key], barElement); - else if (barElement) barElement.parentNode.removeChild(barElement); + 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, + id : options.id || +new Date(), url : data.url, title : data.title, timeout : options.timeout, @@ -254,12 +323,16 @@ triggerStateChange(); }); - if (!options.ignorePush && window._gaq) _gaq.push(['_trackPageview']) // google analytics - if (!options.hash) return; + 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) + throw new Error('Could not get: ' + url); }; @@ -272,63 +345,75 @@ 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')); + 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); + enter = /in$/.test(transition); - if (transition == 'fade') { + if (transition === 'fade') { container.classList.add('in'); container.classList.add('fade'); swap.classList.add('fade'); } if (/slide/.test(transition)) { - swap.classList.add(enter ? 'right' : 'left'); - swap.classList.add('slide'); - container.classList.add('slide'); + swap.classList.add('sliding-in', enter ? 'right' : 'left'); + swap.classList.add('sliding'); + container.classList.add('sliding'); } container.parentNode.insertBefore(swap, container); } - if (!transition) complete && complete(); + if (!transition) { + if (complete) { + complete(); + } + } - if (transition == 'fade') { + if (transition === 'fade') { container.offsetWidth; // force reflow container.classList.remove('in'); - container.addEventListener('webkitTransitionEnd', fadeContainerEnd); - - function fadeContainerEnd() { - container.removeEventListener('webkitTransitionEnd', fadeContainerEnd); + var fadeContainerEnd = function () { + container.removeEventListener(window.RATCHET.getTransitionEnd, fadeContainerEnd); swap.classList.add('in'); - swap.addEventListener('webkitTransitionEnd', fadeSwapEnd); - } - function fadeSwapEnd () { - swap.removeEventListener('webkitTransitionEnd', fadeSwapEnd); + 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'); - complete && complete(); - } + 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' + swapDirection = enter ? 'right' : 'left'; + containerDirection = enter ? 'left' : 'right'; container.classList.add(containerDirection); swap.classList.remove(swapDirection); - swap.addEventListener('webkitTransitionEnd', slideEnd); - - function slideEnd() { - swap.removeEventListener('webkitTransitionEnd', slideEnd); - swap.classList.remove('slide'); - swap.classList.remove(swapDirection); - container.parentNode.removeChild(container); - complete && complete(); - } + swap.addEventListener(window.RATCHET.getTransitionEnd, slideEnd); } }; @@ -343,9 +428,15 @@ }; var findTarget = function (target) { - var i, toggles = document.querySelectorAll('a'); + 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; } + for (i = toggles.length; i--;) { + if (toggles[i] === target) { + return target; + } + } } }; @@ -354,19 +445,21 @@ window.location.replace(url); }; - var parseURL = function (url) { - var a = document.createElement('a'); a.href = url; return a; - }; - var extendWithDom = function (obj, fragment, dom) { var i; - var result = {}; + var result = {}; - for (i in obj) result[i] = obj[i]; + 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); + if (el) { + el.parentNode.removeChild(el); + } result[key] = el; }); @@ -383,23 +476,29 @@ data.url = options.url; - if (!responseText) return data; + if (!responseText) { + return data; + } if (/]*>([\s\S.]*)<\/head>/i)[0] - body.innerHTML = responseText.match(/]*>([\s\S.]*)<\/body>/i)[0] + head.innerHTML = responseText.match(/]*>([\s\S.]*)<\/head>/i)[0]; + body.innerHTML = responseText.match(/]*>([\s\S.]*)<\/body>/i)[0]; } else { head = body = document.createElement('div'); head.innerHTML = responseText; } - data.title = head.querySelector('title'); - data.title = data.title && data.title.innerText.trim(); + 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; + if (options.transition) { + data = extendWithDom(data, '.content', body); + } else { + data.contents = body; + } return data; }; @@ -409,9 +508,17 @@ // ========================== window.addEventListener('touchstart', function () { isScrolling = false; }); - window.addEventListener('touchmove', function () { isScrolling = true; }) + window.addEventListener('touchmove', function () { isScrolling = true; }); window.addEventListener('touchend', touchend); - window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); }); + window.addEventListener('click', function (e) { + if (getTarget(e)) { + e.preventDefault(); + } + }); window.addEventListener('popstate', popstate); -}(); \ No newline at end of file + // TODO : Remove this line in the next major version + window.PUSH = PUSH; + window.RATCHET.push = PUSH; + +}()); diff --git a/js/segmented-controllers.js b/js/segmented-controllers.js new file mode 100644 index 000000000..ca3b5b4cb --- /dev/null +++ b/js/segmented-controllers.js @@ -0,0 +1,70 @@ +/* ======================================================================== + * 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(); + } + }); + +}()); diff --git a/js/sliders.js b/js/sliders.js new file mode 100644 index 000000000..553d23274 --- /dev/null +++ b/js/sliders.js @@ -0,0 +1,147 @@ +/* ======================================================================== + * 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); + +}()); diff --git a/js/tests/.jshintrc b/js/tests/.jshintrc new file mode 100755 index 000000000..245a40623 --- /dev/null +++ b/js/tests/.jshintrc @@ -0,0 +1,5 @@ +{ + "devel" : true, + "es3" : false, + "jasmine" : true +} diff --git a/js/tests/SpecRunner.html b/js/tests/SpecRunner.html new file mode 100755 index 000000000..3eea7be4c --- /dev/null +++ b/js/tests/SpecRunner.html @@ -0,0 +1,69 @@ + + + + + Jasmine Spec Runner + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/js/tests/commonSpec.js b/js/tests/commonSpec.js new file mode 100755 index 000000000..ccc19f1f7 --- /dev/null +++ b/js/tests/commonSpec.js @@ -0,0 +1,20 @@ +describe('Common', function () { + it('RATCHET namespace is defined', function () { + expect(typeof RATCHET !== 'undefined').toBe(true); + }); + + it('window.CustomEvent exists', function () { + expect(typeof window.CustomEvent !== 'undefined').toBe(true); + }); + + it('RATCHET.getBrowserCapabilities returns an object', function () { + var result = RATCHET.getBrowserCapabilities; + expect(typeof result === 'object').toBe(true); + }); + + it('RATCHET.getTransitionEnd returns string', function () { + var result = RATCHET.getTransitionEnd; + expect(typeof result === 'string').toBe(true); + expect(result.length > 0).toBe(true); + }); +}); diff --git a/js/tests/modalsSpec.js b/js/tests/modalsSpec.js new file mode 100755 index 000000000..c1c2b8563 --- /dev/null +++ b/js/tests/modalsSpec.js @@ -0,0 +1,52 @@ +describe('Modals', function () { + beforeEach(function () { + var templateModal = [ + 'Open modal', + '' + ].join(''); + document.body.innerHTML += templateModal; + }); + + afterEach(function () { + var linkModal = document.getElementById('linkOpenModal'); + var modal = document.getElementById('myModal'); + linkModal.parentNode.removeChild(linkModal); + modal.parentNode.removeChild(modal); + }); + + it('Modal should fire modalOpen event', function (done) { + window.addEventListener('modalOpen', function () { + expect(true).toBe(true); + done(); + }); + var link = document.getElementById('linkOpenModal'); + var eventTouchEnd = new CustomEvent('touchend', { + bubbles: true, + cancelable: true + }); + link.dispatchEvent(eventTouchEnd); + }); + + it('Modal should fire modalClose event', function (done) { + var link = document.getElementById('linkOpenModal'); + var eventTouchEnd = new CustomEvent('touchend', { + bubbles: true, + cancelable: true + }); + window.addEventListener('modalClose', function () { + expect(true).toBe(true); + done(); + }); + link.dispatchEvent(eventTouchEnd); + var closeLink = document.getElementById('linkCloseModal'); + closeLink.dispatchEvent(eventTouchEnd); + }); +}); diff --git a/js/tests/sliderSpec.js b/js/tests/sliderSpec.js new file mode 100755 index 000000000..938678fc5 --- /dev/null +++ b/js/tests/sliderSpec.js @@ -0,0 +1,32 @@ +describe('Slider', function () { + var slider = null; + beforeEach(function () { + var templateSlider = [ + '
', + '
', + '
', + '', + '
', + '
', + '', + '
', + '
', + '
' + ].join(''); + document.body.innerHTML += templateSlider; + slider = document.getElementById('mySlider'); + }); + + afterEach(function () { + slider.parentNode.removeChild(slider); + slider = null; + }); + + it('Slider should fire slide event', function (done) { + slider.addEventListener('slide', function () { + expect(true).toBe(true); + done(); + }); + TouchFaker.fakeEvent('touchstart', '#firstSlide'); + }); +}); diff --git a/js/tests/vendor/touchfaker.min.js b/js/tests/vendor/touchfaker.min.js new file mode 100755 index 000000000..e364a5482 --- /dev/null +++ b/js/tests/vendor/touchfaker.min.js @@ -0,0 +1,6 @@ +/*! + * TouchFaker - v1.1.0 - 2015-05-21 + * https://github.com/Johann-S/TouchFaker + * Copyright (c) 2015 Johann SERVOIRE; Licensed MIT + */ +!function(){"use strict";function a(a,b,c,d,e){d=d||0,e=e||0,this.identifier=b,this.target=a,this.clientX=c.clientX+d||0,this.clientY=c.clientY+e||0,this.screenX=c.screenX+d||0,this.screenY=c.screenY+e||0,this.pageX=c.pageX+d||0,this.pageY=c.pageY+e||0}function b(){var a=[];return a.item=function(a){return this[a]||null},a.identifiedTouch=function(a){return this[a+1]||null},a}function c(){for(var a=[window,document.documentElement],b=["ontouchstart","ontouchmove","ontouchcancel","ontouchend"],c=0;c2}function e(a,b,c){var d=document.createEvent("Event");d.initEvent(a,!0,!0);var e="undefined"!=typeof c?g(c):f(b);d.touches=i(e,a,b),d.targetTouches=i(e,a,b),d.changedTouches=j(e,a,b),b.dispatchEvent(d)}function f(a){var b=a.getBoundingClientRect();return{pageX:b.left,pageY:b.top}}function g(a){var b={};return b.clientX=a.hasOwnProperty("clientX")?a.clientX:0,b.clientY=a.hasOwnProperty("clientY")?a.clientY:0,b.pageX=a.hasOwnProperty("pageX")?a.pageX:0,b.pageY=a.hasOwnProperty("pageY")?a.pageY:0,b.screenX=a.hasOwnProperty("screenX")?a.screenX:0,b.screenY=a.hasOwnProperty("screenY")?a.screenY:0,b}function h(c,d){var e=new b;return e.push(new a(d,1,c,0,0)),e}function i(a,c,d){var e=new b;return"touchend"!==c&&(e=h(a,d)),e}function j(a,b,c){var d=h(a,c);return("touchstart"===b||"touchend"===b)&&d.splice(0,1),d}document.createTouch||(document.createTouch=function(b,c,d,e,f,g,h,i,j){return(void 0===i||void 0===j)&&(i=e-window.pageXOffset,j=f-window.pageYOffset),new a(c,d,{pageX:e,pageY:f,screenX:g,screenY:h,clientX:i,clientY:j})}),document.createTouchList||(document.createTouchList=function(){for(var a=new b,c=0;c 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; + }); + +}()); diff --git a/lib/css/bars.css b/lib/css/bars.css deleted file mode 100644 index 283a16fc5..000000000 --- a/lib/css/bars.css +++ /dev/null @@ -1,332 +0,0 @@ -/* General bar styles --------------------------------------------------- */ - -[class*="bar-"] { - position: fixed; - right: 0; - left: 0; - z-index: 10; - height: 44px; - padding: 5px; - box-sizing: border-box; -} - -/* Modifier class to dock any bar below .bar-title */ -.bar-header-secondary { - top: 45px; -} - -/* Modifier class to dock any bar to bottom of viewport */ -.bar-footer { - bottom: 0; -} - -/* Generic bar for wrapping buttons, segmented controllers, etc. */ -.bar-standard { - background-color: #f2f2f2; - background-image: -webkit-linear-gradient(top, #f2f2f2 0, #e5e5e5 100%); - background-image: linear-gradient(to bottom, #f2f2f2 0, #e5e5e5 100%); - border-bottom: 1px solid #aaa; - box-shadow: inset 0 1px 1px -1px #fff; -} - -/* Flip border position to top for footer bars */ -.bar-footer.bar-standard, -.bar-footer-secondary.bar-standard { - border-top: 1px solid #aaa; - border-bottom-width: 0; -} - -/* Title bar --------------------------------------------------- */ - -/* Bar docked to top of viewport for showing page title and actions */ -.bar-title { - top: 0; - display: -webkit-box; - display: box; - background-color: #1eb0e9; - background-image: -webkit-linear-gradient(top, #1eb0e9 0, #109adc 100%); - background-image: linear-gradient(to bottom, #1eb0e9 0, #109adc 100%); - border-bottom: 1px solid #0e5895; - box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .8); - -webkit-box-orient: horizontal; - box-orient: horizontal; -} - -/* Centered text in the .bar-title */ -.bar-title .title { - position: absolute; - top: 0; - left: 0; - display: block; - width: 100%; - font-size: 20px; - font-weight: bold; - line-height: 44px; - color: #fff; - text-align: center; - text-shadow: 0 -1px rgba(0, 0, 0, .5); - white-space: nowrap; -} - -.bar-title > a:not([class*="button"]) { - display: block; - width: 100%; - height: 100%; -} - -/* Retain specified title color */ -.bar-title .title a { - color: inherit; -} - -/* Tab bar --------------------------------------------------- */ - -/* Bar docked to bottom used for primary app navigation */ -.bar-tab { - bottom: 0; - height: 50px; - padding: 0; - background-color: #393939; - background-image: -webkit-linear-gradient(top, #393939 0, #2b2b2b 100%); - background-image: linear-gradient(to bottom, #393939 0, #2b2b2b 100%); - border-top: 1px solid #000; - border-bottom-width: 0; - box-shadow: inset 0 1px 1px -1px rgba(255, 255, 255, .6); -} - -/* Wrapper for individual tab */ -.tab-inner { - display: -webkit-box; - display: box; - height: 100%; - list-style: none; - -webkit-box-orient: horizontal; - box-orient: horizontal; -} - -/* Navigational tab */ -.tab-item { - height: 100%; - padding-top: 9px; - text-align: center; - box-sizing: border-box; - -webkit-box-flex: 1; - box-flex: 1; -} - -/* Active state for tab */ -.tab-item.active { - box-shadow: inset 0 0 20px rgba(0, 0, 0, .5); -} - -/* Icon for tab */ -.tab-icon { - display: block; - height: 18px; - margin: 0 auto; -} - -/* Label for tab */ -.tab-label { - margin-top: 1px; - font-size: 10px; - font-weight: bold; - color: #fff; - text-shadow: 0 1px rgba(0, 0, 0, .3); -} - -/* Buttons in title bars --------------------------------------------------- */ - -/* Generic style for all buttons in .bar-title */ -.bar-title [class*="button"] { - position: relative; - z-index: 10; /* Places buttons over full width title */ - font-size: 12px; - line-height: 23px; - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); - background-color: #1eb0e9; - background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%); - background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%); - border: 1px solid #0e5895; - box-shadow: 0 1px rgba(255, 255, 255, .25); - -webkit-box-flex: 0; - box-flex: 0; -} - - -/* Hacky way to right align buttons outside of flex-box system - Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */ -.bar-title .title + [class*="button"]:last-child, -.bar-title .button + [class*="button"]:last-child, -.bar-title [class*="button"].pull-right { - position: absolute; - top: 5px; - right: 5px; -} - -/* Override standard button active states */ -.bar-title .button:active { - color: #fff; - background-color: #0876b1; -} - -/* Directional buttons in title bars (thanks to @GregorAdams for solution - http://cssnerd.com/2011/11/30/the-best-pure-css3-ios-style-arrow-back-button/) --------------------------------------------------- */ - -/* Add relative positioning so :before content is positioned properly */ -.bar-title .button-prev, -.bar-title .button-next { - position: relative; -} - -/* Prev/next button base styles */ -.bar-title .button-prev { - margin-left: 7px; /* Push over to make room for :before content */ - border-left: 0; - border-bottom-left-radius: 10px 15px; - border-top-left-radius: 10px 15px; -} -.bar-title .button-next { - margin-right: 7px; /* Push over to make room for :before content */ - border-right: 0; - border-top-right-radius: 10px 15px; - border-bottom-right-radius: 10px 15px; -} - -/* Pointed part of directional button */ -.bar-title .button-prev:before, -.bar-title .button-next:before { - position: absolute; - top: 2px; - width: 27px; - height: 27px; - border-radius: 30px 100px 2px 40px / 2px 40px 30px 100px; - content: ''; - box-shadow: inset 1px 0 #0e5895, inset 0 1px #0e5895; - -webkit-mask-image: -webkit-gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); - mask-image: gradient(linear, left top, right bottom, from(#000), color-stop(.33, #000), color-stop(.5, transparent), to(transparent)); -} -.bar-title .button-prev:before { - left: -5px; - background-image: -webkit-gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); - background-image: gradient(linear, left bottom, right top, from(#0984c6), to(#1eb0e9)); - border-left: 1.5px solid rgba(255, 255, 255, .25); - -webkit-transform: rotate(-45deg) skew(-10deg, -10deg); - transform: rotate(-45deg) skew(-10deg, -10deg); -} -.bar-title .button-next:before { - right: -5px; - background-image: -webkit-gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); - background-image: gradient(linear, left bottom, right top, from(#1eb0e9), to(#0984c6)); - border-top: 1.5px solid rgba(255, 255, 255, .25); - -webkit-transform: rotate(135deg) skew(-10deg, -10deg); - transform: rotate(135deg) skew(-10deg, -10deg); -} - -/* Active states for the directional buttons */ -.bar-title .button-prev:active, -.bar-title .button-next:active, -.bar-title .button-prev:active:before, -.bar-title .button-next:active:before { - color: #fff; - background-color: #0876b1; - background-image: none; -} -.bar-title .button-prev:active:before, -.bar-title .button-next:active:before { - content: ''; -} -.bar-title .button-prev:active:before { - box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2); -} -.bar-title .button-next:active:before { - box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .2); -} - -/* Block buttons in any bar --------------------------------------------------- */ - -/* Add proper padding and replace buttons normal dropshadow with a shine from bar */ -[class*="bar"] .button-block { - padding: 7px 0; - margin-bottom: 0; - box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px rgba(255, 255, 255, .8); -} - -/* Override standard padding changes for .button-blocks */ -[class*="bar"] .button-block:active { - padding: 7px 0; -} - -/* Segmented controller in any bar --------------------------------------------------- */ - -/* Remove standard segmented bottom margin */ -[class*="bar-"] .segmented-controller { - margin-bottom: 0; -} - -/* Add margins between segmented controllers and buttons */ -[class*="bar-"] .segmented-controller + [class*="button"], -[class*="bar-"] [class*="button"] + .segmented-controller { - margin-left: 5px; -} - -/* Segmented controller in a title bar --------------------------------------------------- */ - -.bar-title .segmented-controller { - line-height: 18px; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); - background-color: #1eb0e9; - background-image: -webkit-linear-gradient(top, #1eb0e9 0, #0984c6 100%); - background-image: linear-gradient(to bottom, #1eb0e9 0, #0984c6 100%); - border: 1px solid #0e5895; - border-radius: 3px; - box-shadow: 0 1px rgba(255, 255, 255, .25); - -webkit-box-flex: 1; - box-flex: 1; -} - -/* Set color for tab border and highlight */ -.bar-title .segmented-controller li { - border-left: 1px solid #0e5895; - box-shadow: inset 1px 0 rgba(255, 255, 255, .25); -} - -/* Remove inset shadow from first tab or one to the right of the active tab */ -.bar-title .segmented-controller .active + li, -.bar-title .segmented-controller li:first-child { - box-shadow: none; -} - -/* Remove left-hand border from first tab */ -.bar-title .segmented-controller li:first-child { - border-left-width: 0; -} - -/* Depressed state (active) */ -.bar-title .segmented-controller li.active { - background-color: #0082c4; - box-shadow: inset 0 1px 6px rgba(0, 0, 0, .3); -} - -/* Set color of links to white */ -.bar-title .segmented-controller li > a { - color: #fff; -} - - -/* Search forms in standard bar --------------------------------------------------- */ - -/* Position/size search bar within the bar */ -.bar-standard input[type=search] { - height: 32px; - margin: 0; -} \ No newline at end of file diff --git a/lib/css/base.css b/lib/css/base.css deleted file mode 100644 index 7d2f817d5..000000000 --- a/lib/css/base.css +++ /dev/null @@ -1,153 +0,0 @@ -/* Hard reset --------------------------------------------------- */ - -html, -body, -div, -span, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -img, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -b, -u, -i, -center, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -article, -aside, -canvas, -details, -embed, -figure, -figcaption, -footer, -header, -hgroup, -menu, -nav, -output, -section, -summary, -time, -audio, -video { - padding: 0; - margin: 0; - border: 0; -} - -/* Prevents iOS text size adjust after orientation change, without disabling (Thanks to @necolas) */ -html { - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -/* Base styles --------------------------------------------------- */ - -body { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - font: 14px/1.25 "Helvetica Neue", sans-serif; - color: #222; - background-color: #fff; -} - -/* Universal link styling */ -a { - color: #0882f0; - text-decoration: none; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Removes the dark touch outlines on links */ -} - -/* Wrapper to be used around all content not in .bar-title and .bar-tab */ -.content { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - overflow: auto; - background-color: #fff; - -webkit-transition-property: top, bottom; - transition-property: top, bottom; - -webkit-transition-duration: .2s, .2s; - transition-duration: .2s, .2s; - -webkit-transition-timing-function: linear, linear; - transition-timing-function: linear, linear; - -webkit-overflow-scrolling: touch; -} - -/* Hack to force all relatively and absolutely positioned elements still render while scrolling - Note: This is a bug for "-webkit-overflow-scrolling: touch" */ -.content > * { - -webkit-transform: translateZ(0px); - transform: translateZ(0px); -} - -/* Utility wrapper to pad in components like forms, block buttons and segmented-controllers so they're not full-bleed */ -.content-padded { - padding: 10px; -} - -/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab. - Note: For these to work, content must come after both bars in the markup */ -.bar-title ~ .content { - top: 44px; -} -.bar-tab ~ .content { - bottom: 51px; -} -.bar-header-secondary ~ .content { - top: 88px; -} \ No newline at end of file diff --git a/lib/css/buttons.css b/lib/css/buttons.css deleted file mode 100644 index 153f55966..000000000 --- a/lib/css/buttons.css +++ /dev/null @@ -1,121 +0,0 @@ -/* General button styles --------------------------------------------------- */ - -[class*="button"] { - position: relative; - display: inline-block; - padding: 4px 12px; - margin: 0; - font-weight: bold; - line-height: 18px; - color: #333; - text-align: center; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - vertical-align: top; - cursor: pointer; - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%); - border: 1px solid rgba(0, 0, 0, .3); - border-radius: 3px; - box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05); -} - -/* Active */ -[class*="button"]:active { - padding-top: 5px; - padding-bottom: 3px; - color: #333; - background-color: #ccc; - background-image: none; - box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2); -} - -/* Button modifiers --------------------------------------------------- */ - -/* Overriding styles for buttons with modifiers */ -.button-main, -.button-positive, -.button-negative { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); -} - -/* Main button */ -.button-main { - background-color: #1eafe7; - background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%); - background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%); - border: 1px solid #117aaa; -} - -/* Positive button */ -.button-positive { - background-color: #34ba15; - background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%); - background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%); - border: 1px solid #278f0f; -} - -/* Negative button */ -.button-negative { - background-color: #e71e1e; - background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%); - background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%); - border: 1px solid #b51a1a; -} - -/* Active state for buttons with modifiers */ -.button-main:active, -.button-positive:active, -.button-negative:active { - color: #fff; -} -.button-main:active { - background-color: #0876b1; -} -.button-positive:active { - background-color: #298f11; -} -.button-negative:active { - background-color: #b21a1a; -} - -/* Block level buttons (full width buttons) */ -.button-block { - display: block; - padding: 11px 0 13px; - margin-bottom: 10px; - font-size: 16px; -} - -/* Active state for block level buttons */ -.button-block:active { - padding: 12px 0; -} - -/* Counts in buttons --------------------------------------------------- */ - -/* Generic styles for all counts within buttons */ -[class*="button"] [class*="count"] { - padding-top: 2px; - padding-bottom: 2px; - margin-right: -4px; - margin-left: 4px; - text-shadow: none; - background-color: rgba(0, 0, 0, .2); - box-shadow: inset 0 1px 1px -1px #000000, 0 1px 1px -1px #fff; -} - -/* Position counts within block level buttons - Note: These are absolutely positioned so that text of button isn't "pushed" by count and always - stays at true center of button */ -.button-block [class*="count"] { - position: absolute; - right: 0; - padding-top: 4px; - padding-bottom: 4px; - margin-right: 10px; -} \ No newline at end of file diff --git a/lib/css/chevrons.css b/lib/css/chevrons.css deleted file mode 100644 index e0a6120df..000000000 --- a/lib/css/chevrons.css +++ /dev/null @@ -1,30 +0,0 @@ -/* Chevrons --------------------------------------------------- */ - -.chevron { - display: block; - height: 20px; -} - -/* Base styles for both 1/2's of the chevron */ -.chevron:before, -.chevron:after { - position: relative; - display: block; - width: 12px; - height: 4px; - background-color: #999; - content: ''; -} - -/* Position and rotate respective 1/2's of the chevron */ -.chevron:before { - top: 5px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); -} -.chevron:after { - top: 7px; - -webkit-transform: rotate(-45deg); - transform: rotate(-45deg); -} \ No newline at end of file diff --git a/lib/css/counts.css b/lib/css/counts.css deleted file mode 100644 index 50da0cd20..000000000 --- a/lib/css/counts.css +++ /dev/null @@ -1,45 +0,0 @@ -/* General count styles --------------------------------------------------- */ - -[class*="count"] { - display: inline-block; - padding: 4px 9px; - font-size: 12px; - font-weight: bold; - line-height: 13px; - color: #fff; - background-color: rgba(0, 0, 0, .3); - border-radius: 100px; -} - -/* Count modifiers --------------------------------------------------- */ - -/* Overriding styles for counts with modifiers */ -.count-main, -.count-positive, -.count-negative { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); -} - -/* Main count */ -.count-main { - background-color: #1eafe7; - background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%); - background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%); -} - -/* Positive count */ -.count-positive { - background-color: #34ba15; - background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%); - background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%); -} - -/* Negative count */ -.count-negative { - background-color: #e71e1e; - background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%); - background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%); -} \ No newline at end of file diff --git a/lib/css/forms.css b/lib/css/forms.css deleted file mode 100644 index e2bf4e86d..000000000 --- a/lib/css/forms.css +++ /dev/null @@ -1,120 +0,0 @@ -/* Forms --------------------------------------------------- */ - -/* Force form elements to inherit font styles */ -input, -textarea, -button, -select { - font-family: inherit; - font-size: inherit; -} - -/* Stretch inputs/textareas to full width and add height to maintain a consistent baseline */ -select, -textarea, -input[type="text"], -input[type=search], -input[type="password"], -input[type="datetime"], -input[type="datetime-local"], -input[type="date"], -input[type="month"], -input[type="time"], -input[type="week"], -input[type="number"], -input[type="email"], -input[type="url"], -input[type="tel"], -input[type="color"], -.input-group { - width: 100%; - height: 40px; - padding: 10px; - margin-bottom: 10px; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, .2); - border-radius: 3px; - box-shadow: 0 1px 1px rgba(255, 255, 255, .2), inset 0 1px 1px rgba(0, 0, 0, .1); - -webkit-appearance: none; - box-sizing: border-box; -} - -/* Fully round search input */ -input[type=search] { - height: 34px; - font-size: 14px; - border-radius: 30px; -} - -/* Allow text area's height to grow larger than a normal input */ -textarea { - height: auto; -} - -/* Style select button to look like part of the Ratchet's style */ -select { - height: auto; - font-size: 14px; - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0%, #d4d4d4 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0%, #d4d4d4 100%); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1); -} - - -/* Input groups (cluster multiple inputs together into a single group) --------------------------------------------------- */ - -/* Reset from initial form setup styles */ -.input-group { - width: auto; - height: auto; - padding: 0; -} - -/* Remove spacing, borders, shadows and rounding since it all belongs on the .input-group not the input */ -.input-group input { - margin-bottom: 0; - background-color: transparent; - border: 0; - border-bottom: 1px solid rgba(0, 0, 0, .2); - border-radius: 0; - box-shadow: none; -} - -/* Remove bottom border on last input to avoid double bottom border */ -.input-group input:last-child { - border-bottom-width: 0; -} - -/* Input groups with labels --------------------------------------------------- */ - -/* To use labels with input groups, wrap a label and an input in an .input-row */ -.input-row { - overflow: hidden; - border-bottom: 1px solid rgba(0, 0, 0, .2); -} - -/* Remove bottom border on last input-row to avoid double bottom border */ -.input-row:last-child { - border-bottom-width: 0; -} - -/* Labels get floated left with a set percentage width */ -.input-row label { - float: left; - width: 25%; - padding: 11px 10px 9px 13px; /* Optimizing the baseline for mobile. */ - font-weight: bold; -} - -/* Actual inputs float to right of labels and also have a set percentage */ -.input-row label + input { - float: right; - width: 65%; - padding-left: 0; - margin-bottom: 0; - border-bottom: 0; -} \ No newline at end of file diff --git a/lib/css/lists.css b/lib/css/lists.css deleted file mode 100644 index 0803c3e37..000000000 --- a/lib/css/lists.css +++ /dev/null @@ -1,115 +0,0 @@ -/* Lists --------------------------------------------------- */ - -/* Remove usual bullet styles from list */ -.list { - margin-bottom: 10px; - list-style: none; - background-color: #fff; -} - -/* Pad each list item and add dividers */ -.list li { - position: relative; - padding: 20px 60px 20px 10px; /* Given extra right padding to accomodate counts, chevrons or buttons */ - border-bottom: 1px solid rgba(0, 0, 0, .1); -} - -/* Give top border to first list items */ -.list li:first-child { - border-top: 1px solid rgba(0, 0, 0, .1); -} - -/* If a list of links, make sure the child takes up full list item tap area (want to avoid selecting child buttons though) */ -.list li > a:not([class*="button"]) { - position: relative; - display: block; - padding: inherit; - margin: -20px -60px -20px -10px; - color: inherit; -} - -/* Inset list --------------------------------------------------- */ - -.list.inset { - width: auto; - margin-right: 10px; - margin-left: 10px; - border: 1px solid rgba(0, 0, 0, .1); - border-radius: 6px; - box-sizing: border-box; -} - -/* Remove border from first/last standard list items to avoid double border at top/bottom of lists */ -.list.inset li:first-child { - border-top-width: 0; -} -.list.inset li:last-child { - border-bottom-width: 0; -} - - -/* List dividers --------------------------------------------------- */ - -.list .list-divider { - position: relative; - top: -1px; - padding-top: 6px; - padding-bottom: 6px; - font-size: 12px; - font-weight: bold; - line-height: 18px; - text-shadow: 0 1px 0 rgba(255, 255, 255, .5); - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0, #eee 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0, #eee 100%); - border-top: 1px solid rgba(0, 0, 0, .1); - border-bottom: 1px solid rgba(0, 0, 0, .1); - box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4); -} - -/* Rounding first divider on inset lists and remove border on the top */ -.list.inset .list-divider:first-child { - top: 0; - border-top-width: 0; - border-radius: 6px 6px 0 0; -} - -/* Rounding last divider on inset lists */ -.list.inset .list-divider:last-child { - border-radius: 0 0 6px 6px; -} - -/* Right-aligned subcontent in lists (chevrons, buttons, counts and toggles) --------------------------------------------------- */ -.list .chevron, -.list [class*="button"], -.list [class*="count"], -.list .toggle { - position: absolute; - top: 50%; - right: 10px; -} - - /* Position chevrons/counts vertically centered on the right in list items */ -.list .chevron, -.list [class*="count"] { - margin-top: -10px; /* Half height of chevron */ -} - -/* Push count over if there's a sibling chevron */ -.list .chevron + [class*="count"] { - right: 30px; -} - -/* Position buttons vertically centered on the right in list items */ -.list [class*="button"] { - left: auto; - margin-top: -14px; /* Half height of button */ -} - -.list .toggle { - margin-top: -15px; /* Half height of toggle */ -} \ No newline at end of file diff --git a/lib/css/modals.css b/lib/css/modals.css deleted file mode 100644 index 1a7c1a23a..000000000 --- a/lib/css/modals.css +++ /dev/null @@ -1,27 +0,0 @@ -/* Modals --------------------------------------------------- */ -.modal { - position: fixed; - top: 0; - opacity: 0; - z-index: 11; - width: 100%; - min-height: 100%; - overflow: hidden; - background-color: #fff; - -webkit-transform: translate3d(0, 100%, 0); - transform: translate3d(0, 100%, 0); - -webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s; - transition: transform .25s ease-in-out, opacity 1ms .25s; -} - -/* Modal - When active --------------------------------------------------- */ -.modal.active { - opacity: 1; - height: 100%; - -webkit-transition: -webkit-transform .25s ease-in-out; - transition: transform .25 ease-in-out; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} \ No newline at end of file diff --git a/lib/css/popovers.css b/lib/css/popovers.css deleted file mode 100644 index b9d175560..000000000 --- a/lib/css/popovers.css +++ /dev/null @@ -1,153 +0,0 @@ -/* Popovers (to be used with popovers.js) --------------------------------------------------- */ - -.popover { - position: fixed; - top: 55px; - left: 50%; - z-index: 20; - display: none; - width: 280px; - padding: 5px; - margin-left: -146px; - background-color: #555; - background-image: -webkit-linear-gradient(top, #555 5%, #555 6%, #111 30%); - background-image: linear-gradient(to bottom, #555 5%, #555 6%,#111 30%); - border: 1px solid #111; - border-radius: 6px; - opacity: 0; - box-shadow: inset 0 1px 1px -1px #fff, 0 3px 10px rgba(0, 0, 0, .3); - -webkit-transform: translate3d(0, -15px, 0); - transform: translate3d(0, -15px, 0); - -webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out; - transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out; -} - -/* Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution) */ -.popover:before, -.popover:after { - position: absolute; - left: 50%; - width: 0; - height: 0; - content: ''; -} -.popover:before { - top: -20px; - margin-left: -21px; - border-right: 21px solid transparent; - border-bottom: 21px solid #111; - border-left: 21px solid transparent; -} -.popover:after { - top: -19px; - margin-left: -20px; - border-right: 20px solid transparent; - border-bottom: 20px solid #555; - border-left: 20px solid transparent; -} - -/* Wrapper for a title and buttons */ -.popover-header { - display: -webkit-box; - display: box; - height: 34px; - margin-bottom: 5px; -} - -/* Centered title for popover */ -.popover-header .title { - position: absolute; - top: 0; - left: 0; - width: 100%; - margin: 15px 0; - font-size: 16px; - font-weight: bold; - line-height: 12px; - color: #fff; - text-align: center; - text-shadow: 0 -1px rgba(0, 0, 0, .5); -} - -/* Generic style for all buttons in .popover-header */ -.popover-header [class*="button"] { - z-index: 25; - font-size: 12px; - line-height: 22px; - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); - background-color: #454545; - background-image: -webkit-linear-gradient(top, #454545 0, #353535 100%); - background-image: linear-gradient(to bottom, #454545 0, #353535 100%); - border: 1px solid #111; - -webkit-box-flex: 0; - box-flex: 0; -} - -/* Hacky way to right align buttons outside of flex-box system - Note: is only absolutely positioned button, would be better if flex-box had an "align right" option */ -.popover-header .title + [class*="button"]:last-child, -.popover-header .button + [class*="button"]:last-child, -.popover-header [class*="button"].pull-right { - position: absolute; - top: 5px; - right: 5px; -} - -/* Active state for popover header buttons */ -.popover-header .button:active { - color: #fff; - background-color: #0876b1; -} - -/* Popover animation --------------------------------------------------- */ - -.popover.visible { - opacity: 1; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} - -/* Backdrop (used as invisible touch escape) --------------------------------------------------- */ - -.backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 10; -} - -/* Block level buttons in popovers --------------------------------------------------- */ - -/* Positioning and giving darker border to look sharp against dark popover */ -.popover .button-block { - margin-bottom: 5px; - border: 1px solid #111; -} - -/* Remove extra margin on bottom of last button */ -.popover .button-block:last-child { - margin-bottom: 0; -} - -/* Lists in popovers --------------------------------------------------- */ - -.popover .list { - width: auto; - max-height: 250px; - margin-right: 0; - margin-bottom: 0; - margin-left: 0; - overflow: auto; - background-color: #fff; - border: 1px solid #000; - border-radius: 3px; - -webkit-overflow-scrolling: touch; -} \ No newline at end of file diff --git a/lib/css/push.css b/lib/css/push.css deleted file mode 100644 index d3770a896..000000000 --- a/lib/css/push.css +++ /dev/null @@ -1,29 +0,0 @@ -/* Push styles (to be used with push.js) --------------------------------------------------- */ - -/* Fade animation */ -.content.fade { - left: 0; - opacity: 0; - -webkit-transition: opacity .2s ease-in-out; - transition: opacity .2s ease-in-out; -} -.content.fade.in { - opacity: 1; -} - -/* Slide animation */ -.content.slide { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - -webkit-transition: -webkit-transform .25s ease-in-out; - transition: transform .25s ease-in-out; -} -.content.slide.left { - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); -} -.content.slide.right { - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); -} \ No newline at end of file diff --git a/lib/css/segmented-controllers.css b/lib/css/segmented-controllers.css deleted file mode 100644 index 7db0f53d6..000000000 --- a/lib/css/segmented-controllers.css +++ /dev/null @@ -1,62 +0,0 @@ -/* Segmented controllers --------------------------------------------------- */ - -.segmented-controller { - display: -webkit-box; - display: box; - margin-bottom: 10px; - overflow: hidden; - font-size: 12px; - font-weight: bold; - text-shadow: 0 1px rgba(255, 255, 255, .5); - list-style: none; - background-color: #f8f8f8; - background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%); - background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%); - border: 1px solid #aaa; - border-radius: 3px; - box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(255, 255, 255, .8); - -webkit-box-orient: horizontal; - box-orient: horizontal; -} - -/* Section within controller */ -.segmented-controller li { - overflow: hidden; - text-align: center; - white-space: nowrap; - border-left: 1px solid #aaa; - box-shadow: inset 1px 0 rgba(255, 255, 255, .5); - -webkit-box-flex: 1; - box-flex: 1; -} - -/* Link that fills each section */ -.segmented-controller li > a { - display: block; - padding: 8px 16px; - overflow: hidden; - line-height: 15px; - color: #333; - text-overflow: ellipsis; -} - -/* Remove border-left and shadow from first section */ -.segmented-controller li:first-child { - border-left-width: 0; - box-shadow: none; -} - -/* Active segment of controller */ -.segmented-controller li.active { - background-color: #ccc; - box-shadow: inset 0 1px 5px rgba(0, 0, 0, .3); -} - -.segmented-controller-item { - display: none; -} - -.segmented-controller-item.active { - display: block; -} \ No newline at end of file diff --git a/lib/css/sliders.css b/lib/css/sliders.css deleted file mode 100644 index eaca8f03d..000000000 --- a/lib/css/sliders.css +++ /dev/null @@ -1,37 +0,0 @@ -/* Slider styles (to be used with sliders.js) --------------------------------------------------- */ - -/* Width/height of slider */ -.slider, -.slider > li { - width: 100%; - height: 200px; -} - -/* Outer wrapper for slider */ -.slider { - overflow: hidden; - background-color: #000; -} - -/* Inner wrapper for slider (width of all slides together) */ -.slider > ul { - position: relative; - font-size: 0; /* Remove spaces from inline-block children */ - white-space: nowrap; - -webkit-transition: all 0 linear; - transition: all 0 linear; -} - -/* Individual slide */ -.slider > ul > li { - display: inline-block; - vertical-align: top; /* Ensure that li always aligns to top */ - width: 100%; - height: 100%; -} - -/* Required reset of font-size to same as standard body */ -.slider > ul > li > * { - font-size: 14px; -} \ No newline at end of file diff --git a/lib/css/toggles.css b/lib/css/toggles.css deleted file mode 100644 index c33de7fc5..000000000 --- a/lib/css/toggles.css +++ /dev/null @@ -1,66 +0,0 @@ -/* Toggle styles (to be used with toggles.js) --------------------------------------------------- */ - -.toggle { - position: relative; - width: 75px; - height: 28px; - background-color: #eee; - border: 1px solid #bbb; - border-radius: 20px; - box-shadow: inset 0 0 4px rgba(0, 0, 0, .1); -} - -/* Text indicating "on" or "off". Default is "off" */ -.toggle:before { - position: absolute; - right: 13px; - font-weight: bold; - line-height: 28px; - color: #777; - text-shadow: 0 1px #fff; - text-transform: uppercase; - content: "Off"; -} - -/* Sliding handle */ -.toggle-handle { - position: absolute; - top: -1px; - left: -1px; - z-index: 2; - width: 28px; - height: 28px; - background-color: #fff; - background-image: -webkit-linear-gradient(top, #fff 0, #f2f2f2 100%); - background-image: linear-gradient(to bottom, #fff 0, #f2f2f2 100%); - border: 1px solid rgba(0, 0, 0, .2); - border-radius: 100px; - -webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out; - transition: transform 0.1s ease-in-out, border 0.1s ease-in-out; -} - -/* Active state for toggle */ -.toggle.active { - background-color: #19a8e4; - background-image: -webkit-linear-gradient(top, #088cd4 0, #19a8e4 100%); - background-image: linear-gradient(to bottom, #088cd4 0, #19a8e4 100%); - border: 1px solid #096c9d; - box-shadow: inset 0 0 15px rgba(255, 255, 255, .25); -} - -/* Active state for toggle handle */ -.toggle.active .toggle-handle { - border-color: #0a76ad; - -webkit-transform: translate3d(48px,0,0); - transform: translate3d(48px,0,0); -} - -/* Change "off" to "on" for active state */ -.toggle.active:before { - right: auto; - left: 15px; - color: #fff; - text-shadow: 0 -1px rgba(0, 0, 0, 0.25); - content: "On"; -} \ No newline at end of file diff --git a/lib/js/modals.js b/lib/js/modals.js deleted file mode 100644 index 4448107fb..000000000 --- a/lib/js/modals.js +++ /dev/null @@ -1,25 +0,0 @@ -/* ---------------------------------- - * MODAL v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - 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.toggle('active'); - }); -}(); \ No newline at end of file diff --git a/lib/js/popovers.js b/lib/js/popovers.js deleted file mode 100644 index 6cdf1c620..000000000 --- a/lib/js/popovers.js +++ /dev/null @@ -1,63 +0,0 @@ -/* ---------------------------------- - * POPOVER v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - - var popover; - - var findPopovers = function (target) { - var i, popovers = document.querySelectorAll('a'); - for (; target && target !== document; target = target.parentNode) { - for (i = popovers.length; i--;) { if (popovers[i] === target) return target; } - } - }; - - var onPopoverHidden = function () { - document.body.removeChild(backdrop); - popover.style.display = 'none'; - popover.removeEventListener('webkitTransitionEnd', onPopoverHidden); - } - - var backdrop = function () { - var element = document.createElement('div'); - - element.classList.add('backdrop'); - - element.addEventListener('touchend', function () { - popover.addEventListener('webkitTransitionEnd', onPopoverHidden); - popover.classList.remove('visible'); - }); - - return element; - }(); - - var getPopover = function (e) { - var anchor = findPopovers(e.target); - - if (!anchor || !anchor.hash) return; - - popover = document.querySelector(anchor.hash); - - if (!popover || !popover.classList.contains('popover')) return; - - return popover; - } - - window.addEventListener('touchend', 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('click', function (e) { if (getPopover(e)) e.preventDefault(); }); - -}(); diff --git a/lib/js/segmented-controllers.js b/lib/js/segmented-controllers.js deleted file mode 100644 index 6c1111da0..000000000 --- a/lib/js/segmented-controllers.js +++ /dev/null @@ -1,47 +0,0 @@ -/* ---------------------------------- - * TABS v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - var getTarget = function (target) { - var i, popovers = document.querySelectorAll('.segmented-controller li a'); - for (; target && target !== document; target = target.parentNode) { - for (i = popovers.length; i--;) { if (popovers[i] === target) return target; } - } - }; - - window.addEventListener("touchend", function (e) { - var activeTab; - var activeBody; - var targetBody; - var targetTab; - var className = 'active'; - var classSelector = '.' + className; - var targetAnchor = getTarget(e.target); - - if (!targetAnchor) return; - - targetTab = targetAnchor.parentNode; - activeTab = targetTab.parentNode.querySelector(classSelector); - - if (activeTab) activeTab.classList.remove(className); - - targetTab.classList.add(className); - - if (!targetAnchor.hash) return; - - targetBody = document.querySelector(targetAnchor.hash); - - if (!targetBody) return; - - activeBody = targetBody.parentNode.querySelector(classSelector); - - if (activeBody) activeBody.classList.remove(className); - - targetBody.classList.add(className) - }); - - window.addEventListener('click', function (e) { if (getTarget(e.target)) e.preventDefault(); }); -}(); \ No newline at end of file diff --git a/lib/js/sliders.js b/lib/js/sliders.js deleted file mode 100644 index b659e83ef..000000000 --- a/lib/js/sliders.js +++ /dev/null @@ -1,114 +0,0 @@ -/* ---------------------------------- - * SLIDER v1.0.0 - * Licensed under The MIT License - * Adapted from Brad Birdsall's swipe - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - - var pageX; - var pageY; - var slider; - var deltaX; - var deltaY; - var offsetX; - var lastSlide; - var startTime; - var resistance; - var sliderWidth; - var slideNumber; - var isScrolling; - var scrollableArea; - - var getSlider = function (target) { - var i, sliders = document.querySelectorAll('.slider ul'); - for (; target && target !== document; target = target.parentNode) { - for (i = sliders.length; i--;) { if (sliders[i] === target) return target; } - } - } - - var getScroll = function () { - var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/); - return parseInt(translate3d ? translate3d[1] : 0) - }; - - var setSlideNumber = function (offset) { - var round = offset ? (deltaX < 0 ? 'ceil' : 'floor') : 'round'; - slideNumber = Math[round](getScroll() / ( scrollableArea / slider.children.length) ); - slideNumber += offset; - slideNumber = Math.min(slideNumber, 0); - slideNumber = Math.max(-(slider.children.length - 1), slideNumber); - } - - var onTouchStart = function (e) { - slider = getSlider(e.target); - - if (!slider) return; - - var firstItem = slider.querySelector('li'); - - 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; - - setSlideNumber(0); - - slider.style['-webkit-transition-duration'] = 0; - }; - - var onTouchMove = function (e) { - if (e.touches.length > 1 || !slider) return; // Exit if a pinch || no slider - - deltaX = e.touches[0].pageX - pageX; - deltaY = e.touches[0].pageY - pageY; - pageX = e.touches[0].pageX; - pageY = e.touches[0].pageY; - - if (typeof isScrolling == 'undefined') { - isScrolling = Math.abs(deltaY) > Math.abs(deltaX); - } - - if (isScrolling) return; - - offsetX = (deltaX / resistance) + getScroll(); - - e.preventDefault(); - - resistance = slideNumber == 0 && deltaX > 0 ? (pageX / sliderWidth) + 1.25 : - slideNumber == lastSlide && deltaX < 0 ? (Math.abs(pageX) / sliderWidth) + 1.25 : 1; - - slider.style.webkitTransform = 'translate3d(' + offsetX + 'px,0,0)'; - }; - - var onTouchEnd = function (e) { - if (!slider || isScrolling) return; - - setSlideNumber( - (+new Date) - startTime < 1000 && Math.abs(deltaX) > 15 ? (deltaX < 0 ? -1 : 1) : 0 - ); - - offsetX = slideNumber * sliderWidth; - - slider.style['-webkit-transition-duration'] = '.2s'; - slider.style.webkitTransform = 'translate3d(' + offsetX + 'px,0,0)'; - - e = new CustomEvent('slide', { - detail: { slideNumber: Math.abs(slideNumber) }, - bubbles: true, - cancelable: true - }); - - slider.parentNode.dispatchEvent(e); - }; - - window.addEventListener('touchstart', onTouchStart); - window.addEventListener('touchmove', onTouchMove); - window.addEventListener('touchend', onTouchEnd); - -}(); diff --git a/lib/js/toggles.js b/lib/js/toggles.js deleted file mode 100644 index 5054de848..000000000 --- a/lib/js/toggles.js +++ /dev/null @@ -1,94 +0,0 @@ -/* ---------------------------------- - * TOGGLE v1.0.0 - * Licensed under The MIT License - * http://opensource.org/licenses/MIT - * ---------------------------------- */ - -!function () { - - var start = {}; - var touchMove = false; - var distanceX = false; - var toggle = false; - - var findToggle = function (target) { - var i, toggles = document.querySelectorAll('.toggle'); - for (; target && target !== document; target = target.parentNode) { - for (i = toggles.length; i--;) { if (toggles[i] === target) return target; } - } - } - - window.addEventListener('touchstart', function (e) { - e = e.originalEvent || e; - - toggle = findToggle(e.target); - - if (!toggle) return; - - var handle = toggle.querySelector('.toggle-handle'); - var toggleWidth = toggle.offsetWidth; - var handleWidth = handle.offsetWidth; - var offset = toggle.classList.contains('active') ? toggleWidth - handleWidth : 0; - - start = { pageX : e.touches[0].pageX - offset, pageY : e.touches[0].pageY }; - touchMove = false; - - // todo: probably should be moved to the css - toggle.style['-webkit-transition-duration'] = 0; - }); - - window.addEventListener('touchmove', function (e) { - 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.offsetWidth; - var handleWidth = handle.offsetWidth; - var offset = toggleWidth - handleWidth; - - touchMove = true; - distanceX = current.pageX - start.pageX; - - if (Math.abs(distanceX) < Math.abs(current.pageY - start.pageY)) return; - - e.preventDefault(); - - if (distanceX < 0) return handle.style.webkitTransform = 'translate3d(0,0,0)'; - if (distanceX > offset) return handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)'; - - handle.style.webkitTransform = 'translate3d(' + distanceX + 'px,0,0)'; - - toggle.classList[(distanceX > (toggleWidth/2 - handleWidth/2)) ? 'add' : 'remove']('active'); - }); - - window.addEventListener('touchend', function (e) { - if (!toggle) return; - - var handle = toggle.querySelector('.toggle-handle'); - var toggleWidth = toggle.offsetWidth; - var handleWidth = handle.offsetWidth; - var offset = toggleWidth - handleWidth; - var slideOn = (!touchMove && !toggle.classList.contains('active')) || (touchMove && (distanceX > (toggleWidth/2 - handleWidth/2))); - - if (slideOn) handle.style.webkitTransform = 'translate3d(' + offset + 'px,0,0)'; - else handle.style.webkitTransform = 'translate3d(0,0,0)'; - - toggle.classList[slideOn ? 'add' : 'remove']('active'); - - e = new CustomEvent('toggle', { - detail: { isActive: slideOn }, - bubbles: true, - cancelable: true - }); - - toggle.dispatchEvent(e); - - touchMove = false; - toggle = false; - }); - -}(); diff --git a/package.json b/package.json new file mode 100644 index 000000000..cfc5f56d0 --- /dev/null +++ b/package.json @@ -0,0 +1,56 @@ +{ + "name": "ratchet", + "description": "Build mobile apps with simple HTML, CSS, and JS components.", + "version": "2.0.2", + "keywords": [ + "css", + "fonts", + "ios", + "android", + "mobile", + "prototype" + ], + "homepage": "http://goratchet.com", + "author": "Connor Sears", + "style": "dist/css/ratchet.css", + "sass": "sass/ratchet.scss", + "repository": { + "type": "git", + "url": "https://github.com/twbs/ratchet.git" + }, + "bugs": { + "url": "https://github.com/twbs/ratchet/issues" + }, + "license": "MIT", + "scripts": { + "test": "grunt test" + }, + "devDependencies": { + "grunt": "^0.4.5", + "grunt-autoprefixer": "^3.0.0", + "grunt-banner": "^0.6.0", + "grunt-contrib-clean": "^1.0.0", + "grunt-contrib-compress": "^1.1.0", + "grunt-contrib-concat": "^1.0.0", + "grunt-contrib-connect": "^1.0.0", + "grunt-contrib-copy": "^1.0.0", + "grunt-contrib-csslint": "^1.0.0", + "grunt-contrib-cssmin": "^1.0.0", + "grunt-contrib-htmlmin": "^1.0.0", + "grunt-contrib-jshint": "^1.0.0", + "grunt-contrib-uglify": "^1.0.0", + "grunt-contrib-watch": "^1.0.0", + "grunt-csscomb": "^3.1.0", + "grunt-html": "^6.0.0", + "grunt-contrib-jasmine": "^1.0.0", + "grunt-jekyll": "^0.4.2", + "grunt-jscs": "^2.8.0", + "grunt-sass": "^1.1.0", + "grunt-sed": "twbs/grunt-sed#v0.2.0", + "load-grunt-tasks": "^3.4.0", + "time-grunt": "^1.3.0" + }, + "engines": { + "node": ">=0.10.1" + } +} diff --git a/sass/.csscomb.json b/sass/.csscomb.json new file mode 100644 index 000000000..40695a478 --- /dev/null +++ b/sass/.csscomb.json @@ -0,0 +1,304 @@ +{ + "always-semicolon": true, + "block-indent": 2, + "color-case": "lower", + "color-shorthand": true, + "element-case": "lower", + "eof-newline": true, + "leading-zero": false, + "remove-empty-rulesets": true, + "space-after-colon": 1, + "space-after-combinator": 1, + "space-before-selector-delimiter": 0, + "space-between-declarations": "\n", + "space-after-opening-brace": "\n", + "space-before-closing-brace": "\n", + "space-before-colon": 0, + "space-before-combinator": 1, + "space-before-opening-brace": 1, + "strip-spaces": true, + "unitless-zero": true, + "vendor-prefix-align": true, + "sort-order": [ + [ + "position", + "top", + "right", + "bottom", + "left", + "z-index", + "display", + "float", + "width", + "min-width", + "max-width", + "height", + "min-height", + "max-height", + "-webkit-box-sizing", + "-moz-box-sizing", + "box-sizing", + "-webkit-appearance", + "padding", + "padding-top", + "padding-right", + "padding-bottom", + "padding-left", + "margin", + "margin-top", + "margin-right", + "margin-bottom", + "margin-left", + "overflow", + "overflow-x", + "overflow-y", + "-webkit-overflow-scrolling", + "-ms-overflow-x", + "-ms-overflow-y", + "-ms-overflow-style", + "clip", + "clear", + "font", + "font-family", + "font-size", + "font-style", + "font-weight", + "font-variant", + "font-size-adjust", + "font-stretch", + "font-effect", + "font-emphasize", + "font-emphasize-position", + "font-emphasize-style", + "font-smooth", + "-webkit-hyphens", + "-moz-hyphens", + "hyphens", + "line-height", + "color", + "text-align", + "-webkit-text-align-last", + "-moz-text-align-last", + "-ms-text-align-last", + "text-align-last", + "text-emphasis", + "text-emphasis-color", + "text-emphasis-style", + "text-emphasis-position", + "text-decoration", + "text-indent", + "text-justify", + "text-outline", + "-ms-text-overflow", + "text-overflow", + "text-overflow-ellipsis", + "text-overflow-mode", + "text-shadow", + "text-transform", + "text-wrap", + "-webkit-text-size-adjust", + "-ms-text-size-adjust", + "letter-spacing", + "-ms-word-break", + "word-break", + "word-spacing", + "-ms-word-wrap", + "word-wrap", + "-moz-tab-size", + "-o-tab-size", + "tab-size", + "white-space", + "vertical-align", + "list-style", + "list-style-position", + "list-style-type", + "list-style-image", + "pointer-events", + "-ms-touch-action", + "touch-action", + "cursor", + "visibility", + "zoom", + "flex-direction", + "flex-order", + "flex-pack", + "flex-align", + "table-layout", + "empty-cells", + "caption-side", + "border-spacing", + "border-collapse", + "content", + "quotes", + "counter-reset", + "counter-increment", + "resize", + "-webkit-user-select", + "-moz-user-select", + "-ms-user-select", + "-o-user-select", + "user-select", + "nav-index", + "nav-up", + "nav-right", + "nav-down", + "nav-left", + "background", + "background-color", + "background-image", + "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient", + "filter:progid:DXImageTransform.Microsoft.gradient", + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader", + "filter", + "background-repeat", + "background-attachment", + "background-position", + "background-position-x", + "background-position-y", + "-webkit-background-clip", + "-moz-background-clip", + "background-clip", + "background-origin", + "-webkit-background-size", + "-moz-background-size", + "-o-background-size", + "background-size", + "border", + "border-color", + "border-style", + "border-width", + "border-top", + "border-top-color", + "border-top-style", + "border-top-width", + "border-right", + "border-right-color", + "border-right-style", + "border-right-width", + "border-bottom", + "border-bottom-color", + "border-bottom-style", + "border-bottom-width", + "border-left", + "border-left-color", + "border-left-style", + "border-left-width", + "border-radius", + "border-top-left-radius", + "border-top-right-radius", + "border-bottom-right-radius", + "border-bottom-left-radius", + "-webkit-border-image", + "-moz-border-image", + "-o-border-image", + "border-image", + "-webkit-border-image-source", + "-moz-border-image-source", + "-o-border-image-source", + "border-image-source", + "-webkit-border-image-slice", + "-moz-border-image-slice", + "-o-border-image-slice", + "border-image-slice", + "-webkit-border-image-width", + "-moz-border-image-width", + "-o-border-image-width", + "border-image-width", + "-webkit-border-image-outset", + "-moz-border-image-outset", + "-o-border-image-outset", + "border-image-outset", + "-webkit-border-image-repeat", + "-moz-border-image-repeat", + "-o-border-image-repeat", + "border-image-repeat", + "outline", + "outline-width", + "outline-style", + "outline-color", + "outline-offset", + "-webkit-box-shadow", + "-moz-box-shadow", + "box-shadow", + "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity", + "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha", + "opacity", + "-ms-interpolation-mode", + "-webkit-transition", + "-moz-transition", + "-ms-transition", + "-o-transition", + "transition", + "-webkit-transition-delay", + "-moz-transition-delay", + "-ms-transition-delay", + "-o-transition-delay", + "transition-delay", + "-webkit-transition-timing-function", + "-moz-transition-timing-function", + "-ms-transition-timing-function", + "-o-transition-timing-function", + "transition-timing-function", + "-webkit-transition-duration", + "-moz-transition-duration", + "-ms-transition-duration", + "-o-transition-duration", + "transition-duration", + "-webkit-transition-property", + "-moz-transition-property", + "-ms-transition-property", + "-o-transition-property", + "transition-property", + "-webkit-transform", + "-moz-transform", + "-ms-transform", + "-o-transform", + "transform", + "-webkit-transform-origin", + "-moz-transform-origin", + "-ms-transform-origin", + "-o-transform-origin", + "transform-origin", + "-webkit-animation", + "-moz-animation", + "-ms-animation", + "-o-animation", + "animation", + "-webkit-animation-name", + "-moz-animation-name", + "-ms-animation-name", + "-o-animation-name", + "animation-name", + "-webkit-animation-duration", + "-moz-animation-duration", + "-ms-animation-duration", + "-o-animation-duration", + "animation-duration", + "-webkit-animation-play-state", + "-moz-animation-play-state", + "-ms-animation-play-state", + "-o-animation-play-state", + "animation-play-state", + "-webkit-animation-timing-function", + "-moz-animation-timing-function", + "-ms-animation-timing-function", + "-o-animation-timing-function", + "animation-timing-function", + "-webkit-animation-delay", + "-moz-animation-delay", + "-ms-animation-delay", + "-o-animation-delay", + "animation-delay", + "-webkit-animation-iteration-count", + "-moz-animation-iteration-count", + "-ms-animation-iteration-count", + "-o-animation-iteration-count", + "animation-iteration-count", + "-webkit-animation-direction", + "-moz-animation-direction", + "-ms-animation-direction", + "-o-animation-direction", + "animation-direction" + ] + ] +} diff --git a/sass/.csslintrc b/sass/.csslintrc new file mode 100644 index 000000000..594029ed2 --- /dev/null +++ b/sass/.csslintrc @@ -0,0 +1,16 @@ +{ + "adjoining-classes": false, + "box-sizing": false, + "box-model": false, + "compatible-vendor-prefixes": false, + "fallback-colors": false, + "font-sizes": false, + "gradients": false, + "important": false, + "known-properties": false, + "outline-none": false, + "qualified-headings": false, + "unique-headings": false, + "universal-selector": false, + "unqualified-attributes": false +} diff --git a/sass/badges.scss b/sass/badges.scss new file mode 100644 index 000000000..c76d7aba3 --- /dev/null +++ b/sass/badges.scss @@ -0,0 +1,53 @@ +// +// Badges +// -------------------------------------------------- + +.badge { + display: inline-block; + padding: 2px 9px 3px; + font-size: 12px; + line-height: 1; + color: #333; + background-color: rgba(0,0,0,.15); + border-radius: 100px; + + // Inverted badges have no background. + &.badge-inverted { + padding: 0 5px 0 0; + background-color: transparent; + } +} + + +// Badge modifiers +// -------------------------------------------------- + +// Main badge +.badge-primary { + color: #fff; + background-color: $primary-color; + + &.badge-inverted { + color: $primary-color; + } +} + +// Positive badge +.badge-positive { + color: #fff; + background-color: $positive-color; + + &.badge-inverted { + color: $positive-color; + } +} + +// Negative badge +.badge-negative { + color: #fff; + background-color: $negative-color; + + &.badge-inverted { + color: $negative-color; + } +} diff --git a/sass/bars.scss b/sass/bars.scss new file mode 100644 index 000000000..15f208f9a --- /dev/null +++ b/sass/bars.scss @@ -0,0 +1,247 @@ +// +// Bars +// -------------------------------------------------- + +.bar { + position: fixed; + right: 0; + left: 0; + z-index: 10; + height: $bar-base-height; + padding-right: $bar-side-spacing; + padding-left: $bar-side-spacing; + background-color: $chrome-color; + border-bottom: $border-default; + -webkit-backface-visibility: hidden; // Make sure the bar is visible when a modal animates in. + backface-visibility: hidden; +} + +// Modifier class to dock any bar below .bar-nav +.bar-header-secondary { + top: $bar-base-height; +} + +// Modifier class for footer bars +.bar-footer { + bottom: 0; +} + +// Modifier class to dock any bar above a standard bar +.bar-footer-secondary { + bottom: $bar-base-height; +} + +// Modifier class to dock any bar above a .bar-tab +.bar-footer-secondary-tab { + bottom: $bar-tab-height; +} + +// Give the footers the correct border +.bar-footer, +.bar-footer-secondary, +.bar-footer-secondary-tab { + border-top: $border-default; + border-bottom: 0; +} + + +// Nav bar +// -------------------------------------------------- + +// Bar docked to top of viewport for showing page title and actions +.bar-nav { + top: 0; +} + +// Centered text in the .bar-nav +// +// We position the absolutely to make sure the title is always centered +.title { + position: absolute; + display: block; + width: 100%; + padding: 0; + margin: 0 (-$bar-side-spacing); + font-size: $font-size-default; + font-weight: $font-weight; + line-height: $bar-base-height; + color: #000; + text-align: center; + white-space: nowrap; +} +// Retain specified title color +.title a { + color: inherit; +} + + +// Tab bar +// -------------------------------------------------- + +// Bar docked to bottom and used for primary app navigation +.bar-tab { + display: table; + bottom: 0; + width: 100%; + height: $bar-tab-height; + padding: 0; + table-layout: fixed; + border-top: $border-default; + border-bottom: 0; + + // Navigational tab (Nested to be more specific for the icons in tab-items) + .tab-item { + position: relative; + display: table-cell; + width: 1%; + height: $bar-tab-height; + color: #929292; + text-align: center; + vertical-align: middle; + + // Active states for the tab bar + &.active, + &:active { + color: $primary-color; + } + + // Activity badge on an icon + .badge { + vertical-align: top; + position: absolute; + top: 3px; + left: 50%; + } + + // Tab icon + .icon { + top: 3px; + width: 24px; + height: 24px; + padding-top: 0; + padding-bottom: 0; + + // Make the text smaller if it's used with an icon + ~ .tab-label { + display: block; + font-size: 11px; + } + } + } +} + +// Bars with buttons +// -------------------------------------------------- + +.bar .btn { + position: relative; + top: 7px; + z-index: 20; // Position the buttons on top of .title + padding: 6px 12px 7px; + margin-top: 0; + font-weight: $font-weight-light; + + // Give buttons that are floated left and right side margin + &.pull-right { + margin-left: $bar-side-spacing; + } + &.pull-left { + margin-right: $bar-side-spacing; + } +} + +// Bars with link buttons (Line the text up with content) +.bar .btn-link { + top: 0; + padding: 0; + font-size: 16px; + line-height: $bar-base-height; + color: $primary-color; + border: 0; + + &:active, + &.active { + color: darken($primary-color, 10%); + } +} + +// Bars with block buttons +// +// Add proper padding +.bar .btn-block { + top: 6px; + padding: 7px 0; + margin-bottom: 0; + font-size: 16px; // Scale down font size to fit in bar. +} + +// Nav buttons (Only applicable within bars) +// +// Buttons inside bars that sit closer against the viewport. +.bar .btn-nav { + &.pull-left { + margin-left: -5px; + + .icon-left-nav { + margin-right: -3px; + } + } + &.pull-right { + margin-right: -5px; + + .icon-right-nav { + margin-left: -3px; + } + } +} + + +// Bars with Ratchicons +// -------------------------------------------------- + +.bar { + .icon { + position: relative; + z-index: 20; // Position the buttons on top of .title + padding-top: 10px; + padding-bottom: 10px; + font-size: 24px; + } + + // Vertical center the larger icons in btns. + .btn .icon { + top: 3px; + padding: 0; + } + + // Handle carets in the titles + .title .icon { + padding: 0; + + // Specific postioning of the caret icon within a title. Used with popover.js. + &.icon-caret { + top: 4px; + margin-left: -5px; + } + } +} + + +// Bars for search forms +// -------------------------------------------------- + +// Position/size search bar within the bar +.bar input[type="search"] { + height: 29px; + margin: 6px 0; +} + + +// Bars with segmented controls +// -------------------------------------------------- + +// Position the control correctly inside a bar. +.bar .segmented-control { + top: 7px; + margin: 0 auto; +} diff --git a/sass/base.scss b/sass/base.scss new file mode 100644 index 000000000..fee0c9906 --- /dev/null +++ b/sass/base.scss @@ -0,0 +1,95 @@ +// +// Base styles +// -------------------------------------------------- + +// Use box sizing on all the things! +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +// We fix position the body and scroll `.content`. +body { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + font-family: $font-family-default; + font-size: $font-size-default; + line-height: $line-height-default; + color: #000; + background-color: #fff; +} + +// Universal link styling +a { + color: $primary-color; + text-decoration: none; + -webkit-tap-highlight-color: rgba(0,0,0,0); // Removes the dark touch outlines on links in webkit browsers. + + &:active { + color: darken($primary-color, 10%); + } +} + +// Wrapper to be used around all content not in .bar-title and .bar-tab +.content { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + overflow: auto; + background-color: #fff; + -webkit-overflow-scrolling: touch; +} + +// Hack to force all relatively and absolutely positioned elements still render while scrolling +// Note: This is a bug for "-webkit-overflow-scrolling: touch" +.content > * { + @include transform(translateZ(0)); +} + +// Pad top/bottom of content so it doesn't hide behind bars. +// Note: For these to work, content must come after both bars in the markup +.bar-nav ~ .content { + padding-top: $bar-base-height; +} +.bar-header-secondary ~ .content { + padding-top: ($bar-base-height*2); +} + +// Footer bar padding +.bar-footer ~ .content { + padding-bottom: $bar-base-height; +} +.bar-footer-secondary ~ .content { + padding-bottom: ($bar-base-height*2); +} + +// Tab bar padding +.bar-tab ~ .content { + padding-bottom: $bar-tab-height; +} +.bar-footer-secondary-tab ~ .content { + padding-bottom: ($bar-tab-height+$bar-base-height); +} + +// Utility classes +.content-padded { + margin: $bar-side-spacing; +} +.text-center { + text-align: center; +} +.pull-left { + float: left; +} +.pull-right { + float: right; +} +.clearfix { + @include clearfix(); +} diff --git a/sass/buttons.scss b/sass/buttons.scss new file mode 100644 index 000000000..3338eaae1 --- /dev/null +++ b/sass/buttons.scss @@ -0,0 +1,174 @@ +// +// Buttons +// -------------------------------------------------- + +.btn { + position: relative; + display: inline-block; + padding: 6px 8px 7px; + margin-bottom: 0; // For input.btn + font-size: $button-font-size; + font-weight: $font-weight-light; + line-height: 1; + color: #333; + text-align: center; + white-space: nowrap; + vertical-align: top; + cursor: pointer; + background-color: $chrome-color; + border: 1px solid #ccc; + border-radius: 3px; + + // Active & filled button styles + &:active, + &.active { + color: inherit; // Overriding the global style for all anchors. + background-color: #ccc; + } + + // Disabled styles & filled button active styles + &:disabled, + &.disabled { + opacity: .6; + } +} + + +// Other button types +// -------------------------------------------------- + +// Primary button (Default color is blue) +.btn-primary { + color: #fff; + background-color: $primary-color; + border: 1px solid $primary-color; + + &:active, + &.active { + color: #fff; + background-color: darken($primary-color, 10%); + border: 1px solid darken($primary-color, 10%); + } +} + +// Positive button (Default color is green) +.btn-positive { + color: #fff; + background-color: $positive-color; + border: 1px solid $positive-color; + + &:active, + &.active { + color: #fff; + background-color: darken($positive-color, 10%); + border: 1px solid darken($positive-color, 10%); + } +} + +// Negative button (Default color is red) +.btn-negative { + color: #fff; + background-color: $negative-color; + border: 1px solid $negative-color; + + &:active, + &.active { + color: #fff; + background-color: darken($negative-color, 10%); + border: 1px solid darken($negative-color, 10%); + } +} + +// Outlined buttons +.btn-outlined { + background-color: transparent; + + &.btn-primary { + color: $primary-color; + } + &.btn-positive { + color: $positive-color; + } + &.btn-negative { + color: $negative-color; + } + // Active states + &.btn-primary:active, + &.btn-positive:active, + &.btn-negative:active { + color: #fff; + } +} + +// Link button (Buttons that look like links) +.btn-link { + padding-top: 6px; + padding-bottom: 6px; + color: $primary-color; + background-color: transparent; + border: 0; + + &:active, + &.active { + color: darken($primary-color, 10%); + background-color: transparent; + } +} + +// Block level buttons (full width buttons) +.btn-block { + display: block; + width: 100%; + padding: 15px 0; + margin-bottom: 10px; + font-size: 18px; +} + + +// Button overrides +// -------------------------------------------------- + +input[type="submit"], +input[type="reset"], +input[type="button"] { + width: 100%; +} + + +// Buttons with badges +// -------------------------------------------------- + +// Generic styles for all badges within default buttons +.btn .badge { + margin: -2px -4px -2px 4px; + font-size: 12px; + background-color: rgba(0,0,0,.15); +} + +// Buttons with inverted badges +.btn .badge-inverted, +.btn:active .badge-inverted { + background-color: transparent; +} +.btn-primary:active .badge-inverted, +.btn-positive:active .badge-inverted, +.btn-negative:active .badge-inverted { + color: #fff; +} + +// Position badges within block level buttons +// Note: These are absolutely positioned so that text of button isn't "pushed" by badge and always +// stays at the center of button +.btn-block .badge { + position: absolute; + right: 0; + margin-right: 10px; +} + + +// Buttons with Ratchicons +// -------------------------------------------------- + +.btn .icon { + font-size: inherit; +} diff --git a/sass/cards.scss b/sass/cards.scss new file mode 100644 index 000000000..745cb8ece --- /dev/null +++ b/sass/cards.scss @@ -0,0 +1,37 @@ +// +// Cards +// -------------------------------------------------- + +.card { + margin: $bar-side-spacing; + overflow: hidden; + background-color: $card-bg; + border: $border-default; + border-radius: $border-radius; +} + + +// Cards with table-views +// -------------------------------------------------- +.card .table-view { + margin-bottom: 0; + border-top: 0; + border-bottom: 0; + + // Rounding first divider on carded lists and remove border on the top + .table-view-divider:first-child { + top: 0; + border-top-left-radius: $border-radius; + border-top-right-radius: $border-radius; + } + + // Rounding last divider on carded table views + .table-view-divider:last-child { + border-bottom-left-radius: $border-radius; + border-bottom-right-radius: $border-radius; + } +} +// Remove the bottom border from last table cell +.card .table-view-cell:last-child { + border-bottom: 0; +} diff --git a/sass/docs.scss b/sass/docs.scss new file mode 100644 index 000000000..2cd47ce3b --- /dev/null +++ b/sass/docs.scss @@ -0,0 +1,1156 @@ +@import "variables.scss"; +@import "mixins.scss"; + +// Clearfix mixin for docs + +// +// Documentation +// -------------------------------------------------- + +html, +body { + width: 100%; + height: 100%; +} +body { + position: relative !important; // Overrides the fixed positioning of body in Ratchet + font: 400 14px/1.5 "Open Sans", sans-serif; + color: #333; + -webkit-text-size-adjust: 100%; + background-color: #fff; + -webkit-font-smoothing: antialiased; // Fix for webkit rendering +} + +// Typography +// +// Gets scoped to a common class in the docs so we don't collide with any of +// Ratchet's styles. + +.docs-content { + font-size: 14px; + + @media screen and (min-width: 768px) { + font-size: 18px; + } + + h1, h2, h3, h4, h5, h6 { + font-weight: 400; + color: #222; + } + h2 { + margin-bottom: .25em; + font-size: 2em; + } + h3 { + margin-bottom: .5em; + font-size: 1.25em; + } + + p { + margin-bottom: 1.5em; + font-size: 1em; + color: #555; + } + .lead { + font-size: 1.1em; + color: #777; + } +} + + +// Jumbotron +// -------------------------------------------------- +.docs-header, +.docs-sub-header { + position: relative; + @include directional-gradient(#0a1855, #da0024) +} +.docs-header { + height: 100vh; + min-height: 750px; + + // Ad on the homepage + .carbonad { + position: relative !important; + margin-top: 0 !important; + @include animation-name(fadeintext); + @include animation-duration(2s); + } + .version { + margin-top: 15px; + color: rgba(255,255,255,.5); + text-align: center; + } +} +.docs-header-bottom { + position: absolute; + right: 0; + bottom: 0; + left: 0; +} +// Desktop jumbotron +@media screen and (min-width: 768px) { + .docs-header { + min-height: 870px; + + // Ads on the homepage + .carbonad { + left: 50% !important; + width: 330px !important; + margin-bottom: 60px !important; + margin-left: -165px !important; + } + } + + // Positon ads correctly on sub pages + .docs-sub-header .carbonad { + position: absolute !important; + top: 50% !important; + right: 15px !important; + margin-top: 0 !important; + @include transform(translateY(-50%) !important); + } +} + +// Masthead and nav +.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; + @include transform(translateX(-50%)); +} +.docs-nav { + .docs-nav-trigger { + color: #fff; + opacity: .7; + + &.active { + opacity: 1; + } + } + .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; + + &.active { + height: auto; + opacity: 1; + } + } + .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; + @include transition(opacity .2s linear); + + &:active, + &:focus { + color: #fff; + opacity: .5; + } +} + +// Desktop: Masthead and nav +@media screen and (min-width: 768px) { + .docs-title { + position: static; + float: left; + font-weight: 300; + @include transform(translateX(0)); + } + + // Docs nav + .docs-nav { + float: right; + + .docs-nav-trigger { + display: none; + } + .docs-nav-group { + position: static; + display: block; + height: auto; + background-color: transparent; + opacity: 1; + } + .docs-nav-item { + position: relative; + display: inline-block; + padding: 0 15px; + font-size: 14px; + } + } + + // Component jump menu + .docs-jump-menu { + position: absolute; + left: 15px; + display: block; + color: #777; + cursor: pointer; + @include transition(opacity .2 linear); + + &:hover { + color: $primary-color; + } + &:active { + opacity: .5; + } + .icon-list { + margin-right: 3px; + font-size: 16px; + } + .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; + background-clip: padding-box; + border: 1px solid rgba(0,0,0,.2); + border-radius: 3px; + @include box-shadow(0 0 8px rgba(0,0,0,.05)); + + &.active { + display: block; + } + &:before, + &:after { + position: absolute; + left: 30px; + width: 0; + height: 0; + content: ''; + } + &:before { + top: -11px; + margin-left: -11px; + border-right: 11px solid transparent; + border-bottom: 11px solid rgba(0,0,0,.3); + border-left: 11px solid transparent; + } + &:after { + top: -10px; + margin-left: -10px; + border-right: 10px solid transparent; + border-bottom: 10px solid #fff; + border-left: 10px solid transparent + } + .docs-component-item { + display: block; + padding: 10px 20px; + color: #777; + + &:hover { + color: #fff; + background-color: $primary-color; + } + } + } +} + +// Main homepage header content +// "Build mobile apps using simple..." +.docs-header-content { + position: relative; + padding: 50px 10px; + text-align: center; + @include animation-name(fadeintext); + @include animation-duration(2s); + + .btn { + display: block; + padding: 15px 60px 16px; // Creates a button that's 330px wide. + margin-bottom: 0; + font-size: 18px; + color: #0a1855; + background-color: #fff; + border: 0; + @include transition(all .2s linear); + + &:hover { + background-color: #fff; + @include box-shadow(0 0 50px rgba(255,255,255,.3)); + } + &:active { + opacity: .5; + } + } +} +.docs-subtitle { + max-width: 750px; + margin: 0 auto 20px; + font-size: 28px; + font-weight: 300; + line-height: 38px; + color: #fff; +} + +// Desktop header content +@media screen and (min-width: 768px) { + .docs-header-content { + top: 30%; + @include transform(translateY(-50%)); + + .btn { + display: inline-block; + } + } + .docs-subtitle { + margin-bottom: 30px; + font-size: 41px; + line-height: 60px; + } +} + +// Ads +.carbonad { + width: 100% !important; + height: auto !important; + padding: 15px !important; + font-size: 13px !important; + line-height: 18px !important; + background: transparent !important; + border-top: 1px solid rgba(255,255,255,.1) !important; + border-right: 0 !important; + border-bottom: 0 !important; + border-left: 0 !important; +} +.carbonad-img { + margin: 0 !important; +} +.carbonad-text, +.carbonad-tag { + display: block !important; + float: none !important; + width: auto !important; + height: auto !important; + margin-left: 145px !important; + color: rgba(255,255,255,.65) !important; + font-family: "Open Sans", sans-serif !important; +} +.carbonad-text { + padding-top: 0 !important; +} +.carbonad-tag { + text-align: left !important; +} +.carbonad-text a, +.carbonad-tag a { + color: #fff !important; +} +.carbonad #azcarbon>img { + display: none; +} + +// Desktop styles for ads +@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; + } +} + + +// Subpage Header +// -------------------------------------------------- + +.docs-sub-content { + position: relative; + overflow: hidden; + padding: 55px 15px 65px; + color: #fff; + text-align: center; + + .page-title, + .page-description { + margin-top: 0; + margin-bottom: 0; + font-weight: 300; + } + .page-title { + margin-bottom: 5px; + font-size: 40px; + } + .page-description { + font-size: 24px; + color: #fff; + opacity: .7; + } +} + +// Desktop: Left align the text +@media screen and (min-width: 768px) { + .docs-sub-content { + margin-right: 380px; + text-align: left; + } +} + + +// Content sections +// -------------------------------------------------- + +// Wrap each section of the docs +.docs-section { + padding-top: 50px; + padding-bottom: 50px; + border-bottom: 1px solid #ddd; +} +.docs-section:last-child { + border-bottom: 0; +} + +// Docs modules +@media screen and (min-width: 768px) { + .docs-module { + margin-top: 35px; + } +} + +// Docs modules +.docs-module { + padding: 20px; + margin-top: 20px; + border: $border-default; + border-radius: 3px; + + .btn-block { + margin-bottom: 0; + } +} +.version { + margin-top: 10px; + margin-bottom: 0; + font-size: 90%; + color: #777; +} + + +// Footer +// -------------------------------------------------- + +.docs-footer { + border-top: 1px solid #ddd; + padding: 30px 20px; + margin-top: 50px; + font-size: 14px; + text-align: center; + color: #777; + + .social { + padding: 0 0 20px; + margin: 0; + list-style: none; + + li { + display: inline-block; + height: 20px; + vertical-align: top; + } + .twitter-follow-button { + margin-top: 5px; + } + } + @media screen and (min-width: 768px) { + // Remove the top margin on desktop + .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-left: 0; + padding-right: 0; + margin: 0 auto; + } +} +.docs-footer-links { + padding-left: 0; + + li { + display: inline; + padding-left: 3px; + padding-right: 3px; + } +} + +// Overrides for the homepage's footer +.docs-header .docs-footer { + margin-top: 0; + border-top: 1px solid rgba(255,255,255,.1); + + .docs-footer-text, + .docs-footer-links { + color: rgba(255,255,255,.5); + + a { + color: rgba(255,255,255,.8); + } + } +} + +// Style the GitHub buttons via CSS instead of inline attributes +.github-btn { + border: 0; + overflow: hidden; +} + + +// Platform toggle +// -------------------------------------------------- + +.docs-component-toolbar { + position: fixed; + top: 0; + bottom: auto; + left: 0; + right: 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; + -moz-transition: -moz-transform .5s; + transition: transform .5s; + @include transform(translate3d(0, -55px, 0)); + + &.visible { + @include transform(translate3d(0, 0, 0)); + } + + .segmented-control { + max-width: 300px; + margin: 0 auto; + + .control-item { + cursor: pointer; + } + } +} + + +// Example devices +// -------------------------------------------------- +.docs-examples { + margin-top: 30px; +} +.example-wrap { + margin-bottom: 30px; + + .example { + display: block; + width: 100%; + padding: 3px; + overflow: hidden; + border: $border-default; + border-radius: 3px; + } + .example-title { + margin-top: 10px; + } + img { + display: block; + width: 100%; + height: auto; + } +} + + +// Components +// -------------------------------------------------- + +code { + padding: 2px 4px; + font-size: 90%; + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + background-color: #f9f9f9; + border-radius: 3px; +} +.component { + padding: 50px 15px; + margin-left: -15px; + margin-right: -15px; + border-bottom: 1px solid #ddd; + + // Added to the last component so the footer + // doesn't create a double border. + &.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-size: $font-size-default; + font-family: $font-family-default; + line-height: $line-height-default; +} +.component-example, +.component-example .bar, +.component-example .content { + position: relative; +} +.component-example .bar { + border-top: $border-default; + border-bottom: $border-default; + + &.bar-header-secondary { + top: 0 !important; + border-top: 0; + } +} +.component-example > .content-padded { + margin: 15px; +} +.component-example > .card { + margin: 15px 0 0; + + .control-content { + padding: 15px; + } +} +.component-example > .btn, +.component-example > .toggle { + margin-bottom: 10px; +} +.component-example .slider { + height: 300px; + + .slide { + height: 300px; + } +} +.component-example .slide img { + width: 100%; +} +.component-example .slide-text { + position: absolute; + top: 45%; + left: 0; + width: 100%; + text-align: center; + font-size: 24px; + text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); + color: #fff; +} +.component-example-fullbleed, +.highlight { + margin-left: -15px; + margin-right: -15px; +} +.bar-nav ~ .content { + padding: 0; +} +.highlight pre { + padding: 15px; + margin-top: 15px; + overflow-x: auto; + font-size: 13px; + color: #777; + background-color: #fafafa; + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + white-space: pre; + word-wrap: normal; +} +.highlight pre code { + padding: 0; +} +@media screen and (min-width: 768px) { + .component, + .component-example-fullbleed, + .highlight { + margin-left: 0; + margin-right: 0; + } + .component { + padding-left: 0; + padding-right: 0; + opacity: .3; + @include transition(opacity .2s ease-in-out); + + &.active { + opacity: 1; + } + } + .component-example { + display: none; + } + .highlight pre { + border-left: 1px solid #ddd; + border-right: 1px solid #ddd; + border-radius: 3px; + } +} + + +// Specific example overrides +#ratchicons .icon, +#ratchiconsInDevice .icon { + width: 50px; + height: 50px; + margin: 3px; + font-size: 24px; + line-height: 50px; + text-align: center; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 25px; +} +// Modals +#modals .modal { + left: 0; + z-index: 50; +} +// Push +#push .component-example { + height: 150px; + overflow: hidden; +} + +// Buttons +#buttonsInDevice, +#buttonsBadgesInDevice, +#buttonsWithIconsInDevice { + .btn { + margin-top: 10px; + margin-right: 100px; + margin-left: 10px; + } +} +#blockButtonsInDevice .btn-block { + width: 300px; + margin: 10px auto; +} + +//Segmented Control +#segmentedControlsInDevice { + .segmented-control { + margin-top: 10px; + margin-right: 10px; + margin-left: 10px; + } + .card span { + padding: 10px; + } +} + +// Badges +#badgesInDevice { + text-align: center; + + .badge { + margin-top: 10px; + } +} + +// Forms +#formsInDevice form { + margin: 10px; + + &.input-group { + margin: 0; + } +} + +// Toggles +#togglesInDevice .toggle { + margin: 10px auto; +} + +.toggle { + cursor: pointer; +} + +// Popovers +#popoversInDevice { + #iwindow:before { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 11; + background-color: rgba(0,0,0,.3); + content: ''; + } +} +@media screen and (min-width: 768px) { + .popover { + position: absolute; + display: block; + top: 72px; + opacity: 1; + } +} + +// Modals +#modalsInDevice { + #iwindow > .btn { + margin: 10px; + } +} + +// Sliders +@media screen and (min-width: 768px) { + .slider .slide { + cursor: -webkit-grab; + cursor: -moz-grab; + cursor: grab; + } + .slider .slide img { + width: 100%; + height: 570px; // Fullscreen fun times + display: block; + } + .slider .slide-group .slide-text { + position: absolute; + top: 45%; + left: 0; + width: 100%; + color: #fff; + text-align: center; + font-size: 24px; + text-shadow: 0 0 10px rgba(0,0,0,.5); + } +} + + +// Example device +// -------------------------------------------------- + +.device { + display: none; + font-size: $font-size-default; + font-family: $font-family-default; + line-height: $line-height-default; +} +@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-size: 300%; + background-repeat: no-repeat; + background-position: 0 0; + @include transition(background-image .1s linear); + + &.device-fixed { + position: fixed; + right: auto; + } + } + .device .device-content { + position: absolute; + top: 117px; + left: 37px; + width: 321px; + height: 569px; + overflow: hidden; + font-size: $font-size-default; + line-height: $line-height-default; + background-color: #fff; + } + .device .content, + .device .bar, + .device .modal { + position: absolute; + } + .device .content { + top: 44px; + left: 0; + right: 0; + bottom: 0; + } +} +@media screen and (min-width: 1200px) { + .device { + margin-left: 39px; + } +} + + +// Misc +// -------------------------------------------------- + +hr { + height: 0; + margin: 10px 0 30px; + border: solid #ddd; + border-width: 1px 0 0; + clear: both; +} + +.column-group { + @include clearfix; +} + + +// The Chassis grid +// -------------------------------------------------- + +.container { + position: relative; + margin-left: auto; + margin-right: auto; + padding-left: 0; + padding-right: 0; +} +.column-group { + width: auto; +} +.column { + padding-left: 15px; + padding-right: 15px; + float: left; + width: 100%; + + &.pull-right { + float: right; + } +} +// Lines nested grids up correctly. +.column .column-group { + margin-left: -15px; + margin-right: -15px; +} + + +// Tablet to desktop +// -------------------------------------------------- + + @media screen and (min-width: 768px) { + .container { + padding: 0; + max-width: 940px; + } + + // Twelve column fluid grid + .lg-units-4 { width: 33.333%; } + .lg-units-5 { width: 41.666%; } + .lg-units-7 { width: 58.333%; } + .lg-units-8 { width: 66.666%; } +} + + +// Standard sized screens to large screens +// -------------------------------------------------- + +@media screen and (min-width: 1200px) { + .container { + max-width: 1170px; + } +} + + +// Example platform styles +// -------------------------------------------------- + +.platform-ios { + @import "theme-ios.scss"; + + .device { + background-position: -395px 0; + + .device-content { + background-color: #efeff4; + } + } +} +.platform-android { + @import "theme-android.scss"; + + .device { + font-family: 'Roboto', sans-serif; + background-position: -790px 0; + + .device-content { + font-size: 18px; + line-height: 22px; + background-color: #f2f2f2; + } + .content { + top: 50px; + } + .popover { + @include transform(scale(1)); + } + } + .bar ~ .content { + padding: 0; + } +} + +// Animations +@-webkit-keyframes fadeintext { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} + +// Taken from Bootstrap docs +// +// Callouts +// +// Not quite alerts, but custom and helpful notes for folks reading the docs. +// Requires a base and modifier class. + +// Common styles for all types +.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; +} + +// Variations +.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; +} + +// Team module +.list-group { + margin-bottom: 20px; + padding-left: 0; +} +.list-group-item:first-child { + border-top-right-radius: 4px; + border-top-left-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 { + color: #555; + font-size: 14px; + line-height: 32px; +} +.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; + margin-top: 6px; + width: 121px; + height: 20px; +} + +// Browser support table +.browser-support-table td, +.browser-support-table th { + border: 1px solid #ddd; + padding: 5px; +} +.browser-support-maybe { + color: #fff; + background-color: #f0ad4e; +} +.browser-support-yes { + background-color: $positive-color; +} +.browser-support-no { + background-color: $negative-color; +} diff --git a/sass/forms.scss b/sass/forms.scss new file mode 100644 index 000000000..abc3c7eb8 --- /dev/null +++ b/sass/forms.scss @@ -0,0 +1,115 @@ +// +// Forms +// -------------------------------------------------- + +// Force form elements to inherit font styles +input, +textarea, +button, +select { + font-family: $font-family-default; + font-size: $font-size-default; +} + +// Stretch inputs/textareas to full width and add height to maintain a consistent baseline +select, +textarea, +input[type="text"], +input[type="search"], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="tel"], +input[type="color"] { + width: 100%; + height: 35px; + -webkit-appearance: none; + padding: 0 15px; + margin-bottom: 15px; + line-height: $line-height-default; + background-color: #fff; + border: $border-default; + border-radius: 3px; + outline: none; +} + +// Rounded search input +input[type="search"] { + padding: 0 10px; + font-size: 16px; + border-radius: 20px; + // Override content-box in normalize + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +input[type="search"]:focus { + text-align: left; +} + +// Allow text area's height to grow larger than a normal input +textarea { + height: auto; +} + +// Style select button to look like part of the Ratchet's style +select { + height: auto; + font-size: 14px; + background-color: #f8f8f8; + @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .1)); +} + + +// Input groups (cluster multiple inputs together into a single group) +// ------------------------------------------------------------------- + +// Remove spacing, borders, shadows and rounding since it all belongs on the .input-group not the input +.input-group { + background-color: #fff; +} +.input-group input, +.input-group textarea { + margin-bottom: 0; + background-color: transparent; + border-top: 0; + border-right: 0; + border-left: 0; + border-radius: 0; + @include box-shadow(none); +} + +// Input groups with labels +// -------------------------------------------------- + +// To use labels with input groups, wrap a label and an input in an .input-row +.input-row { + overflow: hidden; + height: 35px; // Matches the height of inputs. + border-bottom: $border-default; +} + +// Labels get floated left with a set percentage width +.input-row label { + float: left; + width: 35%; + padding: 8px 15px; + font-family: $font-family-default; + line-height: 1.1; // Put the text on the baseline. +} + +// Actual inputs float to right of labels and also have a set percentage +.input-row input { + float: right; + width: 65%; + padding-left: 0; + margin-bottom: 0; + border: 0; +} diff --git a/sass/mixins.scss b/sass/mixins.scss new file mode 100644 index 000000000..9ee5477c4 --- /dev/null +++ b/sass/mixins.scss @@ -0,0 +1,127 @@ +// +// Mixins +// -------------------------------------------------- + + +// General +// -------------------------------------------------- + +// Utilities +// ------------------------- + +// Clearfix +// Source: http://nicolasgallagher.com/micro-clearfix-hack/ +// +// For modern browsers +// 1. The space content is one way to avoid an Opera bug when the +// contenteditable attribute is included anywhere else in the document. +// Otherwise it causes space to appear at the top and bottom of elements +// that are clearfixed. +// 2. The use of `table` rather than `block` is only necessary if using +// `:before` to contain the top-margins of child elements. +@mixin clearfix() { + &:before, + &:after { + display: table; // 2 + content: " "; // 1 + } + &:after { + clear: both; + } +} + +// Box shadow +@mixin box-shadow($shadow...) { + -webkit-box-shadow: $shadow; + box-shadow: $shadow; +} + +// Gradients +@mixin linear-gradient($color-from, $color-to) { + background-color: $color-from; // Old browsers + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $color-from), color-stop(100%, $color-to)); // Chrome, Safari4+ + background-image: -webkit-linear-gradient(top, $color-from 0%, $color-to 100%); // Chrome10+, Safari5.1+ + background-image: -moz-linear-gradient(top, $color-from 0%, $color-to 100%); // FF3.6+ + background-image: -ms-linear-gradient(top, $color-from 0%, $color-to 100%); // IE10+ + background-image: -o-linear-gradient(top, $color-from 0%, $color-to 100%); // Opera 11.10+ + background-image: linear-gradient(to bottom, $color-from 0%, $color-to 100%); // W3C + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#{$color-from}', endColorstr='#{$color-to}', GradientType=0 ); // IE6-9 +} +@mixin directional-gradient($color-from, $color-to, $deg: 45deg) { + background-color: $color-from; // Old browsers + background-image: -webkit-gradient(linear, left bottom, right top, color-stop(0%, $color-from), color-stop(100%, $color-to)); // Chrome, Safari4+ + background-image: -webkit-linear-gradient($deg, $color-from 0%, $color-to 100%); // Chrome10+, Safari5.1+ + background-image: -moz-linear-gradient($deg, $color-from 0%, $color-to 100%); // FF3.6+ + background-image: -ms-linear-gradient($deg, $color-from 0%, $color-to 100%); // IE10+ + background-image: -o-linear-gradient($deg, $color-from 0%, $color-to 100%); // Opera 11.10+ + background-image: linear-gradient($deg, $color-from 0%, $color-to 100%); // W3C + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#{$color-from}', endColorstr='#{$color-to}', GradientType=1 ); // IE6-9 +} + + +// Transforms +// -------------------------------------------------- +@mixin transform($transform...) { + -webkit-transform: $transform; + -ms-transform: $transform; + transform: $transform; +} + + +// Transitions +// -------------------------------------------------- +@mixin transition($transition...) { + -webkit-transition: $transition; + -moz-transition: $transition; + transition: $transition; +} +@mixin transition-property($property...) { + -webkit-transition-property: $property; + -moz-transition-property: $property; + transition-property: $property; +} +@mixin transition-duration($duration...) { + -webkit-transition-duration: $duration; + -moz-transition-duration: $duration; + transition-duration: $duration; +} +@mixin transition-timing-function($function...) { + -webkit-transition-timing-function: $function; + -moz-transition-timing-function: $function; + transition-timing-function: $function; +} + + +// Animations +// -------------------------------------------------- +@mixin animation-name($name) { + -webkit-animation-name: $name; + -moz-animation-name: $name; + animation-name: $name; +} +@mixin animation-duration($duration) { + -webkit-animation-duration: $duration; + -moz-animation-duration: $duration; + animation-duration: $duration; +} +@mixin animation-direction($direction) { + -webkit-animation-direction: $direction; + -moz-animation-direction: $direction; + animation-direction: $direction; +} + + +// Misc +// -------------------------------------------------- +@mixin hairline($type, $color, $offset) { + @if $type == single { + background-image: url("data:image/svg+xml;utf8,"); + background-position: $offset 100%; + + } @else if $type == double { + background-image: url("data:image/svg+xml;utf8,"), + url("data:image/svg+xml;utf8,"); + background-position: $offset 100%, $offset 0; + } + background-repeat: no-repeat; +} diff --git a/sass/modals.scss b/sass/modals.scss new file mode 100644 index 000000000..ba15fafb1 --- /dev/null +++ b/sass/modals.scss @@ -0,0 +1,28 @@ +// +// Modals +// -------------------------------------------------- + +.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; + -moz-transition: -moz-transform .25s, opacity 1ms .25s; + transition: transform .25s, opacity 1ms .25s; + @include transform(translate3d(0, 100%, 0)); + + // Active modal + &.active { + height: 100%; + opacity: 1; + -webkit-transition: -webkit-transform .25s; + -moz-transition: -moz-transform .25s; + transition: transform .25s; + @include transform(translate3d(0, 0, 0)); + } +} diff --git a/sass/normalize.scss b/sass/normalize.scss new file mode 100644 index 000000000..d011ac396 --- /dev/null +++ b/sass/normalize.scss @@ -0,0 +1,424 @@ +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ + +// +// 1. Set default font family to sans-serif. +// 2. Prevent iOS and IE text size adjust after device orientation change, +// without disabling user zoom. +// + +html { + font-family: sans-serif; // 1 + -ms-text-size-adjust: 100%; // 2 + -webkit-text-size-adjust: 100%; // 2 +} + +// +// Remove default margin. +// + +body { + margin: 0; +} + +// HTML5 display definitions +// ========================================================================== + +// +// Correct `block` display not defined for any HTML5 element in IE 8/9. +// Correct `block` display not defined for `details` or `summary` in IE 10/11 +// and Firefox. +// Correct `block` display not defined for `main` in IE 11. +// + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +// +// 1. Correct `inline-block` display not defined in IE 8/9. +// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. +// + +audio, +canvas, +progress, +video { + display: inline-block; // 1 + vertical-align: baseline; // 2 +} + +// +// Prevent modern browsers from displaying `audio` without controls. +// Remove excess height in iOS 5 devices. +// + +audio:not([controls]) { + display: none; + height: 0; +} + +// +// Address `[hidden]` styling not present in IE 8/9/10. +// Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22. +// + +[hidden], +template { + display: none; +} + +// Links +// ========================================================================== + +// +// Remove the gray background color from active links in IE 10. +// + +a { + background-color: transparent; +} + +// +// Improve readability of focused elements when they are also in an +// active/hover state. +// + +a:active, +a:hover { + outline: 0; +} + +// Text-level semantics +// ========================================================================== + +// +// Address styling not present in IE 8/9/10/11, Safari, and Chrome. +// + +abbr[title] { + border-bottom: 1px dotted; +} + +// +// Address style set to `bolder` in Firefox 4+, Safari, and Chrome. +// + +b, +strong { + font-weight: bold; +} + +// +// Address styling not present in Safari and Chrome. +// + +dfn { + font-style: italic; +} + +// +// Address variable `h1` font-size and margin within `section` and `article` +// contexts in Firefox 4+, Safari, and Chrome. +// + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +// +// Address styling not present in IE 8/9. +// + +mark { + background: #ff0; + color: #000; +} + +// +// Address inconsistent and variable font size in all browsers. +// + +small { + font-size: 80%; +} + +// +// Prevent `sub` and `sup` affecting `line-height` in all browsers. +// + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +// Embedded content +// ========================================================================== + +// +// Remove border when inside `a` element in IE 8/9/10. +// + +img { + border: 0; +} + +// +// Correct overflow not hidden in IE 9/10/11. +// + +svg:not(:root) { + overflow: hidden; +} + +// Grouping content +// ========================================================================== + +// +// Address margin not present in IE 8/9 and Safari. +// + +figure { + margin: 1em 40px; +} + +// +// Address differences between Firefox and other browsers. +// + +hr { + box-sizing: content-box; + height: 0; +} + +// +// Contain overflow in all browsers. +// + +pre { + overflow: auto; +} + +// +// Address odd `em`-unit font size rendering in all browsers. +// + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +// Forms +// ========================================================================== + +// +// Known limitation: by default, Chrome and Safari on OS X allow very limited +// styling of `select`, unless a `border` property is set. +// + +// +// 1. Correct color not being inherited. +// Known issue: affects color of disabled elements. +// 2. Correct font properties not being inherited. +// 3. Address margins set differently in Firefox 4+, Safari, and Chrome. +// + +button, +input, +optgroup, +select, +textarea { + color: inherit; // 1 + font: inherit; // 2 + margin: 0; // 3 +} + +// +// Address `overflow` set to `hidden` in IE 8/9/10/11. +// + +button { + overflow: visible; +} + +// +// Address inconsistent `text-transform` inheritance for `button` and `select`. +// All other form control elements do not inherit `text-transform` values. +// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. +// Correct `select` style inheritance in Firefox. +// + +button, +select { + text-transform: none; +} + +// +// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` +// and `video` controls. +// 2. Correct inability to style clickable `input` types in iOS. +// 3. Improve usability and consistency of cursor style between image-type +// `input` and others. +// + +button, +html input[type="button"], // 1 +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; // 2 + cursor: pointer; // 3 +} + +// +// Re-set default cursor for disabled elements. +// + +button[disabled], +html input[disabled] { + cursor: default; +} + +// +// Remove inner padding and border in Firefox 4+. +// + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +// +// Address Firefox 4+ setting `line-height` on `input` using `!important` in +// the UA stylesheet. +// + +input { + line-height: normal; +} + +// +// It's recommended that you don't attempt to style these elements. +// Firefox's implementation doesn't respect box-sizing, padding, or width. +// +// 1. Address box sizing set to `content-box` in IE 8/9/10. +// 2. Remove excess padding in IE 8/9/10. +// + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; // 1 + padding: 0; // 2 +} + +// +// Fix the cursor style for Chrome's increment/decrement buttons. For certain +// `font-size` values of the `input`, it causes the cursor style of the +// decrement button to change from `default` to `text`. +// + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +// +// 1. Address `appearance` set to `searchfield` in Safari and Chrome. +// 2. Address `box-sizing` set to `border-box` in Safari and Chrome. +// + +input[type="search"] { + -webkit-appearance: textfield; // 1 + box-sizing: content-box; // 2 +} + +// +// Remove inner padding and search cancel button in Safari and Chrome on OS X. +// Safari (but not Chrome) clips the cancel button when the search input has +// padding (and `textfield` appearance). +// + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +// +// Define consistent border, margin, and padding. +// + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +// +// 1. Correct `color` not being inherited in IE 8/9/10/11. +// 2. Remove padding so people aren't caught out if they zero out fieldsets. +// + +legend { + border: 0; // 1 + padding: 0; // 2 +} + +// +// Remove default vertical scrollbar in IE 8/9/10/11. +// + +textarea { + overflow: auto; +} + +// +// Don't inherit the `font-weight` (applied by a rule above). +// NOTE: the default cannot safely be changed in Chrome and Safari on OS X. +// + +optgroup { + font-weight: bold; +} + +// Tables +// ========================================================================== + +// +// Remove most spacing between table cells. +// + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/sass/popovers.scss b/sass/popovers.scss new file mode 100644 index 000000000..e91ae3976 --- /dev/null +++ b/sass/popovers.scss @@ -0,0 +1,97 @@ +// +// Popovers (to be used with popovers.js) +// -------------------------------------------------- + +.popover { + position: fixed; + top: 55px; + left: 50%; + z-index: 20; + display: none; + width: 280px; + margin-left: -140px; + background-color: $chrome-color; + border-radius: $border-radius; + opacity: 0; + @include box-shadow(0 0 15px rgba(0, 0, 0, .1)); + @include transform(translate3d(0, -15px, 0)); + @include transition(all .25s linear); + + // Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution) + &:before { + position: absolute; + top: -15px; + left: 50%; + width: 0; + height: 0; + margin-left: -15px; + content: ''; + border-right: 15px solid transparent; + border-bottom: 15px solid $chrome-color; + border-left: 15px solid transparent; + } + + // Popover transition + // -------------------------------------------------- + + &.visible { + opacity: 1; + @include transform(translate3d(0, 0, 0)); + } + + // Give correct spacing to the content if there is a bar inside the popover. + .bar ~ .table-view { + padding-top: $bar-base-height; + } +} + +// Backdrop (used as invisible touch escape) +// -------------------------------------------------- + +.backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 15; + background-color: rgba(0,0,0,.3); +} + +// Block level buttons in popovers +// -------------------------------------------------- + +.popover .btn-block { + margin-bottom: 5px; + + // Remove extra margin on bottom of last button + &:last-child { + margin-bottom: 0; + } +} + + +// Popovers with nav bars +// -------------------------------------------------- + +.popover .bar-nav { + border-bottom: $border-default; + border-top-left-radius: 12px; + border-top-right-radius: 12px; + @include box-shadow(none); +} + + +// Table views in popovers +// -------------------------------------------------- + +.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: $border-radius; +} diff --git a/sass/push.scss b/sass/push.scss new file mode 100644 index 000000000..98eaa62b2 --- /dev/null +++ b/sass/push.scss @@ -0,0 +1,64 @@ +// +// Push styles (to be used with push.js) +// -------------------------------------------------- + +.content { + // Fade animation + &.fade { + left: 0; + opacity: 0; + @include transition(opacity .4s); + + &.in { + opacity: 1; + } + } + + // Slide animation + &.sliding { + z-index: 2; + -webkit-transition: -webkit-transform .4s; + -moz-transition: -moz-transform .4s; + transition: transform .4s; + @include transform(translate3d(0, 0, 0)); + + &.left { + z-index: 1; + @include transform(translate3d(-100%, 0, 0)); + } + + &.right { + z-index: 3; + @include transform(translate3d(100%, 0, 0)); + } + } +} + +// Add chevrons to elements +.navigate-left, +.navigate-right, +.push-left, +.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-font-smoothing: antialiased; + @include transform(translateY(-50%)); + } +} +.navigate-left:after, +.push-left:after { + left: 15px; + content: '\e822'; +} +.navigate-right:after, +.push-right:after{ + right: 15px; + content: '\e826'; +} diff --git a/sass/ratchet.scss b/sass/ratchet.scss new file mode 100644 index 000000000..806f6d016 --- /dev/null +++ b/sass/ratchet.scss @@ -0,0 +1,30 @@ + +// Variables +@import "variables.scss"; + +// Mixins +@import "mixins.scss"; + +// Normalize & Base CSS +@import "normalize.scss"; +@import "base.scss"; +@import "type.scss"; + +// Components +@import "buttons.scss"; +@import "bars.scss"; +@import "badges.scss"; +@import "cards.scss"; +@import "table-views.scss"; +@import "forms.scss"; +@import "segmented-controls.scss"; +@import "popovers.scss"; + +// Javascript components +@import "modals.scss"; +@import "sliders.scss"; +@import "toggles.scss"; +@import "push.scss"; + +// Ratchicons +@import "ratchicons.scss"; diff --git a/sass/ratchicons.scss b/sass/ratchicons.scss new file mode 100644 index 000000000..be1880749 --- /dev/null +++ b/sass/ratchicons.scss @@ -0,0 +1,64 @@ +// +// Ratchicons +// -------------------------------------------------- + +@font-face { + font-family: Ratchicons; + font-weight: normal; + font-style: 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'; } } diff --git a/sass/segmented-controls.scss b/sass/segmented-controls.scss new file mode 100644 index 000000000..edc3aaeb3 --- /dev/null +++ b/sass/segmented-controls.scss @@ -0,0 +1,110 @@ +// +// Segmented controllers +// -------------------------------------------------- + +.segmented-control { + position: relative; + display: table; + overflow: hidden; + font-size: 12px; + font-weight: $font-weight-light; + background-color: $chrome-color; + border: 1px solid #ccc; + border-radius: 3px; + + // Section within controller + .control-item { + display: table-cell; + 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; + + // Remove border-left and shadow from first section + &:first-child { + border-left-width: 0; + } + + // Tap state of segmented controller + &:active { + background-color: #eee; + } + + // Selected state of segmented controller + &.active { + background-color: #ccc; + } + } +} + +// Other segmented controller types +// -------------------------------------------------- + +// Primary +.segmented-control-primary { + border-color: $primary-color; + + .control-item { + color: $primary-color; + border-color: inherit; + + &:active { + background-color: lighten($primary-color, 35%); + } + &.active { + color: #fff; + background-color: $primary-color; + } + } +} + +// Positive +.segmented-control-positive { + border-color: $positive-color; + + .control-item { + color: $positive-color; + border-color: inherit; + + &:active { + background-color: lighten($positive-color, 35%); + } + &.active { + color: #fff; + background-color: $positive-color; + } + } +} + +// Negative +.segmented-control-negative { + border-color: $negative-color; + + .control-item { + color: $negative-color; + border-color: inherit; + + &:active { + background-color: lighten($negative-color, 35%); + } + &.active { + color: #fff; + background-color: $negative-color; + } + } +} + +// This is used to by the js to show and hide content tide to the segmented control. +.control-content { + display: none; + + &.active { + display: block; + } +} diff --git a/sass/sliders.scss b/sass/sliders.scss new file mode 100644 index 000000000..d8e10aab9 --- /dev/null +++ b/sass/sliders.scss @@ -0,0 +1,31 @@ +// +// Slider styles (to be used with sliders.js) +// -------------------------------------------------- + +// Width of slider +.slider { + width: 100%; +} + +// Outer wrapper for slider +.slider { + overflow: hidden; + background-color: #000; + + // Inner wrapper for slider (width of all slides together) + .slide-group { + position: relative; + font-size: 0; // Remove spaces from inline-block children + white-space: nowrap; + @include transition(all 0s linear); + + // Individual slide + .slide { + display: inline-block; + width: 100%; + height: 100%; + font-size: 14px; + vertical-align: top; // Ensure that li always aligns to top + } + } +} diff --git a/sass/table-views.scss b/sass/table-views.scss new file mode 100644 index 000000000..e06f4a819 --- /dev/null +++ b/sass/table-views.scss @@ -0,0 +1,108 @@ +// +// Table views +// -------------------------------------------------- + +.table-view { + padding-left: 0; + margin-top: 0; + margin-bottom: 15px; + list-style: none; // Remove usual bullet styles from table view + background-color: #fff; + border-top: $border-default; + border-bottom: $border-default; +} + +// Pad each table view item and add dividers +.table-view-cell { + position: relative; + padding: 11px 65px 11px 15px; + overflow: hidden; + border-bottom: $border-default; + + // Remove the border from the last table view item + &:last-child { + border-bottom: 0; + } + // If it's a table view of links, make sure the child takes up full table view item tap area (want to avoid selecting child buttons though) + > a:not(.btn) { + position: relative; + display: block; + padding: inherit; + margin: -11px -65px -11px -15px; // Make the entire list item tappable. + overflow: hidden; + color: inherit; + + &:active { + background-color: #eee; + } + } + p { + margin-bottom: 0; + } +} + + +// Table view dividers +// -------------------------------------------------- + +.table-view-divider { + padding-top: 6px; + padding-bottom: 6px; + padding-left: 15px; + margin-top: -1px; // Hides the border of the previous list item + margin-left: 0; + font-weight: $font-weight; + color: #999; + background-color: #fafafa; + border-top: $border-default; + border-bottom: $border-default; +} + + +// Table-views with media (images,avatars, icons) +// -------------------------------------------------- + +.table-view .media, +.table-view .media-body { + overflow: hidden; +} +.table-view .media-object { + &.pull-left { + margin-right: 10px; + } + &.pull-right { + margin-left: 10px; + } +} + + +// Table-views with buttons, badges and toggles +// -------------------------------------------------- +.table-view-cell, +.table-view-cell > a { + > .btn, + > .badge, + > .toggle { + position: absolute; + top: 50%; + right: 15px; + @include transform(translateY(-50%)); + } + + // If the cell has a chevron, give some more room. + .navigate-left, + .navigate-right, + .push-left, + .push-right { + > .btn, + > .badge, + > .toggle { + right: 35px; + } + } +} + +// If the table view is the first component, give it extra margin on top. +.content > .table-view:first-child { + margin-top: 15px; +} diff --git a/sass/theme-android.scss b/sass/theme-android.scss new file mode 100644 index 000000000..5c276e73b --- /dev/null +++ b/sass/theme-android.scss @@ -0,0 +1,755 @@ +@import "mixins.scss"; + +// +// Android theme +// Visuals and interactions in the style of Android +// +// -------------------------------------------------- + + +// Variables +// -------------------------------------------------- + +// Type +$font-family-default: 'Roboto', sans-serif !global; +$font-size-default: 18px !global; +$font-weight: 500 !global; +$font-weight-light: 400 !global; +$line-height-default: 22px !global; + +// Colors +// +// Main theme colors +$primary-color: #33b5e5 !global; +$chrome-color: #dddddd !global; +$text-color: #222 !global; + +// Action colors +$default-color: #999 !global; +$positive-color: #99cc00 !global; +$negative-color: #ff4444 !global; + +// Bars +$bar-base-height: 50px !global; +$bar-tab-height: 50px !global; + +// Borders +$border-default: 1px solid #b1b1b1 !global; +$border-radius: 2px !global; + + +// Base +// -------------------------------------------------- + +body { + font-family: $font-family-default; + font-size: $font-size-default; + line-height: $line-height-default; + color: $text-color; +} + +// Universal link styling +a { + color: $primary-color; + + &:active { + color: darken($primary-color, 10%); + } +} + +// Content +.content { + background-color: #f2f2f2; +} +// Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab. +// Note: For these to work, content must come after both bars in the markup +.bar-nav ~ .content { + padding-top: $bar-base-height; +} +.bar-header-secondary ~ .content { + padding-top: $bar-base-height*2; +} +.bar-tab ~ .content { + padding-top: $bar-tab-height; + padding-bottom: 0; +} +.bar-footer ~ .content { + padding-bottom: $bar-base-height; +} +.bar-footer-secondary ~ .content { + padding-bottom: ($bar-base-height*2); +} + +// Buttons +// -------------------------------------------------- + +.btn { + padding: 8px 15px; + font-size: 14px; + color: $text-color; + background-color: #cecece; + border: 0; + border-radius: $border-radius; + @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 1px rgba(0,0,0,.25)); + + // Active & filled button styles + &:active, + &.active { + color: $text-color; + background-color: $default-color; + border: 0; + @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2)); + } +} + + +// Other button types +// -------------------------------------------------- + +// Primary button (Default color is blue) +.btn-primary { + color: #fff; + background-color: $primary-color; + border: 0; + + &:active, + &.active { + color: #fff; + border: 0; + background-color: darken($primary-color, 10%); + } +} + +// Positive button (Default color is green) +.btn-positive { + color: #fff; + background-color: $positive-color; + border: 0; + + &:active, + &.active { + color: #fff; + background-color: darken($positive-color, 10%); + border: 0; + } +} + +// Negative button (Default color is red) +.btn-negative { + color: #fff; + background-color: $negative-color; + border: 0; + + &:active, + &.active { + color: #fff; + background-color: darken($negative-color, 10%); + border: 0; + } +} + +// Outlined buttons +.btn-outlined { + background-color: transparent; + border: 1px solid $default-color; + @include box-shadow(none); + + + &.btn-primary { + color: $primary-color; + border: 1px solid $primary-color; + + &:active { + background-color: $primary-color; + border: 1px solid $primary-color; + } + } + &.btn-positive { + color: $positive-color; + border: 1px solid $positive-color; + + &:active { + background-color: $positive-color; + border: 1px solid $positive-color; + } + } + &.btn-negative { + color: $negative-color; + border: 1px solid $negative-color; + + &:active { + background-color: $negative-color; + border: 1px solid $negative-color; + } + } + // Active states + &:active { + background-color: $default-color; + border: 1px solid $default-color; + @include box-shadow(none); + } + &.btn-primary:active, + &.btn-positive:active, + &.btn-negative:active { + color: #fff; + @include box-shadow(none); + } +} + +// Link button (Buttons that look like links) +.btn-link { + color: $primary-color; + background-color: transparent; + border: none; + @include box-shadow(none); + + &:active, + &.active { + color: darken($primary-color, 10%); + background-color: transparent; + @include box-shadow(none); + } +} + +// Block buttons +.btn-block { + padding: 15px 0; + font-size: 18px; +} + +// Buttons with badges +.btn { + .badge { + background-color: rgba(0,0,0,.15); + + &.badge-inverted { + background-color: transparent; + } + } + + // Active states + &:active .badge { + color: #fff; + } +} + + +// Bars +// -------------------------------------------------- + +.bar { + height: $bar-base-height; + background-color: $chrome-color; + border-bottom: $border-default; + @include box-shadow(inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0,0,0,.07)); + + // Modifier class to dock any bar below .bar-nav + &.bar-header-secondary { + top: $bar-base-height; + } + + // Modifier class to dock any bar above a standard bar + &.bar-footer-secondary { + bottom: $bar-base-height; + } + + // Modifier class to dock any bar above a .bar-tab + &.bar-footer-secondary-tab { + bottom: $bar-tab-height; + } + + // Give the footers the correct border + .bar-footer, + .bar-footer-secondary, + .bar-footer-secondary-tab { + border-top: $border-default; + border-bottom: 0; + @include box-shadow(inset 0 -2px 0 $primary-color); + } +} +.bar-tab { + top: 0; + bottom: auto; + height: $bar-tab-height; + border-top: 0; + + .tab-item { + color: #929292; + + // Active states for the tab bar + &.active { + color: $primary-color; + @include box-shadow(inset 0 -2px 0 $primary-color); + } + //Pressed state + &:active { + color: #929292; + background-color: #78c6e3; + } + .icon { + top: 3px; + padding-top: 0; + padding-bottom: 0; + } + } +} + +// Left aligned text in the .bar-nav +.title { + position: static; + padding-left: 15px; + font-size: $font-size-default; + line-height: 49px; + text-align: left; +} + +// Bars with buttons +.bar { + .btn { + top: 7px; + padding-top: 10px; + padding-bottom: 10px; + } + .btn-link { + top: 0; + padding: 0; + font-size: $font-size-default; + line-height: 49px; + color: $primary-color; + + &:active, + &.active { + color: darken($primary-color, 10%); + } + + // Make sure link buttons w/ icons line up with the content correctly + .icon { + top: 2px; + padding: 0; + } + } + .btn-block { + top: 4px; + } +} + +// Bars with segmented-controls +// +// Remove standard segmented bottom margin +.bar .segmented-control { + top: 7px; +} + +// Bars with Ratchicons +.bar { + .icon { + padding-top: 13px; + padding-bottom: 13px; + } + // Handle carets in the titles + .title .icon { + padding: 0; + + &.icon-caret { + top: 10px; + color: #777; + } + } +} + +// Standard bars with search forms +// +// Position/size search bar within the bar +.bar input[type="search"] { + height: 35px; +} + + +// Badges +// -------------------------------------------------- + +.badge { + &.badge-inverted { + color: $default-color; + background-color: transparent; + } +} + +// Badge modifiers +// +// Main badge +.badge-primary { + color: #fff; + background-color: $primary-color; + + &.badge-inverted { + color: $primary-color; + background-color: transparent; + } +} + +// Positive badge +.badge-positive { + color: #fff; + background-color: $positive-color; + + &.badge-inverted { + color: $positive-color; + background-color: transparent; + } +} + +// Negative badge +.badge-negative { + color: #fff; + background-color: $negative-color; + + &.badge-inverted { + color: $negative-color; + background-color: transparent; + } +} + + +// Cards +// -------------------------------------------------- + +.card { + background-color: transparent; + border-color: #d9d9d9; + border-radius: $border-radius; +} + + +// Table views +// -------------------------------------------------- + +.table-view { + background-color: transparent; + + .table-view-cell { + border-bottom: 1px solid #d9d9d9; + + // Remove the border from the last table view item + &:last-child { + background-image: none; + } + > a:not(.btn):active { + color: inherit; + background-color: #e0e0e0; + + .icon { + color: #fff; + } + } + } + + // Table view dividers + .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-views with buttons, badges and toggles +// -------------------------------------------------- +.table-view-cell, +.table-view-cell > a { + // Android has no cheverons so don't bump the buttons, badges, or toggles over. + .navigate-left, + .navigate-right, + .push-left, + .push-right { + > .btn, + > .badge, + > .toggle { + right: 15px; + } + } +} + +// Forms +// -------------------------------------------------- + +select, +textarea, +input[type="text"], +input[type="search"], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="tel"], +input[type="color"], +.input-group { + height: 40px; + padding: 10px 15px; + border: 1px solid rgba(0, 0, 0, .2); + @include box-shadow(0 1px 1px rgba(0,0,0,.1)); +} + +input[type="search"] { + border-radius: $border-radius; +} + +select, +textarea, +.input-group { + height: auto; +} + +// Input groups (cluster multiple inputs together into a single group) +// ------------------------------------------------------------------- +.input-group { + padding: 0; + border: 0; +} +.input-group input { + border: 0; + border-bottom: 1px solid #d9d9d9; + @include box-shadow(none); +} +// Remove bottom border on last input to avoid double bottom border +.input-group input:last-child { + background-image: none; +} + +// Input groups with labels +// -------------------------------------------------- + +// To use labels with input groups, wrap a label and an input in an .input-row +.input-row { + height: 40px; // Matches the height of inputs. + border-bottom: 1px solid #d9d9d9; +} +.input-row label { + padding-top: 10px; + padding-bottom: 10px; +} +// Remove bottom border on last input-row to avoid double bottom border +.input-row label + input { + background-image: none; + border-bottom: 0; +} + + +// Segmented controllers +// -------------------------------------------------- + +.segmented-control { + font-size: 14px; + background-color: #cecece; + border: 0; + border-radius: $border-radius; + @include box-shadow(0 1px 1px rgba(0,0,0,.25)); + + .control-item { + padding-top: 10px; + padding-bottom: 10px; + color: $text-color; + border-left: 1px solid #999; + @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2)); + + // Remove border-left and shadow from first section + &:first-child { + border-left-width: 0; + } + + &:active, + &.active { + background-color: $default-color; + } + } +} + + +// Other segmented controller types +// -------------------------------------------------- + +// Primary +.segmented-control-primary { + border: 0; + + .control-item { + color: #fff; + border-color: inherit; + + &:active, + &.active { + color: #fff; + background-color: $primary-color; + } + } +} + +// Positive +.segmented-control-positive { + border: 0; + + .control-item { + color: #fff; + border-color: inherit; + + &:active, + &.active { + color: #fff; + background-color: $positive-color; + } + } +} + +// Negative +.segmented-control-negative { + border: 0; + + .control-item { + color: #fff; + border-color: inherit; + + &:active, + &.active { + color: #fff; + background-color: $negative-color; + } + } +} + + +// Popovers +// -------------------------------------------------- + +.popover { + top: 47px; + left: 15px; + width: 200px; + margin-left: 0; + border: 1px solid #9b9b9b; + border-radius: 0; + -webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out; + -moz-transition: -moz-transform .1s ease-in-out, opacity .2s ease-in-out; + transition: transform .1s ease-in-out, opacity .2s ease-in-out; + @include box-shadow(0 0 3px rgba(0,0,0,.2)); + @include transform(scale(.75)); + + &:before { + display: none; + } + &.visible { + @include transform(scale(1)); + } +} + +// Remove the popover's backdrop +.backdrop { + background-color: transparent; +} + +// Popovers with bars +.popover { + .bar { + border-radius: 0; + } + + // Padding the content correctly. + .bar-nav ~ .table-view { + padding-top: $bar-base-height; + } +} + +// Popovers with table-views +.popover .table-view { + border-radius: 12px; +} + + +// Toggles styles +// -------------------------------------------------- + +.toggle { + width: 104px; + height: 28px; + background-color: #d7d7d7; + border: 2px solid #d7d7d7; + border-radius: 0; + + // Sliding handle + .toggle-handle { + top: 0; + left: 0; + width: 50px; + height: 24px; + background-color: #bebebe; + border: 1px solid #b5b5b5; + border-radius: 2px; + @include box-shadow(inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.1)); + } + &:before { + top: 1px; + right: auto; + left: 11px; + z-index: 3; + color: #fff; + } + + // Active state for toggle + &.active { + background-color: #d7d7d7; + border: 2px solid #d7d7d7; + + .toggle-handle { + margin-right: 2px; + background-color: $primary-color; + border-color: $primary-color; + @include transform(translate3d(50px,0,0)); + } + &:before { + right: 14px; + left: auto; + color: #fff; + } + } +} + + +// Push icons +// -------------------------------------------------- + +// Deprecated `push-left` and `push-right` as of 2.0.1 +.navigate-left:after, +.push-left:after { + content: ''; +} +.navigate-right:after, +.push-right:after { + content: ''; +} + + +// Ratchicons for Android +// -------------------------------------------------- + +.icon-caret:before { content: '\e800'; } +.icon-down:before, +.icon-down-nav:before { content: '\e801'; } +.icon-download:before { content: '\e802'; } +.icon-left:before, +.icon-left-nav:before { content: '\e803'; } +.icon-more-vertical:before { content: '\e804'; } +.icon-more:before { content: '\e805'; } +.icon-right:before, +.icon-right-nav:before { content: '\e806'; } +.icon-search:before { content: '\e807'; } +.icon-share:before { content: '\e808'; } +.icon-up:before, +.icon-up-nav:before { content: '\e809'; } diff --git a/sass/theme-ios.scss b/sass/theme-ios.scss new file mode 100644 index 000000000..14bcd829e --- /dev/null +++ b/sass/theme-ios.scss @@ -0,0 +1,591 @@ +@import "mixins.scss"; + +// +// iOS theme +// Visuals and interactions in the style of iOS +// +// -------------------------------------------------- + + +// Variables +// -------------------------------------------------- + +// Colors +// +// Main theme colors +$primary-color: #007aff !global; +$chrome-color: rgba(247,247,247,.98) !global; + +// Action colors +$default-color: #929292 !global; +$positive-color: #4cd964 !global; +$negative-color: #dd524d !global; + +// Bars +$bar-base-height: 44px !global; +$bar-tab-height: 50px !global; + +// iOS style transitions +$timing-fuction: cubic-bezier(.1, .5, .1, 1) !global; // Inspired by @c2prods + + +// Base +// -------------------------------------------------- + +// Universal link styling +a { + color: $primary-color; + + &:active { + color: darken($primary-color, 10%); + } +} + +// Content +.content { + background-color: #efeff4; +} + + +// Typography +// -------------------------------------------------- + +.h5, h5, +.h6, h6, +p { + color: #8f8f94; +} +.h5, h5, +.h6, h6 { + font-weight: normal; + text-transform: uppercase; +} + + +// Buttons +// -------------------------------------------------- + +.btn { + color: $default-color; + background-color: $chrome-color; + border: 1px solid $default-color; + @include transition(all); + @include transition-duration(.2s); + @include transition-timing-function(linear); + + // Active & filled button styles + &:active, + &.active { + color: #fff; + background-color: $default-color; + } +} + + +// Other button types +// -------------------------------------------------- + +// Primary button (Default color is blue) +.btn-primary { + color: #fff; + background-color: $primary-color; + border: 1px solid $primary-color; + + &:active, + &.active { + background-color: darken($primary-color, 10%); + border: 1px solid darken($primary-color, 10%); + } +} + +// Positive button (Default color is green) +.btn-positive { + color: #fff; + background-color: $positive-color; + border: 1px solid $positive-color; + + &:active, + &.active { + background-color: darken($positive-color, 10%); + border: 1px solid darken($positive-color, 10%); + } +} + +// Negative button (Default color is red) +.btn-negative { + color: #fff; + background-color: $negative-color; + border: 1px solid $negative-color; + + &:active, + &.active { + background-color: darken($negative-color, 10%); + border: 1px solid darken($negative-color, 10%); + } +} + +// Outlined buttons +.btn-outlined { + background-color: transparent; + + &.btn-primary { + color: $primary-color; + } + &.btn-positive { + color: $positive-color; + } + &.btn-negative { + color: $negative-color; + } + // Active states + &.btn-primary:active, + &.btn-positive:active, + &.btn-negative:active { + color: #fff; + } +} + +// Link button (Buttons that look like links) +.btn-link { + color: $primary-color; + background-color: transparent; + border: none; + + &:active, + &.active { + color: darken($primary-color, 10%); + background-color: transparent; + } +} + +// Buttons with badges +.btn { + .badge { + background-color: rgba(0,0,0,.15); + + &.badge-inverted { + background-color: transparent; + } + } + + // Active states + &:active .badge { + color: #fff; + } +} + + +// Bars +// -------------------------------------------------- + +// Default bar +.bar { + background-color: $chrome-color; + border-bottom: 0; + @include box-shadow(0 0 1px rgba(0,0,0,.85)); + + // Modifier class to dock any bar below .bar-nav + &.bar-header-secondary { + top: $bar-base-height; + } + + // Modifier class to dock any bar above a standard bar + &.bar-footer-secondary { + bottom: $bar-base-height; + } + + // Modifier class to dock any bar above a .bar-tab + &.bar-footer-secondary-tab { + bottom: $bar-tab-height; + } + // Give the footers the correct border + &.bar-footer, + &.bar-footer-secondary, + &.bar-footer-secondary-tab { + border-top: 0; + } +} + +// Tab bar +.bar-tab { + border-top: 0; +} +.tab-item { + color: #929292; + + // Active states for the tab bar + &.active, + &:active { + color: $primary-color; + } +} + +// Nav bars with buttons +.bar-nav { + // Link buttons in nav bars + .btn-link { + color: $primary-color; + + &:active { + color: $primary-color; + opacity: .6; + } + } +} + + + +// Badges +// -------------------------------------------------- + +.badge { + &.badge-inverted { + color: $default-color; + background-color: transparent; + } +} + + +// Badge modifiers +// +// Main badge +.badge-primary { + color: #fff; + background-color: $primary-color; + + &.badge-inverted { + color: $primary-color; + background-color: transparent; + } +} + +// Positive badge +.badge-positive { + color: #fff; + background-color: $positive-color; + + &.badge-inverted { + color: $positive-color; + background-color: transparent; + } +} + +// Negative badge +.badge-negative { + color: #fff; + background-color: $negative-color; + + &.badge-inverted { + color: $negative-color; + background-color: transparent; + } +} + + +// Cards +// -------------------------------------------------- + +// Cards with table-views +.card .table-view { + background-image: none; +} +.card .table-view-cell:last-child { + background-image: none; +} + +// Table views +// -------------------------------------------------- + +.table-view { + border-top: 0; + border-bottom: 0; + @include hairline(double, #c8c7cc, 0); // Double grey border. + + .table-view-cell { + border-bottom: 0; + @include hairline(single, #c8c7cc, 15px); // Single grey border with 15px offset. + + // Remove the border from the last table view item + &:last-child { + background-image: none; + } + > a:not(.btn):active { + color: inherit; + } + } + + // Table view dividers + .table-view-divider { + border-top: 0; + border-bottom: 0; + @include hairline(double, #c8c7cc, 0); // Double (top and bottom) grey border with no offset. + } +} + + +// Forms +// -------------------------------------------------- + +select, +textarea, +input[type="text"], +input[type="search"], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="tel"], +input[type="color"], +.input-group { + height: 40px; + padding: 10px 15px; + border: 1px solid rgba(0, 0, 0, .2); +} + +// Rounded search input +input[type="search"] { + height: 34px; + text-align: center; + background-color: rgba(0,0,0,.1); + border: 0; + border-radius: 6px; +} +input[type="search"]:focus { + text-align: left; +} +select, +textarea, +.input-group { + height: auto; +} + +// Input groups (cluster multiple inputs together into a single group) +// ------------------------------------------------------------------- +.input-group { + padding: 0; + border: 0; + @include hairline(double, #c8c7cc, 0); // Double grey border. +} +.input-group input { + border: 0; + @include hairline(single, #c8c7cc, 15px); +} +// Remove bottom border on last input to avoid double bottom border +.input-group input:last-child { + background-image: none; +} + +// Input groups with labels +// -------------------------------------------------- + +// To use labels with input groups, wrap a label and an input in an .input-row +.input-row { + border-bottom: 0; + @include hairline(single, #c8c7cc, 15px); // Single grey border with a 15px offset. +} +// Remove bottom border on last input-row to avoid double bottom border +.input-row:last-child, +.input-row label + input { + background-image: none; +} + + +// Segmented controls +// -------------------------------------------------- + +.segmented-control { + background-color: transparent; + border: 1px solid $default-color; + + .control-item { + color: $default-color; + border-color: $default-color; + @include transition(background-color .1s linear); + + &:active { + background-color: lighten($default-color, 35%); + } + &.active { + color: #fff; + background-color: $default-color; + } + } +} + +// Other segmented controller types +// +// Primary +.segmented-control-primary { + border: 1px solid $primary-color; + + .control-item { + color: $primary-color; + border-color: inherit; + + &:active { + background-color: lighten($primary-color, 35%); + } + &.active { + color: #fff; + background-color: $primary-color; + } + } +} + +// Positive +.segmented-control-positive { + border: 1px solid $positive-color; + + .control-item { + color: $positive-color; + border-color: inherit; + + &:active { + background-color: lighten($positive-color, 35%); + } + &.active { + color: #fff; + background-color: $positive-color; + } + } +} + +// Negative +.segmented-control-negative { + border: 1px solid $negative-color; + + .control-item { + color: $negative-color; + border-color: inherit; + + &:active { + background-color: lighten($negative-color, 35%); + } + &.active { + color: #fff; + background-color: $negative-color; + } + } +} + + +// Popovers +// -------------------------------------------------- + +.popover { + border-radius: 12px; + @include transition(-webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in-out); + + &:before { + border-bottom: 15px solid $chrome-color; + } +} + +// Popovers with `bar` +.popover .bar { + @include box-shadow(none); +} + +// Popovers with `bar-nav` +.popover .bar-nav { + border-bottom: 1px solid rgba(0,0,0,.15); +} + +// Popovers with `table-views` +.popover .table-view { + background-image: none; + border-radius: 12px; +} + + +// Modal styles +// -------------------------------------------------- + +.modal { + @include transition-timing-function($timing-fuction); + + // Active modal + &.active { + @include transition-timing-function($timing-fuction); + } +} + + +// Toggles styles +// -------------------------------------------------- +.toggle { + width: 47px; + border: 2px solid #e6e6e6; + @include box-shadow(inset 0 0 0 0 #e1e1e1); + @include transition-property(box-shadow, border); + @include transition-duration(.2s); + + // Sliding handle + .toggle-handle { + border: 1px solid rgba(0, 0, 0, .2); + -webkit-transition-property: -webkit-transform, border, width; + -moz-transition-property: -moz-transform, border, width; + transition-property: transform, border, width; + @include box-shadow(0 3px 3px rgba(0,0,0,.08)); + } + &:before { + display: none; + } + // Active state for toggle + &.active { + background-color: transparent; + border: 2px solid $positive-color; + @include box-shadow(inset 0 0 0 13px $positive-color); + + .toggle-handle { + @include transform(translate3d(17px,0,0)); + } + + .toggle-handle { + border-color: $positive-color; + } + } +} + + +// Push styles +// -------------------------------------------------- +.content { + // Fade animation + &.fade { + @include transition(opacity .2s ease-in-out); + } + // Slide animation + &.sliding { + @include transition-timing-function ($timing-fuction); + + // Adding the overlay + &.sliding-in, + &.right:not([class*="sliding-in"]) { + @include animation-name(fadeOverlay); + @include animation-duration(.4s); + } + + &.right:not([class*="sliding-in"]) { + @include animation-direction(reverse); + } + + &.left { + @include transform(translate3d(-20%, 0, 0)); // Creates the parallax effect + } + } +} + +// Overlay animation for the slide transition +@at-root { + @-webkit-keyframes fadeOverlay { + from { @include box-shadow(0 0 10px rgba(0,0,0,0), -320px 0 0 rgba(0,0,0,0)); } + to { @include box-shadow(0 0 10px rgba(0,0,0,.3), -320px 0 0 rgba(0,0,0,.1)); } + } +} diff --git a/sass/toggles.scss b/sass/toggles.scss new file mode 100644 index 000000000..2ecb0962c --- /dev/null +++ b/sass/toggles.scss @@ -0,0 +1,62 @@ +// +// Toggle styles (to be used with toggles.js) +// -------------------------------------------------- + +.toggle { + position: relative; + display: block; + width: 74px; + height: 30px; + background-color: #fff; + border: 2px solid #ddd; + border-radius: 20px; + @include transition-property(background-color, border); + @include transition-duration(.2s); + + // Sliding handle + .toggle-handle { + position: absolute; + top: -1px; + left: -1px; + z-index: 2; + width: 28px; + height: 28px; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 100px; + -webkit-transition-property: -webkit-transform, border, width; + -moz-transition-property: -moz-transform, border, width; + transition-property: transform, border, width; + @include transition-duration(.2s); + } + &:before { + position: absolute; + top: 3px; + right: 11px; + font-size: 13px; + color: #999; + text-transform: uppercase; + content: "Off"; + } + + // Active state for toggle + &.active { + background-color: $positive-color; + border: 2px solid $positive-color; + + .toggle-handle { + border-color: $positive-color; + @include transform(translate3d(44px,0,0)); + } + &:before { + right: auto; + left: 15px; + color: #fff; + content: "On"; + } + } + // Hide the checkbox + input[type="checkbox"] { + display: none; + } +} diff --git a/sass/type.scss b/sass/type.scss new file mode 100644 index 000000000..d135e15fe --- /dev/null +++ b/sass/type.scss @@ -0,0 +1,23 @@ +// +// Typography +// -------------------------------------------------- + +h1, h2, h3, h4, h5, h6 { + margin-top: 0; + margin-bottom: 10px; + line-height: 1; +} +h1, .h1 { font-size: 36px; } +h2, .h2 { font-size: 30px; } +h3, .h3 { font-size: 24px; } +h4, .h4 { font-size: 18px; } +h5, .h5 { font-size: 14px; margin-top: 20px; } +h6, .h6 { font-size: 12px; margin-top: 20px; } + +// Paragraphs +p { + margin-top: 0; + margin-bottom: 10px; + font-size: 14px; + color: #777; +} diff --git a/sass/variables.scss b/sass/variables.scss new file mode 100644 index 000000000..f0975812a --- /dev/null +++ b/sass/variables.scss @@ -0,0 +1,59 @@ +// +// Variables +// -------------------------------------------------- + + +// Type +// -------------------------------------------------- +$font-family-default: "Helvetica Neue", Helvetica, sans-serif !default; +$font-size-default: 17px !default; +$font-weight: 500 !default; +$font-weight-light: 400 !default; +$line-height-default: 21px !default; + + +// Colors +// -------------------------------------------------- + +// Main theme colors +$primary-color: #428bca !default; +$chrome-color: #fff !default; + +// Action colors +$default-color: #fff !default; +$positive-color: #5cb85c !default; +$negative-color: #d9534f !default; + + +// Bars +// -------------------------------------------------- + +$bar-base-height: 44px !default; +$bar-tab-height: 50px !default; +$bar-side-spacing: 10px !default; + + +// Cards +// -------------------------------------------------- + +$card-bg: #fff !default; + + +// Buttons +// -------------------------------------------------- + +$button-font-size: 12px !default; + + +// Transitions +// -------------------------------------------------- + +$timing-fuction: cubic-bezier(.1,.5,.1,1) !default; // Inspired by @c2prods + + +// Borders +// -------------------------------------------------- + +$border-default-width: 1px; +$border-default: $border-default-width solid #ddd; +$border-radius: 6px !default; diff --git a/test/app/checkout.html b/test/app/checkout.html deleted file mode 100644 index 2e41a9a0e..000000000 --- a/test/app/checkout.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - Movie finder - - - - - - - - - - - - - - - -
- - Back - -

Buy tickets

-
- - - -
-
-
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - Checkout -
-
-
- - - \ No newline at end of file diff --git a/test/app/choose-movie.html b/test/app/choose-movie.html deleted file mode 100644 index c27bf33ef..000000000 --- a/test/app/choose-movie.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - Movie finder - - - - - - - - - - - - - - - -
- - Back - -

Choose a movie

-
- - - - -
- -
    -
  • Recommended movies
  • -
  • - Argo -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Skyfall: 007 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Wreck-it Ralph -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • Top movies
  • -
  • - Movie 4 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 5 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 6 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 7 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 8 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 9 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 10 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 11 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
  • - Movie 12 -

    Lorem ipsum dolor sit amet

    - Buy Tickets -
  • -
- -
- - \ No newline at end of file diff --git a/test/app/choose-theater.html b/test/app/choose-theater.html deleted file mode 100644 index 1bec8dd7e..000000000 --- a/test/app/choose-theater.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Movie finder - - - - - - - - - - - - - - - - -
- - Back - -

Argo

-
- - - -
- - -
- - - \ No newline at end of file diff --git a/test/app/css/app.css b/test/app/css/app.css deleted file mode 100644 index c53cafc48..000000000 --- a/test/app/css/app.css +++ /dev/null @@ -1,12 +0,0 @@ -.slider { - margin-bottom: 0; - height: 150px; -} - -.slider li img { - width: 100%; -} - -.form-wrapper { - padding: 10px; -} \ No newline at end of file diff --git a/test/app/img/argo.png b/test/app/img/argo.png deleted file mode 100644 index 743b3e7cf..000000000 Binary files a/test/app/img/argo.png and /dev/null differ diff --git a/test/app/img/ralph.png b/test/app/img/ralph.png deleted file mode 100644 index 34707de2c..000000000 Binary files a/test/app/img/ralph.png and /dev/null differ diff --git a/test/app/img/skyfall.png b/test/app/img/skyfall.png deleted file mode 100644 index 0527e197e..000000000 Binary files a/test/app/img/skyfall.png and /dev/null differ diff --git a/test/app/index.html b/test/app/index.html deleted file mode 100644 index f37a6f4be..000000000 --- a/test/app/index.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - Movie finder - - - - - - - - - - - - - - - -
-

Movie finder

-
- - - - - - - \ No newline at end of file diff --git a/test/app/settings.html b/test/app/settings.html deleted file mode 100644 index eaed18953..000000000 --- a/test/app/settings.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Movie finder - - - - - - - - - - - - - - - - -
-

Settings

-
- - - -
-
-
-
-
- - -
-
- - -
-
- - -
-
- Save changes -
-
- -
- - - \ No newline at end of file diff --git a/test/app/theaters.html b/test/app/theaters.html deleted file mode 100644 index 30321205d..000000000 --- a/test/app/theaters.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - Movie finder - - - - - - - - - - - - - - - -
-

Find a theater

-
- - - - - - - - \ No newline at end of file diff --git a/test/components/index.html b/test/components/index.html deleted file mode 100644 index 03cd8e5be..000000000 --- a/test/components/index.html +++ /dev/null @@ -1,549 +0,0 @@ - - - - - Testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
-

section #1

-

section #2

-
- - - -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
-
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
- - -
-
- - Open - -

Popover title

- - Filter - -
-
    -
  • Item1
  • -
  • Item2
  • -
  • Item3
  • -
  • With counts
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4 1
  • -
  • Item2 1
  • -
  • Item3 1
  • -
  • With chevrons
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4
  • -
  • Item2
  • -
  • Item3
  • -
-
- - - - -
- - Left - -

Title

- - Right - -
- - -
-

Title

-
- - -
- - Open fatty - -

Title

-
- - -
-

Title

- - Filter - -
- -
- - -
- -
- - -
- - Open - - -
- - -
- - - Filter - -
- - -
- - Open - - - - Filter - -
- - - - - - - - - - - - - - - -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - Button - Button - Button - Button - - - Button 1 - Button 1 - Button 1 - Button 1 - - - Block level button - Block level button - Block level button - Block level button - - - Block level button 1 - Block level button 1 - Block level button 1 - Block level button 1 - - -
-
-
- - - 1 - 2 - 3 - 4 - 5 - - -
    -
  • Item1
  • -
  • Item2
  • -
  • Item3
  • -
  • With counts
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4 1
  • -
  • Item2 1
  • -
  • Item3 1
  • -
  • With chevrons
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4
  • -
  • Item2
  • -
  • Item3
  • -
  • With chevrons & counts
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4 1
  • -
  • Item2 1
  • -
  • Item3 1
  • -
  • With buttons
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4 Button
  • -
  • Item2 Button
  • -
  • Item3 Button
  • -
  • Item4 Button
  • -
  • With a toggle
  • -
  • - Item1
    Item1.2
    Item1.3
    Item1.4 -
    -
    -
    -
  • -
  • - - Item2 - -
    -
    -
    -
  • -
  • - Item3 -
    -
    -
    -
  • -
- -
    -
  • Normal
  • -
  • Item1
  • -
  • Item2
  • -
  • Item3
  • -
  • With counts
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4 1
  • -
  • Item2 1
  • -
  • Item3 1
  • -
  • With chevrons
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4
  • -
  • Item2
  • -
  • Item3
  • -
  • With chevrons & counts
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4 1
  • -
  • Item2 1
  • -
  • Item3 1
  • -
  • With buttons
  • -
  • Item1
    Item1.2
    Item1.3
    Item1.4 Button
  • -
  • Item2 Button
  • -
  • Item3 Button
  • -
  • Item4 Button
  • -
  • With a toggle
  • -
  • - Item1
    Item1.2
    Item1.3
    Item1.4 -
    -
    -
    -
  • -
  • - Item2 -
    -
    -
    -
  • -
  • - Item3 -
    -
    -
    -
  • -
  • Bottom list-divider test
  • -
- - - - - - - - - - - - - - - - - - - - - -
- - - - Choose existing -
- - -
- - - -
- - -
-
- - -
-
- - -
-
- - -
-
- -
- - - \ No newline at end of file diff --git a/test/components/modals.html b/test/components/modals.html deleted file mode 100644 index b094550a2..000000000 --- a/test/components/modals.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Modal slideup - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Modal slideup

-
- - - - - - - \ No newline at end of file