mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Merge remote-tracking branch 'upstream/master' into node-requirable
Conflicts: Gruntfile.js
This commit is contained in:
+5
-4
@@ -2,15 +2,15 @@ language: node_js
|
|||||||
node_js:
|
node_js:
|
||||||
- "0.10"
|
- "0.10"
|
||||||
before_install:
|
before_install:
|
||||||
- time sudo pip install --use-mirrors -r test-infra/requirements.txt
|
- travis_retry sudo pip install -r test-infra/requirements.txt
|
||||||
- rvm use 1.9.3 --fuzzy
|
- rvm use 1.9.3 --fuzzy
|
||||||
- export GEMDIR=$(rvm gemdir)
|
- export GEMDIR=$(rvm gemdir)
|
||||||
- if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $GEMDIR) jekyll=$JEKYLL_VERSION" > pseudo_Gemfile.lock; fi
|
- if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $GEMDIR) jekyll=$JEKYLL_VERSION rouge=$ROUGE_VERSION" > pseudo_Gemfile.lock; fi
|
||||||
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
|
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
|
||||||
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true
|
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true
|
||||||
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true
|
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true
|
||||||
install:
|
install:
|
||||||
- time npm install -g grunt-cli
|
- npm install -g grunt-cli
|
||||||
- ./test-infra/s3_cache.py download npm-modules
|
- ./test-infra/s3_cache.py download npm-modules
|
||||||
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py download rubygems; fi
|
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py download rubygems; fi
|
||||||
after_script:
|
after_script:
|
||||||
@@ -18,7 +18,8 @@ after_script:
|
|||||||
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py upload rubygems; fi
|
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py upload rubygems; fi
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- JEKYLL_VERSION: 2.0.3
|
- JEKYLL_VERSION: 2.3.0
|
||||||
|
- ROUGE_VERSION: 1.6.2
|
||||||
- SAUCE_USERNAME: bootstrap
|
- SAUCE_USERNAME: bootstrap
|
||||||
- secure: "pJkBwnuae9dKU5tEcCqccfS1QQw7/meEcfz63fM7ba7QJNjoA6BaXj08L5Z3Vb5vBmVPwBawxo5Hp0jC0r/Z/O0hGnAmz/Cz09L+cy7dSAZ9x4hvZePSja/UAusaB5ogMoO8l2b773MzgQeSmrLbExr9BWLeqEfjC2hFgdgHLaQ="
|
- secure: "pJkBwnuae9dKU5tEcCqccfS1QQw7/meEcfz63fM7ba7QJNjoA6BaXj08L5Z3Vb5vBmVPwBawxo5Hp0jC0r/Z/O0hGnAmz/Cz09L+cy7dSAZ9x4hvZePSja/UAusaB5ogMoO8l2b773MzgQeSmrLbExr9BWLeqEfjC2hFgdgHLaQ="
|
||||||
- secure: "gqjqISbxBJK6byFbsmr1AyP1qoWH+rap06A2gI7v72+Tn2PU2nYkIMUkCvhZw6K889jv+LhQ/ybcBxDOXHpNCExCnSgB4dcnmYp+9oeNZb37jSP0rQ+Ib4OTLjzc3/FawE/fUq5kukZTC7porzc/k0qJNLAZRx3YLALmK1GIdUY="
|
- secure: "gqjqISbxBJK6byFbsmr1AyP1qoWH+rap06A2gI7v72+Tn2PU2nYkIMUkCvhZw6K889jv+LhQ/ybcBxDOXHpNCExCnSgB4dcnmYp+9oeNZb37jSP0rQ+Ib4OTLjzc3/FawE/fUq5kukZTC7porzc/k0qJNLAZRx3YLALmK1GIdUY="
|
||||||
|
|||||||
+5
-15
@@ -44,7 +44,7 @@ Guidelines for bug reports:
|
|||||||
|
|
||||||
3. **Isolate the problem** — ideally create a [reduced test
|
3. **Isolate the problem** — ideally create a [reduced test
|
||||||
case](http://css-tricks.com/6263-reduced-test-cases/) and a live example.
|
case](http://css-tricks.com/6263-reduced-test-cases/) and a live example.
|
||||||
[This JS Bin](http://jsbin.com/EBAwOkOK/1) is a helpful template.
|
[This JS Bin](http://jsbin.com/lefey/1/edit?html,output) is a helpful template.
|
||||||
|
|
||||||
|
|
||||||
A good bug report shouldn't leave others needing to chase you up for more
|
A good bug report shouldn't leave others needing to chase you up for more
|
||||||
@@ -154,26 +154,16 @@ license your work under the terms of the [MIT License](LICENSE.md).
|
|||||||
|
|
||||||
### HTML
|
### HTML
|
||||||
|
|
||||||
- Two spaces for indentation, never tabs.
|
[Adhere to the Code Guide.](http://codeguide.co/#html)
|
||||||
- Double quotes only, never single quotes.
|
|
||||||
- Always use proper indentation.
|
|
||||||
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags).
|
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags).
|
||||||
- Use CDNs and HTTPS for third-party JS when possible. We don't use protocol-relative URLs in this case because they break when viewing the page locally via `file://`.
|
- Use CDNs and HTTPS for third-party JS when possible. We don't use protocol-relative URLs in this case because they break when viewing the page locally via `file://`.
|
||||||
- Use [WAI-ARIA](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) attributes in documentation examples to promote accessibility.
|
- Use [WAI-ARIA](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) attributes in documentation examples to promote accessibility.
|
||||||
|
|
||||||
### CSS
|
### CSS
|
||||||
|
|
||||||
- CSS changes must be done in `.less` files first, never just in the compiled `.css` files.
|
[Adhere to the Code Guide.](http://codeguide.co/#css)
|
||||||
- Adhere to the [CSS property order](http://markdotto.com/2011/11/29/css-property-order/).
|
|
||||||
- Multiple-line approach (one property and value per line).
|
|
||||||
- Always a space after a property's colon (e.g., `display: block;` and not `display:block;`).
|
|
||||||
- End all lines with a semi-colon.
|
|
||||||
- For multiple, comma-separated selectors, place each selector on its own line.
|
|
||||||
- Don't add vendor prefixed properties to their unprefixed counterparts (e.g., only `box-sizing` and not also include `-webkit-box-sizing`), as this is done automagically at build time.
|
|
||||||
- Attribute selectors, like `input[type="text"]` should always wrap the attribute's value in double quotes, for consistency and safety (see this [blog post on unquoted attribute values](http://mathiasbynens.be/notes/unquoted-attribute-values) that can lead to XSS attacks).
|
|
||||||
- Attribute selectors should only be used where absolutely necessary (e.g., form controls) and should be avoided on custom components for performance and explicitness.
|
|
||||||
- Series of classes for a component should include a base class (e.g., `.component`) and use the base class as a prefix for modifier and sub-components (e.g., `.component-lg`).
|
|
||||||
- Avoid inheritance and over nesting—use single, explicit classes whenever possible.
|
|
||||||
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](http://www.w3.org/TR/WCAG20/#visual-audio-contrast).
|
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](http://www.w3.org/TR/WCAG20/#visual-audio-contrast).
|
||||||
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](http://a11yproject.com/posts/never-remove-css-outlines/) for more details.
|
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](http://a11yproject.com/posts/never-remove-css-outlines/) for more details.
|
||||||
|
|
||||||
|
|||||||
+106
-84
@@ -17,11 +17,16 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var generateGlyphiconsData = require('./grunt/bs-glyphicons-data-generator.js');
|
var npmShrinkwrap = require('npm-shrinkwrap');
|
||||||
var BsLessdocParser = require('./grunt/bs-lessdoc-parser.js');
|
var BsLessdocParser = require('./grunt/bs-lessdoc-parser.js');
|
||||||
|
var getLessVarsData = function () {
|
||||||
|
var filePath = path.join(__dirname, 'less/variables.less');
|
||||||
|
var fileContent = fs.readFileSync(filePath, { encoding: 'utf8' });
|
||||||
|
var parser = new BsLessdocParser(fileContent);
|
||||||
|
return { sections: parser.parseFile() };
|
||||||
|
};
|
||||||
var generateRawFiles = require('./grunt/bs-raw-files-generator.js');
|
var generateRawFiles = require('./grunt/bs-raw-files-generator.js');
|
||||||
var generateCommonJSModule = require('./grunt/bs-commonjs-generator.js');
|
var generateCommonJSModule = require('./grunt/bs-commonjs-generator.js');
|
||||||
var updateShrinkwrap = require('./grunt/shrinkwrap.js');
|
|
||||||
|
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
@@ -33,11 +38,13 @@ module.exports = function (grunt) {
|
|||||||
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
||||||
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
|
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
|
||||||
' */\n',
|
' */\n',
|
||||||
|
// NOTE: This jqueryCheck code is duplicated in customizer.js; if making changes here, be sure to update the other copy too.
|
||||||
jqueryCheck: 'if (typeof jQuery === \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n',
|
jqueryCheck: 'if (typeof jQuery === \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n',
|
||||||
|
|
||||||
// Task configuration.
|
// Task configuration.
|
||||||
clean: {
|
clean: {
|
||||||
dist: ['dist', 'docs/dist']
|
dist: 'dist',
|
||||||
|
docs: 'docs/dist'
|
||||||
},
|
},
|
||||||
|
|
||||||
jshint: {
|
jshint: {
|
||||||
@@ -50,7 +57,7 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
src: ['Gruntfile.js', 'grunt/*.js']
|
src: ['Gruntfile.js', 'grunt/*.js']
|
||||||
},
|
},
|
||||||
src: {
|
core: {
|
||||||
src: 'js/*.js'
|
src: 'js/*.js'
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
@@ -60,7 +67,7 @@ module.exports = function (grunt) {
|
|||||||
src: 'js/tests/unit/*.js'
|
src: 'js/tests/unit/*.js'
|
||||||
},
|
},
|
||||||
assets: {
|
assets: {
|
||||||
src: ['docs/assets/js/_src/*.js', 'docs/assets/js/*.js', '!docs/assets/js/*.min.js']
|
src: ['docs/assets/js/src/*.js', 'docs/assets/js/*.js', '!docs/assets/js/*.min.js']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -71,8 +78,8 @@ module.exports = function (grunt) {
|
|||||||
grunt: {
|
grunt: {
|
||||||
src: '<%= jshint.grunt.src %>'
|
src: '<%= jshint.grunt.src %>'
|
||||||
},
|
},
|
||||||
src: {
|
core: {
|
||||||
src: '<%= jshint.src.src %>'
|
src: '<%= jshint.core.src %>'
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
src: '<%= jshint.test.src %>'
|
src: '<%= jshint.test.src %>'
|
||||||
@@ -110,36 +117,31 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
uglify: {
|
uglify: {
|
||||||
bootstrap: {
|
options: {
|
||||||
options: {
|
preserveComments: 'some'
|
||||||
banner: '<%= banner %>'
|
},
|
||||||
},
|
core: {
|
||||||
src: '<%= concat.bootstrap.dest %>',
|
src: '<%= concat.bootstrap.dest %>',
|
||||||
dest: 'dist/js/<%= pkg.name %>.min.js'
|
dest: 'dist/js/<%= pkg.name %>.min.js'
|
||||||
},
|
},
|
||||||
customize: {
|
customize: {
|
||||||
options: {
|
|
||||||
preserveComments: 'some'
|
|
||||||
},
|
|
||||||
src: [
|
src: [
|
||||||
'docs/assets/js/_vendor/less.min.js',
|
'docs/assets/js/vendor/less.min.js',
|
||||||
'docs/assets/js/_vendor/jszip.min.js',
|
'docs/assets/js/vendor/jszip.min.js',
|
||||||
'docs/assets/js/_vendor/uglify.min.js',
|
'docs/assets/js/vendor/uglify.min.js',
|
||||||
'docs/assets/js/_vendor/blob.js',
|
'docs/assets/js/vendor/blob.js',
|
||||||
'docs/assets/js/_vendor/filesaver.js',
|
'docs/assets/js/vendor/filesaver.js',
|
||||||
'docs/assets/js/raw-files.min.js',
|
'docs/assets/js/raw-files.min.js',
|
||||||
'docs/assets/js/_src/customizer.js'
|
'docs/assets/js/src/customizer.js'
|
||||||
],
|
],
|
||||||
dest: 'docs/assets/js/customize.min.js'
|
dest: 'docs/assets/js/customize.min.js'
|
||||||
},
|
},
|
||||||
docsJs: {
|
docsJs: {
|
||||||
options: {
|
// NOTE: This src list is duplicated in footer.html; if making changes here, be sure to update the other copy too.
|
||||||
preserveComments: 'some'
|
|
||||||
},
|
|
||||||
src: [
|
src: [
|
||||||
'docs/assets/js/_vendor/holder.js',
|
'docs/assets/js/vendor/holder.js',
|
||||||
'docs/assets/js/_vendor/ZeroClipboard.min.js',
|
'docs/assets/js/vendor/ZeroClipboard.min.js',
|
||||||
'docs/assets/js/_src/application.js'
|
'docs/assets/js/src/application.js'
|
||||||
],
|
],
|
||||||
dest: 'docs/assets/js/docs.min.js'
|
dest: 'docs/assets/js/docs.min.js'
|
||||||
}
|
}
|
||||||
@@ -161,9 +163,8 @@ module.exports = function (grunt) {
|
|||||||
sourceMapURL: '<%= pkg.name %>.css.map',
|
sourceMapURL: '<%= pkg.name %>.css.map',
|
||||||
sourceMapFilename: 'dist/css/<%= pkg.name %>.css.map'
|
sourceMapFilename: 'dist/css/<%= pkg.name %>.css.map'
|
||||||
},
|
},
|
||||||
files: {
|
src: 'less/bootstrap.less',
|
||||||
'dist/css/<%= pkg.name %>.css': 'less/bootstrap.less'
|
dest: 'dist/css/<%= pkg.name %>.css'
|
||||||
}
|
|
||||||
},
|
},
|
||||||
compileTheme: {
|
compileTheme: {
|
||||||
options: {
|
options: {
|
||||||
@@ -173,15 +174,23 @@ module.exports = function (grunt) {
|
|||||||
sourceMapURL: '<%= pkg.name %>-theme.css.map',
|
sourceMapURL: '<%= pkg.name %>-theme.css.map',
|
||||||
sourceMapFilename: 'dist/css/<%= pkg.name %>-theme.css.map'
|
sourceMapFilename: 'dist/css/<%= pkg.name %>-theme.css.map'
|
||||||
},
|
},
|
||||||
files: {
|
src: 'less/theme.less',
|
||||||
'dist/css/<%= pkg.name %>-theme.css': 'less/theme.less'
|
dest: 'dist/css/<%= pkg.name %>-theme.css'
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
autoprefixer: {
|
autoprefixer: {
|
||||||
options: {
|
options: {
|
||||||
browsers: ['last 2 versions', 'ie 8', 'ie 9', 'android 2.3', 'android 4', 'opera 12']
|
browsers: [
|
||||||
|
'Android 2.3',
|
||||||
|
'Android >= 4',
|
||||||
|
'Chrome >= 20',
|
||||||
|
'Firefox >= 24', // Firefox 24 is the latest ESR
|
||||||
|
'Explorer >= 8',
|
||||||
|
'iOS >= 6',
|
||||||
|
'Opera >= 12',
|
||||||
|
'Safari >= 6'
|
||||||
|
]
|
||||||
},
|
},
|
||||||
core: {
|
core: {
|
||||||
options: {
|
options: {
|
||||||
@@ -196,7 +205,7 @@ module.exports = function (grunt) {
|
|||||||
src: 'dist/css/<%= pkg.name %>-theme.css'
|
src: 'dist/css/<%= pkg.name %>-theme.css'
|
||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
src: 'docs/assets/css/_src/docs.css'
|
src: 'docs/assets/css/src/docs.css'
|
||||||
},
|
},
|
||||||
examples: {
|
examples: {
|
||||||
expand: true,
|
expand: true,
|
||||||
@@ -210,7 +219,7 @@ module.exports = function (grunt) {
|
|||||||
options: {
|
options: {
|
||||||
csslintrc: 'less/.csslintrc'
|
csslintrc: 'less/.csslintrc'
|
||||||
},
|
},
|
||||||
src: [
|
dist: [
|
||||||
'dist/css/bootstrap.css',
|
'dist/css/bootstrap.css',
|
||||||
'dist/css/bootstrap-theme.css'
|
'dist/css/bootstrap-theme.css'
|
||||||
],
|
],
|
||||||
@@ -222,25 +231,28 @@ module.exports = function (grunt) {
|
|||||||
ids: false,
|
ids: false,
|
||||||
'overqualified-elements': false
|
'overqualified-elements': false
|
||||||
},
|
},
|
||||||
src: 'docs/assets/css/_src/docs.css'
|
src: 'docs/assets/css/src/docs.css'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
cssmin: {
|
cssmin: {
|
||||||
options: {
|
options: {
|
||||||
compatibility: 'ie8',
|
compatibility: 'ie8',
|
||||||
keepSpecialComments: '*'
|
keepSpecialComments: '*',
|
||||||
|
noAdvanced: true
|
||||||
},
|
},
|
||||||
core: {
|
minifyCore: {
|
||||||
files: {
|
src: 'dist/css/<%= pkg.name %>.css',
|
||||||
'dist/css/<%= pkg.name %>.min.css': 'dist/css/<%= pkg.name %>.css',
|
dest: 'dist/css/<%= pkg.name %>.min.css'
|
||||||
'dist/css/<%= pkg.name %>-theme.min.css': 'dist/css/<%= pkg.name %>-theme.css'
|
},
|
||||||
}
|
minifyTheme: {
|
||||||
|
src: 'dist/css/<%= pkg.name %>-theme.css',
|
||||||
|
dest: 'dist/css/<%= pkg.name %>-theme.min.css'
|
||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
src: [
|
src: [
|
||||||
'docs/assets/css/_src/docs.css',
|
'docs/assets/css/src/docs.css',
|
||||||
'docs/assets/css/_src/pygments-manni.css'
|
'docs/assets/css/src/pygments-manni.css'
|
||||||
],
|
],
|
||||||
dest: 'docs/assets/css/docs.min.css'
|
dest: 'docs/assets/css/docs.min.css'
|
||||||
}
|
}
|
||||||
@@ -273,9 +285,8 @@ module.exports = function (grunt) {
|
|||||||
dest: 'docs/examples/'
|
dest: 'docs/examples/'
|
||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
files: {
|
src: 'docs/assets/css/src/docs.css',
|
||||||
'docs/assets/css/_src/docs.css': 'docs/assets/css/_src/docs.css'
|
dest: 'docs/assets/css/src/docs.css'
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -289,8 +300,8 @@ module.exports = function (grunt) {
|
|||||||
expand: true,
|
expand: true,
|
||||||
cwd: './dist',
|
cwd: './dist',
|
||||||
src: [
|
src: [
|
||||||
'{css,js}/*.min.*',
|
'css/*',
|
||||||
'css/*.map',
|
'js/*',
|
||||||
'fonts/*'
|
'fonts/*'
|
||||||
],
|
],
|
||||||
dest: 'docs/dist'
|
dest: 'docs/dist'
|
||||||
@@ -311,20 +322,17 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
jade: {
|
jade: {
|
||||||
compile: {
|
options: {
|
||||||
options: {
|
pretty: true,
|
||||||
pretty: true,
|
data: getLessVarsData
|
||||||
data: function () {
|
},
|
||||||
var filePath = path.join(__dirname, 'less/variables.less');
|
customizerVars: {
|
||||||
var fileContent = fs.readFileSync(filePath, { encoding: 'utf8' });
|
src: 'docs/_jade/customizer-variables.jade',
|
||||||
var parser = new BsLessdocParser(fileContent);
|
dest: 'docs/_includes/customizer-variables.html'
|
||||||
return { sections: parser.parseFile() };
|
},
|
||||||
}
|
customizerNav: {
|
||||||
},
|
src: 'docs/_jade/customizer-nav.jade',
|
||||||
files: {
|
dest: 'docs/_includes/nav/customize.html'
|
||||||
'docs/_includes/customizer-variables.html': 'docs/_jade/customizer-variables.jade',
|
|
||||||
'docs/_includes/nav/customize.html': 'docs/_jade/customizer-nav.jade'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -336,7 +344,9 @@ module.exports = function (grunt) {
|
|||||||
reset: true,
|
reset: true,
|
||||||
relaxerror: [
|
relaxerror: [
|
||||||
'Bad value X-UA-Compatible for attribute http-equiv on element meta.',
|
'Bad value X-UA-Compatible for attribute http-equiv on element meta.',
|
||||||
'Element img is missing required attribute src.'
|
'Element img is missing required attribute src.',
|
||||||
|
'Attribute autocomplete not allowed on element input at this point.',
|
||||||
|
'Attribute autocomplete not allowed on element button at this point.'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
@@ -346,15 +356,15 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
src: {
|
src: {
|
||||||
files: '<%= jshint.src.src %>',
|
files: '<%= jshint.core.src %>',
|
||||||
tasks: ['jshint:src', 'qunit']
|
tasks: ['jshint:src', 'qunit', 'concat']
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
files: '<%= jshint.test.src %>',
|
files: '<%= jshint.test.src %>',
|
||||||
tasks: ['jshint:test', 'qunit']
|
tasks: ['jshint:test', 'qunit']
|
||||||
},
|
},
|
||||||
less: {
|
less: {
|
||||||
files: 'less/*.less',
|
files: 'less/**/*.less',
|
||||||
tasks: 'less'
|
tasks: 'less'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -375,6 +385,7 @@ module.exports = function (grunt) {
|
|||||||
options: {
|
options: {
|
||||||
build: process.env.TRAVIS_JOB_ID,
|
build: process.env.TRAVIS_JOB_ID,
|
||||||
concurrency: 10,
|
concurrency: 10,
|
||||||
|
maxRetries: 3,
|
||||||
urls: ['http://127.0.0.1:3000/js/tests/index.html'],
|
urls: ['http://127.0.0.1:3000/js/tests/index.html'],
|
||||||
browsers: grunt.file.readYAML('grunt/sauce_browsers.yml')
|
browsers: grunt.file.readYAML('grunt/sauce_browsers.yml')
|
||||||
}
|
}
|
||||||
@@ -384,9 +395,6 @@ module.exports = function (grunt) {
|
|||||||
exec: {
|
exec: {
|
||||||
npmUpdate: {
|
npmUpdate: {
|
||||||
command: 'npm update'
|
command: 'npm update'
|
||||||
},
|
|
||||||
npmShrinkWrap: {
|
|
||||||
command: 'npm shrinkwrap --dev'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -410,7 +418,7 @@ module.exports = function (grunt) {
|
|||||||
var testSubtasks = [];
|
var testSubtasks = [];
|
||||||
// Skip core tests if running a different subset of the test suite
|
// Skip core tests if running a different subset of the test suite
|
||||||
if (runSubset('core')) {
|
if (runSubset('core')) {
|
||||||
testSubtasks = testSubtasks.concat(['dist-css', 'csslint', 'jshint', 'jscs', 'qunit', 'build-customizer-html']);
|
testSubtasks = testSubtasks.concat(['dist-css', 'dist-js', 'csslint:dist', 'jshint:core', 'jshint:test', 'jshint:grunt', 'jscs:core', 'jscs:test', 'jscs:grunt', 'qunit', 'docs']);
|
||||||
}
|
}
|
||||||
// Skip HTML validation if running a different subset of the test suite
|
// Skip HTML validation if running a different subset of the test suite
|
||||||
if (runSubset('validate-html') &&
|
if (runSubset('validate-html') &&
|
||||||
@@ -430,28 +438,23 @@ module.exports = function (grunt) {
|
|||||||
grunt.registerTask('test', testSubtasks);
|
grunt.registerTask('test', testSubtasks);
|
||||||
|
|
||||||
// JS distribution task.
|
// JS distribution task.
|
||||||
grunt.registerTask('dist-js', ['concat', 'uglify']);
|
grunt.registerTask('dist-js', ['concat', 'uglify:core']);
|
||||||
|
|
||||||
// CSS distribution task.
|
// CSS distribution task.
|
||||||
grunt.registerTask('less-compile', ['less:compileCore', 'less:compileTheme']);
|
grunt.registerTask('less-compile', ['less:compileCore', 'less:compileTheme']);
|
||||||
grunt.registerTask('dist-css', ['less-compile', 'autoprefixer', 'usebanner', 'csscomb', 'cssmin']);
|
grunt.registerTask('dist-css', ['less-compile', 'autoprefixer:core', 'autoprefixer:theme', 'usebanner', 'csscomb:dist', 'cssmin:minifyCore', 'cssmin:minifyTheme']);
|
||||||
|
|
||||||
// Docs distribution task.
|
|
||||||
grunt.registerTask('dist-docs', 'copy:docs');
|
|
||||||
|
|
||||||
// Full distribution task.
|
// Full distribution task.
|
||||||
grunt.registerTask('dist', ['clean', 'dist-css', 'copy:fonts', 'dist-js', 'dist-docs']);
|
grunt.registerTask('dist', ['clean:dist', 'dist-css', 'copy:fonts', 'dist-js']);
|
||||||
|
|
||||||
// Default task.
|
// Default task.
|
||||||
grunt.registerTask('default', ['test', 'dist', 'build-glyphicons-data', 'build-customizer']);
|
grunt.registerTask('default', ['clean:dist', 'copy:fonts', 'test']);
|
||||||
|
|
||||||
// Version numbering task.
|
// Version numbering task.
|
||||||
// grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
|
// grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
|
||||||
// This can be overzealous, so its changes should always be manually reviewed!
|
// This can be overzealous, so its changes should always be manually reviewed!
|
||||||
grunt.registerTask('change-version-number', 'sed');
|
grunt.registerTask('change-version-number', 'sed');
|
||||||
|
|
||||||
grunt.registerTask('build-glyphicons-data', function () { generateGlyphiconsData.call(this, grunt); });
|
|
||||||
|
|
||||||
// task for building customizer
|
// task for building customizer
|
||||||
grunt.registerTask('build-customizer', ['build-customizer-html', 'build-raw-files']);
|
grunt.registerTask('build-customizer', ['build-customizer-html', 'build-raw-files']);
|
||||||
grunt.registerTask('build-customizer-html', 'jade');
|
grunt.registerTask('build-customizer-html', 'jade');
|
||||||
@@ -460,12 +463,31 @@ module.exports = function (grunt) {
|
|||||||
generateRawFiles(grunt, banner);
|
generateRawFiles(grunt, banner);
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('build-commonjs', 'Build CommonJS entrypoint module for JS.', function () {
|
grunt.registerTask('commonjs', 'Generate CommonJS entrypoint module in dist dir.', function () {
|
||||||
var files = grunt.config.get('concat.bootstrap.src');
|
var files = grunt.config.get('concat.bootstrap.src');
|
||||||
generateCommonJSModule(grunt, files);
|
generateCommonJSModule(grunt, files);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Task for updating the npm packages used by the Travis build.
|
// Docs task.
|
||||||
grunt.registerTask('update-shrinkwrap', ['exec:npmUpdate', 'exec:npmShrinkWrap', '_update-shrinkwrap']);
|
grunt.registerTask('docs-css', ['autoprefixer:docs', 'autoprefixer:examples', 'csscomb:docs', 'csscomb:examples', 'cssmin:docs']);
|
||||||
grunt.registerTask('_update-shrinkwrap', function () { updateShrinkwrap.call(this, grunt); });
|
grunt.registerTask('lint-docs-css', ['csslint:docs', 'csslint:examples']);
|
||||||
|
grunt.registerTask('docs-js', ['uglify:docsJs', 'uglify:customize']);
|
||||||
|
grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']);
|
||||||
|
grunt.registerTask('docs', ['docs-css', 'lint-docs-css', 'docs-js', 'lint-docs-js', 'clean:docs', 'copy:docs', 'build-customizer']);
|
||||||
|
|
||||||
|
// Task for updating the cached npm packages used by the Travis build (which are controlled by test-infra/npm-shrinkwrap.json).
|
||||||
|
// This task should be run and the updated file should be committed whenever Bootstrap's dependencies change.
|
||||||
|
grunt.registerTask('update-shrinkwrap', ['exec:npmUpdate', '_update-shrinkwrap']);
|
||||||
|
grunt.registerTask('_update-shrinkwrap', function () {
|
||||||
|
var done = this.async();
|
||||||
|
npmShrinkwrap({ dev: true, dirname: __dirname }, function (err) {
|
||||||
|
if (err) {
|
||||||
|
grunt.fail.warn(err);
|
||||||
|
}
|
||||||
|
var dest = 'test-infra/npm-shrinkwrap.json';
|
||||||
|
fs.renameSync('npm-shrinkwrap.json', dest);
|
||||||
|
grunt.log.writeln('File ' + dest.cyan + ' updated.');
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,28 +1,30 @@
|
|||||||
# [Bootstrap](http://getbootstrap.com)
|
# [Bootstrap](http://getbootstrap.com)
|
||||||
[](http://badge.fury.io/bo/bootstrap) [](http://badge.fury.io/js/bootstrap) [](http://travis-ci.org/twbs/bootstrap) [](https://david-dm.org/twbs/bootstrap#info=devDependencies)
|
[](http://badge.fury.io/bo/bootstrap)
|
||||||
|
[](http://badge.fury.io/js/bootstrap)
|
||||||
|
[](https://travis-ci.org/twbs/bootstrap)
|
||||||
|
[](https://david-dm.org/twbs/bootstrap#info=devDependencies)
|
||||||
[](https://saucelabs.com/u/bootstrap)
|
[](https://saucelabs.com/u/bootstrap)
|
||||||
|
|
||||||
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat), and maintained by the [core team](https://github.com/twbs?tab=members) with the massive support and involvement of the community.
|
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created by [Mark Otto](https://twitter.com/mdo) and [Jacob Thornton](https://twitter.com/fat), and maintained by the [core team](https://github.com/twbs?tab=members) with the massive support and involvement of the community.
|
||||||
|
|
||||||
To get started, check out <http://getbootstrap.com>!
|
To get started, check out <http://getbootstrap.com>!
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
- [Quick start](#quick-start)
|
- [Quick start](#quick-start)
|
||||||
- [Bugs and feature requests](#bugs-and-feature-requests)
|
- [Bugs and feature requests](#bugs-and-feature-requests)
|
||||||
- [Documentation](#documentation)
|
- [Documentation](#documentation)
|
||||||
- [Compiling CSS and JavaScript](#compiling-css-and-javascript)
|
- [Contributing](#contributing)
|
||||||
- [Contributing](#contributing)
|
- [Community](#community)
|
||||||
- [Community](#community)
|
- [Versioning](#versioning)
|
||||||
- [Versioning](#versioning)
|
- [Creators](#creators)
|
||||||
- [Creators](#creators)
|
- [Copyright and license](#copyright-and-license)
|
||||||
- [Copyright and license](#copyright-and-license)
|
|
||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
|
|
||||||
Three quick start options are available:
|
Three quick start options are available:
|
||||||
|
|
||||||
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v3.1.1.zip).
|
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v3.2.0.zip).
|
||||||
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`.
|
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`.
|
||||||
- Install with [Bower](http://bower.io): `bower install bootstrap`.
|
- Install with [Bower](http://bower.io): `bower install bootstrap`.
|
||||||
|
|
||||||
@@ -64,10 +66,11 @@ Bootstrap's documentation, included in this repo in the root directory, is built
|
|||||||
|
|
||||||
### Running documentation locally
|
### Running documentation locally
|
||||||
|
|
||||||
1. If necessary, [install Jekyll](http://jekyllrb.com/docs/installation) (requires v2.0.x).
|
1. If necessary, [install Jekyll](http://jekyllrb.com/docs/installation) (requires v2.3.x).
|
||||||
- **Windows users:** Read [this unofficial guide](https://github.com/juthilo/run-jekyll-on-windows/) to get Jekyll up and running without problems. We use Pygments for syntax highlighting, so make sure to read the sections on installing Python and Pygments.
|
- **Windows users:** Read [this unofficial guide](http://jekyll-windows.juthilo.com/) to get Jekyll up and running without problems.
|
||||||
2. From the root `/bootstrap` directory, run `jekyll serve` in the command line.
|
2. Install the Ruby-based syntax highlighter, [Rouge](https://github.com/jneen/rouge), with `gem install rouge`.
|
||||||
3. Open <http://localhost:9001> in your browser, and voilà.
|
3. From the root `/bootstrap` directory, run `jekyll serve` in the command line.
|
||||||
|
4. Open <http://localhost:9001> in your browser, and voilà.
|
||||||
|
|
||||||
Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com/docs/home/).
|
Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com/docs/home/).
|
||||||
|
|
||||||
@@ -79,46 +82,11 @@ Documentation for v2.3.2 has been made available for the time being at <http://g
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Compiling CSS and JavaScript
|
|
||||||
|
|
||||||
Bootstrap uses [Grunt](http://gruntjs.com/) with convenient methods for working with the framework. It's how we compile our code, run tests, and more. To use it, install the required dependencies as directed and then run some Grunt commands.
|
|
||||||
|
|
||||||
### Install Grunt
|
|
||||||
|
|
||||||
From the command line:
|
|
||||||
|
|
||||||
1. Install `grunt-cli` globally with `npm install -g grunt-cli`.
|
|
||||||
2. Navigate to the root `/bootstrap` directory, then run `npm install`. npm will look at [package.json](https://github.com/twbs/bootstrap/blob/master/package.json) and automatically install the necessary local dependencies listed there.
|
|
||||||
|
|
||||||
When completed, you'll be able to run the various Grunt commands provided from the command line.
|
|
||||||
|
|
||||||
**Unfamiliar with npm? Don't have node installed?** That's a-okay. npm stands for [node packaged modules](http://npmjs.org/) and is a way to manage development dependencies through node.js. [Download and install node.js](http://nodejs.org/download/) before proceeding.
|
|
||||||
|
|
||||||
### Available Grunt commands
|
|
||||||
|
|
||||||
#### Build - `grunt`
|
|
||||||
Run `grunt` to run tests locally and compile the CSS and JavaScript into `/dist`. **Uses [Less](http://lesscss.org/) and [UglifyJS](http://lisperator.net/uglifyjs/).**
|
|
||||||
|
|
||||||
#### Only compile CSS and JavaScript - `grunt dist`
|
|
||||||
`grunt dist` creates the `/dist` directory with compiled files. **Uses [Less](http://lesscss.org/) and [UglifyJS](http://lisperator.net/uglifyjs/).**
|
|
||||||
|
|
||||||
#### Tests - `grunt test`
|
|
||||||
Runs [JSHint](http://jshint.com) and [QUnit](http://qunitjs.com/) tests headlessly in [PhantomJS](http://phantomjs.org/) (used for CI).
|
|
||||||
|
|
||||||
#### Watch - `grunt watch`
|
|
||||||
This is a convenience method for watching just Less files and automatically building them whenever you save.
|
|
||||||
|
|
||||||
### Troubleshooting dependencies
|
|
||||||
|
|
||||||
Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun `npm install`.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Please read through our [contributing guidelines](https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
|
Please read through our [contributing guidelines](https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
|
||||||
|
|
||||||
Moreover, if your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the [Code Guide](http://github.com/mdo/code-guide), maintained by [Mark Otto](http://github.com/mdo).
|
Moreover, if your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the [Code Guide](https://github.com/mdo/code-guide), maintained by [Mark Otto](https://github.com/mdo).
|
||||||
|
|
||||||
Editor preferences are available in the [editor config](https://github.com/twbs/bootstrap/blob/master/.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org>.
|
Editor preferences are available in the [editor config](https://github.com/twbs/bootstrap/blob/master/.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org>.
|
||||||
|
|
||||||
@@ -128,9 +96,9 @@ Editor preferences are available in the [editor config](https://github.com/twbs/
|
|||||||
|
|
||||||
Keep track of development and community news.
|
Keep track of development and community news.
|
||||||
|
|
||||||
- Follow [@twbootstrap on Twitter](http://twitter.com/twbootstrap).
|
- Follow [@twbootstrap on Twitter](https://twitter.com/twbootstrap).
|
||||||
- Read and subscribe to [The Official Bootstrap Blog](http://blog.getbootstrap.com).
|
- Read and subscribe to [The Official Bootstrap Blog](http://blog.getbootstrap.com).
|
||||||
- Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##twitter-bootstrap` channel.
|
- Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##bootstrap` channel.
|
||||||
- Implementation help may be found at Stack Overflow (tagged [`twitter-bootstrap-3`](http://stackoverflow.com/questions/tagged/twitter-bootstrap-3)).
|
- Implementation help may be found at Stack Overflow (tagged [`twitter-bootstrap-3`](http://stackoverflow.com/questions/tagged/twitter-bootstrap-3)).
|
||||||
|
|
||||||
|
|
||||||
@@ -145,13 +113,13 @@ For transparency into our release cycle and in striving to maintain backward com
|
|||||||
|
|
||||||
**Mark Otto**
|
**Mark Otto**
|
||||||
|
|
||||||
- <http://twitter.com/mdo>
|
- <https://twitter.com/mdo>
|
||||||
- <http://github.com/mdo>
|
- <https://github.com/mdo>
|
||||||
|
|
||||||
**Jacob Thornton**
|
**Jacob Thornton**
|
||||||
|
|
||||||
- <http://twitter.com/fat>
|
- <https://twitter.com/fat>
|
||||||
- <http://github.com/fat>
|
- <https://github.com/fat>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+8
-8
@@ -1,6 +1,6 @@
|
|||||||
# Dependencies
|
# Dependencies
|
||||||
markdown: kramdown
|
markdown: kramdown
|
||||||
highlighter: pygments
|
highlighter: rouge
|
||||||
|
|
||||||
# Permalinks
|
# Permalinks
|
||||||
permalink: pretty
|
permalink: pretty
|
||||||
@@ -15,19 +15,19 @@ url: http://getbootstrap.com
|
|||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
|
|
||||||
# Custom vars
|
# Custom vars
|
||||||
current_version: 3.1.1
|
current_version: 3.2.0
|
||||||
repo: https://github.com/twbs/bootstrap
|
repo: https://github.com/twbs/bootstrap
|
||||||
sass_repo: https://github.com/twbs/bootstrap-sass
|
sass_repo: https://github.com/twbs/bootstrap-sass
|
||||||
|
|
||||||
download:
|
download:
|
||||||
source: https://github.com/twbs/bootstrap/archive/v3.1.1.zip
|
source: https://github.com/twbs/bootstrap/archive/v3.2.0.zip
|
||||||
dist: https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip
|
dist: https://github.com/twbs/bootstrap/releases/download/v3.2.0/bootstrap-3.2.0-dist.zip
|
||||||
sass: https://github.com/twbs/bootstrap-sass/archive/v3.1.1.tar.gz
|
sass: https://github.com/twbs/bootstrap-sass/archive/v3.2.0.tar.gz
|
||||||
|
|
||||||
blog: http://blog.getbootstrap.com
|
blog: http://blog.getbootstrap.com
|
||||||
expo: http://expo.getbootstrap.com
|
expo: http://expo.getbootstrap.com
|
||||||
|
|
||||||
cdn:
|
cdn:
|
||||||
css: //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css
|
css: https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css
|
||||||
css_theme: //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css
|
css_theme: https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css
|
||||||
js: //netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js
|
js: https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "bootstrap",
|
"name": "bootstrap",
|
||||||
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
|
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
|
||||||
"version": "3.1.1",
|
"version": "3.2.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"css",
|
"css",
|
||||||
"js",
|
"js",
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"dist/fonts/glyphicons-halflings-regular.woff"
|
"dist/fonts/glyphicons-halflings-regular.woff"
|
||||||
],
|
],
|
||||||
"ignore": [
|
"ignore": [
|
||||||
".*",
|
"/.*",
|
||||||
"_config.yml",
|
"_config.yml",
|
||||||
"CNAME",
|
"CNAME",
|
||||||
"composer.json",
|
"composer.json",
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "3.1.x-dev"
|
"dev-master": "3.2.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
|
|||||||
Vendored
+38
-1
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v3.1.1 (http://getbootstrap.com)
|
* Bootstrap v3.2.0 (http://getbootstrap.com)
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
@@ -55,6 +55,11 @@
|
|||||||
background-color: #e0e0e0;
|
background-color: #e0e0e0;
|
||||||
border-color: #dbdbdb;
|
border-color: #dbdbdb;
|
||||||
}
|
}
|
||||||
|
.btn-default:disabled,
|
||||||
|
.btn-default[disabled] {
|
||||||
|
background-color: #e0e0e0;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
background-image: -webkit-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
|
background-image: -webkit-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
|
||||||
background-image: -o-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
|
background-image: -o-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
|
||||||
@@ -75,6 +80,11 @@
|
|||||||
background-color: #2d6ca2;
|
background-color: #2d6ca2;
|
||||||
border-color: #2b669a;
|
border-color: #2b669a;
|
||||||
}
|
}
|
||||||
|
.btn-primary:disabled,
|
||||||
|
.btn-primary[disabled] {
|
||||||
|
background-color: #2d6ca2;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||||
background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||||
@@ -95,6 +105,11 @@
|
|||||||
background-color: #419641;
|
background-color: #419641;
|
||||||
border-color: #3e8f3e;
|
border-color: #3e8f3e;
|
||||||
}
|
}
|
||||||
|
.btn-success:disabled,
|
||||||
|
.btn-success[disabled] {
|
||||||
|
background-color: #419641;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
.btn-info {
|
.btn-info {
|
||||||
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||||
background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||||
@@ -115,6 +130,11 @@
|
|||||||
background-color: #2aabd2;
|
background-color: #2aabd2;
|
||||||
border-color: #28a4c9;
|
border-color: #28a4c9;
|
||||||
}
|
}
|
||||||
|
.btn-info:disabled,
|
||||||
|
.btn-info[disabled] {
|
||||||
|
background-color: #2aabd2;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
.btn-warning {
|
.btn-warning {
|
||||||
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||||
background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||||
@@ -135,6 +155,11 @@
|
|||||||
background-color: #eb9316;
|
background-color: #eb9316;
|
||||||
border-color: #e38d13;
|
border-color: #e38d13;
|
||||||
}
|
}
|
||||||
|
.btn-warning:disabled,
|
||||||
|
.btn-warning[disabled] {
|
||||||
|
background-color: #eb9316;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
.btn-danger {
|
.btn-danger {
|
||||||
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||||
background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||||
@@ -155,6 +180,11 @@
|
|||||||
background-color: #c12e2a;
|
background-color: #c12e2a;
|
||||||
border-color: #b92c28;
|
border-color: #b92c28;
|
||||||
}
|
}
|
||||||
|
.btn-danger:disabled,
|
||||||
|
.btn-danger[disabled] {
|
||||||
|
background-color: #c12e2a;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
.thumbnail,
|
.thumbnail,
|
||||||
.img-thumbnail {
|
.img-thumbnail {
|
||||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
@@ -193,6 +223,7 @@
|
|||||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||||
}
|
}
|
||||||
|
.navbar-default .navbar-nav > .open > a,
|
||||||
.navbar-default .navbar-nav > .active > a {
|
.navbar-default .navbar-nav > .active > a {
|
||||||
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f3f3f3 100%);
|
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f3f3f3 100%);
|
||||||
background-image: -o-linear-gradient(top, #ebebeb 0%, #f3f3f3 100%);
|
background-image: -o-linear-gradient(top, #ebebeb 0%, #f3f3f3 100%);
|
||||||
@@ -216,6 +247,7 @@
|
|||||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
|
.navbar-inverse .navbar-nav > .open > a,
|
||||||
.navbar-inverse .navbar-nav > .active > a {
|
.navbar-inverse .navbar-nav > .active > a {
|
||||||
background-image: -webkit-linear-gradient(top, #222 0%, #282828 100%);
|
background-image: -webkit-linear-gradient(top, #222 0%, #282828 100%);
|
||||||
background-image: -o-linear-gradient(top, #222 0%, #282828 100%);
|
background-image: -o-linear-gradient(top, #222 0%, #282828 100%);
|
||||||
@@ -324,6 +356,11 @@
|
|||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
|
.progress-bar-striped {
|
||||||
|
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
}
|
||||||
.list-group {
|
.list-group {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+243
-96
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v3.1.1 (http://getbootstrap.com)
|
* Bootstrap v3.2.0 (http://getbootstrap.com)
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
@@ -1025,7 +1025,7 @@ h6 .small,
|
|||||||
.h6 .small {
|
.h6 .small {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
color: #999;
|
color: #777;
|
||||||
}
|
}
|
||||||
h1,
|
h1,
|
||||||
.h1,
|
.h1,
|
||||||
@@ -1115,9 +1115,6 @@ small,
|
|||||||
.small {
|
.small {
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
}
|
}
|
||||||
cite {
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
mark,
|
mark,
|
||||||
.mark {
|
.mark {
|
||||||
padding: .2em;
|
padding: .2em;
|
||||||
@@ -1148,7 +1145,7 @@ mark,
|
|||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
.text-muted {
|
.text-muted {
|
||||||
color: #999;
|
color: #777;
|
||||||
}
|
}
|
||||||
.text-primary {
|
.text-primary {
|
||||||
color: #428bca;
|
color: #428bca;
|
||||||
@@ -1272,7 +1269,7 @@ dd {
|
|||||||
abbr[title],
|
abbr[title],
|
||||||
abbr[data-original-title] {
|
abbr[data-original-title] {
|
||||||
cursor: help;
|
cursor: help;
|
||||||
border-bottom: 1px dotted #999;
|
border-bottom: 1px dotted #777;
|
||||||
}
|
}
|
||||||
.initialism {
|
.initialism {
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
@@ -1295,7 +1292,7 @@ blockquote .small {
|
|||||||
display: block;
|
display: block;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
color: #999;
|
color: #777;
|
||||||
}
|
}
|
||||||
blockquote footer:before,
|
blockquote footer:before,
|
||||||
blockquote small:before,
|
blockquote small:before,
|
||||||
@@ -1360,6 +1357,7 @@ kbd {
|
|||||||
kbd kbd {
|
kbd kbd {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
|
font-weight: bold;
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
@@ -2058,6 +2056,12 @@ pre code {
|
|||||||
table {
|
table {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
caption {
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
color: #777;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@@ -2118,12 +2122,10 @@ th {
|
|||||||
.table-bordered > thead > tr > td {
|
.table-bordered > thead > tr > td {
|
||||||
border-bottom-width: 2px;
|
border-bottom-width: 2px;
|
||||||
}
|
}
|
||||||
.table-striped > tbody > tr:nth-child(odd) > td,
|
.table-striped > tbody > tr:nth-child(odd) {
|
||||||
.table-striped > tbody > tr:nth-child(odd) > th {
|
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
}
|
}
|
||||||
.table-hover > tbody > tr:hover > td,
|
.table-hover > tbody > tr:hover {
|
||||||
.table-hover > tbody > tr:hover > th {
|
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
table col[class*="col-"] {
|
table col[class*="col-"] {
|
||||||
@@ -2242,13 +2244,14 @@ table th[class*="col-"] {
|
|||||||
.table-hover > tbody > tr.danger:hover > th {
|
.table-hover > tbody > tr.danger:hover > th {
|
||||||
background-color: #ebcccc;
|
background-color: #ebcccc;
|
||||||
}
|
}
|
||||||
|
.table-responsive {
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
@media screen and (max-width: 767px) {
|
@media screen and (max-width: 767px) {
|
||||||
.table-responsive {
|
.table-responsive {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
overflow-x: auto;
|
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
-ms-overflow-style: -ms-autohiding-scrollbar;
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
@@ -2407,12 +2410,44 @@ input[type="time"].input-sm,
|
|||||||
input[type="datetime-local"].input-sm,
|
input[type="datetime-local"].input-sm,
|
||||||
input[type="month"].input-sm {
|
input[type="month"].input-sm {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
|
line-height: 1.5 \0;
|
||||||
}
|
}
|
||||||
input[type="date"].input-lg,
|
input[type="date"].input-lg,
|
||||||
input[type="time"].input-lg,
|
input[type="time"].input-lg,
|
||||||
input[type="datetime-local"].input-lg,
|
input[type="datetime-local"].input-lg,
|
||||||
input[type="month"].input-lg {
|
input[type="month"].input-lg {
|
||||||
line-height: 46px;
|
line-height: 46px;
|
||||||
|
line-height: 1.33 \0;
|
||||||
|
}
|
||||||
|
_:-ms-fullscreen,
|
||||||
|
:root input[type="date"],
|
||||||
|
_:-ms-fullscreen,
|
||||||
|
:root input[type="time"],
|
||||||
|
_:-ms-fullscreen,
|
||||||
|
:root input[type="datetime-local"],
|
||||||
|
_:-ms-fullscreen,
|
||||||
|
:root input[type="month"] {
|
||||||
|
line-height: 1.42857143;
|
||||||
|
}
|
||||||
|
_:-ms-fullscreen.input-sm,
|
||||||
|
:root input[type="date"].input-sm,
|
||||||
|
_:-ms-fullscreen.input-sm,
|
||||||
|
:root input[type="time"].input-sm,
|
||||||
|
_:-ms-fullscreen.input-sm,
|
||||||
|
:root input[type="datetime-local"].input-sm,
|
||||||
|
_:-ms-fullscreen.input-sm,
|
||||||
|
:root input[type="month"].input-sm {
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
_:-ms-fullscreen.input-lg,
|
||||||
|
:root input[type="date"].input-lg,
|
||||||
|
_:-ms-fullscreen.input-lg,
|
||||||
|
:root input[type="time"].input-lg,
|
||||||
|
_:-ms-fullscreen.input-lg,
|
||||||
|
:root input[type="datetime-local"].input-lg,
|
||||||
|
_:-ms-fullscreen.input-lg,
|
||||||
|
:root input[type="month"].input-lg {
|
||||||
|
line-height: 1.33;
|
||||||
}
|
}
|
||||||
.form-group {
|
.form-group {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
@@ -2421,12 +2456,12 @@ input[type="month"].input-lg {
|
|||||||
.checkbox {
|
.checkbox {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
min-height: 20px;
|
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.radio label,
|
.radio label,
|
||||||
.checkbox label {
|
.checkbox label {
|
||||||
|
min-height: 20px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@@ -2478,34 +2513,52 @@ fieldset[disabled] .radio label,
|
|||||||
fieldset[disabled] .checkbox label {
|
fieldset[disabled] .checkbox label {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
.input-sm {
|
.form-control-static {
|
||||||
|
padding-top: 7px;
|
||||||
|
padding-bottom: 7px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.form-control-static.input-lg,
|
||||||
|
.form-control-static.input-sm {
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.input-sm,
|
||||||
|
.form-group-sm .form-control {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
select.input-sm {
|
select.input-sm,
|
||||||
|
select.form-group-sm .form-control {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
textarea.input-sm,
|
textarea.input-sm,
|
||||||
select[multiple].input-sm {
|
textarea.form-group-sm .form-control,
|
||||||
|
select[multiple].input-sm,
|
||||||
|
select[multiple].form-group-sm .form-control {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
.input-lg {
|
.input-lg,
|
||||||
|
.form-group-lg .form-control {
|
||||||
height: 46px;
|
height: 46px;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
select.input-lg {
|
select.input-lg,
|
||||||
|
select.form-group-lg .form-control {
|
||||||
height: 46px;
|
height: 46px;
|
||||||
line-height: 46px;
|
line-height: 46px;
|
||||||
}
|
}
|
||||||
textarea.input-lg,
|
textarea.input-lg,
|
||||||
select[multiple].input-lg {
|
textarea.form-group-lg .form-control,
|
||||||
|
select[multiple].input-lg,
|
||||||
|
select[multiple].form-group-lg .form-control {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
.has-feedback {
|
.has-feedback {
|
||||||
@@ -2516,7 +2569,7 @@ select[multiple].input-lg {
|
|||||||
}
|
}
|
||||||
.form-control-feedback {
|
.form-control-feedback {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 25px;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: block;
|
display: block;
|
||||||
@@ -2524,6 +2577,7 @@ select[multiple].input-lg {
|
|||||||
height: 34px;
|
height: 34px;
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.input-lg + .form-control-feedback {
|
.input-lg + .form-control-feedback {
|
||||||
width: 46px;
|
width: 46px;
|
||||||
@@ -2540,7 +2594,11 @@ select[multiple].input-lg {
|
|||||||
.has-success .radio,
|
.has-success .radio,
|
||||||
.has-success .checkbox,
|
.has-success .checkbox,
|
||||||
.has-success .radio-inline,
|
.has-success .radio-inline,
|
||||||
.has-success .checkbox-inline {
|
.has-success .checkbox-inline,
|
||||||
|
.has-success.radio label,
|
||||||
|
.has-success.checkbox label,
|
||||||
|
.has-success.radio-inline label,
|
||||||
|
.has-success.checkbox-inline label {
|
||||||
color: #3c763d;
|
color: #3c763d;
|
||||||
}
|
}
|
||||||
.has-success .form-control {
|
.has-success .form-control {
|
||||||
@@ -2566,7 +2624,11 @@ select[multiple].input-lg {
|
|||||||
.has-warning .radio,
|
.has-warning .radio,
|
||||||
.has-warning .checkbox,
|
.has-warning .checkbox,
|
||||||
.has-warning .radio-inline,
|
.has-warning .radio-inline,
|
||||||
.has-warning .checkbox-inline {
|
.has-warning .checkbox-inline,
|
||||||
|
.has-warning.radio label,
|
||||||
|
.has-warning.checkbox label,
|
||||||
|
.has-warning.radio-inline label,
|
||||||
|
.has-warning.checkbox-inline label {
|
||||||
color: #8a6d3b;
|
color: #8a6d3b;
|
||||||
}
|
}
|
||||||
.has-warning .form-control {
|
.has-warning .form-control {
|
||||||
@@ -2592,7 +2654,11 @@ select[multiple].input-lg {
|
|||||||
.has-error .radio,
|
.has-error .radio,
|
||||||
.has-error .checkbox,
|
.has-error .checkbox,
|
||||||
.has-error .radio-inline,
|
.has-error .radio-inline,
|
||||||
.has-error .checkbox-inline {
|
.has-error .checkbox-inline,
|
||||||
|
.has-error.radio label,
|
||||||
|
.has-error.checkbox label,
|
||||||
|
.has-error.radio-inline label,
|
||||||
|
.has-error.checkbox-inline label {
|
||||||
color: #a94442;
|
color: #a94442;
|
||||||
}
|
}
|
||||||
.has-error .form-control {
|
.has-error .form-control {
|
||||||
@@ -2613,12 +2679,12 @@ select[multiple].input-lg {
|
|||||||
.has-error .form-control-feedback {
|
.has-error .form-control-feedback {
|
||||||
color: #a94442;
|
color: #a94442;
|
||||||
}
|
}
|
||||||
|
.has-feedback label ~ .form-control-feedback {
|
||||||
|
top: 25px;
|
||||||
|
}
|
||||||
.has-feedback label.sr-only ~ .form-control-feedback {
|
.has-feedback label.sr-only ~ .form-control-feedback {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.form-control-static {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.help-block {
|
.help-block {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
@@ -2636,6 +2702,9 @@ select[multiple].input-lg {
|
|||||||
width: auto;
|
width: auto;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
.form-inline .form-control-static {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
.form-inline .input-group {
|
.form-inline .input-group {
|
||||||
display: inline-table;
|
display: inline-table;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@@ -2665,7 +2734,7 @@ select[multiple].input-lg {
|
|||||||
}
|
}
|
||||||
.form-inline .radio input[type="radio"],
|
.form-inline .radio input[type="radio"],
|
||||||
.form-inline .checkbox input[type="checkbox"] {
|
.form-inline .checkbox input[type="checkbox"] {
|
||||||
float: none;
|
position: relative;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.form-inline .has-feedback .form-control-feedback {
|
.form-inline .has-feedback .form-control-feedback {
|
||||||
@@ -2688,10 +2757,6 @@ select[multiple].input-lg {
|
|||||||
margin-right: -15px;
|
margin-right: -15px;
|
||||||
margin-left: -15px;
|
margin-left: -15px;
|
||||||
}
|
}
|
||||||
.form-horizontal .form-control-static {
|
|
||||||
padding-top: 7px;
|
|
||||||
padding-bottom: 7px;
|
|
||||||
}
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.form-horizontal .control-label {
|
.form-horizontal .control-label {
|
||||||
padding-top: 7px;
|
padding-top: 7px;
|
||||||
@@ -2700,9 +2765,18 @@ select[multiple].input-lg {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.form-horizontal .has-feedback .form-control-feedback {
|
.form-horizontal .has-feedback .form-control-feedback {
|
||||||
top: 0;
|
|
||||||
right: 15px;
|
right: 15px;
|
||||||
}
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.form-horizontal .form-group-lg .control-label {
|
||||||
|
padding-top: 14.3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.form-horizontal .form-group-sm .control-label {
|
||||||
|
padding-top: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
@@ -2713,6 +2787,8 @@ select[multiple].input-lg {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
-ms-touch-action: manipulation;
|
||||||
|
touch-action: manipulation;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
@@ -2724,13 +2800,17 @@ select[multiple].input-lg {
|
|||||||
}
|
}
|
||||||
.btn:focus,
|
.btn:focus,
|
||||||
.btn:active:focus,
|
.btn:active:focus,
|
||||||
.btn.active:focus {
|
.btn.active:focus,
|
||||||
|
.btn.focus,
|
||||||
|
.btn:active.focus,
|
||||||
|
.btn.active.focus {
|
||||||
outline: thin dotted;
|
outline: thin dotted;
|
||||||
outline: 5px auto -webkit-focus-ring-color;
|
outline: 5px auto -webkit-focus-ring-color;
|
||||||
outline-offset: -2px;
|
outline-offset: -2px;
|
||||||
}
|
}
|
||||||
.btn:hover,
|
.btn:hover,
|
||||||
.btn:focus {
|
.btn:focus,
|
||||||
|
.btn.focus {
|
||||||
color: #333;
|
color: #333;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@@ -2758,6 +2838,7 @@ fieldset[disabled] .btn {
|
|||||||
}
|
}
|
||||||
.btn-default:hover,
|
.btn-default:hover,
|
||||||
.btn-default:focus,
|
.btn-default:focus,
|
||||||
|
.btn-default.focus,
|
||||||
.btn-default:active,
|
.btn-default:active,
|
||||||
.btn-default.active,
|
.btn-default.active,
|
||||||
.open > .dropdown-toggle.btn-default {
|
.open > .dropdown-toggle.btn-default {
|
||||||
@@ -2779,6 +2860,9 @@ fieldset[disabled] .btn-default:hover,
|
|||||||
.btn-default.disabled:focus,
|
.btn-default.disabled:focus,
|
||||||
.btn-default[disabled]:focus,
|
.btn-default[disabled]:focus,
|
||||||
fieldset[disabled] .btn-default:focus,
|
fieldset[disabled] .btn-default:focus,
|
||||||
|
.btn-default.disabled.focus,
|
||||||
|
.btn-default[disabled].focus,
|
||||||
|
fieldset[disabled] .btn-default.focus,
|
||||||
.btn-default.disabled:active,
|
.btn-default.disabled:active,
|
||||||
.btn-default[disabled]:active,
|
.btn-default[disabled]:active,
|
||||||
fieldset[disabled] .btn-default:active,
|
fieldset[disabled] .btn-default:active,
|
||||||
@@ -2799,6 +2883,7 @@ fieldset[disabled] .btn-default.active {
|
|||||||
}
|
}
|
||||||
.btn-primary:hover,
|
.btn-primary:hover,
|
||||||
.btn-primary:focus,
|
.btn-primary:focus,
|
||||||
|
.btn-primary.focus,
|
||||||
.btn-primary:active,
|
.btn-primary:active,
|
||||||
.btn-primary.active,
|
.btn-primary.active,
|
||||||
.open > .dropdown-toggle.btn-primary {
|
.open > .dropdown-toggle.btn-primary {
|
||||||
@@ -2820,6 +2905,9 @@ fieldset[disabled] .btn-primary:hover,
|
|||||||
.btn-primary.disabled:focus,
|
.btn-primary.disabled:focus,
|
||||||
.btn-primary[disabled]:focus,
|
.btn-primary[disabled]:focus,
|
||||||
fieldset[disabled] .btn-primary:focus,
|
fieldset[disabled] .btn-primary:focus,
|
||||||
|
.btn-primary.disabled.focus,
|
||||||
|
.btn-primary[disabled].focus,
|
||||||
|
fieldset[disabled] .btn-primary.focus,
|
||||||
.btn-primary.disabled:active,
|
.btn-primary.disabled:active,
|
||||||
.btn-primary[disabled]:active,
|
.btn-primary[disabled]:active,
|
||||||
fieldset[disabled] .btn-primary:active,
|
fieldset[disabled] .btn-primary:active,
|
||||||
@@ -2840,6 +2928,7 @@ fieldset[disabled] .btn-primary.active {
|
|||||||
}
|
}
|
||||||
.btn-success:hover,
|
.btn-success:hover,
|
||||||
.btn-success:focus,
|
.btn-success:focus,
|
||||||
|
.btn-success.focus,
|
||||||
.btn-success:active,
|
.btn-success:active,
|
||||||
.btn-success.active,
|
.btn-success.active,
|
||||||
.open > .dropdown-toggle.btn-success {
|
.open > .dropdown-toggle.btn-success {
|
||||||
@@ -2861,6 +2950,9 @@ fieldset[disabled] .btn-success:hover,
|
|||||||
.btn-success.disabled:focus,
|
.btn-success.disabled:focus,
|
||||||
.btn-success[disabled]:focus,
|
.btn-success[disabled]:focus,
|
||||||
fieldset[disabled] .btn-success:focus,
|
fieldset[disabled] .btn-success:focus,
|
||||||
|
.btn-success.disabled.focus,
|
||||||
|
.btn-success[disabled].focus,
|
||||||
|
fieldset[disabled] .btn-success.focus,
|
||||||
.btn-success.disabled:active,
|
.btn-success.disabled:active,
|
||||||
.btn-success[disabled]:active,
|
.btn-success[disabled]:active,
|
||||||
fieldset[disabled] .btn-success:active,
|
fieldset[disabled] .btn-success:active,
|
||||||
@@ -2881,6 +2973,7 @@ fieldset[disabled] .btn-success.active {
|
|||||||
}
|
}
|
||||||
.btn-info:hover,
|
.btn-info:hover,
|
||||||
.btn-info:focus,
|
.btn-info:focus,
|
||||||
|
.btn-info.focus,
|
||||||
.btn-info:active,
|
.btn-info:active,
|
||||||
.btn-info.active,
|
.btn-info.active,
|
||||||
.open > .dropdown-toggle.btn-info {
|
.open > .dropdown-toggle.btn-info {
|
||||||
@@ -2902,6 +2995,9 @@ fieldset[disabled] .btn-info:hover,
|
|||||||
.btn-info.disabled:focus,
|
.btn-info.disabled:focus,
|
||||||
.btn-info[disabled]:focus,
|
.btn-info[disabled]:focus,
|
||||||
fieldset[disabled] .btn-info:focus,
|
fieldset[disabled] .btn-info:focus,
|
||||||
|
.btn-info.disabled.focus,
|
||||||
|
.btn-info[disabled].focus,
|
||||||
|
fieldset[disabled] .btn-info.focus,
|
||||||
.btn-info.disabled:active,
|
.btn-info.disabled:active,
|
||||||
.btn-info[disabled]:active,
|
.btn-info[disabled]:active,
|
||||||
fieldset[disabled] .btn-info:active,
|
fieldset[disabled] .btn-info:active,
|
||||||
@@ -2922,6 +3018,7 @@ fieldset[disabled] .btn-info.active {
|
|||||||
}
|
}
|
||||||
.btn-warning:hover,
|
.btn-warning:hover,
|
||||||
.btn-warning:focus,
|
.btn-warning:focus,
|
||||||
|
.btn-warning.focus,
|
||||||
.btn-warning:active,
|
.btn-warning:active,
|
||||||
.btn-warning.active,
|
.btn-warning.active,
|
||||||
.open > .dropdown-toggle.btn-warning {
|
.open > .dropdown-toggle.btn-warning {
|
||||||
@@ -2943,6 +3040,9 @@ fieldset[disabled] .btn-warning:hover,
|
|||||||
.btn-warning.disabled:focus,
|
.btn-warning.disabled:focus,
|
||||||
.btn-warning[disabled]:focus,
|
.btn-warning[disabled]:focus,
|
||||||
fieldset[disabled] .btn-warning:focus,
|
fieldset[disabled] .btn-warning:focus,
|
||||||
|
.btn-warning.disabled.focus,
|
||||||
|
.btn-warning[disabled].focus,
|
||||||
|
fieldset[disabled] .btn-warning.focus,
|
||||||
.btn-warning.disabled:active,
|
.btn-warning.disabled:active,
|
||||||
.btn-warning[disabled]:active,
|
.btn-warning[disabled]:active,
|
||||||
fieldset[disabled] .btn-warning:active,
|
fieldset[disabled] .btn-warning:active,
|
||||||
@@ -2963,6 +3063,7 @@ fieldset[disabled] .btn-warning.active {
|
|||||||
}
|
}
|
||||||
.btn-danger:hover,
|
.btn-danger:hover,
|
||||||
.btn-danger:focus,
|
.btn-danger:focus,
|
||||||
|
.btn-danger.focus,
|
||||||
.btn-danger:active,
|
.btn-danger:active,
|
||||||
.btn-danger.active,
|
.btn-danger.active,
|
||||||
.open > .dropdown-toggle.btn-danger {
|
.open > .dropdown-toggle.btn-danger {
|
||||||
@@ -2984,6 +3085,9 @@ fieldset[disabled] .btn-danger:hover,
|
|||||||
.btn-danger.disabled:focus,
|
.btn-danger.disabled:focus,
|
||||||
.btn-danger[disabled]:focus,
|
.btn-danger[disabled]:focus,
|
||||||
fieldset[disabled] .btn-danger:focus,
|
fieldset[disabled] .btn-danger:focus,
|
||||||
|
.btn-danger.disabled.focus,
|
||||||
|
.btn-danger[disabled].focus,
|
||||||
|
fieldset[disabled] .btn-danger.focus,
|
||||||
.btn-danger.disabled:active,
|
.btn-danger.disabled:active,
|
||||||
.btn-danger[disabled]:active,
|
.btn-danger[disabled]:active,
|
||||||
fieldset[disabled] .btn-danger:active,
|
fieldset[disabled] .btn-danger:active,
|
||||||
@@ -3000,11 +3104,11 @@ fieldset[disabled] .btn-danger.active {
|
|||||||
.btn-link {
|
.btn-link {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #428bca;
|
color: #428bca;
|
||||||
cursor: pointer;
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
.btn-link,
|
.btn-link,
|
||||||
.btn-link:active,
|
.btn-link:active,
|
||||||
|
.btn-link.active,
|
||||||
.btn-link[disabled],
|
.btn-link[disabled],
|
||||||
fieldset[disabled] .btn-link {
|
fieldset[disabled] .btn-link {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
@@ -3027,7 +3131,7 @@ fieldset[disabled] .btn-link {
|
|||||||
fieldset[disabled] .btn-link:hover,
|
fieldset[disabled] .btn-link:hover,
|
||||||
.btn-link[disabled]:focus,
|
.btn-link[disabled]:focus,
|
||||||
fieldset[disabled] .btn-link:focus {
|
fieldset[disabled] .btn-link:focus {
|
||||||
color: #999;
|
color: #777;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.btn-lg,
|
.btn-lg,
|
||||||
@@ -3054,8 +3158,6 @@ fieldset[disabled] .btn-link:focus {
|
|||||||
.btn-block {
|
.btn-block {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-right: 0;
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
}
|
||||||
.btn-block + .btn-block {
|
.btn-block + .btn-block {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
@@ -3168,7 +3270,7 @@ tbody.collapse.in {
|
|||||||
.dropdown-menu > .disabled > a,
|
.dropdown-menu > .disabled > a,
|
||||||
.dropdown-menu > .disabled > a:hover,
|
.dropdown-menu > .disabled > a:hover,
|
||||||
.dropdown-menu > .disabled > a:focus {
|
.dropdown-menu > .disabled > a:focus {
|
||||||
color: #999;
|
color: #777;
|
||||||
}
|
}
|
||||||
.dropdown-menu > .disabled > a:hover,
|
.dropdown-menu > .disabled > a:hover,
|
||||||
.dropdown-menu > .disabled > a:focus {
|
.dropdown-menu > .disabled > a:focus {
|
||||||
@@ -3197,7 +3299,8 @@ tbody.collapse.in {
|
|||||||
padding: 3px 20px;
|
padding: 3px 20px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
color: #999;
|
color: #777;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.dropdown-backdrop {
|
.dropdown-backdrop {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -3397,8 +3500,10 @@ tbody.collapse.in {
|
|||||||
.btn-group-justified > .btn-group .dropdown-menu {
|
.btn-group-justified > .btn-group .dropdown-menu {
|
||||||
left: auto;
|
left: auto;
|
||||||
}
|
}
|
||||||
[data-toggle="buttons"] > .btn > input[type="radio"],
|
[data-toggle="buttons"] > .btn input[type="radio"],
|
||||||
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
|
||||||
|
[data-toggle="buttons"] > .btn input[type="checkbox"],
|
||||||
|
[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
filter: alpha(opacity=0);
|
filter: alpha(opacity=0);
|
||||||
@@ -3578,11 +3683,11 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
.nav > li.disabled > a {
|
.nav > li.disabled > a {
|
||||||
color: #999;
|
color: #777;
|
||||||
}
|
}
|
||||||
.nav > li.disabled > a:hover,
|
.nav > li.disabled > a:hover,
|
||||||
.nav > li.disabled > a:focus {
|
.nav > li.disabled > a:focus {
|
||||||
color: #999;
|
color: #777;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
@@ -3805,7 +3910,7 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
.navbar-fixed-bottom .navbar-collapse {
|
.navbar-fixed-bottom .navbar-collapse {
|
||||||
max-height: 340px;
|
max-height: 340px;
|
||||||
}
|
}
|
||||||
@media (max-width: 480px) and (orientation: landscape) {
|
@media (max-device-width: 480px) and (orientation: landscape) {
|
||||||
.navbar-fixed-top .navbar-collapse,
|
.navbar-fixed-top .navbar-collapse,
|
||||||
.navbar-fixed-bottom .navbar-collapse {
|
.navbar-fixed-bottom .navbar-collapse {
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
@@ -3843,7 +3948,6 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1030;
|
z-index: 1030;
|
||||||
-webkit-transform: translate3d(0, 0, 0);
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
-o-transform: translate3d(0, 0, 0);
|
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
@@ -3872,6 +3976,9 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
.navbar-brand:focus {
|
.navbar-brand:focus {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
.navbar-brand > img {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.navbar > .container .navbar-brand,
|
.navbar > .container .navbar-brand,
|
||||||
.navbar > .container-fluid .navbar-brand {
|
.navbar > .container-fluid .navbar-brand {
|
||||||
@@ -3950,17 +4057,6 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
}
|
}
|
||||||
.navbar-nav.navbar-right:last-child {
|
|
||||||
margin-right: -15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.navbar-left {
|
|
||||||
float: left !important;
|
|
||||||
}
|
|
||||||
.navbar-right {
|
|
||||||
float: right !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.navbar-form {
|
.navbar-form {
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
@@ -3984,6 +4080,9 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
width: auto;
|
width: auto;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
.navbar-form .form-control-static {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
.navbar-form .input-group {
|
.navbar-form .input-group {
|
||||||
display: inline-table;
|
display: inline-table;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@@ -4013,7 +4112,7 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
}
|
}
|
||||||
.navbar-form .radio input[type="radio"],
|
.navbar-form .radio input[type="radio"],
|
||||||
.navbar-form .checkbox input[type="checkbox"] {
|
.navbar-form .checkbox input[type="checkbox"] {
|
||||||
float: none;
|
position: relative;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.navbar-form .has-feedback .form-control-feedback {
|
.navbar-form .has-feedback .form-control-feedback {
|
||||||
@@ -4036,9 +4135,6 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
.navbar-form.navbar-right:last-child {
|
|
||||||
margin-right: -15px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.navbar-nav > li > .dropdown-menu {
|
.navbar-nav > li > .dropdown-menu {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@@ -4071,7 +4167,16 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
.navbar-text.navbar-right:last-child {
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.navbar-left {
|
||||||
|
float: left !important;
|
||||||
|
}
|
||||||
|
.navbar-right {
|
||||||
|
float: right !important;
|
||||||
|
margin-right: -15px;
|
||||||
|
}
|
||||||
|
.navbar-right ~ .navbar-right {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4176,7 +4281,7 @@ fieldset[disabled] .navbar-default .btn-link:focus {
|
|||||||
border-color: #080808;
|
border-color: #080808;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-brand {
|
.navbar-inverse .navbar-brand {
|
||||||
color: #999;
|
color: #9d9d9d;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-brand:hover,
|
.navbar-inverse .navbar-brand:hover,
|
||||||
.navbar-inverse .navbar-brand:focus {
|
.navbar-inverse .navbar-brand:focus {
|
||||||
@@ -4184,10 +4289,10 @@ fieldset[disabled] .navbar-default .btn-link:focus {
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-text {
|
.navbar-inverse .navbar-text {
|
||||||
color: #999;
|
color: #9d9d9d;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-nav > li > a {
|
.navbar-inverse .navbar-nav > li > a {
|
||||||
color: #999;
|
color: #9d9d9d;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-nav > li > a:hover,
|
.navbar-inverse .navbar-nav > li > a:hover,
|
||||||
.navbar-inverse .navbar-nav > li > a:focus {
|
.navbar-inverse .navbar-nav > li > a:focus {
|
||||||
@@ -4234,7 +4339,7 @@ fieldset[disabled] .navbar-default .btn-link:focus {
|
|||||||
background-color: #080808;
|
background-color: #080808;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
|
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
|
||||||
color: #999;
|
color: #9d9d9d;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
|
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
|
||||||
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
|
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
|
||||||
@@ -4255,13 +4360,13 @@ fieldset[disabled] .navbar-default .btn-link:focus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-link {
|
.navbar-inverse .navbar-link {
|
||||||
color: #999;
|
color: #9d9d9d;
|
||||||
}
|
}
|
||||||
.navbar-inverse .navbar-link:hover {
|
.navbar-inverse .navbar-link:hover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.navbar-inverse .btn-link {
|
.navbar-inverse .btn-link {
|
||||||
color: #999;
|
color: #9d9d9d;
|
||||||
}
|
}
|
||||||
.navbar-inverse .btn-link:hover,
|
.navbar-inverse .btn-link:hover,
|
||||||
.navbar-inverse .btn-link:focus {
|
.navbar-inverse .btn-link:focus {
|
||||||
@@ -4289,7 +4394,7 @@ fieldset[disabled] .navbar-inverse .btn-link:focus {
|
|||||||
content: "/\00a0";
|
content: "/\00a0";
|
||||||
}
|
}
|
||||||
.breadcrumb > .active {
|
.breadcrumb > .active {
|
||||||
color: #999;
|
color: #777;
|
||||||
}
|
}
|
||||||
.pagination {
|
.pagination {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -4349,7 +4454,7 @@ fieldset[disabled] .navbar-inverse .btn-link:focus {
|
|||||||
.pagination > .disabled > a,
|
.pagination > .disabled > a,
|
||||||
.pagination > .disabled > a:hover,
|
.pagination > .disabled > a:hover,
|
||||||
.pagination > .disabled > a:focus {
|
.pagination > .disabled > a:focus {
|
||||||
color: #999;
|
color: #777;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-color: #ddd;
|
border-color: #ddd;
|
||||||
@@ -4418,7 +4523,7 @@ fieldset[disabled] .navbar-inverse .btn-link:focus {
|
|||||||
.pager .disabled > a:hover,
|
.pager .disabled > a:hover,
|
||||||
.pager .disabled > a:focus,
|
.pager .disabled > a:focus,
|
||||||
.pager .disabled > span {
|
.pager .disabled > span {
|
||||||
color: #999;
|
color: #777;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
@@ -4448,11 +4553,11 @@ a.label:focus {
|
|||||||
top: -1px;
|
top: -1px;
|
||||||
}
|
}
|
||||||
.label-default {
|
.label-default {
|
||||||
background-color: #999;
|
background-color: #777;
|
||||||
}
|
}
|
||||||
.label-default[href]:hover,
|
.label-default[href]:hover,
|
||||||
.label-default[href]:focus {
|
.label-default[href]:focus {
|
||||||
background-color: #808080;
|
background-color: #5e5e5e;
|
||||||
}
|
}
|
||||||
.label-primary {
|
.label-primary {
|
||||||
background-color: #428bca;
|
background-color: #428bca;
|
||||||
@@ -4500,7 +4605,7 @@ a.label:focus {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
background-color: #999;
|
background-color: #777;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
.badge:empty {
|
.badge:empty {
|
||||||
@@ -4612,10 +4717,12 @@ a.thumbnail.active {
|
|||||||
.alert > p + p {
|
.alert > p + p {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
.alert-dismissable {
|
.alert-dismissable,
|
||||||
|
.alert-dismissible {
|
||||||
padding-right: 35px;
|
padding-right: 35px;
|
||||||
}
|
}
|
||||||
.alert-dismissable .close {
|
.alert-dismissable .close,
|
||||||
|
.alert-dismissible .close {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -2px;
|
top: -2px;
|
||||||
right: -21px;
|
right: -21px;
|
||||||
@@ -4713,25 +4820,23 @@ a.thumbnail.active {
|
|||||||
-o-transition: width .6s ease;
|
-o-transition: width .6s ease;
|
||||||
transition: width .6s ease;
|
transition: width .6s ease;
|
||||||
}
|
}
|
||||||
.progress-striped .progress-bar {
|
.progress-striped .progress-bar,
|
||||||
|
.progress-bar-striped {
|
||||||
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
-webkit-background-size: 40px 40px;
|
-webkit-background-size: 40px 40px;
|
||||||
background-size: 40px 40px;
|
background-size: 40px 40px;
|
||||||
}
|
}
|
||||||
.progress.active .progress-bar {
|
.progress.active .progress-bar,
|
||||||
|
.progress-bar.active {
|
||||||
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
||||||
-o-animation: progress-bar-stripes 2s linear infinite;
|
-o-animation: progress-bar-stripes 2s linear infinite;
|
||||||
animation: progress-bar-stripes 2s linear infinite;
|
animation: progress-bar-stripes 2s linear infinite;
|
||||||
}
|
}
|
||||||
.progress-bar[aria-valuenow="1"],
|
|
||||||
.progress-bar[aria-valuenow="2"] {
|
|
||||||
min-width: 30px;
|
|
||||||
}
|
|
||||||
.progress-bar[aria-valuenow="0"] {
|
.progress-bar[aria-valuenow="0"] {
|
||||||
min-width: 30px;
|
min-width: 30px;
|
||||||
color: #999;
|
color: #777;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
@@ -4839,7 +4944,8 @@ a.list-group-item:focus {
|
|||||||
.list-group-item.disabled,
|
.list-group-item.disabled,
|
||||||
.list-group-item.disabled:hover,
|
.list-group-item.disabled:hover,
|
||||||
.list-group-item.disabled:focus {
|
.list-group-item.disabled:focus {
|
||||||
color: #999;
|
color: #777;
|
||||||
|
cursor: not-allowed;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
.list-group-item.disabled .list-group-item-heading,
|
.list-group-item.disabled .list-group-item-heading,
|
||||||
@@ -4850,7 +4956,7 @@ a.list-group-item:focus {
|
|||||||
.list-group-item.disabled .list-group-item-text,
|
.list-group-item.disabled .list-group-item-text,
|
||||||
.list-group-item.disabled:hover .list-group-item-text,
|
.list-group-item.disabled:hover .list-group-item-text,
|
||||||
.list-group-item.disabled:focus .list-group-item-text {
|
.list-group-item.disabled:focus .list-group-item-text {
|
||||||
color: #999;
|
color: #777;
|
||||||
}
|
}
|
||||||
.list-group-item.active,
|
.list-group-item.active,
|
||||||
.list-group-item.active:hover,
|
.list-group-item.active:hover,
|
||||||
@@ -4862,7 +4968,13 @@ a.list-group-item:focus {
|
|||||||
}
|
}
|
||||||
.list-group-item.active .list-group-item-heading,
|
.list-group-item.active .list-group-item-heading,
|
||||||
.list-group-item.active:hover .list-group-item-heading,
|
.list-group-item.active:hover .list-group-item-heading,
|
||||||
.list-group-item.active:focus .list-group-item-heading {
|
.list-group-item.active:focus .list-group-item-heading,
|
||||||
|
.list-group-item.active .list-group-item-heading > small,
|
||||||
|
.list-group-item.active:hover .list-group-item-heading > small,
|
||||||
|
.list-group-item.active:focus .list-group-item-heading > small,
|
||||||
|
.list-group-item.active .list-group-item-heading > .small,
|
||||||
|
.list-group-item.active:hover .list-group-item-heading > .small,
|
||||||
|
.list-group-item.active:focus .list-group-item-heading > .small {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
.list-group-item.active .list-group-item-text,
|
.list-group-item.active .list-group-item-text,
|
||||||
@@ -5030,6 +5142,12 @@ a.list-group-item-danger.active:focus {
|
|||||||
.panel > .panel-collapse > .table {
|
.panel > .panel-collapse > .table {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
.panel > .table caption,
|
||||||
|
.panel > .table-responsive > .table caption,
|
||||||
|
.panel > .panel-collapse > .table caption {
|
||||||
|
padding-right: 15px;
|
||||||
|
padding-left: 15px;
|
||||||
|
}
|
||||||
.panel > .table:first-child,
|
.panel > .table:first-child,
|
||||||
.panel > .table-responsive:first-child > .table:first-child {
|
.panel > .table-responsive:first-child > .table:first-child {
|
||||||
border-top-left-radius: 3px;
|
border-top-left-radius: 3px;
|
||||||
@@ -5081,7 +5199,9 @@ a.list-group-item-danger.active:focus {
|
|||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
}
|
}
|
||||||
.panel > .panel-body + .table,
|
.panel > .panel-body + .table,
|
||||||
.panel > .panel-body + .table-responsive {
|
.panel > .panel-body + .table-responsive,
|
||||||
|
.panel > .table + .panel-body,
|
||||||
|
.panel > .table-responsive + .panel-body {
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
.panel > .table > tbody:first-child > tr:first-child th,
|
.panel > .table > tbody:first-child > tr:first-child th,
|
||||||
@@ -5366,12 +5486,10 @@ button.close {
|
|||||||
-o-transition: -o-transform .3s ease-out;
|
-o-transition: -o-transform .3s ease-out;
|
||||||
transition: transform .3s ease-out;
|
transition: transform .3s ease-out;
|
||||||
-webkit-transform: translate3d(0, -25%, 0);
|
-webkit-transform: translate3d(0, -25%, 0);
|
||||||
-o-transform: translate3d(0, -25%, 0);
|
|
||||||
transform: translate3d(0, -25%, 0);
|
transform: translate3d(0, -25%, 0);
|
||||||
}
|
}
|
||||||
.modal.in .modal-dialog {
|
.modal.in .modal-dialog {
|
||||||
-webkit-transform: translate3d(0, 0, 0);
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
-o-transform: translate3d(0, 0, 0);
|
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
.modal-open .modal {
|
.modal-open .modal {
|
||||||
@@ -5574,6 +5692,9 @@ button.close {
|
|||||||
display: none;
|
display: none;
|
||||||
max-width: 276px;
|
max-width: 276px;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1.42857143;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@@ -5601,8 +5722,6 @@ button.close {
|
|||||||
padding: 8px 14px;
|
padding: 8px 14px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
|
||||||
line-height: 18px;
|
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
border-bottom: 1px solid #ebebeb;
|
border-bottom: 1px solid #ebebeb;
|
||||||
border-radius: 5px 5px 0 0;
|
border-radius: 5px 5px 0 0;
|
||||||
@@ -5705,6 +5824,37 @@ button.close {
|
|||||||
.carousel-inner > .item > a > img {
|
.carousel-inner > .item > a > img {
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
@media all and (transform-3d), (-webkit-transform-3d) {
|
||||||
|
.carousel-inner > .item {
|
||||||
|
-webkit-transition: -webkit-transform .6s ease-in-out;
|
||||||
|
-o-transition: -o-transform .6s ease-in-out;
|
||||||
|
transition: transform .6s ease-in-out;
|
||||||
|
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
backface-visibility: hidden;
|
||||||
|
-webkit-perspective: 1000;
|
||||||
|
perspective: 1000;
|
||||||
|
}
|
||||||
|
.carousel-inner > .item.next,
|
||||||
|
.carousel-inner > .item.active.right {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .item.prev,
|
||||||
|
.carousel-inner > .item.active.left {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(-100%, 0, 0);
|
||||||
|
transform: translate3d(-100%, 0, 0);
|
||||||
|
}
|
||||||
|
.carousel-inner > .item.next.left,
|
||||||
|
.carousel-inner > .item.prev.right,
|
||||||
|
.carousel-inner > .item.active {
|
||||||
|
left: 0;
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
.carousel-inner > .active,
|
.carousel-inner > .active,
|
||||||
.carousel-inner > .next,
|
.carousel-inner > .next,
|
||||||
.carousel-inner > .prev {
|
.carousel-inner > .prev {
|
||||||
@@ -5960,9 +6110,6 @@ button.close {
|
|||||||
}
|
}
|
||||||
.affix {
|
.affix {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
-webkit-transform: translate3d(0, 0, 0);
|
|
||||||
-o-transform: translate3d(0, 0, 0);
|
|
||||||
transform: translate3d(0, 0, 0);
|
|
||||||
}
|
}
|
||||||
@-ms-viewport {
|
@-ms-viewport {
|
||||||
width: device-width;
|
width: device-width;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+192
-182
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v3.1.1 (http://getbootstrap.com)
|
* Bootstrap v3.2.0 (http://getbootstrap.com)
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') }
|
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') }
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: transition.js v3.1.1
|
* Bootstrap: transition.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#transitions
|
* http://getbootstrap.com/javascript/#transitions
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -15,11 +15,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
||||||
@@ -48,7 +44,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
$.fn.emulateTransitionEnd = function (duration) {
|
$.fn.emulateTransitionEnd = function (duration) {
|
||||||
var called = false
|
var called = false
|
||||||
var $el = this
|
var $el = this
|
||||||
$(this).one($.support.transition.end, function () { called = true })
|
$(this).one('bsTransitionEnd', function () { called = true })
|
||||||
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
||||||
setTimeout(callback, duration)
|
setTimeout(callback, duration)
|
||||||
return this
|
return this
|
||||||
@@ -56,12 +52,22 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
$.support.transition = transitionEnd()
|
$.support.transition = transitionEnd()
|
||||||
|
|
||||||
|
if (!$.support.transition) return
|
||||||
|
|
||||||
|
$.event.special.bsTransitionEnd = {
|
||||||
|
bindType: $.support.transition.end,
|
||||||
|
delegateType: $.support.transition.end,
|
||||||
|
handle: function (e) {
|
||||||
|
if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: alert.js v3.1.1
|
* Bootstrap: alert.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#alerts
|
* http://getbootstrap.com/javascript/#alerts
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -69,11 +75,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// ALERT CLASS DEFINITION
|
// ALERT CLASS DEFINITION
|
||||||
@@ -84,7 +86,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
$(el).on('click', dismiss, this.close)
|
$(el).on('click', dismiss, this.close)
|
||||||
}
|
}
|
||||||
|
|
||||||
Alert.VERSION = '3.1.1'
|
Alert.VERSION = '3.2.0'
|
||||||
|
|
||||||
|
Alert.TRANSITION_DURATION = 150
|
||||||
|
|
||||||
Alert.prototype.close = function (e) {
|
Alert.prototype.close = function (e) {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
@@ -100,7 +104,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
if (e) e.preventDefault()
|
if (e) e.preventDefault()
|
||||||
|
|
||||||
if (!$parent.length) {
|
if (!$parent.length) {
|
||||||
$parent = $this.hasClass('alert') ? $this : $this.parent()
|
$parent = $this.closest('.alert')
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent.trigger(e = $.Event('close.bs.alert'))
|
$parent.trigger(e = $.Event('close.bs.alert'))
|
||||||
@@ -116,8 +120,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
$.support.transition && $parent.hasClass('fade') ?
|
$.support.transition && $parent.hasClass('fade') ?
|
||||||
$parent
|
$parent
|
||||||
.one($.support.transition.end, removeElement)
|
.one('bsTransitionEnd', removeElement)
|
||||||
.emulateTransitionEnd(150) :
|
.emulateTransitionEnd(Alert.TRANSITION_DURATION) :
|
||||||
removeElement()
|
removeElement()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,10 +159,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
|
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: button.js v3.1.1
|
* Bootstrap: button.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#buttons
|
* http://getbootstrap.com/javascript/#buttons
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -166,11 +170,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// BUTTON PUBLIC CLASS DEFINITION
|
// BUTTON PUBLIC CLASS DEFINITION
|
||||||
@@ -182,7 +182,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
}
|
}
|
||||||
|
|
||||||
Button.VERSION = '3.1.1'
|
Button.VERSION = '3.2.0'
|
||||||
|
|
||||||
Button.DEFAULTS = {
|
Button.DEFAULTS = {
|
||||||
loadingText: 'loading...'
|
loadingText: 'loading...'
|
||||||
@@ -263,17 +263,21 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
// BUTTON DATA-API
|
// BUTTON DATA-API
|
||||||
// ===============
|
// ===============
|
||||||
|
|
||||||
$(document).on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
$(document)
|
||||||
var $btn = $(e.target)
|
.on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
||||||
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
var $btn = $(e.target)
|
||||||
Plugin.call($btn, 'toggle')
|
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
||||||
e.preventDefault()
|
Plugin.call($btn, 'toggle')
|
||||||
})
|
e.preventDefault()
|
||||||
|
})
|
||||||
|
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
||||||
|
$(e.target).closest('.btn').toggleClass('focus', e.type == 'focus')
|
||||||
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: carousel.js v3.1.1
|
* Bootstrap: carousel.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#carousel
|
* http://getbootstrap.com/javascript/#carousel
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -281,11 +285,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// CAROUSEL CLASS DEFINITION
|
// CAROUSEL CLASS DEFINITION
|
||||||
@@ -306,7 +306,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
|
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
Carousel.VERSION = '3.1.1'
|
Carousel.VERSION = '3.2.0'
|
||||||
|
|
||||||
|
Carousel.TRANSITION_DURATION = 600
|
||||||
|
|
||||||
Carousel.DEFAULTS = {
|
Carousel.DEFAULTS = {
|
||||||
interval: 5000,
|
interval: 5000,
|
||||||
@@ -341,6 +343,13 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
return this.$items.index(item || this.$active)
|
return this.$items.index(item || this.$active)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Carousel.prototype.getItemForDirection = function (direction, active) {
|
||||||
|
var delta = direction == 'prev' ? -1 : 1
|
||||||
|
var activeIndex = this.getItemIndex(active)
|
||||||
|
var itemIndex = (activeIndex + delta) % this.$items.length
|
||||||
|
return this.$items.eq(itemIndex)
|
||||||
|
}
|
||||||
|
|
||||||
Carousel.prototype.to = function (pos) {
|
Carousel.prototype.to = function (pos) {
|
||||||
var that = this
|
var that = this
|
||||||
var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
|
var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
|
||||||
@@ -350,7 +359,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
|
if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
|
||||||
if (activeIndex == pos) return this.pause().cycle()
|
if (activeIndex == pos) return this.pause().cycle()
|
||||||
|
|
||||||
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos))
|
||||||
}
|
}
|
||||||
|
|
||||||
Carousel.prototype.pause = function (e) {
|
Carousel.prototype.pause = function (e) {
|
||||||
@@ -378,7 +387,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
Carousel.prototype.slide = function (type, next) {
|
Carousel.prototype.slide = function (type, next) {
|
||||||
var $active = this.$element.find('.item.active')
|
var $active = this.$element.find('.item.active')
|
||||||
var $next = next || $active[type]()
|
var $next = next || this.getItemForDirection(type, $active)
|
||||||
var isCycling = this.interval
|
var isCycling = this.interval
|
||||||
var direction = type == 'next' ? 'left' : 'right'
|
var direction = type == 'next' ? 'left' : 'right'
|
||||||
var fallback = type == 'next' ? 'first' : 'last'
|
var fallback = type == 'next' ? 'first' : 'last'
|
||||||
@@ -416,7 +425,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
$active.addClass(direction)
|
$active.addClass(direction)
|
||||||
$next.addClass(direction)
|
$next.addClass(direction)
|
||||||
$active
|
$active
|
||||||
.one($.support.transition.end, function () {
|
.one('bsTransitionEnd', function () {
|
||||||
$next.removeClass([type, direction].join(' ')).addClass('active')
|
$next.removeClass([type, direction].join(' ')).addClass('active')
|
||||||
$active.removeClass(['active', direction].join(' '))
|
$active.removeClass(['active', direction].join(' '))
|
||||||
that.sliding = false
|
that.sliding = false
|
||||||
@@ -424,7 +433,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
that.$element.trigger(slidEvent)
|
that.$element.trigger(slidEvent)
|
||||||
}, 0)
|
}, 0)
|
||||||
})
|
})
|
||||||
.emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000)
|
.emulateTransitionEnd(Carousel.TRANSITION_DURATION)
|
||||||
} else {
|
} else {
|
||||||
$active.removeClass('active')
|
$active.removeClass('active')
|
||||||
$next.addClass('active')
|
$next.addClass('active')
|
||||||
@@ -476,7 +485,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
$(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
|
$(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
|
||||||
var href
|
var href
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
|
||||||
|
if (!$target.hasClass('carousel')) return
|
||||||
var options = $.extend({}, $target.data(), $this.data())
|
var options = $.extend({}, $target.data(), $this.data())
|
||||||
var slideIndex = $this.attr('data-slide-to')
|
var slideIndex = $this.attr('data-slide-to')
|
||||||
if (slideIndex) options.interval = false
|
if (slideIndex) options.interval = false
|
||||||
@@ -497,10 +507,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: collapse.js v3.1.1
|
* Bootstrap: collapse.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#collapse
|
* http://getbootstrap.com/javascript/#collapse
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -508,11 +518,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// COLLAPSE PUBLIC CLASS DEFINITION
|
// COLLAPSE PUBLIC CLASS DEFINITION
|
||||||
@@ -527,7 +533,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
if (this.options.toggle) this.toggle()
|
if (this.options.toggle) this.toggle()
|
||||||
}
|
}
|
||||||
|
|
||||||
Collapse.VERSION = '3.1.1'
|
Collapse.VERSION = '3.2.0'
|
||||||
|
|
||||||
|
Collapse.TRANSITION_DURATION = 350
|
||||||
|
|
||||||
Collapse.DEFAULTS = {
|
Collapse.DEFAULTS = {
|
||||||
toggle: true
|
toggle: true
|
||||||
@@ -562,18 +570,12 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
this.transitioning = 1
|
this.transitioning = 1
|
||||||
|
|
||||||
var complete = function (e) {
|
var complete = function () {
|
||||||
if (e && e.target != this.$element[0]) {
|
|
||||||
this.$element
|
|
||||||
.one($.support.transition.end, $.proxy(complete, this))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.$element
|
this.$element
|
||||||
.removeClass('collapsing')
|
.removeClass('collapsing')
|
||||||
.addClass('collapse in')[dimension]('')
|
.addClass('collapse in')[dimension]('')
|
||||||
this.transitioning = 0
|
this.transitioning = 0
|
||||||
this.$element
|
this.$element
|
||||||
.off($.support.transition.end + '.bs.collapse')
|
|
||||||
.trigger('shown.bs.collapse')
|
.trigger('shown.bs.collapse')
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -582,8 +584,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
var scrollSize = $.camelCase(['scroll', dimension].join('-'))
|
var scrollSize = $.camelCase(['scroll', dimension].join('-'))
|
||||||
|
|
||||||
this.$element
|
this.$element
|
||||||
.on($.support.transition.end + '.bs.collapse', $.proxy(complete, this))
|
.one('bsTransitionEnd', $.proxy(complete, this))
|
||||||
.emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])
|
.emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
|
||||||
}
|
}
|
||||||
|
|
||||||
Collapse.prototype.hide = function () {
|
Collapse.prototype.hide = function () {
|
||||||
@@ -599,17 +601,11 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
this.$element
|
this.$element
|
||||||
.addClass('collapsing')
|
.addClass('collapsing')
|
||||||
.removeClass('collapse')
|
.removeClass('collapse in')
|
||||||
.removeClass('in')
|
|
||||||
|
|
||||||
this.transitioning = 1
|
this.transitioning = 1
|
||||||
|
|
||||||
var complete = function (e) {
|
var complete = function () {
|
||||||
if (e && e.target != this.$element[0]) {
|
|
||||||
this.$element
|
|
||||||
.one($.support.transition.end, $.proxy(complete, this))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.transitioning = 0
|
this.transitioning = 0
|
||||||
this.$element
|
this.$element
|
||||||
.trigger('hidden.bs.collapse')
|
.trigger('hidden.bs.collapse')
|
||||||
@@ -621,8 +617,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
this.$element
|
this.$element
|
||||||
[dimension](0)
|
[dimension](0)
|
||||||
.one($.support.transition.end, $.proxy(complete, this))
|
.one('bsTransitionEnd', $.proxy(complete, this))
|
||||||
.emulateTransitionEnd(350)
|
.emulateTransitionEnd(Collapse.TRANSITION_DURATION)
|
||||||
}
|
}
|
||||||
|
|
||||||
Collapse.prototype.toggle = function () {
|
Collapse.prototype.toggle = function () {
|
||||||
@@ -639,7 +635,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
var data = $this.data('bs.collapse')
|
var data = $this.data('bs.collapse')
|
||||||
var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
||||||
|
|
||||||
if (!data && options.toggle && option == 'show') option = !option
|
if (!data && options.toggle && option == 'show') options.toggle = false
|
||||||
if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
|
if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
|
||||||
if (typeof option == 'string') data[option]()
|
if (typeof option == 'string') data[option]()
|
||||||
})
|
})
|
||||||
@@ -668,7 +664,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
var target = $this.attr('data-target')
|
var target = $this.attr('data-target')
|
||||||
|| e.preventDefault()
|
|| e.preventDefault()
|
||||||
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
|
||||||
var $target = $(target)
|
var $target = $(target)
|
||||||
var data = $target.data('bs.collapse')
|
var data = $target.data('bs.collapse')
|
||||||
var option = data ? 'toggle' : $this.data()
|
var option = data ? 'toggle' : $this.data()
|
||||||
@@ -677,16 +673,16 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
if (!data || !data.transitioning) {
|
if (!data || !data.transitioning) {
|
||||||
if ($parent) $parent.find('[data-toggle="collapse"][data-parent="' + parent + '"]').not($this).addClass('collapsed')
|
if ($parent) $parent.find('[data-toggle="collapse"][data-parent="' + parent + '"]').not($this).addClass('collapsed')
|
||||||
$this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
|
$this.toggleClass('collapsed', $target.hasClass('in'))
|
||||||
}
|
}
|
||||||
|
|
||||||
Plugin.call($target, option)
|
Plugin.call($target, option)
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: dropdown.js v3.1.1
|
* Bootstrap: dropdown.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#dropdowns
|
* http://getbootstrap.com/javascript/#dropdowns
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -694,11 +690,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// DROPDOWN CLASS DEFINITION
|
// DROPDOWN CLASS DEFINITION
|
||||||
@@ -710,7 +702,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
$(element).on('click.bs.dropdown', this.toggle)
|
$(element).on('click.bs.dropdown', this.toggle)
|
||||||
}
|
}
|
||||||
|
|
||||||
Dropdown.VERSION = '3.1.1'
|
Dropdown.VERSION = '3.2.0'
|
||||||
|
|
||||||
Dropdown.prototype.toggle = function (e) {
|
Dropdown.prototype.toggle = function (e) {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
@@ -733,7 +725,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
if (e.isDefaultPrevented()) return
|
if (e.isDefaultPrevented()) return
|
||||||
|
|
||||||
$this.trigger('focus')
|
$this
|
||||||
|
.trigger('focus')
|
||||||
|
.attr('aria-expanded', 'true')
|
||||||
|
|
||||||
$parent
|
$parent
|
||||||
.toggleClass('open')
|
.toggleClass('open')
|
||||||
@@ -779,11 +773,17 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
if (e && e.which === 3) return
|
if (e && e.which === 3) return
|
||||||
$(backdrop).remove()
|
$(backdrop).remove()
|
||||||
$(toggle).each(function () {
|
$(toggle).each(function () {
|
||||||
var $parent = getParent($(this))
|
var $this = $(this)
|
||||||
|
var $parent = getParent($this)
|
||||||
var relatedTarget = { relatedTarget: this }
|
var relatedTarget = { relatedTarget: this }
|
||||||
|
|
||||||
if (!$parent.hasClass('open')) return
|
if (!$parent.hasClass('open')) return
|
||||||
|
|
||||||
$parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
|
$parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
|
||||||
|
|
||||||
if (e.isDefaultPrevented()) return
|
if (e.isDefaultPrevented()) return
|
||||||
|
|
||||||
|
$this.attr('aria-expanded', 'false')
|
||||||
$parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
|
$parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -793,7 +793,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
if (!selector) {
|
if (!selector) {
|
||||||
selector = $this.attr('href')
|
selector = $this.attr('href')
|
||||||
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
var $parent = selector && $(selector)
|
var $parent = selector && $(selector)
|
||||||
@@ -839,10 +839,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
|
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
|
||||||
.on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
|
.on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: modal.js v3.1.1
|
* Bootstrap: modal.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#modals
|
* http://getbootstrap.com/javascript/#modals
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -850,11 +850,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// MODAL CLASS DEFINITION
|
// MODAL CLASS DEFINITION
|
||||||
@@ -877,7 +873,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Modal.VERSION = '3.1.1'
|
Modal.VERSION = '3.2.0'
|
||||||
|
|
||||||
|
Modal.TRANSITION_DURATION = 300
|
||||||
|
Modal.BACKDROP_TRANSITION_DURATION = 150
|
||||||
|
|
||||||
Modal.DEFAULTS = {
|
Modal.DEFAULTS = {
|
||||||
backdrop: true,
|
backdrop: true,
|
||||||
@@ -932,10 +931,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
transition ?
|
transition ?
|
||||||
that.$element.find('.modal-dialog') // wait for modal to slide in
|
that.$element.find('.modal-dialog') // wait for modal to slide in
|
||||||
.one($.support.transition.end, function () {
|
.one('bsTransitionEnd', function () {
|
||||||
that.$element.trigger('focus').trigger(e)
|
that.$element.trigger('focus').trigger(e)
|
||||||
})
|
})
|
||||||
.emulateTransitionEnd(300) :
|
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
|
||||||
that.$element.trigger('focus').trigger(e)
|
that.$element.trigger('focus').trigger(e)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -965,8 +964,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
$.support.transition && this.$element.hasClass('fade') ?
|
$.support.transition && this.$element.hasClass('fade') ?
|
||||||
this.$element
|
this.$element
|
||||||
.one($.support.transition.end, $.proxy(this.hideModal, this))
|
.one('bsTransitionEnd', $.proxy(this.hideModal, this))
|
||||||
.emulateTransitionEnd(300) :
|
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
|
||||||
this.hideModal()
|
this.hideModal()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -982,11 +981,11 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
Modal.prototype.escape = function () {
|
Modal.prototype.escape = function () {
|
||||||
if (this.isShown && this.options.keyboard) {
|
if (this.isShown && this.options.keyboard) {
|
||||||
this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) {
|
this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
|
||||||
e.which == 27 && this.hide()
|
e.which == 27 && this.hide()
|
||||||
}, this))
|
}, this))
|
||||||
} else if (!this.isShown) {
|
} else if (!this.isShown) {
|
||||||
this.$element.off('keyup.dismiss.bs.modal')
|
this.$element.off('keydown.dismiss.bs.modal')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1013,7 +1012,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
||||||
.appendTo(this.$body)
|
.appendTo(this.$body)
|
||||||
|
|
||||||
this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
|
this.$element.on('mousedown.dismiss.bs.modal', $.proxy(function (e) {
|
||||||
if (e.target !== e.currentTarget) return
|
if (e.target !== e.currentTarget) return
|
||||||
this.options.backdrop == 'static'
|
this.options.backdrop == 'static'
|
||||||
? this.$element[0].focus.call(this.$element[0])
|
? this.$element[0].focus.call(this.$element[0])
|
||||||
@@ -1028,8 +1027,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
doAnimate ?
|
doAnimate ?
|
||||||
this.$backdrop
|
this.$backdrop
|
||||||
.one($.support.transition.end, callback)
|
.one('bsTransitionEnd', callback)
|
||||||
.emulateTransitionEnd(150) :
|
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
|
||||||
callback()
|
callback()
|
||||||
|
|
||||||
} else if (!this.isShown && this.$backdrop) {
|
} else if (!this.isShown && this.$backdrop) {
|
||||||
@@ -1041,8 +1040,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
}
|
}
|
||||||
$.support.transition && this.$element.hasClass('fade') ?
|
$.support.transition && this.$element.hasClass('fade') ?
|
||||||
this.$backdrop
|
this.$backdrop
|
||||||
.one($.support.transition.end, callbackRemove)
|
.one('bsTransitionEnd', callbackRemove)
|
||||||
.emulateTransitionEnd(150) :
|
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
|
||||||
callbackRemove()
|
callbackRemove()
|
||||||
|
|
||||||
} else if (callback) {
|
} else if (callback) {
|
||||||
@@ -1110,13 +1109,13 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
|
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
var href = $this.attr('href')
|
var href = $this.attr('href')
|
||||||
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
|
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
|
||||||
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
||||||
|
|
||||||
if ($this.is('a')) e.preventDefault()
|
if ($this.is('a')) e.preventDefault()
|
||||||
|
|
||||||
$target.one('show.bs.modal', function (showEvent) {
|
$target.one('show.bs.modal', function (showEvent) {
|
||||||
if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
|
if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
|
||||||
$target.one('hidden.bs.modal', function () {
|
$target.one('hidden.bs.modal', function () {
|
||||||
$this.is(':visible') && $this.trigger('focus')
|
$this.is(':visible') && $this.trigger('focus')
|
||||||
})
|
})
|
||||||
@@ -1124,10 +1123,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
Plugin.call($target, option, this)
|
Plugin.call($target, option, this)
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: tooltip.js v3.1.1
|
* Bootstrap: tooltip.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#tooltip
|
* http://getbootstrap.com/javascript/#tooltip
|
||||||
* Inspired by the original jQuery.tipsy by Jason Frame
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
@@ -1136,11 +1135,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// TOOLTIP PUBLIC CLASS DEFINITION
|
// TOOLTIP PUBLIC CLASS DEFINITION
|
||||||
@@ -1157,7 +1152,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.init('tooltip', element, options)
|
this.init('tooltip', element, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
Tooltip.VERSION = '3.1.1'
|
Tooltip.VERSION = '3.2.0'
|
||||||
|
|
||||||
|
Tooltip.TRANSITION_DURATION = 150
|
||||||
|
|
||||||
Tooltip.DEFAULTS = {
|
Tooltip.DEFAULTS = {
|
||||||
animation: true,
|
animation: true,
|
||||||
@@ -1330,16 +1327,16 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
|
var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
|
||||||
|
|
||||||
this.applyPlacement(calculatedOffset, placement)
|
this.applyPlacement(calculatedOffset, placement)
|
||||||
this.hoverState = null
|
|
||||||
|
|
||||||
var complete = function () {
|
var complete = function () {
|
||||||
that.$element.trigger('shown.bs.' + that.type)
|
that.$element.trigger('shown.bs.' + that.type)
|
||||||
|
that.hoverState = null
|
||||||
}
|
}
|
||||||
|
|
||||||
$.support.transition && this.$tip.hasClass('fade') ?
|
$.support.transition && this.$tip.hasClass('fade') ?
|
||||||
$tip
|
$tip
|
||||||
.one($.support.transition.end, complete)
|
.one('bsTransitionEnd', complete)
|
||||||
.emulateTransitionEnd(150) :
|
.emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
|
||||||
complete()
|
complete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1426,8 +1423,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
$.support.transition && this.$tip.hasClass('fade') ?
|
$.support.transition && this.$tip.hasClass('fade') ?
|
||||||
$tip
|
$tip
|
||||||
.one($.support.transition.end, complete)
|
.one('bsTransitionEnd', complete)
|
||||||
.emulateTransitionEnd(150) :
|
.emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
|
||||||
complete()
|
complete()
|
||||||
|
|
||||||
this.hoverState = null
|
this.hoverState = null
|
||||||
@@ -1448,13 +1445,20 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
Tooltip.prototype.getPosition = function ($element) {
|
Tooltip.prototype.getPosition = function ($element) {
|
||||||
$element = $element || this.$element
|
$element = $element || this.$element
|
||||||
|
|
||||||
var el = $element[0]
|
var el = $element[0]
|
||||||
var isBody = el.tagName == 'BODY'
|
var isBody = el.tagName == 'BODY'
|
||||||
return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : null, {
|
var isSvg = window.SVGElement && el instanceof window.SVGElement
|
||||||
scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop(),
|
|
||||||
|
var elRect = el.getBoundingClientRect()
|
||||||
|
var elOffset = isBody ? { top: 0, left: 0 } : $element.offset()
|
||||||
|
var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
|
||||||
|
var outerDims = isSvg ? {} : {
|
||||||
width: isBody ? $(window).width() : $element.outerWidth(),
|
width: isBody ? $(window).width() : $element.outerWidth(),
|
||||||
height: isBody ? $(window).height() : $element.outerHeight()
|
height: isBody ? $(window).height() : $element.outerHeight()
|
||||||
}, isBody ? { top: 0, left: 0 } : $element.offset())
|
}
|
||||||
|
|
||||||
|
return $.extend({}, elRect, scroll, outerDims, elOffset)
|
||||||
}
|
}
|
||||||
|
|
||||||
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
|
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
|
||||||
@@ -1586,10 +1590,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: popover.js v3.1.1
|
* Bootstrap: popover.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#popovers
|
* http://getbootstrap.com/javascript/#popovers
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -1597,11 +1601,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// POPOVER PUBLIC CLASS DEFINITION
|
// POPOVER PUBLIC CLASS DEFINITION
|
||||||
@@ -1613,7 +1613,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
|
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
|
||||||
|
|
||||||
Popover.VERSION = '3.1.1'
|
Popover.VERSION = '3.2.0'
|
||||||
|
|
||||||
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
|
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
@@ -1640,7 +1640,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
var content = this.getContent()
|
var content = this.getContent()
|
||||||
|
|
||||||
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
|
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
|
||||||
$tip.find('.popover-content').empty()[ // we use append for html objects to maintain js events
|
$tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
|
||||||
this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
|
this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
|
||||||
](content)
|
](content)
|
||||||
|
|
||||||
@@ -1704,10 +1704,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: scrollspy.js v3.1.1
|
* Bootstrap: scrollspy.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#scrollspy
|
* http://getbootstrap.com/javascript/#scrollspy
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -1715,11 +1715,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// SCROLLSPY CLASS DEFINITION
|
// SCROLLSPY CLASS DEFINITION
|
||||||
@@ -1742,7 +1738,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.process()
|
this.process()
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollSpy.VERSION = '3.1.1'
|
ScrollSpy.VERSION = '3.2.0'
|
||||||
|
|
||||||
ScrollSpy.DEFAULTS = {
|
ScrollSpy.DEFAULTS = {
|
||||||
offset: 10
|
offset: 10
|
||||||
@@ -1879,10 +1875,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: tab.js v3.1.1
|
* Bootstrap: tab.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#tabs
|
* http://getbootstrap.com/javascript/#tabs
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -1890,11 +1886,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// TAB CLASS DEFINITION
|
// TAB CLASS DEFINITION
|
||||||
@@ -1904,7 +1896,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.element = $(element)
|
this.element = $(element)
|
||||||
}
|
}
|
||||||
|
|
||||||
Tab.VERSION = '3.1.1'
|
Tab.VERSION = '3.2.0'
|
||||||
|
|
||||||
|
Tab.TRANSITION_DURATION = 150
|
||||||
|
|
||||||
Tab.prototype.show = function () {
|
Tab.prototype.show = function () {
|
||||||
var $this = this.element
|
var $this = this.element
|
||||||
@@ -1913,7 +1907,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
|
|
||||||
if (!selector) {
|
if (!selector) {
|
||||||
selector = $this.attr('href')
|
selector = $this.attr('href')
|
||||||
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this.parent('li').hasClass('active')) return
|
if ($this.parent('li').hasClass('active')) return
|
||||||
@@ -1942,7 +1936,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
var $active = container.find('> .active')
|
var $active = container.find('> .active')
|
||||||
var transition = callback
|
var transition = callback
|
||||||
&& $.support.transition
|
&& $.support.transition
|
||||||
&& $active.hasClass('fade')
|
&& (($active.length && $active.hasClass('fade')) || !!container.find('> .fade').length)
|
||||||
|
|
||||||
function next() {
|
function next() {
|
||||||
$active
|
$active
|
||||||
@@ -1966,10 +1960,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
callback && callback()
|
callback && callback()
|
||||||
}
|
}
|
||||||
|
|
||||||
transition ?
|
$active.length && transition ?
|
||||||
$active
|
$active
|
||||||
.one($.support.transition.end, next)
|
.one('bsTransitionEnd', next)
|
||||||
.emulateTransitionEnd(150) :
|
.emulateTransitionEnd(Tab.TRANSITION_DURATION) :
|
||||||
next()
|
next()
|
||||||
|
|
||||||
$active.removeClass('in')
|
$active.removeClass('in')
|
||||||
@@ -2012,10 +2006,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
Plugin.call($(this), 'show')
|
Plugin.call($(this), 'show')
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|
||||||
/* ========================================================================
|
/* ========================================================================
|
||||||
* Bootstrap: affix.js v3.1.1
|
* Bootstrap: affix.js v3.2.0
|
||||||
* http://getbootstrap.com/javascript/#affix
|
* http://getbootstrap.com/javascript/#affix
|
||||||
* ========================================================================
|
* ========================================================================
|
||||||
* Copyright 2011-2014 Twitter, Inc.
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
@@ -2023,11 +2017,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function ($) {
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// AFFIX CLASS DEFINITION
|
// AFFIX CLASS DEFINITION
|
||||||
@@ -2048,7 +2038,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.checkPosition()
|
this.checkPosition()
|
||||||
}
|
}
|
||||||
|
|
||||||
Affix.VERSION = '3.1.1'
|
Affix.VERSION = '3.2.0'
|
||||||
|
|
||||||
Affix.RESET = 'affix affix-top affix-bottom'
|
Affix.RESET = 'affix affix-top affix-bottom'
|
||||||
|
|
||||||
@@ -2057,6 +2047,28 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
target: window
|
target: window
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
|
||||||
|
var scrollTop = this.$target.scrollTop()
|
||||||
|
var position = this.$element.offset()
|
||||||
|
var targetHeight = this.$target.height()
|
||||||
|
|
||||||
|
if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
|
||||||
|
|
||||||
|
if (this.affixed == 'bottom') {
|
||||||
|
if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
|
||||||
|
return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
|
||||||
|
}
|
||||||
|
|
||||||
|
var initializing = this.affixed == null
|
||||||
|
var colliderTop = initializing ? scrollTop : position.top
|
||||||
|
var colliderHeight = initializing ? targetHeight : height
|
||||||
|
|
||||||
|
if (offsetTop != null && colliderTop <= offsetTop) return 'top'
|
||||||
|
if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
Affix.prototype.getPinnedOffset = function () {
|
Affix.prototype.getPinnedOffset = function () {
|
||||||
if (this.pinnedOffset) return this.pinnedOffset
|
if (this.pinnedOffset) return this.pinnedOffset
|
||||||
this.$element.removeClass(Affix.RESET).addClass('affix')
|
this.$element.removeClass(Affix.RESET).addClass('affix')
|
||||||
@@ -2072,42 +2084,40 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
Affix.prototype.checkPosition = function () {
|
Affix.prototype.checkPosition = function () {
|
||||||
if (!this.$element.is(':visible')) return
|
if (!this.$element.is(':visible')) return
|
||||||
|
|
||||||
var scrollHeight = $(document).height()
|
var height = this.$element.height()
|
||||||
var scrollTop = this.$target.scrollTop()
|
|
||||||
var position = this.$element.offset()
|
|
||||||
var offset = this.options.offset
|
var offset = this.options.offset
|
||||||
var offsetTop = offset.top
|
var offsetTop = offset.top
|
||||||
var offsetBottom = offset.bottom
|
var offsetBottom = offset.bottom
|
||||||
|
var scrollHeight = $('body').height()
|
||||||
|
|
||||||
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
||||||
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
|
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
|
||||||
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
|
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
|
||||||
|
|
||||||
var affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? false :
|
var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
|
||||||
offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
|
|
||||||
offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false
|
|
||||||
|
|
||||||
if (this.affixed === affix) return
|
if (this.affixed != affix) {
|
||||||
if (this.unpin != null) this.$element.css('top', '')
|
if (this.unpin != null) this.$element.css('top', '')
|
||||||
|
|
||||||
var affixType = 'affix' + (affix ? '-' + affix : '')
|
var affixType = 'affix' + (affix ? '-' + affix : '')
|
||||||
var e = $.Event(affixType + '.bs.affix')
|
var e = $.Event(affixType + '.bs.affix')
|
||||||
|
|
||||||
this.$element.trigger(e)
|
this.$element.trigger(e)
|
||||||
|
|
||||||
if (e.isDefaultPrevented()) return
|
if (e.isDefaultPrevented()) return
|
||||||
|
|
||||||
this.affixed = affix
|
this.affixed = affix
|
||||||
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
|
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
|
||||||
|
|
||||||
this.$element
|
this.$element
|
||||||
.removeClass(Affix.RESET)
|
.removeClass(Affix.RESET)
|
||||||
.addClass(affixType)
|
.addClass(affixType)
|
||||||
.trigger($.Event(affixType.replace('affix', 'affixed')))
|
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
|
||||||
|
}
|
||||||
|
|
||||||
if (affix == 'bottom') {
|
if (affix == 'bottom') {
|
||||||
this.$element.offset({
|
this.$element.offset({
|
||||||
top: scrollHeight - this.$element.height() - offsetBottom
|
top: scrollHeight - height - offsetBottom
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2159,4 +2169,4 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
}(jQuery);
|
||||||
|
|||||||
Vendored
+3
-3
File diff suppressed because one or more lines are too long
+16
-16
@@ -1,19 +1,19 @@
|
|||||||
- name: Little
|
- name: Red Antler
|
||||||
url: http://littleco.com
|
url: http://www.redantler.com/
|
||||||
expo_url: http://expo.getbootstrap.com/2014/02/12/little/
|
expo_url: http://expo.getbootstrap.com/2014/02/24/redantler/
|
||||||
img: http://expo.getbootstrap.com/screenshots/little.jpg
|
img: redantler
|
||||||
|
|
||||||
- name: Engine Yard
|
- name: Riot Design
|
||||||
url: http://engineyard.com
|
url: http://riotdesign.eu/en/
|
||||||
expo_url: http://expo.getbootstrap.com/2014/02/10/engine-yard/
|
expo_url: http://expo.getbootstrap.com/2014/03/13/riot-design/
|
||||||
img: http://expo.getbootstrap.com/screenshots/engine-yard.jpg
|
img: riot
|
||||||
|
|
||||||
- name: Webflow
|
- name: Newsweek
|
||||||
url: http://webflow.com
|
url: http://www.newsweek.com/
|
||||||
expo_url: http://expo.getbootstrap.com/2014/02/04/webflow/
|
expo_url: http://expo.getbootstrap.com/2014/02/12/newsweek/
|
||||||
img: http://expo.getbootstrap.com/screenshots/webflow.jpg
|
img: newsweek
|
||||||
|
|
||||||
- name: Sentry
|
- name: Robinhood
|
||||||
url: https://getsentry.com
|
url: https://www.robinhood.com
|
||||||
expo_url: http://expo.getbootstrap.com/2013/05/09/sentry/
|
expo_url: http://expo.getbootstrap.com/2014/02/26/robinhood/
|
||||||
img: http://expo.getbootstrap.com/screenshots/sentry.jpg
|
img: robinhood
|
||||||
|
|||||||
@@ -35,5 +35,5 @@
|
|||||||
|
|
||||||
- name: Ukrainian
|
- name: Ukrainian
|
||||||
code: uk
|
code: uk
|
||||||
description: Bootstrap ua Українською
|
description: Bootstrap українською
|
||||||
url: http://twbs.site-konstruktor.com.ua
|
url: http://twbs.docs.org.ua
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="bs-docs-section">
|
<div class="bs-docs-section">
|
||||||
<h1 id="alerts" class="page-header">Alerts</h1>
|
<h1 id="alerts" class="page-header">Alerts</h1>
|
||||||
|
|
||||||
<p class="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the <a href="../javascript/#alerts">alerts jQuery plugin</a>.</p>
|
<p class="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.</p>
|
||||||
|
|
||||||
<h2 id="alerts-examples">Examples</h2>
|
<h2 id="alerts-examples">Examples</h2>
|
||||||
<p>Wrap any text and an optional dismiss button in <code>.alert</code> and one of the four contextual classes (e.g., <code>.alert-success</code>) for basic alert messages.</p>
|
<p>Wrap any text and an optional dismiss button in <code>.alert</code> and one of the four contextual classes (e.g., <code>.alert-success</code>) for basic alert messages.</p>
|
||||||
@@ -32,16 +32,20 @@
|
|||||||
<div class="alert alert-danger" role="alert">...</div>
|
<div class="alert alert-danger" role="alert">...</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h2 id="alerts-dismissable">Dismissable alerts</h2>
|
<h2 id="alerts-dismissible">Dismissible alerts</h2>
|
||||||
<p>Build on any alert by adding an optional <code>.alert-dismissable</code> and close button.</p>
|
<p>Build on any alert by adding an optional <code>.alert-dismissible</code> and close button.</p>
|
||||||
|
<div class="bs-callout bs-callout-info">
|
||||||
|
<h4>Requires JavaScript alert plugin</h4>
|
||||||
|
<p>For fully functioning, dismissible alerts, you must use the <a href="../javascript/#alerts">alerts JavaScript plugin</a>.</p>
|
||||||
|
</div>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<div class="alert alert-warning alert-dismissable" role="alert">
|
<div class="alert alert-warning alert-dismissible" role="alert">
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||||
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="alert alert-warning alert-dismissable" role="alert">
|
<div class="alert alert-warning alert-dismissible" role="alert">
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||||
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,21 +21,21 @@
|
|||||||
<h4>Adapts to active nav states</h4>
|
<h4>Adapts to active nav states</h4>
|
||||||
<p>Built-in styles are included for placing badges in active states in pill navigations.</p>
|
<p>Built-in styles are included for placing badges in active states in pill navigations.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li class="active"><a href="#">Home <span class="badge">42</span></a></li>
|
<li role="presentation" class="active"><a href="#">Home <span class="badge">42</span></a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages <span class="badge">3</span></a></li>
|
<li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<ul class="nav nav-pills nav-stacked" style="max-width: 260px;">
|
<ul class="nav nav-pills nav-stacked" role="tablist" style="max-width: 260px;">
|
||||||
<li class="active">
|
<li role="presentation" class="active">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<span class="badge pull-right">42</span>
|
<span class="badge pull-right">42</span>
|
||||||
Home
|
Home
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li>
|
<li role="presentation">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<span class="badge pull-right">3</span>
|
<span class="badge pull-right">3</span>
|
||||||
Messages
|
Messages
|
||||||
@@ -48,8 +48,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-pills nav-stacked">
|
<ul class="nav nav-pills nav-stacked" role="tablist">
|
||||||
<li class="active">
|
<li role="presentation" class="active">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<span class="badge pull-right">42</span>
|
<span class="badge pull-right">42</span>
|
||||||
Home
|
Home
|
||||||
|
|||||||
@@ -45,10 +45,10 @@
|
|||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<div class="btn-toolbar" role="toolbar">
|
<div class="btn-toolbar" role="toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-left"></span></button>
|
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-left"></span> <span class="sr-only">Left Align</span></button>
|
||||||
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-center"></span></button>
|
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-center"></span> <span class="sr-only">Center Align</span></button>
|
||||||
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-right"></span></button>
|
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-right"></span> <span class="sr-only">Right Align</span></button>
|
||||||
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-justify"></span></button>
|
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-align-justify"></span> <span class="sr-only">Justify</span></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-toolbar" role="toolbar">
|
<div class="btn-toolbar" role="toolbar">
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -144,6 +144,32 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="navbar-brand-image">Brand image</h2>
|
||||||
|
<p>Replace the navbar brand with your own image by swapping the text for an <code><img></code>. Since the <code>.navbar-brand</code> has its own padding and height, you may need to override some CSS depending on your image.</p>
|
||||||
|
<div class="bs-example">
|
||||||
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<a class="navbar-brand" href="#">
|
||||||
|
<img alt="Brand" height="20" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACYCAYAAAAYwiAhAAAMU0lEQVR4AeyZzU4TARSFhx08ienKiAsSSymliEjpdBBqoUX++gMJupZC/6B0prPUhIRI4qvIwoUhxAU8gBKiS0kkYQW5npsUAZloy4xYp3fxJSxYDMOXc07uKETkGJmI6clo5iLYmtfMbXAwP2IeA2oNqo6Q0W6N40ykegC205HqFlgEHiedcECq6j0ItQGZDptcABGqXiLVQ7CRVo3OfyLYU1+uDQ+iQaqdyy8cD0Szj9fp2cM1SvSVaNxfoFhPnvD7LmDFEaLdzQP/Xfz/iQeKNNm/SjODZUqFK7/IZuykVV2Ldi+33YpgMLsLibV7LlUqbNDUwBrLxA8sMlkI1bwsWwHpcgiJEiWHL2RLRYzdlKp3/TXBkE4dXIWQ6gzQXKhC8b6iCPWfy2TF2CXGA3maGSpTGpKBs3TE2EyG9Q5HBYNYHki1f55YLJbI5A6hxuqERZsbrtREM/aRaB5HBEMl+hZGzCPsLd5WIpQL0skOif4SIcW4No9SquGzJRjkUpFaJzzeJwJFkckV6WSfWG+e9xmLdoJGU28kGOTyslzJYZ1i/rwLZJJ0soX3KlG8t9mh9ZpkurchwXBsu7Ogmd+SIcjVk2+5dBKZ6gPPAcnKfMpAXeqeugRDarVjb+0huVgukcldVWdDqKwVNcmQZKq+hzRr/6NgGc3c5M2FWhShWjadsg0R9S3zJmPJNn8rGB9RkV6nzg96SafmlYnJ2ibmz7Fgp/gS0GUpGH/+gVwfcYqQIS7p1BCjNeLBIqUi+i5+brsmGNJL4yOqC9JJZLoVoayZDa1TUq1o1wRDen3AhV5kcuEQty9T/cR6c5RS9Z0rgiG9OvFtUYRq8apjRh1genCNsMXuXwimma+QXpJOUnWN82DpGjH/Cgv2+qdguHl9lXSSqrupUFbgAPuF3UI9GnenBlal6qyRdLohiWCBkuGKB/VYfTHuz0vVMZJOjoH3wYI9V7D437ZSOskQd16mJ9bQTKj8Rpl+VH4v6SRVZ1soCyYHSu+URLD0WWSSqrMrkxXxYOGTMhEofJeqk3SyK9MFL8/hc8WxEuvJSzpJ1dmWyYqx7izxR24Z4pJOtmWyYtS7RIpUXeNIOtWP0tpVJ0P8Rzt39ptlEcVx/HDHPwJeIUvRondcSG3LoneiFKIXKG3ZRMGyaGSRVcJarKxuiUQWNxCI7DS2mFAEb0ohCg0mGilqgiiBPJ4M9SX1TF4Z3jnvb9r3TPK9NdF+cuZ5Z57HeJi4x2Rk06n3b3V4ULKnu6PUz5wuXejs9X1/tiPbv/eka8WCHdnMSW/3iekkQcko9enUh5fDd+zQt1njyp3ZC2MX9XpMstkZpb7VldI6z5PuvU2fA0DFweSLUn8QL8V1/drvbjtNfTrJZJT6gzh24aFtXLkzvekUEAEwGbDwrZOf0RaippMmMPyZk62766fOXxwyLKbwKOkzJwnMkI1ZmBIm0VMjekapH2DKZcieZ2R4UBKT7NWM8KAMWOg63XweP50kJm+U+vWKf9lavmB7cph8UeqXv/5lq4uPMECgFIEpYzJgYWvHps8AmMIi4HQyYBEe+GM8iGtGqb+aYiv/mj5xZYTppBel/hZm/mXrkw8OgTHJxo14JRel/uJc7MWXyLGuV3h6rOJfczu62+7+2Pz6Db+Gc6V410htHQmBkhEeEwCY/vUKH4a+6R7C+deeKrCbf/6Fx+Sr/G6U+jviCsCKfsWyf+8JTWPJYPJFKWGSqQBDXK+4aaa1ls3fVjxQ5WERGhQAGOy+jp/RAMAUplNABMYEAHYCevl7sf0KBJg+Jn+U+udQCsCg1ysbVnysDgyFaWz5LBHhMcnwwHRPxDWA4UH5o9Q/h1IABr+v421SFxgIky9KDRQAmAImADA8KG+U+udQsdc+Boa+rzvfdgEMTGBSi1L/HEoBmAIm7ARDYRI9KiPkdMIBw97VxQTGV1EpgRIRHhMYGOCKJeb9ZGvzORwm0csiCsCkDAoADHBfN61mRRZzbW/8FA/K05juKAAU4HpFFxjgvo6viw5mMdfE6tfxmPJEKX6sqQ8Mc/k7qfqN2NujEiYuHJM3SvBjzR5pAQNc/joQMdfUmuWA6RQWJfixpj4wwH3dvj1x3wk7eug0AFN4hMYEAKYJSsRTJvq519XOn92zV0qgRI/MdFGRtrrEgOnf182but5tiRqvSM+rX58kJl+EnE4AYO6PzlcrBbd0/tZc+/Ycz8XXQA4BL21cyWEa7YkA0ykoWz1wpQ5KRBJUWt/X2XLPXA4XHlN4lBImmQE7erA1q6legAEVIQqCALheKeWptXTeFiQmADDA9UopLv6hoIdJtRkiQk4nmaikH+pbT53L5tav7w2gRNXdEWA6BZXZcge1vF0mj8kXIaeTAQtaPNG+y2qqFiQJSjT8bgTBFHAibktunW/xNINj8oMSUWIfa4ps+de2xr3JYfJFYFAKwAyZxlYX3nQXATApADNkiOkkQclIH5MB014N9Wsh00kUDgz/OZTG/1+ef/YX0GVvQa9CK/w7TaiajwflifCY8hd78Ss1RTkR5196bvviowX3y097fbnnGAqTqCqXBJba93UawCAn4oxNc8o5xHXPLYViEpUxsIQwicboAEOeiLtJo7WOHGxVBSURCVAiSgXUGJkeMOwVC2+fm93E0ZhiEyrnF206yUKB4T+HUnhWOZ7E9cq65R/pHFts3FO06SSbJiI0Jjww3PVKC/8AiL3OtbUXbTpJUDICgEoRGOREnB/KNbZJGCZflPq3dfrAoPd1buLEXkvmbo671QVU+Z8o/EFcFZRIHxj0vs49M8VeO9//yo9JH5SIGE7K39dpHEiCMDlQooa6NfH/HXcfg2DyRXhMMn1guMtfX7EXX10VDKoyUgQFhQEGwAQAhgHFTe0RATChgcFBVfVMAxgEk2gYAwNgwgNL7L5OFVgRMfmi1D+H0geGv6+LvToYmCqoYfcfpf5tnS4w/H0dHlj4dAqJEgMl0gEmoaCuV5bMfRcATAWT6EmOksEEAAa4/BUdOdiiA0x/OglMslBggPs6fWDY+7qua79lsRejLT4mUb2L0sFUPGASEea+7ovdRzONxf/ceFtdACZfhPlYEwssAJPaificujVq7+ovaWiCYAoABrv8FSnd0+lf/oJw8UKCElGKH2vqA8Nd/q5d9qEqrnNn2iGYREPvRkBMIGBH9UH5Yblfd9pr68bdOUwAUCIKwAS4XsEBqywwPt9yf+yWU2fFxNL8dG18RQMCk6iiO0oMlCj24mMB8VV2R4QSWA6zxKQPqiJPBMUkCrhGsSWm15RnFxdtOuWvLpcEBr38NWAFnH0BMAlQIgrCBLivs3V/2/74itfCQClg8kVpYBIFALM1p3Y1ZDoFA8ODMmDhxxK7FKZTvAiAKeiYwFaeS+0DLVEexDVzwOCXv3my5V8tJ8+GTidIBJlOAdmSa8uGXVhMAREeUwgwO+ta3NCEBxUQBWCCfFtn696W+AwfReDRhEV4UFPzZMA62n/kqfVOr8A0akitiAIwQb6vM1i9BlMAMBAmX6V2In/4wDfZS+MX9VZQIlKYTgGYDBhPKr5HPJLNrl2dEqZoUXGmkwFjSDlMfMyA3/50QIkIjwn/Wi+HPxHHY1KJkKDSxyQzTGFRn8SEuvw1UCKyrc4wKfY3MYY/bDoZKKV+JQbyQ9KgDFOv64khU1yjhtZeIj4HO24P4oVmmHxVDKs7Tvw+WJNtdQaqAEz5gDXR6PIZtfYgHppNJ2+De1ZZVv8ijXt81iDb6mQ2nYJBiUaXT3+IsiwjRnHVtrr82XQKrpNt0b/AVtl0EhmmwlqVA1Y1fNpgm0621cWM/zsOzgHrnmLN9iBu0ylSzd2u7gFjPNW21dl0ilS1AMZY+nGtNp0MU4G1cv0EsG5kZdxtm0621T1gt7ky50kAyyGrW2ugbDo9YGtzlvIA68+dMUw2nQI7w/X3A5PIBnBdhsmm0312nRsoLXmB5ZCVczcMlGH6n25w5dKQBOZDVsXdNEwuwyS7yVUJOwJYfmQjw7dLm04lUBc3MmclHJh4Jmsr1elkmERt3ABhJRyY+HW5hrtjD+Il2x1unfi1WAAwEf+ByrgWw1RytfQ4RI0KTCLrx1VzzbbV9fmauerc9Y86MIltELeau9xnppN1hVvNPRxgQQGYxDaQm8w1cl9zF7ku7lZy08m6xXVxF7nDXCM3WR6YFtY/g9j2sjS1K/4AAAAASUVORK5CYII=">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
{% highlight html %}
|
||||||
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<a class="navbar-brand" href="#">
|
||||||
|
<img alt="Brand" src="...">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|
||||||
<h2 id="navbar-forms">Forms</h2>
|
<h2 id="navbar-forms">Forms</h2>
|
||||||
<p>Place form content within <code>.navbar-form</code> for proper vertical alignment and collapsed behavior in narrow viewports. Use the alignment options to decide where it resides within the navbar content.</p>
|
<p>Place form content within <code>.navbar-form</code> for proper vertical alignment and collapsed behavior in narrow viewports. Use the alignment options to decide where it resides within the navbar content.</p>
|
||||||
<p>As a heads up, <code>.navbar-form</code> shares much of its code with <code>.form-inline</code> via mixin. <strong class="text-danger">Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.</strong></p>
|
<p>As a heads up, <code>.navbar-form</code> shares much of its code with <code>.form-inline</code> via mixin. <strong class="text-danger">Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.</strong></p>
|
||||||
@@ -151,7 +177,7 @@
|
|||||||
<nav class="navbar navbar-default" role="navigation">
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -196,7 +222,7 @@
|
|||||||
<nav class="navbar navbar-default" role="navigation">
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-3">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-3">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -225,7 +251,7 @@
|
|||||||
<nav class="navbar navbar-default" role="navigation">
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-4">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-4">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -250,7 +276,7 @@
|
|||||||
<nav class="navbar navbar-default" role="navigation">
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-5">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-5">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -286,7 +312,7 @@
|
|||||||
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-6">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-6">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -330,7 +356,7 @@ body { padding-top: 70px; }
|
|||||||
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-7">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-7">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -375,7 +401,7 @@ body { padding-bottom: 70px; }
|
|||||||
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-8">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-8">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -411,7 +437,7 @@ body { padding-bottom: 70px; }
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
|
|||||||
@@ -7,16 +7,16 @@
|
|||||||
<p>Note the <code>.nav-tabs</code> class requires the <code>.nav</code> base class.</p>
|
<p>Note the <code>.nav-tabs</code> class requires the <code>.nav</code> base class.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages</a></li>
|
<li role="presentation"><a href="#">Messages</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages</a></li>
|
<li role="presentation"><a href="#">Messages</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
<div class="bs-callout bs-callout-info">
|
<div class="bs-callout bs-callout-info">
|
||||||
@@ -27,29 +27,29 @@
|
|||||||
<h2 id="nav-pills">Pills</h2>
|
<h2 id="nav-pills">Pills</h2>
|
||||||
<p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
|
<p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages</a></li>
|
<li role="presentation"><a href="#">Messages</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages</a></li>
|
<li role="presentation"><a href="#">Messages</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
<p>Pills are also vertically stackable. Just add <code>.nav-stacked</code>.</p>
|
<p>Pills are also vertically stackable. Just add <code>.nav-stacked</code>.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-pills nav-stacked" style="max-width: 300px;">
|
<ul class="nav nav-pills nav-stacked" role="tablist" style="max-width: 300px;">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages</a></li>
|
<li role="presentation"><a href="#">Messages</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-pills nav-stacked">
|
<ul class="nav nav-pills nav-stacked" role="tablist">
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
@@ -63,22 +63,22 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-tabs nav-justified" role="tablist">
|
<ul class="nav nav-tabs nav-justified" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages</a></li>
|
<li role="presentation"><a href="#">Messages</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<ul class="nav nav-pills nav-justified">
|
<ul class="nav nav-pills nav-justified" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Messages</a></li>
|
<li role="presentation"><a href="#">Messages</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-tabs nav-justified" role="tablist">
|
<ul class="nav nav-tabs nav-justified" role="tablist">
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav nav-pills nav-justified">
|
<ul class="nav nav-pills nav-justified" role="tablist">
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
@@ -93,16 +93,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li><a href="#">Clickable link</a></li>
|
<li role="presentation"><a href="#">Clickable link</a></li>
|
||||||
<li><a href="#">Clickable link</a></li>
|
<li role="presentation"><a href="#">Clickable link</a></li>
|
||||||
<li class="disabled"><a href="#">Disabled link</a></li>
|
<li role="presentation" class="disabled"><a href="#">Disabled link</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
...
|
...
|
||||||
<li class="disabled"><a href="#">Disabled link</a></li>
|
<li role="presentation" class="disabled"><a href="#">Disabled link</a></li>
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
@@ -114,9 +114,9 @@
|
|||||||
<h3>Tabs with dropdowns</h3>
|
<h3>Tabs with dropdowns</h3>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Help</a></li>
|
<li role="presentation"><a href="#">Help</a></li>
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
Dropdown <span class="caret"></span>
|
Dropdown <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
...
|
...
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
Dropdown <span class="caret"></span>
|
Dropdown <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
@@ -147,10 +147,10 @@
|
|||||||
|
|
||||||
<h3>Pills with dropdowns</h3>
|
<h3>Pills with dropdowns</h3>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Help</a></li>
|
<li role="presentation"><a href="#">Help</a></li>
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
Dropdown <span class="caret"></span>
|
Dropdown <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
@@ -165,9 +165,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
...
|
...
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
Dropdown <span class="caret"></span>
|
Dropdown <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
<h3 id="panels-heading">Panel with heading</h3>
|
<h3 id="panels-heading">Panel with heading</h3>
|
||||||
<p>Easily add a heading container to your panel with <code>.panel-heading</code>. You may also include any <code><h1></code>-<code><h6></code> with a <code>.panel-title</code> class to add a pre-styled heading.</p>
|
<p>Easily add a heading container to your panel with <code>.panel-heading</code>. You may also include any <code><h1></code>-<code><h6></code> with a <code>.panel-title</code> class to add a pre-styled heading.</p>
|
||||||
|
<p>For proper link coloring, be sure to place links in headings within <code>.panel-title</code>.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">Panel heading without title</div>
|
<div class="panel-heading">Panel heading without title</div>
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
||||||
<span class="sr-only">80% Complete</span>
|
<span class="sr-only">80% Complete (danger)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
@@ -120,60 +120,60 @@
|
|||||||
<h3 id="progress-striped">Striped</h3>
|
<h3 id="progress-striped">Striped</h3>
|
||||||
<p>Uses a gradient to create a striped effect. Not available in IE8.</p>
|
<p>Uses a gradient to create a striped effect. Not available in IE8.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<div class="progress progress-striped" >
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
||||||
<span class="sr-only">40% Complete (success)</span>
|
<span class="sr-only">40% Complete (success)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress progress-striped">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
||||||
<span class="sr-only">20% Complete</span>
|
<span class="sr-only">20% Complete</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress progress-striped">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
||||||
<span class="sr-only">60% Complete (warning)</span>
|
<span class="sr-only">60% Complete (warning)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress progress-striped">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
||||||
<span class="sr-only">80% Complete (danger)</span>
|
<span class="sr-only">80% Complete (danger)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="progress progress-striped">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
|
||||||
<span class="sr-only">40% Complete (success)</span>
|
<span class="sr-only">40% Complete (success)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress progress-striped">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
|
||||||
<span class="sr-only">20% Complete</span>
|
<span class="sr-only">20% Complete</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress progress-striped">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
|
||||||
<span class="sr-only">60% Complete (warning)</span>
|
<span class="sr-only">60% Complete (warning)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress progress-striped">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
|
||||||
<span class="sr-only">80% Complete (danger)</span>
|
<span class="sr-only">80% Complete (danger)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h3 id="progress-animated">Animated</h3>
|
<h3 id="progress-animated">Animated</h3>
|
||||||
<p>Add <code>.active</code> to <code>.progress-striped</code> to animate the stripes right to left. Not available in IE9 and below.</p>
|
<p>Add <code>.active</code> to <code>.progress-bar-striped</code> to animate the stripes right to left. Not available in IE9 and below.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<div class="progress progress-striped active">
|
<div class="progress">
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%"><span class="sr-only">45% Complete</span></div>
|
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%"><span class="sr-only">45% Complete</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="progress progress-striped active">
|
<div class="progress">
|
||||||
<div class="progress-bar" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
|
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
|
||||||
<span class="sr-only">45% Complete</span>
|
<span class="sr-only">45% Complete</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
<div class="progress-bar progress-bar-success" style="width: 35%">
|
<div class="progress-bar progress-bar-success" style="width: 35%">
|
||||||
<span class="sr-only">35% Complete (success)</span>
|
<span class="sr-only">35% Complete (success)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress-bar progress-bar-warning" style="width: 20%">
|
<div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
|
||||||
<span class="sr-only">20% Complete (warning)</span>
|
<span class="sr-only">20% Complete (warning)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress-bar progress-bar-danger" style="width: 10%">
|
<div class="progress-bar progress-bar-danger" style="width: 10%">
|
||||||
@@ -199,7 +199,7 @@
|
|||||||
<div class="progress-bar progress-bar-success" style="width: 35%">
|
<div class="progress-bar progress-bar-success" style="width: 35%">
|
||||||
<span class="sr-only">35% Complete (success)</span>
|
<span class="sr-only">35% Complete (success)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress-bar progress-bar-warning" style="width: 20%">
|
<div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
|
||||||
<span class="sr-only">20% Complete (warning)</span>
|
<span class="sr-only">20% Complete (warning)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress-bar progress-bar-danger" style="width: 10%">
|
<div class="progress-bar progress-bar-danger" style="width: 10%">
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<h2 id="buttons-active">Active state</h2>
|
<h2 id="buttons-active">Active state</h2>
|
||||||
<p>Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <code><button></code> elements, this is done via <code>:active</code>. For <code><a></code> elements, it's done with <code>.active</code>. However, you may use <code>.active</code> on <code><button></code>s should you need to replicate the active state progammatically.</p>
|
<p>Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <code><button></code> elements, this is done via <code>:active</code>. For <code><a></code> elements, it's done with <code>.active</code>. However, you may use <code>.active</code> on <code><button></code>s should you need to replicate the active state programmatically.</p>
|
||||||
|
|
||||||
<h3>Button element</h3>
|
<h3>Button element</h3>
|
||||||
<p>No need to add <code>:active</code> as it's a pseudo-class, but if you need to force the same appearance, go ahead and add <code>.active</code>.</p>
|
<p>No need to add <code>:active</code> as it's a pseudo-class, but if you need to force the same appearance, go ahead and add <code>.active</code>.</p>
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
|
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.
|
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
|
||||||
|
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h2 id="code-block">Basic block</h2>
|
<h2 id="code-block">Basic block</h2>
|
||||||
|
|||||||
@@ -49,17 +49,17 @@
|
|||||||
<button type="submit" class="btn btn-default">Submit</button>
|
<button type="submit" class="btn btn-default">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
<div class="bs-callout bs-callout-warning">
|
<div class="bs-callout bs-callout-warning">
|
||||||
<h4>Don't mix form groups with input groups</h4>
|
<h4>Don't mix form groups with input groups</h4>
|
||||||
<p>Do not mix form groups directly with <a href="/components/#input-groups">input groups</a>. Instead, nest the input group inside of the form group.</p>
|
<p>Do not mix form groups directly with <a href="/components/#input-groups">input groups</a>. Instead, nest the input group inside of the form group.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h2 id="forms-inline">Inline form</h2>
|
<h2 id="forms-inline">Inline form</h2>
|
||||||
<p>Add <code>.form-inline</code> to your <code><form></code> for left-aligned and inline-block controls. <strong>This only applies to forms within viewports that are at least 768px wide.</strong></p>
|
<p>Add <code>.form-inline</code> to your <code><form></code> for left-aligned and inline-block controls. <strong>This only applies to forms within viewports that are at least 768px wide.</strong></p>
|
||||||
<div class="bs-callout bs-callout-danger">
|
<div class="bs-callout bs-callout-danger">
|
||||||
<h4>Requires custom widths</h4>
|
<h4>Requires custom widths</h4>
|
||||||
<p>Inputs, selects, and textareas are 100% wide by default in Bootstrap. To use the inline form, you'll have to set a width on the form controls used within.</p>
|
<p>Inputs and selects have <code>width: 100%;</code> applied by default in Bootstrap. Within inline forms, we reset that to <code>width: auto;</code> so multiple controls can reside on the same line. Depending on your layout, additional custom widths may be required.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-callout bs-callout-warning">
|
<div class="bs-callout bs-callout-warning">
|
||||||
<h4>Always add labels</h4>
|
<h4>Always add labels</h4>
|
||||||
@@ -95,6 +95,12 @@
|
|||||||
<label class="sr-only" for="exampleInputEmail2">Email address</label>
|
<label class="sr-only" for="exampleInputEmail2">Email address</label>
|
||||||
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
|
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-addon">@</div>
|
||||||
|
<input class="form-control" type="email" placeholder="Enter email">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="sr-only" for="exampleInputPassword2">Password</label>
|
<label class="sr-only" for="exampleInputPassword2">Password</label>
|
||||||
<input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
|
<input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
|
||||||
@@ -369,7 +375,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<h2 id="forms-controls-static">Static control</h2>
|
<h2 id="forms-controls-static">Static control</h2>
|
||||||
<p>When you need to place plain text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code><p></code>.</p>
|
<p>When you need to place plain text next to a form label within a form, use the <code>.form-control-static</code> class on a <code><p></code>.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<form class="form-horizontal" role="form">
|
<form class="form-horizontal" role="form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -401,6 +407,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
{% endhighlight %}
|
||||||
|
<div class="bs-example">
|
||||||
|
<form class="form-inline" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="sr-only">Email</label>
|
||||||
|
<p class="form-control-static">email@example.com</p>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="inputPassword2" class="sr-only">Password</label>
|
||||||
|
<input type="password" class="form-control" id="inputPassword2" placeholder="Password">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-default">Confirm identity</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{% highlight html %}
|
||||||
|
<form class="form-inline" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="sr-only">Email</label>
|
||||||
|
<p class="form-control-static">email@example.com</p>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="inputPassword2" class="sr-only">Password</label>
|
||||||
|
<input type="password" class="form-control" id="inputPassword2" placeholder="Password">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-default">Confirm identity</button>
|
||||||
|
</form>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h2 id="forms-control-focus">Input focus</h2>
|
<h2 id="forms-control-focus">Input focus</h2>
|
||||||
@@ -515,6 +547,30 @@
|
|||||||
<label class="control-label" for="inputError1">Input with error</label>
|
<label class="control-label" for="inputError1">Input with error</label>
|
||||||
<input type="text" class="form-control" id="inputError1">
|
<input type="text" class="form-control" id="inputError1">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="has-success">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="checkboxSuccess" value="option1">
|
||||||
|
Checkbox with success
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="has-warning">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="checkboxWarning" value="option1">
|
||||||
|
Checkbox with warning
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="has-error">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="checkboxError" value="option1">
|
||||||
|
Checkbox with error
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div><!-- /.bs-example -->
|
</div><!-- /.bs-example -->
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
@@ -530,10 +586,35 @@
|
|||||||
<label class="control-label" for="inputError1">Input with error</label>
|
<label class="control-label" for="inputError1">Input with error</label>
|
||||||
<input type="text" class="form-control" id="inputError1">
|
<input type="text" class="form-control" id="inputError1">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="has-success">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="checkboxSuccess" value="option1">
|
||||||
|
Checkbox with success
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="has-warning">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="checkboxWarning" value="option1">
|
||||||
|
Checkbox with warning
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="has-error">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="checkboxError" value="option1">
|
||||||
|
Checkbox with error
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h3>With optional icons</h3>
|
<h3>With optional icons</h3>
|
||||||
<p>You can also add optional feedback icons with the addition of <code>.has-feedback</code> and the right icon.</p>
|
<p>You can also add optional feedback icons with the addition of <code>.has-feedback</code> and the right icon.</p>
|
||||||
|
<p><strong class="text-danger">Feedback icons only work with textual <code><input class="form-control"></code> elements.</strong></p>
|
||||||
<div class="bs-callout bs-callout-warning">
|
<div class="bs-callout bs-callout-warning">
|
||||||
<h4>Icons, labels, and input groups</h4>
|
<h4>Icons, labels, and input groups</h4>
|
||||||
<p>Manual positioning of feedback icons is required for inputs without a label and for <a href="../components#input-groups">input groups</a> with an add-on on the right. You are strongly encouraged to provide labels for all inputs for accessibility reasons. If you wish to prevent labels from being displayed, hide them with the <code>sr-only</code> class. If you must do without labels, adjust the <code>top</code> value of the feedback icon. For input groups, adjust the <code>right</code> value to an appropriate pixel value depending on the width of your addon.</p>
|
<p>Manual positioning of feedback icons is required for inputs without a label and for <a href="../components#input-groups">input groups</a> with an add-on on the right. You are strongly encouraged to provide labels for all inputs for accessibility reasons. If you wish to prevent labels from being displayed, hide them with the <code>sr-only</code> class. If you must do without labels, adjust the <code>top</code> value of the feedback icon. For input groups, adjust the <code>right</code> value to an appropriate pixel value depending on the width of your addon.</p>
|
||||||
@@ -670,6 +751,42 @@
|
|||||||
<select class="form-control input-sm">...</select>
|
<select class="form-control input-sm">...</select>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
<h3>Horizontal form group sizes</h3>
|
||||||
|
<p>Quickly size labels and form controls within <code>.form-horizontal</code> by adding <code>.form-group-lg</code> or <code>.form-group-sm</code>.</p>
|
||||||
|
<div class="bs-example">
|
||||||
|
<form class="form-horizontal" role="form">
|
||||||
|
<div class="form-group form-group-lg">
|
||||||
|
<label class="col-sm-2 control-label" for="formGroupInputLarge">Large label</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input class="form-control" type="text" id="formGroupInputLarge" placeholder="Large input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-group-sm">
|
||||||
|
<label class="col-sm-2 control-label" for="formGroupInputSmall">Small label</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input class="form-control" type="text" id="formGroupInputSmall" placeholder="Small input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div><!-- /.bs-example -->
|
||||||
|
{% highlight html %}
|
||||||
|
<form class="form-horizontal" role="form">
|
||||||
|
<div class="form-group form-group-lg">
|
||||||
|
<label class="col-sm-2 control-label" for="formGroupInputLarge">Large label</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input class="form-control" type="text" id="formGroupInputLarge" placeholder="Large input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-group-sm">
|
||||||
|
<label class="col-sm-2 control-label" for="formGroupInputSmall">Small label</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input class="form-control" type="text" id="formGroupInputSmall" placeholder="Small input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|
||||||
<h3>Column sizing</h3>
|
<h3>Column sizing</h3>
|
||||||
<p>Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths.</p>
|
<p>Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
|
|||||||
@@ -347,16 +347,16 @@
|
|||||||
|
|
||||||
|
|
||||||
<h3 id="grid-nesting">Nesting columns</h3>
|
<h3 id="grid-nesting">Nesting columns</h3>
|
||||||
<p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-md-*</code> columns within an existing <code>.col-md-*</code> column. Nested rows should include a set of columns that add up to 12 or less (it is not required that you use all 12 available columns).</p>
|
<p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-sm-*</code> columns within an existing <code>.col-sm-*</code> column. Nested rows should include a set of columns that add up to 12 or less (it is not required that you use all 12 available columns).</p>
|
||||||
<div class="row show-grid">
|
<div class="row show-grid">
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
Level 1: .col-md-9
|
Level 1: .col-sm-9
|
||||||
<div class="row show-grid">
|
<div class="row show-grid">
|
||||||
<div class="col-xs-8 col-sm-6">
|
<div class="col-xs-8 col-sm-6">
|
||||||
Level 2: .col-xs-8 .col-md-6
|
Level 2: .col-xs-8 .col-sm-6
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-4 col-sm-6">
|
<div class="col-xs-4 col-sm-6">
|
||||||
Level 2: .col-xs-4 .col-md-6
|
Level 2: .col-xs-4 .col-sm-6
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -364,13 +364,13 @@
|
|||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
Level 1: .col-md-9
|
Level 1: .col-sm-9
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-8 col-sm-6">
|
<div class="col-xs-8 col-sm-6">
|
||||||
Level 2: .col-xs-8 .col-md-6
|
Level 2: .col-xs-8 .col-sm-6
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-4 col-sm-6">
|
<div class="col-xs-4 col-sm-6">
|
||||||
Level 2: .col-xs-4 .col-md-6
|
Level 2: .col-xs-4 .col-sm-6
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
<h2 id="images-responsive">Responsive images</h2>
|
<h2 id="images-responsive">Responsive images</h2>
|
||||||
<p>Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code> and <code>height: auto;</code> to the image so that it scales nicely to the parent element.</p>
|
<p>Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code> and <code>height: auto;</code> to the image so that it scales nicely to the parent element.</p>
|
||||||
|
<div class="bs-callout bs-callout-warning">
|
||||||
|
<h4>SVG images and IE 8-10</h4>
|
||||||
|
<p>In Internet Explorer 8-10, SVG images with <code>.img-responsive</code> are disproportionately sized. To fix this, add <code>width: 100% \9;</code> where necessary. Bootstrap doesn't apply this automatically as it causes complications to other image formats.</p>
|
||||||
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<img src="..." class="img-responsive" alt="Responsive image">
|
<img src="..." class="img-responsive" alt="Responsive image">
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<h2 id="less-bootstrap">Compiling Bootstrap</h2>
|
<h2 id="less-bootstrap">Compiling Bootstrap</h2>
|
||||||
<p>Bootstrap can be used in at least two ways: with the compiled CSS or with the source Less files. To compile the Less files, <a href="https://github.com/twbs/bootstrap#compiling-css-and-javascript">visit the README</a> for how to setup your development environment to run the necessary commands.</p>
|
<p>Bootstrap can be used in at least two ways: with the compiled CSS or with the source Less files. To compile the Less files, <a href="../getting-started/#grunt">consult the Getting Started section</a> for how to setup your development environment to run the necessary commands.</p>
|
||||||
<p>Third party compilation tools may work with Bootstrap, but they are not supported by our core team.</p>
|
<p>Third party compilation tools may work with Bootstrap, but they are not supported by our core team.</p>
|
||||||
|
|
||||||
<h2 id="less-variables">Variables</h2>
|
<h2 id="less-variables">Variables</h2>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
@gray-darker: lighten(#000, 13.5%); // #222
|
@gray-darker: lighten(#000, 13.5%); // #222
|
||||||
@gray-dark: lighten(#000, 20%); // #333
|
@gray-dark: lighten(#000, 20%); // #333
|
||||||
@gray: lighten(#000, 33.5%); // #555
|
@gray: lighten(#000, 33.5%); // #555
|
||||||
@gray-light: lighten(#000, 60%); // #999
|
@gray-light: lighten(#000, 46.7%); // #777
|
||||||
@gray-lighter: lighten(#000, 93.5%); // #eee
|
@gray-lighter: lighten(#000, 93.5%); // #eee
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p>
|
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
<caption>Optional table caption.</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
|
|||||||
@@ -3,25 +3,29 @@
|
|||||||
<h2 id="colors">Colors</h2>
|
<h2 id="colors">Colors</h2>
|
||||||
<p>Gray and brand colors for use across Bootstrap.</p>
|
<p>Gray and brand colors for use across Bootstrap.</p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="bs-customizer-input">
|
||||||
|
<label for="input-@gray-base">@gray-base</label>
|
||||||
|
<input id="input-@gray-base" type="text" value="#000" data-var="@gray-base" class="form-control"/>
|
||||||
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@gray-darker">@gray-darker</label>
|
<label for="input-@gray-darker">@gray-darker</label>
|
||||||
<input id="input-@gray-darker" type="text" value="lighten(#000, 13.5%)" data-var="@gray-darker" class="form-control"/>
|
<input id="input-@gray-darker" type="text" value="lighten(@gray-base, 13.5%)" data-var="@gray-darker" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@gray-dark">@gray-dark</label>
|
<label for="input-@gray-dark">@gray-dark</label>
|
||||||
<input id="input-@gray-dark" type="text" value="lighten(#000, 20%)" data-var="@gray-dark" class="form-control"/>
|
<input id="input-@gray-dark" type="text" value="lighten(@gray-base, 20%)" data-var="@gray-dark" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@gray">@gray</label>
|
<label for="input-@gray">@gray</label>
|
||||||
<input id="input-@gray" type="text" value="lighten(#000, 33.5%)" data-var="@gray" class="form-control"/>
|
<input id="input-@gray" type="text" value="lighten(@gray-base, 33.5%)" data-var="@gray" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@gray-light">@gray-light</label>
|
<label for="input-@gray-light">@gray-light</label>
|
||||||
<input id="input-@gray-light" type="text" value="lighten(#000, 60%)" data-var="@gray-light" class="form-control"/>
|
<input id="input-@gray-light" type="text" value="lighten(@gray-base, 46.7%)" data-var="@gray-light" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@gray-lighter">@gray-lighter</label>
|
<label for="input-@gray-lighter">@gray-lighter</label>
|
||||||
<input id="input-@gray-lighter" type="text" value="lighten(#000, 93.5%)" data-var="@gray-lighter" class="form-control"/>
|
<input id="input-@gray-lighter" type="text" value="lighten(@gray-base, 93.5%)" data-var="@gray-lighter" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@brand-primary">@brand-primary</label>
|
<label for="input-@brand-primary">@brand-primary</label>
|
||||||
@@ -404,7 +408,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@input-color-placeholder">@input-color-placeholder</label>
|
<label for="input-@input-color-placeholder">@input-color-placeholder</label>
|
||||||
<input id="input-@input-color-placeholder" type="text" value="@gray-light" data-var="@input-color-placeholder" class="form-control"/>
|
<input id="input-@input-color-placeholder" type="text" value="#999" data-var="@input-color-placeholder" class="form-control"/>
|
||||||
<p class="help-block">Placeholder text color</p>
|
<p class="help-block">Placeholder text color</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
@@ -726,7 +730,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@navbar-inverse-color">@navbar-inverse-color</label>
|
<label for="input-@navbar-inverse-color">@navbar-inverse-color</label>
|
||||||
<input id="input-@navbar-inverse-color" type="text" value="@gray-light" data-var="@navbar-inverse-color" class="form-control"/>
|
<input id="input-@navbar-inverse-color" type="text" value="lighten(@gray-light, 15%)" data-var="@navbar-inverse-color" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@navbar-inverse-bg">@navbar-inverse-bg</label>
|
<label for="input-@navbar-inverse-bg">@navbar-inverse-bg</label>
|
||||||
@@ -738,7 +742,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@navbar-inverse-link-color">@navbar-inverse-link-color</label>
|
<label for="input-@navbar-inverse-link-color">@navbar-inverse-link-color</label>
|
||||||
<input id="input-@navbar-inverse-link-color" type="text" value="@gray-light" data-var="@navbar-inverse-link-color" class="form-control"/>
|
<input id="input-@navbar-inverse-link-color" type="text" value="lighten(@gray-light, 15%)" data-var="@navbar-inverse-link-color" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@navbar-inverse-link-hover-color">@navbar-inverse-link-hover-color</label>
|
<label for="input-@navbar-inverse-link-hover-color">@navbar-inverse-link-hover-color</label>
|
||||||
@@ -809,10 +813,6 @@
|
|||||||
<label for="input-@nav-disabled-link-hover-color">@nav-disabled-link-hover-color</label>
|
<label for="input-@nav-disabled-link-hover-color">@nav-disabled-link-hover-color</label>
|
||||||
<input id="input-@nav-disabled-link-hover-color" type="text" value="@gray-light" data-var="@nav-disabled-link-hover-color" class="form-control"/>
|
<input id="input-@nav-disabled-link-hover-color" type="text" value="@gray-light" data-var="@nav-disabled-link-hover-color" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
|
||||||
<label for="input-@nav-open-link-hover-color">@nav-open-link-hover-color</label>
|
|
||||||
<input id="input-@nav-open-link-hover-color" type="text" value="#fff" data-var="@nav-open-link-hover-color" class="form-control"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<h2 id="tabs">Tabs</h2>
|
<h2 id="tabs">Tabs</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -1700,6 +1700,11 @@
|
|||||||
<h2 id="type">Type</h2>
|
<h2 id="type">Type</h2>
|
||||||
<p></p>
|
<p></p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="bs-customizer-input">
|
||||||
|
<label for="input-@component-offset-horizontal">@component-offset-horizontal</label>
|
||||||
|
<input id="input-@component-offset-horizontal" type="text" value="180px" data-var="@component-offset-horizontal" class="form-control"/>
|
||||||
|
<p class="help-block">Horizontal offset for forms and lists.</p>
|
||||||
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@text-muted">@text-muted</label>
|
<label for="input-@text-muted">@text-muted</label>
|
||||||
<input id="input-@text-muted" type="text" value="@gray-light" data-var="@text-muted" class="form-control"/>
|
<input id="input-@text-muted" type="text" value="@gray-light" data-var="@text-muted" class="form-control"/>
|
||||||
@@ -1735,19 +1740,15 @@
|
|||||||
<input id="input-@page-header-border-color" type="text" value="@gray-lighter" data-var="@page-header-border-color" class="form-control"/>
|
<input id="input-@page-header-border-color" type="text" value="@gray-lighter" data-var="@page-header-border-color" class="form-control"/>
|
||||||
<p class="help-block">Page header border color</p>
|
<p class="help-block">Page header border color</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="bs-customizer-input">
|
||||||
<h2 id="miscellaneous">Miscellaneous</h2>
|
<label for="input-@dl-horizontal-offset">@dl-horizontal-offset</label>
|
||||||
<p></p>
|
<input id="input-@dl-horizontal-offset" type="text" value="@component-offset-horizontal" data-var="@dl-horizontal-offset" class="form-control"/>
|
||||||
<div class="row">
|
<p class="help-block">Width of horizontal description list titles</p>
|
||||||
|
</div>
|
||||||
<div class="bs-customizer-input">
|
<div class="bs-customizer-input">
|
||||||
<label for="input-@hr-border">@hr-border</label>
|
<label for="input-@hr-border">@hr-border</label>
|
||||||
<input id="input-@hr-border" type="text" value="@gray-lighter" data-var="@hr-border" class="form-control"/>
|
<input id="input-@hr-border" type="text" value="@gray-lighter" data-var="@hr-border" class="form-control"/>
|
||||||
<p class="help-block">Horizontal line color.</p>
|
<p class="help-block">Horizontal line color.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-customizer-input">
|
|
||||||
<label for="input-@component-offset-horizontal">@component-offset-horizontal</label>
|
|
||||||
<input id="input-@component-offset-horizontal" type="text" value="180px" data-var="@component-offset-horizontal" class="form-control"/>
|
|
||||||
<p class="help-block">Horizontal offset for forms and lists.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.-->
|
<!-- NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.-->
|
||||||
@@ -33,11 +33,23 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
|
{% if site.github %}
|
||||||
<script src="../dist/js/bootstrap.min.js"></script>
|
<script src="../dist/js/bootstrap.min.js"></script>
|
||||||
|
{% else %}
|
||||||
|
<script src="../dist/js/bootstrap.js"></script>
|
||||||
|
{% endif %}
|
||||||
|
{% if site.github %}
|
||||||
<script src="../assets/js/docs.min.js"></script>
|
<script src="../assets/js/docs.min.js"></script>
|
||||||
|
{% else %}
|
||||||
|
<script src="../assets/js/vendor/holder.js"></script>
|
||||||
|
<script src="../assets/js/vendor/ZeroClipboard.min.js"></script>
|
||||||
|
<script src="../assets/js/src/application.js"></script>
|
||||||
|
{% endif %}
|
||||||
{% if page.slug == "customize" %}
|
{% if page.slug == "customize" %}
|
||||||
<script src="../assets/js/customize.min.js"></script>
|
<script src="../assets/js/customize.min.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
Inject Twitter widgets asynchronously. Snippet snipped from Twitter's
|
Inject Twitter widgets asynchronously. Snippet snipped from Twitter's
|
||||||
|
|||||||
@@ -106,6 +106,9 @@
|
|||||||
<h3 id="support-ie8-box-sizing">Internet Explorer 8 and box-sizing</h3>
|
<h3 id="support-ie8-box-sizing">Internet Explorer 8 and box-sizing</h3>
|
||||||
<p>IE8 does not fully support <code>box-sizing: border-box;</code> when combined with <code>min-width</code>, <code>max-width</code>, <code>min-height</code>, or <code>max-height</code>. For that reason, as of v3.0.1, we no longer use <code>max-width</code> on <code>.container</code>s.</p>
|
<p>IE8 does not fully support <code>box-sizing: border-box;</code> when combined with <code>min-width</code>, <code>max-width</code>, <code>min-height</code>, or <code>max-height</code>. For that reason, as of v3.0.1, we no longer use <code>max-width</code> on <code>.container</code>s.</p>
|
||||||
|
|
||||||
|
<h3 id="support-ie8-font-face">Internet Explorer 8 and @font-face</h3>
|
||||||
|
<p>IE8 has some issues with <code>@font-face</code> when combined with <code>:before</code>. Bootstrap uses that combination with its Glyphicons. If a page is cached, and loaded without the mouse over the window (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. <a href="https://github.com/twbs/bootstrap/issues/13863">See issue #13863</a> for details.</p>
|
||||||
|
|
||||||
<h3 id="support-ie-compatibility-modes">IE Compatibility modes</h3>
|
<h3 id="support-ie-compatibility-modes">IE Compatibility modes</h3>
|
||||||
<p>Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including the appropriate <code><meta></code> tag in your pages:</p>
|
<p>Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including the appropriate <code><meta></code> tag in your pages:</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
@@ -155,7 +158,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
|||||||
<h4>Overflow and scrolling</h4>
|
<h4>Overflow and scrolling</h4>
|
||||||
<p>Support for <code>overflow: hidden</code> on the <code><body></code> element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the <code><body></code> content will begin to scroll.</p>
|
<p>Support for <code>overflow: hidden</code> on the <code><body></code> element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the <code><body></code> content will begin to scroll.</p>
|
||||||
<h4>Virtual keyboards</h4>
|
<h4>Virtual keyboards</h4>
|
||||||
<p>Also, note that if you're using inputs in your modal or navbar, iOS has a rendering bug that doesn't update the position of fixed elements when the virtual keyboard is triggered. A few workarounds for this include transforming your elements to <code>position: absolute</code> or invoking a timer on focus to try to correct the positioning manually. This is not handled by Bootstrap, so it is up to you to decide which solution is best for your application.</p>
|
<p>Also, note that if you're using a fixed navbar or using inputs within a modal, iOS has a rendering bug that doesn't update the position of fixed elements when the virtual keyboard is triggered. A few workarounds for this include transforming your elements to <code>position: absolute</code> or invoking a timer on focus to try to correct the positioning manually. This is not handled by Bootstrap, so it is up to you to decide which solution is best for your application.</p>
|
||||||
<h4>Navbar Dropdowns</h4>
|
<h4>Navbar Dropdowns</h4>
|
||||||
<p>The <code>.dropdown-backdrop</code> element isn't used on iOS in the nav because of the complexity of z-indexing. Thus, to close dropdowns in navbars, you must directly click the dropdown element (or any other element which will fire a click event in iOS).</p>
|
<p>The <code>.dropdown-backdrop</code> element isn't used on iOS in the nav because of the complexity of z-indexing. Thus, to close dropdowns in navbars, you must directly click the dropdown element (or any other element which will fire a click event in iOS).</p>
|
||||||
|
|
||||||
@@ -185,5 +188,5 @@ $(function () {
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
<p>Want to see an example? <a href="http://jsbin.com/OyaqoDO/2">Check out this JS Bin demo.</a></p>
|
<p>Want to see an example? <a href="http://jsbin.com/kuvoz/1">Check out this JS Bin demo.</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="bs-docs-section">
|
<div class="bs-docs-section">
|
||||||
<h1 id="examples" class="page-header">Examples</h1>
|
<h1 id="examples" class="page-header">Examples</h1>
|
||||||
|
|
||||||
<p class="lead">Build on the basic template above with Bootstrap's many components. See also <a href="#customizing">Customizing Bootstrap</a> for tips on maintaining your own Bootstrap variants.</p>
|
<p class="lead">Build on the basic template above with Bootstrap's many components. We encourage you to customize and adapt Bootstrap to suit your individual project's needs.</p>
|
||||||
|
|
||||||
<h3 id="examples-framework">Using the framework</h3>
|
<h3 id="examples-framework">Using the framework</h3>
|
||||||
<div class="row bs-examples">
|
<div class="row bs-examples">
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<img src="../examples/screenshots/justified-nav.jpg" alt="">
|
<img src="../examples/screenshots/justified-nav.jpg" alt="">
|
||||||
</a>
|
</a>
|
||||||
<h4>Justified nav</h4>
|
<h4>Justified nav</h4>
|
||||||
<p>Create a custom navbar with justified links. Heads up! <a href="../components/#nav-justified">Not too WebKit friendly.</a></p>
|
<p>Create a custom navbar with justified links. Heads up! <a href="../components/#nav-justified">Not too Safari friendly.</a></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix visible-xs"></div>
|
<div class="clearfix visible-xs"></div>
|
||||||
|
|
||||||
@@ -155,12 +155,5 @@
|
|||||||
<h4>Offcanvas</h4>
|
<h4>Offcanvas</h4>
|
||||||
<p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
|
<p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/equal-height-columns/">
|
|
||||||
<img src="../examples/screenshots/equal-height-columns.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Equal-height grid columns</h4>
|
|
||||||
<p>Adds automatic equal-height grid columns to Bootstrap's grid system.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{% if page.title == "Bootstrap" %}
|
{% if page.url == site.baseurl %}
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ page.title }} · Bootstrap
|
{{ page.title }} · Bootstrap
|
||||||
@@ -14,17 +14,28 @@
|
|||||||
</title>
|
</title>
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
<!-- Bootstrap core CSS -->
|
||||||
|
{% if site.github %}
|
||||||
<link href="../dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="../dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
{% else %}
|
||||||
|
<link href="../dist/css/bootstrap.css" rel="stylesheet">
|
||||||
|
{% endif %}
|
||||||
{% if page.slug == "css" or page.slug == "components" or page.slug == "js" %}
|
{% if page.slug == "css" or page.slug == "components" or page.slug == "js" %}
|
||||||
<!-- Optional Bootstrap Theme -->
|
<!-- Optional Bootstrap Theme -->
|
||||||
|
{% if site.github %}
|
||||||
<link href="data:text/css;charset=utf-8," data-href="../dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
|
<link href="data:text/css;charset=utf-8," data-href="../dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
|
||||||
|
{% else %}
|
||||||
|
<link href="data:text/css;charset=utf-8," data-href="../dist/css/bootstrap-theme.css" rel="stylesheet" id="bs-theme-stylesheet">
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Documentation extras -->
|
<!-- Documentation extras -->
|
||||||
|
{% if site.github %}
|
||||||
<link href="../assets/css/docs.min.css" rel="stylesheet">
|
<link href="../assets/css/docs.min.css" rel="stylesheet">
|
||||||
|
{% else %}
|
||||||
|
<link href="../assets/css/src/docs.css" rel="stylesheet">
|
||||||
|
<link href="../assets/css/src/pygments-manni.css" rel="stylesheet">
|
||||||
|
{% endif %}
|
||||||
<!--[if lt IE 9]><script src="../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
<script src="../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
<p>Here's how the affix plugin works:</p>
|
<p>Here's how the affix plugin works:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>To start, the plugin adds <code>.affix-top</code> to indicate the element is in its top-most position. At this point no CSS positioning is required.</li>
|
<li>To start, the plugin adds <code>.affix-top</code> to indicate the element is in its top-most position. At this point no CSS positioning is required.</li>
|
||||||
<li>Scrolling past the element you want affixed should trigger the actual affixing. This is where <code>.affix</code> replaces <code>.affix-top</code> and sets <code>position: fixed;</code> (provided by Bootstrap's code CSS).</li>
|
<li>Scrolling past the element you want affixed should trigger the actual affixing. This is where <code>.affix</code> replaces <code>.affix-top</code> and sets <code>position: fixed;</code> (provided by Bootstrap's CSS).</li>
|
||||||
<li>If a bottom offset is defined, scrolling past that should replace <code>.affix</code> with <code>.affix-bottom</code>. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add <code>position: absolute;</code> when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.</li>
|
<li>If a bottom offset is defined, scrolling past it should replace <code>.affix</code> with <code>.affix-bottom</code>. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add <code>position: absolute;</code> when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<p>Follow the above steps to set your CSS for either of the usage options below.</p>
|
<p>Follow the above steps to set your CSS for either of the usage options below.</p>
|
||||||
|
|
||||||
@@ -31,14 +31,14 @@
|
|||||||
<h3>Via JavaScript</h3>
|
<h3>Via JavaScript</h3>
|
||||||
<p>Call the affix plugin via JavaScript:</p>
|
<p>Call the affix plugin via JavaScript:</p>
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#my-affix').affix({
|
$('#myAffix').affix({
|
||||||
offset: {
|
offset: {
|
||||||
top: 100
|
top: 100,
|
||||||
, bottom: function () {
|
bottom: function () {
|
||||||
return (this.bottom = $('.footer').outerHeight(true))
|
return (this.bottom = $('.footer').outerHeight(true))
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<h3>Events</h3>
|
<h3>Events</h3>
|
||||||
<p>Bootstrap's affix class exposes a few events for hooking into affix functionality.</p>
|
<p>Bootstrap's affix plugin exposes a few events for hooking into affix functionality.</p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -3,15 +3,13 @@
|
|||||||
|
|
||||||
<h2 id="alerts-examples">Example alerts</h2>
|
<h2 id="alerts-examples">Example alerts</h2>
|
||||||
<p>Add dismiss functionality to all alert messages with this plugin.</p>
|
<p>Add dismiss functionality to all alert messages with this plugin.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example bs-example-standalone">
|
||||||
<div class="alert alert-warning fade in" role="alert">
|
<div class="alert alert-warning alert-dismissible fade in" role="alert">
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||||
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
|
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /example -->
|
|
||||||
|
|
||||||
<div class="bs-example">
|
<div class="alert alert-danger alert-dismissible fade in" role="alert">
|
||||||
<div class="alert alert-danger fade in" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||||
<h4>Oh snap! You got an error!</h4>
|
<h4>Oh snap! You got an error!</h4>
|
||||||
<p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
|
<p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
|
||||||
@@ -24,25 +22,29 @@
|
|||||||
|
|
||||||
|
|
||||||
<h2 id="alerts-usage">Usage</h2>
|
<h2 id="alerts-usage">Usage</h2>
|
||||||
<p>Enable dismissal of an alert via JavaScript:</p>
|
|
||||||
{% highlight js %}$(".alert").alert(){% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Markup</h3>
|
<p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality. Closing an alert removes it from the DOM.</p>
|
||||||
<p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.</p>
|
|
||||||
{% highlight html %}<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>{% endhighlight %}
|
{% highlight html %}
|
||||||
|
<button type="button" class="close" data-dismiss="alert">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
<span class="sr-only">Close</span>
|
||||||
|
</button>
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
<p>To have your alerts use animation when closing, make sure they have the <code>.fade</code> and <code>.in</code> classes already applied to them.</p>
|
||||||
|
|
||||||
<h3>Methods</h3>
|
<h3>Methods</h3>
|
||||||
|
|
||||||
<h4>$().alert()</h4>
|
<h4>$().alert()</h4>
|
||||||
<p>Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.</p>
|
<p>Makes an alert listen for click events on descendant elements which have the <code>data-dismiss="alert"</code> attribute. (Not necessary when using the data-api's auto-initialization.)</p>
|
||||||
|
|
||||||
<h4>.alert('close')</h4>
|
<h4>$().alert('close')</h4>
|
||||||
<p>Closes an alert.</p>
|
<p>Closes an alert by removing it from the DOM. If the <code>.fade</code> and <code>.in</code> classes are present on the element, the alert will fade out before it is removed.</p>
|
||||||
{% highlight js %}$(".alert").alert('close'){% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Events</h3>
|
<h3>Events</h3>
|
||||||
<p>Bootstrap's alert class exposes a few events for hooking into alert functionality.</p>
|
<p>Bootstrap's alert plugin exposes a few events for hooking into alert functionality.</p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -64,7 +66,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div><!-- /.table-responsive -->
|
</div><!-- /.table-responsive -->
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#my-alert').on('closed.bs.alert', function () {
|
$('#myAlert').on('closed.bs.alert', function () {
|
||||||
// do something…
|
// do something…
|
||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|||||||
+75
-102
@@ -1,161 +1,134 @@
|
|||||||
<div class="bs-docs-section">
|
<div class="bs-docs-section">
|
||||||
<h1 id="buttons" class="page-header">Buttons <small>button.js</small></h1>
|
<h1 id="buttons" class="page-header">Buttons <small>button.js</small></h1>
|
||||||
|
|
||||||
<h2 id="buttons-examples">Example uses</h2>
|
<p class="lead">Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p>
|
||||||
<p>Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p>
|
|
||||||
|
|
||||||
<h4>Stateful</h4>
|
<div class="bs-callout bs-callout-danger">
|
||||||
|
<h4>Cross-browser compatibility</h4>
|
||||||
|
<p><a href="https://github.com/twbs/bootstrap/issues/793">Firefox persists form control states (disabledness and checkedness) across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 id="buttons-stateful">Stateful</h2>
|
||||||
<p>Add <code>data-loading-text="Loading..."</code> to use a loading state on a button.</p>
|
<p>Add <code>data-loading-text="Loading..."</code> to use a loading state on a button.</p>
|
||||||
<div class="bs-example" style="padding-bottom: 24px;">
|
<div class="bs-callout bs-callout-info">
|
||||||
<button type="button" id="loading-example-btn" data-loading-text="Loading..." class="btn btn-primary">
|
<h4>Use whichever state you like!</h4>
|
||||||
|
<p>For the sake of this demonstration, we are using <code>data-loading-text</code> and <code>$().button('loading')</code>, but that's not the only state you can use. <a href="#buttons-methods">See more on this below in the <code>$().button(string)</code> documentation</a>.</p>
|
||||||
|
</div>
|
||||||
|
<div class="bs-example">
|
||||||
|
<button type="button" id="loading-example-btn" data-loading-text="Loading..." class="btn btn-primary" autocomplete="off">
|
||||||
Loading state
|
Loading state
|
||||||
</button>
|
</button>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<button type="button" id="loading-example-btn" data-loading-text="Loading..." class="btn btn-primary">
|
<button type="button" id="myButton" data-loading-text="Loading..." class="btn btn-primary" autocomplete="off">
|
||||||
Loading state
|
Loading state
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('#loading-example-btn').click(function () {
|
$('#myButton').on('click', function () {
|
||||||
var btn = $(this)
|
var $btn = $(this).button('loading')
|
||||||
btn.button('loading')
|
// business logic...
|
||||||
$.ajax(...).always(function () {
|
$btn.button('reset')
|
||||||
btn.button('reset')
|
})
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h4>Single toggle</h4>
|
<h2 id="buttons-single-toggle">Single toggle</h2>
|
||||||
<p>Add <code>data-toggle="button"</code> to activate toggling on a single button.</p>
|
<p>Add <code>data-toggle="button"</code> to activate toggling on a single button.</p>
|
||||||
<div class="bs-example" style="padding-bottom: 24px;">
|
<div class="bs-example">
|
||||||
<button type="button" class="btn btn-primary" data-toggle="button">Single toggle</button>
|
<button type="button" class="btn btn-primary" data-toggle="button" autocomplete="off">
|
||||||
|
Single toggle
|
||||||
|
</button>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<button type="button" class="btn btn-primary" data-toggle="button">Single toggle</button>
|
<button type="button" class="btn btn-primary" data-toggle="button" autocomplete="off">
|
||||||
|
Single toggle
|
||||||
|
</button>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h4>Checkbox</h4>
|
<h2 id="buttons-checkbox-radio">Checkbox / Radio</h2>
|
||||||
<p>Add <code>data-toggle="buttons"</code> to a group of checkboxes for checkbox style toggling on btn-group.</p>
|
<p>Add <code>data-toggle="buttons"</code> to a <code>.btn-group</code> containing checkbox or radio inputs to enable toggling in their respective styles.</p>
|
||||||
<div class="bs-callout bs-callout-warning">
|
|
||||||
<h4>Pre-checked options need <code>.active</code></h4>
|
|
||||||
<p>For pre-checked options, you must add the <code>.active</code> class to the input's <code>label</code> yourself.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-example" style="padding-bottom: 24px;">
|
|
||||||
<div class="btn-group" data-toggle="buttons">
|
|
||||||
<label class="btn btn-primary active">
|
|
||||||
<input type="checkbox" checked> Option 1 (pre-checked)
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox"> Option 2
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox"> Option 3
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div><!-- /example -->
|
|
||||||
{% highlight html %}
|
|
||||||
<div class="btn-group" data-toggle="buttons">
|
|
||||||
<label class="btn btn-primary active">
|
|
||||||
<input type="checkbox" checked> Option 1 (pre-checked)
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox"> Option 2
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-primary">
|
|
||||||
<input type="checkbox"> Option 3
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4>Radio</h4>
|
|
||||||
<p>Add <code>data-toggle="buttons"</code> to a group of radio inputs for radio style toggling on btn-group.</p>
|
|
||||||
<div class="bs-callout bs-callout-warning">
|
<div class="bs-callout bs-callout-warning">
|
||||||
<h4>Preselected options need <code>.active</code></h4>
|
<h4>Preselected options need <code>.active</code></h4>
|
||||||
<p>For preselected options, you must add the <code>.active</code> class to the input's <code>label</code> yourself.</p>
|
<p>For preselected options, you must add the <code>.active</code> class to the input's <code>label</code> yourself.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="bs-example" style="padding-bottom: 24px;">
|
<div class="bs-callout bs-callout-warning">
|
||||||
|
<h4>Visual checked state only updated on click</h4>
|
||||||
|
<p>If the checked state of a checkbox button is updated without firing a <code>click</code> event on the button (e.g. via <code><input type="reset"></code> or via setting the <code>checked</code> property of the input), you will need to toggle the <code>.active</code> class on the input's <code>label</code> yourself.</p>
|
||||||
|
</div>
|
||||||
|
<div class="bs-example">
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<label class="btn btn-primary active">
|
<label class="btn btn-primary active">
|
||||||
<input type="radio" name="options" id="option1" checked> Option 1 (preselected)
|
<input type="checkbox" checked autocomplete="off"> Checkbox 1 (pre-checked)
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="options" id="option2"> Option 2
|
<input type="checkbox" autocomplete="off"> Checkbox 2
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="options" id="option3"> Option 3
|
<input type="checkbox" autocomplete="off"> Checkbox 3
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<label class="btn btn-primary active">
|
<label class="btn btn-primary active">
|
||||||
<input type="radio" name="options" id="option1" checked> Option 1 (preselected)
|
<input type="checkbox" autocomplete="off" checked> Checkbox 1 (pre-checked)
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="options" id="option2"> Option 2
|
<input type="checkbox" autocomplete="off"> Checkbox 2
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="options" id="option3"> Option 3
|
<input type="checkbox" autocomplete="off"> Checkbox 3
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
<div class="bs-example">
|
||||||
<h2 id="buttons-usage">Usage</h2>
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<p>Enable buttons via JavaScript:</p>
|
<label class="btn btn-primary active">
|
||||||
{% highlight js %}
|
<input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected)
|
||||||
$('.btn').button()
|
</label>
|
||||||
|
<label class="btn btn-primary">
|
||||||
|
<input type="radio" name="options" id="option2" autocomplete="off"> Radio 2
|
||||||
|
</label>
|
||||||
|
<label class="btn btn-primary">
|
||||||
|
<input type="radio" name="options" id="option3" autocomplete="off"> Radio 3
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div><!-- /example -->
|
||||||
|
{% highlight html %}
|
||||||
|
<div class="btn-group" data-toggle="buttons">
|
||||||
|
<label class="btn btn-primary active">
|
||||||
|
<input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected)
|
||||||
|
</label>
|
||||||
|
<label class="btn btn-primary">
|
||||||
|
<input type="radio" name="options" id="option2" autocomplete="off"> Radio 2
|
||||||
|
</label>
|
||||||
|
<label class="btn btn-primary">
|
||||||
|
<input type="radio" name="options" id="option3" autocomplete="off"> Radio 3
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h3>Markup</h3>
|
<h2 id="buttons-methods">Methods</h2>
|
||||||
<p>Data attributes are integral to the button plugin. Check out the example code below for the various markup types.</p>
|
|
||||||
|
|
||||||
<h3>Options</h3>
|
|
||||||
<p><em>None</em></p>
|
|
||||||
|
|
||||||
<h3>Methods</h3>
|
|
||||||
|
|
||||||
<h4>$().button('toggle')</h4>
|
<h4>$().button('toggle')</h4>
|
||||||
<p>Toggles push state. Gives the button the appearance that it has been activated.</p>
|
<p>Toggles push state. Gives the button the appearance that it has been activated.</p>
|
||||||
<div class="bs-callout bs-callout-info">
|
|
||||||
<h4>Auto toggling</h4>
|
|
||||||
<p>You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.</p>
|
|
||||||
</div>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="button">...</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h4>$().button('loading')</h4>
|
|
||||||
<p>Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute <code>data-loading-text</code>.
|
|
||||||
</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<button id="loading-example-btn" type="button" class="btn btn-primary" data-loading-text="loading stuff...">...</button>
|
|
||||||
<script>
|
|
||||||
$('#loading-example-btn').click(function () {
|
|
||||||
var btn = $(this)
|
|
||||||
btn.button('loading')
|
|
||||||
$.ajax(...).always(function () {
|
|
||||||
btn.button('reset')
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger">
|
|
||||||
<h4>Cross-browser compatibility</h4>
|
|
||||||
<p><a href="https://github.com/twbs/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4>$().button('reset')</h4>
|
<h4>$().button('reset')</h4>
|
||||||
<p>Resets button state - swaps text to original text.</p>
|
<p>Resets button state - swaps text to original text.</p>
|
||||||
|
|
||||||
<h4>$().button(string)</h4>
|
<h4>$().button(string)</h4>
|
||||||
<p>Resets button state - swaps text to any data defined text state.</p>
|
<p>Swaps text to any data defined text state.</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<button type="button" class="btn btn-primary" data-complete-text="finished!" >...</button>
|
<button type="button" id="myStateButton" data-complete-text="finished!" class="btn btn-primary" autocomplete="off">
|
||||||
|
...
|
||||||
|
</button>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('.btn').button('complete')
|
$('#myStateButton').on('click', function () {
|
||||||
|
$(this).button('complete') // button text will be "finished!"
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<div class="bs-docs-section">
|
<div class="bs-docs-section">
|
||||||
<h1 id="carousel" class="page-header">Carousel <small>carousel.js</small></h1>
|
<h1 id="carousel" class="page-header">Carousel <small>carousel.js</small></h1>
|
||||||
|
|
||||||
|
<p>A slideshow component for cycling through elemnts, like a carousel. <strong>Nested carousels are not supported.</strong></p>
|
||||||
|
|
||||||
<h2 id="carousel-examples">Examples</h2>
|
<h2 id="carousel-examples">Examples</h2>
|
||||||
<p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p>
|
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
||||||
<ol class="carousel-indicators">
|
<ol class="carousel-indicators">
|
||||||
@@ -10,7 +11,7 @@
|
|||||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner" role="listbox">
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
<img data-src="holder.js/900x500/auto/#777:#555/text:First slide" alt="First slide">
|
<img data-src="holder.js/900x500/auto/#777:#555/text:First slide" alt="First slide">
|
||||||
</div>
|
</div>
|
||||||
@@ -23,9 +24,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||||||
<span class="glyphicon glyphicon-chevron-left"></span>
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
||||||
|
<span class="sr-only">Previous</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||||||
<span class="glyphicon glyphicon-chevron-right"></span>
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||||
|
<span class="sr-only">Next</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
@@ -39,7 +42,7 @@
|
|||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<!-- Wrapper for slides -->
|
<!-- Wrapper for slides -->
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner" role="listbox">
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
<img src="..." alt="...">
|
<img src="..." alt="...">
|
||||||
<div class="carousel-caption">
|
<div class="carousel-caption">
|
||||||
@@ -58,9 +61,11 @@
|
|||||||
<!-- Controls -->
|
<!-- Controls -->
|
||||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||||||
<span class="glyphicon glyphicon-chevron-left"></span>
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
||||||
|
<span class="sr-only">Previous</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||||||
<span class="glyphicon glyphicon-chevron-right"></span>
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||||
|
<span class="sr-only">Next</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
@@ -79,7 +84,7 @@
|
|||||||
<li data-target="#carousel-example-captions" data-slide-to="1"></li>
|
<li data-target="#carousel-example-captions" data-slide-to="1"></li>
|
||||||
<li data-target="#carousel-example-captions" data-slide-to="2"></li>
|
<li data-target="#carousel-example-captions" data-slide-to="2"></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner" role="listbox">
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
<img data-src="holder.js/900x500/auto/#777:#777" alt="First slide image">
|
<img data-src="holder.js/900x500/auto/#777:#777" alt="First slide image">
|
||||||
<div class="carousel-caption">
|
<div class="carousel-caption">
|
||||||
@@ -104,9 +109,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<a class="left carousel-control" href="#carousel-example-captions" role="button" data-slide="prev">
|
<a class="left carousel-control" href="#carousel-example-captions" role="button" data-slide="prev">
|
||||||
<span class="glyphicon glyphicon-chevron-left"></span>
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
||||||
|
<span class="sr-only">Previous</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="right carousel-control" href="#carousel-example-captions" role="button" data-slide="next">
|
<a class="right carousel-control" href="#carousel-example-captions" role="button" data-slide="next">
|
||||||
<span class="glyphicon glyphicon-chevron-right"></span>
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||||
|
<span class="sr-only">Next</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
@@ -132,7 +139,7 @@
|
|||||||
|
|
||||||
<h3>Via data attributes</h3>
|
<h3>Via data attributes</h3>
|
||||||
<p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.</p>
|
<p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.</p>
|
||||||
<p>The <code>data-ride="carousel"</code> attribute is used to mark a carousel as animating starting at page load.</p>
|
<p>The <code>data-ride="carousel"</code> attribute is used to mark a carousel as animating starting at page load. <strong class="text-danger">It cannot be used in combination with (redundant and unnecessary) explicit JavaScript initialization of the same carousel.</strong></p>
|
||||||
|
|
||||||
<h3>Via JavaScript</h3>
|
<h3>Via JavaScript</h3>
|
||||||
<p>Call carousel manually with:</p>
|
<p>Call carousel manually with:</p>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<p>Using the collapse plugin, we built a simple accordion by extending the panel component.</p>
|
<p>Using the collapse plugin, we built a simple accordion by extending the panel component.</p>
|
||||||
|
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<div class="panel-group" id="accordion">
|
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div id="collapseOne" class="panel-collapse collapse in">
|
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
||||||
</div>
|
</div>
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div id="collapseTwo" class="panel-collapse collapse">
|
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
||||||
</div>
|
</div>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div id="collapseThree" class="panel-collapse collapse">
|
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
||||||
</div>
|
</div>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="panel-group" id="accordion">
|
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div id="collapseOne" class="panel-collapse collapse in">
|
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
||||||
</div>
|
</div>
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div id="collapseTwo" class="panel-collapse collapse">
|
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
||||||
</div>
|
</div>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div id="collapseThree" class="panel-collapse collapse">
|
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation">
|
<nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-collapse">
|
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -20,7 +20,10 @@
|
|||||||
<div class="collapse navbar-collapse bs-example-js-navbar-collapse">
|
<div class="collapse navbar-collapse bs-example-js-navbar-collapse">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
|
<a id="drop1" href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown
|
||||||
|
<span class="caret"></span>
|
||||||
|
</a>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
||||||
@@ -30,7 +33,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 2 <span class="caret"></span></a>
|
<a id="drop2" href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown
|
||||||
|
<span class="caret"></span>
|
||||||
|
</a>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
||||||
@@ -42,7 +48,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li id="fat-menu" class="dropdown">
|
<li id="fat-menu" class="dropdown">
|
||||||
<a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 3 <span class="caret"></span></a>
|
<a id="drop3" href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown
|
||||||
|
<span class="caret"></span>
|
||||||
|
</a>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
||||||
@@ -59,10 +68,13 @@
|
|||||||
|
|
||||||
<h3>Within pills</h3>
|
<h3>Within pills</h3>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li class="active"><a href="#">Regular link</a></li>
|
<li role="presentation" class="active"><a href="#">Regular link</a></li>
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a id="drop4" role="button" data-toggle="dropdown" href="#">Dropdown <span class="caret"></span></a>
|
<a id="drop4" href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown
|
||||||
|
<span class="caret"></span>
|
||||||
|
</a>
|
||||||
<ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
|
<ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
||||||
@@ -71,8 +83,11 @@
|
|||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a id="drop5" role="button" data-toggle="dropdown" href="#">Dropdown 2 <span class="caret"></span></a>
|
<a id="drop5" href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown
|
||||||
|
<span class="caret"></span>
|
||||||
|
</a>
|
||||||
<ul id="menu2" class="dropdown-menu" role="menu" aria-labelledby="drop5">
|
<ul id="menu2" class="dropdown-menu" role="menu" aria-labelledby="drop5">
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
||||||
@@ -81,8 +96,11 @@
|
|||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a id="drop6" role="button" data-toggle="dropdown" href="#">Dropdown 3 <span class="caret"></span></a>
|
<a id="drop6" href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown
|
||||||
|
<span class="caret"></span>
|
||||||
|
</a>
|
||||||
<ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop6">
|
<ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop6">
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
|
||||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
|
||||||
@@ -96,26 +114,31 @@
|
|||||||
|
|
||||||
|
|
||||||
<h2 id="dropdowns-usage">Usage</h2>
|
<h2 id="dropdowns-usage">Usage</h2>
|
||||||
<p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item. When opened, the plugin also adds <code>.dropdown-backdrop</code> as a click area for closing dropdown menus when clicking outside the menu. Note: The <code>data-toggle=dropdown</code> attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it.</p>
|
<p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item.</p>
|
||||||
|
<p>On mobile devices, opening a dropdown adds a <code>.dropdown-backdrop</code> as a tap area for closing dropdown menus when tapping outside the menu, a requirement for proper iOS support. <strong class="text-danger">This means that switching from an open dropdown menu to a different dropdown menu requires an extra tap on mobile.</strong></p>
|
||||||
|
<p>Note: The <code>data-toggle="dropdown"</code> attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it.</p>
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
<h3>Via data attributes</h3>
|
||||||
<p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>
|
<p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<a data-toggle="dropdown" href="#">Dropdown trigger</a>
|
<button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown trigger
|
||||||
|
<span class="caret"></span>
|
||||||
|
</button>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
<p>To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p>
|
<p>To keep URLs intact with link buttons, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<a id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
|
<a id="dLabel" data-target="#" href="http://example.com" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
Dropdown <span class="caret"></span>
|
Dropdown trigger
|
||||||
|
<span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||||
<h4 class="modal-title" id="myModalLabel">Modal Heading</h4>
|
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<h4>Text in a modal</h4>
|
<h4>Text in a modal</h4>
|
||||||
@@ -259,7 +259,9 @@
|
|||||||
<td>remote</td>
|
<td>remote</td>
|
||||||
<td>path</td>
|
<td>path</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td><p>If a remote URL is provided, <strong>content will be loaded one time</strong> via jQuery's <code>load</code> method and injected into the <code>.modal-content</code> div. If you're using the data-api, you may alternatively use the <code>href</code> attribute to specify the remote source. An example of this is shown below:</p>
|
<td>
|
||||||
|
<p><span class="text-danger">This option is deprecated since v3.2.1 and will be removed in v4.</span> We recommend instead using client-side templating or a data binding framework, or calling <a href="http://api.jquery.com/load/">jQuery.load</a> yourself.</p>
|
||||||
|
<p>If a remote URL is provided, <strong>content will be loaded one time</strong> via jQuery's <code>load</code> method and injected into the <code>.modal-content</code> div. If you're using the data-api, you may alternatively use the <code>href</code> attribute to specify the remote source. An example of this is shown below:</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a data-toggle="modal" href="remote.html" data-target="#modal">Click me</a>
|
<a data-toggle="modal" href="remote.html" data-target="#modal">Click me</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
@@ -320,7 +322,7 @@ $('#myModal').modal({
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>loaded.bs.modal</td>
|
<td>loaded.bs.modal</td>
|
||||||
<td>This event is fired when the modal has loaded content using the remote option.</td>
|
<td>This event is fired when the modal has loaded content using the <code>remote</code> option.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -47,6 +47,12 @@ $('#myModal').modal('show') // initializes and invokes show immed
|
|||||||
|
|
||||||
<p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel="popover"]').data('popover')</code>.</p>
|
<p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel="popover"]').data('popover')</code>.</p>
|
||||||
|
|
||||||
|
<h4>Default settings</h4>
|
||||||
|
<p>You can change the default settings for a plugin by modifying the plugin's <code>Constructor.DEFAULTS</code> object:<p>
|
||||||
|
{% highlight js %}
|
||||||
|
$.fn.modal.Constructor.DEFAULTS.keyboard = false // changes default for the modal plugin's `keyboard` option to false
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
<h3 id="js-noconflict">No conflict</h3>
|
<h3 id="js-noconflict">No conflict</h3>
|
||||||
<p>Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call <code>.noConflict</code> on the plugin you wish to revert the value of.</p>
|
<p>Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call <code>.noConflict</code> on the plugin you wish to revert the value of.</p>
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
@@ -64,6 +70,9 @@ $('#myModal').on('show.bs.modal', function (e) {
|
|||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
<h3 id="js-disabled">No special fallbacks when JavaScript is disabled</h3>
|
||||||
|
<p>Bootstrap's plugins don't fall back particularly gracefully when JavaScript is disabled. If you care about the user experience in this case, use <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript"><code><noscript></code></a> to explain the situation (and how to re-enable JavaScript) to your users, and/or add your own custom fallbacks.</p>
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-third-party-libs">
|
<div class="bs-callout bs-callout-warning" id="callout-third-party-libs">
|
||||||
<h4>Third-party libraries</h4>
|
<h4>Third-party libraries</h4>
|
||||||
<p><strong>Bootstrap does not officially support third-party JavaScript libraries</strong> like Prototype or jQuery UI. Despite <code>.noConflict</code> and namespaced events, there may be compatibility problems that you need to fix on your own.</p>
|
<p><strong>Bootstrap does not officially support third-party JavaScript libraries</strong> like Prototype or jQuery UI. Despite <code>.noConflict</code> and namespaced events, there may be compatibility problems that you need to fix on your own.</p>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
<h2 id="popovers-examples">Examples</h2>
|
<h2 id="popovers-examples">Examples</h2>
|
||||||
<p>Add small overlays of content, like those on the iPad, to any element for housing secondary information.</p>
|
<p>Add small overlays of content, like those on the iPad, to any element for housing secondary information.</p>
|
||||||
|
<p>Popovers whose both title and content are zero-length are never displayed.</p>
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger">
|
<div class="bs-callout bs-callout-danger">
|
||||||
<h4>Plugin dependency</h4>
|
<h4>Plugin dependency</h4>
|
||||||
@@ -24,6 +25,10 @@
|
|||||||
<h4>Popovers on disabled elements require wrapper elements</h4>
|
<h4>Popovers on disabled elements require wrapper elements</h4>
|
||||||
<p>To add a popover to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code><div></code> and apply the popover to that <code><div></code> instead.</p>
|
<p>To add a popover to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code><div></code> and apply the popover to that <code><div></code> instead.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="bs-callout bs-callout-info">
|
||||||
|
<h4>Multiple-line links</h4>
|
||||||
|
<p>Sometimes you want to add a popover to a hyperlink that wraps multiple lines. The default behavior of the popover plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h3>Static popover</h3>
|
<h3>Static popover</h3>
|
||||||
<p>Four options are available: top, right, bottom, and left aligned.</p>
|
<p>Four options are available: top, right, bottom, and left aligned.</p>
|
||||||
@@ -73,8 +78,8 @@
|
|||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h4>Four directions</h4>
|
<h4>Four directions</h4>
|
||||||
<div class="bs-example tooltip-demo">
|
<div class="bs-example popover-demo">
|
||||||
<div class="bs-example-tooltips">
|
<div class="bs-example-popovers">
|
||||||
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
||||||
Popover on left
|
Popover on left
|
||||||
</button>
|
</button>
|
||||||
@@ -109,23 +114,17 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
|
|||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h4>Dismiss on next click</h4>
|
<h4>Dismiss on next click</h4>
|
||||||
<p>Use the <code>focus</code> trigger to dismiss popovers on their next click.</p>
|
<p>Use the <code>focus</code> trigger to dismiss popovers on the next click that the user makes.</p>
|
||||||
|
<div class="bs-callout bs-callout-danger">
|
||||||
|
<h4>Specific markup required for dismiss-on-next-click</h4>
|
||||||
|
<p>For proper cross-browser and cross-platform behavior, you must use the <code><a></code> tag, <i>not</i> the <code><button></code> tag, and you also must include a <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#tabindex"><code>tabindex</code></a> attribute.</p>
|
||||||
|
</div>
|
||||||
<div class="bs-example" style="padding-bottom: 24px;">
|
<div class="bs-example" style="padding-bottom: 24px;">
|
||||||
<button type="button" class="btn btn-lg btn-danger bs-docs-popover-dismiss" data-toggle="popover" title="Dimissmisable popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissable popover</button>
|
<a href="#" tabindex="0" class="btn btn-lg btn-danger bs-docs-popover" data-toggle="popover" data-trigger="focus" title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<button type="button" class="btn btn-lg btn-danger popover-dismiss" data-toggle="popover" title="Dimissmisable popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissable popover</button>
|
<a href="#" tabindex="0" class="btn btn-lg btn-danger" data-toggle="popover" data-trigger="focus" title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
{% highlight js %}
|
|
||||||
$('.popover-dismiss').popover({
|
|
||||||
trigger: 'focus'
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning">
|
|
||||||
<h4>Multiple-line links</h4>
|
|
||||||
<p>Sometimes you want to add a popover to a hyperlink that wraps multiple lines. The default behavior of the popover plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="popovers-usage">Usage</h2>
|
<h2 id="popovers-usage">Usage</h2>
|
||||||
@@ -156,7 +155,7 @@ $('.popover-dismiss').popover({
|
|||||||
<td>string | false</td>
|
<td>string | false</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>
|
<td>
|
||||||
<p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p>
|
<p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -165,7 +164,7 @@ $('.popover-dismiss').popover({
|
|||||||
<td>''</td>
|
<td>''</td>
|
||||||
<td>
|
<td>
|
||||||
<p>Default content value if <code>data-content</code> attribute isn't present.</p>
|
<p>Default content value if <code>data-content</code> attribute isn't present.</p>
|
||||||
<p>If a function is given, it will be called with 1 argument, which is the element that the popover is attached to.</p>
|
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -175,7 +174,7 @@ $('.popover-dismiss').popover({
|
|||||||
<td>
|
<td>
|
||||||
<p>Delay showing and hiding the popover (ms) - does not apply to manual trigger type</p>
|
<p>Delay showing and hiding the popover (ms) - does not apply to manual trigger type</p>
|
||||||
<p>If a number is supplied, delay is applied to both hide/show</p>
|
<p>If a number is supplied, delay is applied to both hide/show</p>
|
||||||
<p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
|
<p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -188,31 +187,37 @@ $('.popover-dismiss').popover({
|
|||||||
<td>placement</td>
|
<td>placement</td>
|
||||||
<td>string | function</td>
|
<td>string | function</td>
|
||||||
<td>'right'</td>
|
<td>'right'</td>
|
||||||
<td>How to position the popover - top | bottom | left | right | auto.<br> When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right.</td>
|
<td>
|
||||||
|
<p>How to position the popover - top | bottom | left | right | auto.<br>When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right.</p>
|
||||||
|
<p>When a function is used to determine the placement, it is called with the popover DOM node as its first argument and the triggering element DOM node as its second. The <code>this</code> context is set to the popover instance.</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>selector</td>
|
<td>selector</td>
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="http://jsfiddle.net/fScua/">an informative example</a>.</td>
|
<td>If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="http://jsbin.com/zopod/1/edit">an informative example</a>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>template</td>
|
<td>template</td>
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td><code>'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'</code></td>
|
<td><code>'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'</code></td>
|
||||||
<td>
|
<td>
|
||||||
<p>Base HTML to use when creating the popover.</p>
|
<p>Base HTML to use when creating the popover.</p>
|
||||||
<p>The popover's <code>title</code> will be injected into the <code>.popover-title</code>.</p>
|
<p>The popover's <code>title</code> will be injected into the <code>.popover-title</code>.</p>
|
||||||
<p>The popover's <code>content</code> will be injected into the <code>.popover-content</code>.</p>
|
<p>The popover's <code>content</code> will be injected into the <code>.popover-content</code>.</p>
|
||||||
<p><code>.arrow</code> will become the popover's arrow.</p>
|
<p><code>.arrow</code> will become the popover's arrow.</p>
|
||||||
<p>The outermost wrapper element should have the <code>.popover</code> class.</p>
|
<p>The outermost wrapper element should have the <code>.popover</code> class.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>title</td>
|
<td>title</td>
|
||||||
<td>string | function</td>
|
<td>string | function</td>
|
||||||
<td>''</td>
|
<td>''</td>
|
||||||
<td>Default title value if <code>title</code> attribute isn't present</td>
|
<td>
|
||||||
|
<p>Default title value if <code>title</code> attribute isn't present.</p>
|
||||||
|
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>trigger</td>
|
<td>trigger</td>
|
||||||
@@ -221,12 +226,12 @@ $('.popover-dismiss').popover({
|
|||||||
<td>How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space.</td>
|
<td>How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>viewport</td>
|
<td>viewport</td>
|
||||||
<td>string | object</td>
|
<td>string | object</td>
|
||||||
<td>{ selector: 'body', padding: 0 }</td>
|
<td>{ selector: 'body', padding: 0 }</td>
|
||||||
<td>
|
<td>
|
||||||
<p>Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ selector: '#viewport', padding: 0 }</code></p>
|
<p>Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -259,28 +264,28 @@ $('.popover-dismiss').popover({
|
|||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 150px;">Event Type</th>
|
<th style="width: 150px;">Event Type</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>show.bs.popover</td>
|
<td>show.bs.popover</td>
|
||||||
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
|
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>shown.bs.popover</td>
|
<td>shown.bs.popover</td>
|
||||||
<td>This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).</td>
|
<td>This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>hide.bs.popover</td>
|
<td>hide.bs.popover</td>
|
||||||
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
|
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>hidden.bs.popover</td>
|
<td>hidden.bs.popover</td>
|
||||||
<td>This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).</td>
|
<td>This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div><!-- /.table-responsive -->
|
</div><!-- /.table-responsive -->
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<nav id="navbar-example2" class="navbar navbar-default navbar-static" role="navigation">
|
<nav id="navbar-example2" class="navbar navbar-default navbar-static" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-scrollspy">
|
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-scrollspy">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
|
|||||||
+27
-27
@@ -5,9 +5,9 @@
|
|||||||
<p>Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus.</p>
|
<p>Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus.</p>
|
||||||
<div class="bs-example bs-example-tabs">
|
<div class="bs-example bs-example-tabs">
|
||||||
<ul id="myTab" class="nav nav-tabs" role="tablist">
|
<ul id="myTab" class="nav nav-tabs" role="tablist">
|
||||||
<li class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li>
|
<li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li>
|
||||||
<li><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
|
<li role="presentation"><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
|
||||||
<li class="dropdown">
|
<li role="presentation" class="dropdown">
|
||||||
<a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
|
<a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1">
|
||||||
<li><a href="#dropdown1" tabindex="-1" role="tab" data-toggle="tab">@fat</a></li>
|
<li><a href="#dropdown1" tabindex="-1" role="tab" data-toggle="tab">@fat</a></li>
|
||||||
@@ -16,16 +16,16 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="myTabContent" class="tab-content">
|
<div id="myTabContent" class="tab-content">
|
||||||
<div class="tab-pane fade in active" id="home">
|
<div role="tabpanel" class="tab-pane fade in active" id="home">
|
||||||
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
|
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="profile">
|
<div role="tabpanel" class="tab-pane fade" id="profile">
|
||||||
<p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
|
<p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="dropdown1">
|
<div role="tabpanel" class="tab-pane fade" id="dropdown1">
|
||||||
<p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
|
<p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="dropdown2">
|
<div role="tabpanel" class="tab-pane fade" id="dropdown2">
|
||||||
<p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
|
<p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,18 +61,18 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
|
|||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<!-- Nav tabs -->
|
<!-- Nav tabs -->
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li>
|
<li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li>
|
||||||
<li><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
|
<li role="presentation"><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
|
||||||
<li><a href="#messages" role="tab" data-toggle="tab">Messages</a></li>
|
<li role="presentation"><a href="#messages" role="tab" data-toggle="tab">Messages</a></li>
|
||||||
<li><a href="#settings" role="tab" data-toggle="tab">Settings</a></li>
|
<li role="presentation"><a href="#settings" role="tab" data-toggle="tab">Settings</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- Tab panes -->
|
<!-- Tab panes -->
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="home">...</div>
|
<div role="tabpanel" class="tab-pane active" id="home">...</div>
|
||||||
<div class="tab-pane" id="profile">...</div>
|
<div role="tabpanel" class="tab-pane" id="profile">...</div>
|
||||||
<div class="tab-pane" id="messages">...</div>
|
<div role="tabpanel" class="tab-pane" id="messages">...</div>
|
||||||
<div class="tab-pane" id="settings">...</div>
|
<div role="tabpanel" class="tab-pane" id="settings">...</div>
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -80,10 +80,10 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
|
|||||||
<p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>. The first tab pane must also have <code>.in</code> to properly fade in initial content.</p>
|
<p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>. The first tab pane must also have <code>.in</code> to properly fade in initial content.</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane fade in active" id="home">...</div>
|
<div role="tabpanel" class="tab-pane fade in active" id="home">...</div>
|
||||||
<div class="tab-pane fade" id="profile">...</div>
|
<div role="tabpanel" class="tab-pane fade" id="profile">...</div>
|
||||||
<div class="tab-pane fade" id="messages">...</div>
|
<div role="tabpanel" class="tab-pane fade" id="messages">...</div>
|
||||||
<div class="tab-pane fade" id="settings">...</div>
|
<div role="tabpanel" class="tab-pane fade" id="settings">...</div>
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -94,17 +94,17 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
|
|||||||
</p>
|
</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-tabs" role="tablist" id="myTab">
|
<ul class="nav nav-tabs" role="tablist" id="myTab">
|
||||||
<li class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li>
|
<li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li>
|
||||||
<li><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
|
<li role="presentation"><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
|
||||||
<li><a href="#messages" role="tab" data-toggle="tab">Messages</a></li>
|
<li role="presentation"><a href="#messages" role="tab" data-toggle="tab">Messages</a></li>
|
||||||
<li><a href="#settings" role="tab" data-toggle="tab">Settings</a></li>
|
<li role="presentation"><a href="#settings" role="tab" data-toggle="tab">Settings</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="home">...</div>
|
<div role="tabpanel" class="tab-pane active" id="home">...</div>
|
||||||
<div class="tab-pane" id="profile">...</div>
|
<div role="tabpanel" class="tab-pane" id="profile">...</div>
|
||||||
<div class="tab-pane" id="messages">...</div>
|
<div role="tabpanel" class="tab-pane" id="messages">...</div>
|
||||||
<div class="tab-pane" id="settings">...</div>
|
<div role="tabpanel" class="tab-pane" id="settings">...</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
+108
-101
@@ -1,8 +1,9 @@
|
|||||||
<div class="bs-docs-section">
|
<div class="bs-docs-section">
|
||||||
<h1 id="tooltips" class="page-header">Tooltips <small>tooltip.js</small></h1>
|
<h1 id="tooltips" class="page-header">Tooltips <small>tooltip.js</small></h1>
|
||||||
|
<p>Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.</p>
|
||||||
|
<p>Tooltips with zero-length titles are never displayed.</p>
|
||||||
|
|
||||||
<h2 id="tooltips-examples">Examples</h2>
|
<h2 id="tooltips-examples">Examples</h2>
|
||||||
<p>Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.</p>
|
|
||||||
<p>Hover over the links below to see tooltips:</p>
|
<p>Hover over the links below to see tooltips:</p>
|
||||||
<div class="bs-example tooltip-demo">
|
<div class="bs-example tooltip-demo">
|
||||||
<p class="muted" style="margin-bottom: 0;">Tight pants next level keffiyeh <a href="#" data-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-toggle="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.
|
<p class="muted" style="margin-bottom: 0;">Tight pants next level keffiyeh <a href="#" data-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-toggle="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.
|
||||||
@@ -58,7 +59,7 @@ $('#example').tooltip(options)
|
|||||||
<h4>Multiple-line links</h4>
|
<h4>Multiple-line links</h4>
|
||||||
<p>Sometimes you want to add a tooltip to a hyperlink that wraps multiple lines. The default behavior of the tooltip plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p>
|
<p>Sometimes you want to add a tooltip to a hyperlink that wraps multiple lines. The default behavior of the tooltip plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html linenos %}
|
{% highlight html %}
|
||||||
<!-- HTML to write -->
|
<!-- HTML to write -->
|
||||||
<a href="#" data-toggle="tooltip" title="Some tooltip text!">Hover over me</a>
|
<a href="#" data-toggle="tooltip" title="Some tooltip text!">Hover over me</a>
|
||||||
|
|
||||||
@@ -76,87 +77,93 @@ $('#example').tooltip(options)
|
|||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 100px;">Name</th>
|
<th style="width: 100px;">Name</th>
|
||||||
<th style="width: 100px;">Type</th>
|
<th style="width: 100px;">Type</th>
|
||||||
<th style="width: 50px;">Default</th>
|
<th style="width: 50px;">Default</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>animation</td>
|
<td>animation</td>
|
||||||
<td>boolean</td>
|
<td>boolean</td>
|
||||||
<td>true</td>
|
<td>true</td>
|
||||||
<td>Apply a CSS fade transition to the tooltip</td>
|
<td>Apply a CSS fade transition to the tooltip</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>container</td>
|
<td>container</td>
|
||||||
<td>string | false</td>
|
<td>string | false</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>
|
<td>
|
||||||
<p>Appends the tooltip to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the tooltip in the flow of the document near the triggering element - which will prevent the tooltip from floating away from the triggering element during a window resize.</p>
|
<p>Appends the tooltip to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the tooltip in the flow of the document near the triggering element - which will prevent the tooltip from floating away from the triggering element during a window resize.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>delay</td>
|
<td>delay</td>
|
||||||
<td>number | object</td>
|
<td>number | object</td>
|
||||||
<td>0</td>
|
<td>0</td>
|
||||||
<td>
|
<td>
|
||||||
<p>Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type</p>
|
<p>Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type</p>
|
||||||
<p>If a number is supplied, delay is applied to both hide/show</p>
|
<p>If a number is supplied, delay is applied to both hide/show</p>
|
||||||
<p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
|
<p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>html</td>
|
<td>html</td>
|
||||||
<td>boolean</td>
|
<td>boolean</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>Insert HTML into the tooltip. If false, jQuery's <code>text</code> method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.</td>
|
<td>Insert HTML into the tooltip. If false, jQuery's <code>text</code> method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>placement</td>
|
<td>placement</td>
|
||||||
<td>string | function</td>
|
<td>string | function</td>
|
||||||
<td>'top'</td>
|
<td>'top'</td>
|
||||||
<td>How to position the tooltip - top | bottom | left | right | auto. <br> When "auto" is specified, it will dynamically reorient the tooltip. For example, if placement is "auto left", the tooltip will display to the left when possible, otherwise it will display right.</td>
|
<td>
|
||||||
</tr>
|
<p>How to position the tooltip - top | bottom | left | right | auto.<br>When "auto" is specified, it will dynamically reorient the tooltip. For example, if placement is "auto left", the tooltip will display to the left when possible, otherwise it will display right.</p>
|
||||||
<tr>
|
<p>When a function is used to determine the placement, it is called with the tooltip DOM node as its first argument and the triggering element DOM node as its second. The <code>this</code> context is set to the tooltip instance.</p>
|
||||||
<td>selector</td>
|
</td>
|
||||||
<td>string</td>
|
</tr>
|
||||||
<td>false</td>
|
<tr>
|
||||||
<td>If a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have tooltips added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="http://jsfiddle.net/fScua/">an informative example</a>.</td>
|
<td>selector</td>
|
||||||
</tr>
|
<td>string</td>
|
||||||
<tr>
|
<td>false</td>
|
||||||
<td>template</td>
|
<td>If a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have tooltips added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="http://jsbin.com/zopod/1/edit">an informative example</a>.</td>
|
||||||
<td>string</td>
|
</tr>
|
||||||
<td><code>'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'</code></td>
|
<tr>
|
||||||
<td>
|
<td>template</td>
|
||||||
<p>Base HTML to use when creating the tooltip.</p>
|
<td>string</td>
|
||||||
<p>The tooltip's <code>title</code> will be injected into the <code>.tooltip-inner</code>.</p>
|
<td><code>'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'</code></td>
|
||||||
<p><code>.tooltip-arrow</code> will become the tooltip's arrow.</p>
|
<td>
|
||||||
<p>The outermost wrapper element should have the <code>.tooltip</code> class.</p>
|
<p>Base HTML to use when creating the tooltip.</p>
|
||||||
</td>
|
<p>The tooltip's <code>title</code> will be injected into the <code>.tooltip-inner</code>.</p>
|
||||||
</tr>
|
<p><code>.tooltip-arrow</code> will become the tooltip's arrow.</p>
|
||||||
<tr>
|
<p>The outermost wrapper element should have the <code>.tooltip</code> class.</p>
|
||||||
<td>title</td>
|
</td>
|
||||||
<td>string | function</td>
|
</tr>
|
||||||
<td>''</td>
|
<tr>
|
||||||
<td>Default title value if <code>title</code> attribute isn't present</td>
|
<td>title</td>
|
||||||
</tr>
|
<td>string | function</td>
|
||||||
<tr>
|
<td>''</td>
|
||||||
<td>trigger</td>
|
<td>
|
||||||
<td>string</td>
|
<p>Default title value if <code>title</code> attribute isn't present.</p>
|
||||||
<td>'hover focus'</td>
|
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the tooltip is attached to.</p>
|
||||||
<td>How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space.</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>viewport</td>
|
<td>trigger</td>
|
||||||
<td>string | object</td>
|
<td>string</td>
|
||||||
<td>{ selector: 'body', padding: 0 }</td>
|
<td>'hover focus'</td>
|
||||||
<td>
|
<td>How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space.</td>
|
||||||
<p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ selector: '#viewport', padding: 0 }</code></p>
|
</tr>
|
||||||
</td>
|
<tr>
|
||||||
</tr>
|
<td>viewport</td>
|
||||||
|
<td>string | object</td>
|
||||||
|
<td>{ selector: 'body', padding: 0 }</td>
|
||||||
|
<td>
|
||||||
|
<p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div><!-- /.table-responsive -->
|
</div><!-- /.table-responsive -->
|
||||||
@@ -190,28 +197,28 @@ $('#example').tooltip(options)
|
|||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 150px;">Event Type</th>
|
<th style="width: 150px;">Event Type</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>show.bs.tooltip</td>
|
<td>show.bs.tooltip</td>
|
||||||
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
|
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>shown.bs.tooltip</td>
|
<td>shown.bs.tooltip</td>
|
||||||
<td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td>
|
<td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>hide.bs.tooltip</td>
|
<td>hide.bs.tooltip</td>
|
||||||
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
|
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>hidden.bs.tooltip</td>
|
<td>hidden.bs.tooltip</td>
|
||||||
<td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td>
|
<td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div><!-- /.table-responsive -->
|
</div><!-- /.table-responsive -->
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
<a href="#navbar">Navbar</a>
|
<a href="#navbar">Navbar</a>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li><a href="#navbar-default">Default navbar</a></li>
|
<li><a href="#navbar-default">Default navbar</a></li>
|
||||||
|
<li><a href="#navbar-brand-image">Brand image</a></li>
|
||||||
<li><a href="#navbar-forms">Forms</a></li>
|
<li><a href="#navbar-forms">Forms</a></li>
|
||||||
<li><a href="#navbar-buttons">Buttons</a></li>
|
<li><a href="#navbar-buttons">Buttons</a></li>
|
||||||
<li><a href="#navbar-text">Text</a></li>
|
<li><a href="#navbar-text">Text</a></li>
|
||||||
@@ -94,7 +95,7 @@
|
|||||||
<a href="#alerts">Alerts</a>
|
<a href="#alerts">Alerts</a>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li><a href="#alerts-examples">Examples</a></li>
|
<li><a href="#alerts-examples">Examples</a></li>
|
||||||
<li><a href="#alerts-dismissable">Dismissable alerts</a></li>
|
<li><a href="#alerts-dismissible">Dismissible alerts</a></li>
|
||||||
<li><a href="#alerts-links">Links in alerts</a></li>
|
<li><a href="#alerts-links">Links in alerts</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
<!-- NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.-->
|
<!-- NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.-->
|
||||||
|
<li><a href="#import">Import</a></li>
|
||||||
<li><a href="#less">Less components</a></li>
|
<li><a href="#less">Less components</a></li>
|
||||||
<li><a href="#plugins">jQuery plugins</a></li>
|
<li><a href="#plugins">jQuery plugins</a></li>
|
||||||
<li><a href="#less-variables">Less variables</a>
|
<li><a href="#less-variables">Less variables</a>
|
||||||
@@ -40,7 +41,6 @@
|
|||||||
<li><a href="#close">Close</a></li>
|
<li><a href="#close">Close</a></li>
|
||||||
<li><a href="#code">Code</a></li>
|
<li><a href="#code">Code</a></li>
|
||||||
<li><a href="#type">Type</a></li>
|
<li><a href="#type">Type</a></li>
|
||||||
<li><a href="#miscellaneous">Miscellaneous</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#download">Download</a></li>
|
<li><a href="#download">Download</a></li>
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
<li><a href="#support-ie8-ie9">Internet Explorer 8-9</a></li>
|
<li><a href="#support-ie8-ie9">Internet Explorer 8-9</a></li>
|
||||||
<li><a href="#support-ie8-respondjs">IE8 and Respond.js</a></li>
|
<li><a href="#support-ie8-respondjs">IE8 and Respond.js</a></li>
|
||||||
<li><a href="#support-ie8-box-sizing">IE8 and box-sizing</a></li>
|
<li><a href="#support-ie8-box-sizing">IE8 and box-sizing</a></li>
|
||||||
|
<li><a href="#support-ie8-font-face">IE8 and @font-face</a></li>
|
||||||
<li><a href="#support-ie-compatibility-modes">IE Compatibility modes</a></li>
|
<li><a href="#support-ie-compatibility-modes">IE Compatibility modes</a></li>
|
||||||
<li><a href="#support-ie10-width">IE10 and Windows (Phone) 8</a></li>
|
<li><a href="#support-ie10-width">IE10 and Windows (Phone) 8</a></li>
|
||||||
<li><a href="#support-safari-percentages">Safari percent rounding</a></li>
|
<li><a href="#support-safari-percentages">Safari percent rounding</a></li>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<li><a href="#js-programmatic-api">Programmatic API</a></li>
|
<li><a href="#js-programmatic-api">Programmatic API</a></li>
|
||||||
<li><a href="#js-noconflict">No conflict</a></li>
|
<li><a href="#js-noconflict">No conflict</a></li>
|
||||||
<li><a href="#js-events">Events</a></li>
|
<li><a href="#js-events">Events</a></li>
|
||||||
|
<li><a href="#js-disabled">When JavaScript is disabled</a></li>
|
||||||
<li><a href="#callout-third-party-libs">Third-party libraries</a></li>
|
<li><a href="#callout-third-party-libs">Third-party libraries</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -64,8 +65,10 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="#buttons">Button</a>
|
<a href="#buttons">Button</a>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li><a href="#buttons-examples">Examples</a></li>
|
<li><a href="#buttons-stateful">Stateful</a></li>
|
||||||
<li><a href="#buttons-usage">Usage</a></li>
|
<li><a href="#buttons-single-toggle">Single toggle</a></li>
|
||||||
|
<li><a href="#buttons-checkbox-radio">Checkbox / Radio</a></li>
|
||||||
|
<li><a href="#buttons-methods">Methods</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
|
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
|
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
// NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.
|
// NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.
|
||||||
|
li
|
||||||
|
a(href='#import') Import
|
||||||
li
|
li
|
||||||
a(href='#less') Less components
|
a(href='#less') Less components
|
||||||
li
|
li
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="bs-docs-sidebar hidden-print" role="complementary">
|
<div class="bs-docs-sidebar hidden-print hidden-xs hidden-sm" role="complementary">
|
||||||
<ul class="nav bs-docs-sidenav">
|
<ul class="nav bs-docs-sidenav">
|
||||||
{% if page.slug == "getting-started" %}
|
{% if page.slug == "getting-started" %}
|
||||||
{% include nav/getting-started.html %}
|
{% include nav/getting-started.html %}
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -9,27 +9,6 @@
|
|||||||
/*
|
/*
|
||||||
* Bootstrap Documentation
|
* Bootstrap Documentation
|
||||||
* Special styles for presenting Bootstrap's documentation and code examples.
|
* Special styles for presenting Bootstrap's documentation and code examples.
|
||||||
*
|
|
||||||
* Table of contents:
|
|
||||||
*
|
|
||||||
* Scaffolding
|
|
||||||
* Main navigation
|
|
||||||
* Footer
|
|
||||||
* Social buttons
|
|
||||||
* Homepage
|
|
||||||
* Page headers
|
|
||||||
* Old docs callout
|
|
||||||
* Ads
|
|
||||||
* Side navigation
|
|
||||||
* Docs sections
|
|
||||||
* Callouts
|
|
||||||
* Grid styles
|
|
||||||
* Examples
|
|
||||||
* Code snippets (highlight)
|
|
||||||
* Responsive tests
|
|
||||||
* Glyphicons
|
|
||||||
* Customizer
|
|
||||||
* Miscellaneous
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -466,16 +445,6 @@ body {
|
|||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Featured sites */
|
|
||||||
.bs-docs-featured-sites {
|
|
||||||
margin-right: -1px;
|
|
||||||
margin-left: -1px;
|
|
||||||
}
|
|
||||||
.bs-docs-featured-sites .col-sm-3 {
|
|
||||||
padding-right: 1px;
|
|
||||||
padding-left: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 480px) {
|
@media (min-width: 480px) {
|
||||||
.bs-docs-featurette .img-responsive {
|
.bs-docs-featurette .img-responsive {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
@@ -494,6 +463,30 @@ body {
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
.bs-docs-featurette .img-responsive {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Featured sites
|
||||||
|
*
|
||||||
|
* Homepage thumbnails from the Expo.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.bs-docs-featured-sites {
|
||||||
|
margin-right: -1px;
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
.bs-docs-featured-sites .col-xs-6 {
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
.bs-docs-featured-sites .img-responsive {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
.bs-docs-featured-sites .col-sm-3:first-child img {
|
.bs-docs-featured-sites .col-sm-3:first-child img {
|
||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
@@ -502,9 +495,33 @@ body {
|
|||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.bs-docs-featurette .img-responsive {
|
|
||||||
margin-top: 0;
|
/*
|
||||||
|
* Examples
|
||||||
|
*
|
||||||
|
* Linked docs examples.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.bs-examples .thumbnail {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.bs-examples h4 {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.bs-examples p {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.bs-examples {
|
||||||
|
margin-right: -10px;
|
||||||
|
margin-left: -10px;
|
||||||
|
}
|
||||||
|
.bs-examples > [class^="col-"] {
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -843,7 +860,6 @@ h1[id] {
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding: 45px 15px 15px;
|
padding: 45px 15px 15px;
|
||||||
margin: 0 -15px 15px;
|
margin: 0 -15px 15px;
|
||||||
background-color: #fafafa;
|
|
||||||
border-color: #e5e5e5 #eee #eee;
|
border-color: #e5e5e5 #eee #eee;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px 0;
|
border-width: 1px 0;
|
||||||
@@ -857,7 +873,7 @@ h1[id] {
|
|||||||
left: 15px;
|
left: 15px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #bbb;
|
color: #959595;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
content: "Example";
|
content: "Example";
|
||||||
@@ -890,6 +906,9 @@ h1[id] {
|
|||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
}
|
}
|
||||||
|
.bs-example-standalone {
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Undo width of container */
|
/* Undo width of container */
|
||||||
@@ -1124,7 +1143,6 @@ h1[id] {
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
word-wrap: nowrap;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
@@ -1359,6 +1377,33 @@ h1[id] {
|
|||||||
box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
|
box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bs-dropzone {
|
||||||
|
position: relative;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #777;
|
||||||
|
text-align: center;
|
||||||
|
border: 2px dashed #eee;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.bs-dropzone h2 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.bs-dropzone hr {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
.bs-dropzone .lead {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
/*.bs-dropzone*/ #import-manual-trigger {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.bs-dropzone p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Brand guidelines
|
* Brand guidelines
|
||||||
@@ -1436,34 +1481,6 @@ h1[id] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Miscellaneous
|
|
||||||
*
|
|
||||||
* Odds and ends for optimum docs display.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Examples gallery: space out content better */
|
|
||||||
.bs-examples .thumbnail {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.bs-examples h4 {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.bs-examples p {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Pseudo :focus state for showing how it looks in the docs */
|
|
||||||
#focusedInput {
|
|
||||||
border-color: rgb(204,204,204); /* Restate unfocused value to make CSSLint happy that there's a pre-CSS3 fallback*/
|
|
||||||
border-color: rgba(82,168,236,.8);
|
|
||||||
outline: 0;
|
|
||||||
outline: thin dotted \9; /* IE6-9 */
|
|
||||||
-webkit-box-shadow: 0 0 8px rgba(82,168,236,.6);
|
|
||||||
box-shadow: 0 0 8px rgba(82,168,236,.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ZeroClipboard styles
|
* ZeroClipboard styles
|
||||||
*/
|
*/
|
||||||
@@ -1497,3 +1514,20 @@ h1[id] {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Miscellaneous
|
||||||
|
*
|
||||||
|
* Odds and ends for optimum docs display.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Pseudo :focus state for showing how it looks in the docs */
|
||||||
|
#focusedInput {
|
||||||
|
border-color: rgb(204,204,204); /* Restate unfocused value to make CSSLint happy that there's a pre-CSS3 fallback*/
|
||||||
|
border-color: rgba(82,168,236,.8);
|
||||||
|
outline: 0;
|
||||||
|
outline: thin dotted \9; /* IE6-9 */
|
||||||
|
-webkit-box-shadow: 0 0 8px rgba(82,168,236,.6);
|
||||||
|
box-shadow: 0 0 8px rgba(82,168,236,.6);
|
||||||
|
}
|
||||||
Vendored
-14
File diff suppressed because one or more lines are too long
Vendored
-5
File diff suppressed because one or more lines are too long
Vendored
+10
-10
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -21,4 +21,4 @@ var Holder=Holder||{};!function(a,b){function c(a,b,c){b=parseInt(b,10),a=parseI
|
|||||||
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
|
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
|
||||||
* details, see http://creativecommons.org/licenses/by/3.0/.
|
* details, see http://creativecommons.org/licenses/by/3.0/.
|
||||||
*/
|
*/
|
||||||
!function(a){"use strict";a(function(){var b=a(window),c=a(document.body);c.scrollspy({target:".bs-docs-sidebar"}),b.on("load",function(){c.scrollspy("refresh")}),a(".bs-docs-container [href=#]").click(function(a){a.preventDefault()}),setTimeout(function(){var b=a(".bs-docs-sidebar");b.affix({offset:{top:function(){var c=b.offset().top,d=parseInt(b.children(0).css("margin-top"),10),e=a(".bs-docs-nav").height();return this.top=c-e-d},bottom:function(){return this.bottom=a(".bs-docs-footer").outerHeight(!0)}}})},100),setTimeout(function(){a(".bs-top").affix()},100),function(){var b=a("#bs-theme-stylesheet"),c=a(".bs-docs-theme-toggle");c.click(function(){var a=b.attr("href");a&&0!==a.indexOf("data")?(b.attr("href",""),c.text("Preview theme")):(b.attr("href",b.attr("data-href")),c.text("Disable theme preview"))})}(),a(".tooltip-demo").tooltip({selector:'[data-toggle="tooltip"]',container:"body"}),a(".tooltip-test").tooltip(),a(".popover-test").popover(),a(".bs-docs-navbar").tooltip({selector:'a[data-toggle="tooltip"]',container:".bs-docs-navbar .nav"}),a(".bs-docs-popover").popover(),a("#loading-example-btn").click(function(){var b=a(this);b.button("loading"),setTimeout(function(){b.button("reset")},3e3)}),ZeroClipboard.config({moviePath:"/assets/flash/ZeroClipboard.swf",hoverClass:"btn-clipboard-hover"}),a(".highlight").each(function(){var b=a(this),c=b.prev(),d='<div class="zero-clipboard"><span class="btn-clipboard">Copy</span></div>';c.hasClass("bs-example")?c.before(d.replace(/btn-clipboard/,"btn-clipboard with-example")):b.before(d)});var d=new ZeroClipboard(a(".btn-clipboard")),e=a("#global-zeroclipboard-html-bridge");d.on("load",function(){e.data("placement","top").attr("title","Copy to clipboard").tooltip()}),d.on("dataRequested",function(b){var c=a(this).parent().nextAll(".highlight").first();b.setText(c.text())}),d.on("complete",function(){e.attr("title","Copied!").tooltip("fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("fixTitle")}),d.on("noflash wrongflash",function(){e.attr("title","Flash required").tooltip("fixTitle").tooltip("show")})})}(jQuery);
|
!function(a){"use strict";a(function(){var b=a(window),c=a(document.body);c.scrollspy({target:".bs-docs-sidebar"}),b.on("load",function(){c.scrollspy("refresh")}),a(".bs-docs-container [href=#]").click(function(a){a.preventDefault()}),setTimeout(function(){var b=a(".bs-docs-sidebar");b.affix({offset:{top:function(){var c=b.offset().top,d=parseInt(b.children(0).css("margin-top"),10),e=a(".bs-docs-nav").height();return this.top=c-e-d},bottom:function(){return this.bottom=a(".bs-docs-footer").outerHeight(!0)}}})},100),setTimeout(function(){a(".bs-top").affix()},100),function(){var b=a("#bs-theme-stylesheet"),c=a(".bs-docs-theme-toggle"),d=function(){b.attr("href",b.attr("data-href")),c.text("Disable theme preview"),localStorage.setItem("previewTheme",!0)};localStorage.getItem("previewTheme")&&d(),c.click(function(){var a=b.attr("href");a&&0!==a.indexOf("data")?(b.attr("href",""),c.text("Preview theme"),localStorage.removeItem("previewTheme")):d()})}(),a(".tooltip-demo").tooltip({selector:'[data-toggle="tooltip"]',container:"body"}),a(".popover-demo").popover({selector:'[data-toggle="popover"]',container:"body"}),a(".tooltip-test").tooltip(),a(".popover-test").popover(),a(".bs-docs-popover").popover(),a("#loading-example-btn").click(function(){var b=a(this);b.button("loading"),setTimeout(function(){b.button("reset")},3e3)}),ZeroClipboard.config({moviePath:"/assets/flash/ZeroClipboard.swf",hoverClass:"btn-clipboard-hover"}),a(".highlight").each(function(){var b=a(this),c=b.prev(),d='<div class="zero-clipboard"><span class="btn-clipboard">Copy</span></div>';c.hasClass("bs-example")?c.before(d.replace(/btn-clipboard/,"btn-clipboard with-example")):b.before(d)});var d=new ZeroClipboard(a(".btn-clipboard")),e=a("#global-zeroclipboard-html-bridge");d.on("load",function(){e.data("placement","top").attr("title","Copy to clipboard").tooltip()}),d.on("dataRequested",function(b){var c=a(this).parent().nextAll(".highlight").first();b.setText(c.text())}),d.on("complete",function(){e.attr("title","Copied!").tooltip("fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("fixTitle")}),d.on("noflash wrongflash",function(){e.attr("title","Flash required").tooltip("fixTitle").tooltip("show")})})}(jQuery);
|
||||||
Vendored
+3
-3
File diff suppressed because one or more lines are too long
@@ -27,13 +27,11 @@
|
|||||||
$body.scrollspy('refresh')
|
$body.scrollspy('refresh')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// Kill links
|
// Kill links
|
||||||
$('.bs-docs-container [href=#]').click(function (e) {
|
$('.bs-docs-container [href=#]').click(function (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// Sidenav affixing
|
// Sidenav affixing
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var $sideBar = $('.bs-docs-sidebar')
|
var $sideBar = $('.bs-docs-sidebar')
|
||||||
@@ -62,15 +60,25 @@
|
|||||||
;(function () {
|
;(function () {
|
||||||
var stylesheetLink = $('#bs-theme-stylesheet')
|
var stylesheetLink = $('#bs-theme-stylesheet')
|
||||||
var themeBtn = $('.bs-docs-theme-toggle')
|
var themeBtn = $('.bs-docs-theme-toggle')
|
||||||
|
|
||||||
|
var activateTheme = function () {
|
||||||
|
stylesheetLink.attr('href', stylesheetLink.attr('data-href'))
|
||||||
|
themeBtn.text('Disable theme preview')
|
||||||
|
localStorage.setItem('previewTheme', true)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (localStorage.getItem('previewTheme')) {
|
||||||
|
activateTheme()
|
||||||
|
}
|
||||||
|
|
||||||
themeBtn.click(function () {
|
themeBtn.click(function () {
|
||||||
var href = stylesheetLink.attr('href');
|
var href = stylesheetLink.attr('href')
|
||||||
if (!href || href.indexOf('data') === 0) {
|
if (!href || href.indexOf('data') === 0) {
|
||||||
stylesheetLink.attr('href', stylesheetLink.attr('data-href'))
|
activateTheme()
|
||||||
themeBtn.text('Disable theme preview')
|
} else {
|
||||||
}
|
|
||||||
else {
|
|
||||||
stylesheetLink.attr('href', '')
|
stylesheetLink.attr('href', '')
|
||||||
themeBtn.text('Preview theme')
|
themeBtn.text('Preview theme')
|
||||||
|
localStorage.removeItem('previewTheme')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})();
|
})();
|
||||||
@@ -80,16 +88,16 @@
|
|||||||
selector: '[data-toggle="tooltip"]',
|
selector: '[data-toggle="tooltip"]',
|
||||||
container: 'body'
|
container: 'body'
|
||||||
})
|
})
|
||||||
|
$('.popover-demo').popover({
|
||||||
|
selector: '[data-toggle="popover"]',
|
||||||
|
container: 'body'
|
||||||
|
})
|
||||||
|
|
||||||
|
// Demos within modals
|
||||||
$('.tooltip-test').tooltip()
|
$('.tooltip-test').tooltip()
|
||||||
$('.popover-test').popover()
|
$('.popover-test').popover()
|
||||||
|
|
||||||
$('.bs-docs-navbar').tooltip({
|
// Popover demos
|
||||||
selector: 'a[data-toggle="tooltip"]',
|
|
||||||
container: '.bs-docs-navbar .nav'
|
|
||||||
})
|
|
||||||
|
|
||||||
// Default popover demo
|
|
||||||
$('.bs-docs-popover').popover()
|
$('.bs-docs-popover').popover()
|
||||||
|
|
||||||
// Button state demo
|
// Button state demo
|
||||||
@@ -11,11 +11,14 @@
|
|||||||
window.onload = function () { // wait for load in a dumb way because B-0
|
window.onload = function () { // wait for load in a dumb way because B-0
|
||||||
'use strict';
|
'use strict';
|
||||||
var cw = '/*!\n' +
|
var cw = '/*!\n' +
|
||||||
' * Bootstrap v3.1.1 (http://getbootstrap.com)\n' +
|
' * Bootstrap v3.2.0 (http://getbootstrap.com)\n' +
|
||||||
' * Copyright 2011-2014 Twitter, Inc.\n' +
|
' * Copyright 2011-2014 Twitter, Inc.\n' +
|
||||||
' * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n' +
|
' * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n' +
|
||||||
' */\n\n'
|
' */\n\n'
|
||||||
|
|
||||||
|
var supportsFile = (window.File && window.FileReader && window.FileList && window.Blob)
|
||||||
|
var importDropTarget = $('#import-drop-target')
|
||||||
|
|
||||||
function showError(msg, err) {
|
function showError(msg, err) {
|
||||||
$('<div id="bsCustomizerAlert" class="bs-customizer-alert">' +
|
$('<div id="bsCustomizerAlert" class="bs-customizer-alert">' +
|
||||||
'<div class="container">' +
|
'<div class="container">' +
|
||||||
@@ -46,6 +49,11 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showAlert(type, msg, insertAfter) {
|
||||||
|
$('<div class="alert alert-' + type + '">' + msg + '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>')
|
||||||
|
.insertAfter(insertAfter)
|
||||||
|
}
|
||||||
|
|
||||||
function getQueryParam(key) {
|
function getQueryParam(key) {
|
||||||
key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, '\\$&') // escape RegEx meta chars
|
key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, '\\$&') // escape RegEx meta chars
|
||||||
var match = location.search.match(new RegExp('[?&]' + key + '=([^&]+)(&|$)'))
|
var match = location.search.match(new RegExp('[?&]' + key + '=([^&]+)(&|$)'))
|
||||||
@@ -65,6 +73,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'https://api.github.com/gists',
|
url: 'https://api.github.com/gists',
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
contentType: 'application/json; charset=UTF-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: JSON.stringify(data)
|
data: JSON.stringify(data)
|
||||||
})
|
})
|
||||||
@@ -106,6 +115,24 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateCustomizerFromJson(data) {
|
||||||
|
if (data.js) {
|
||||||
|
$('#plugin-section input').each(function () {
|
||||||
|
$(this).prop('checked', ~$.inArray(this.value, data.js))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (data.css) {
|
||||||
|
$('#less-section input').each(function () {
|
||||||
|
$(this).prop('checked', ~$.inArray(this.value, data.css))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (data.vars) {
|
||||||
|
for (var i in data.vars) {
|
||||||
|
$('input[data-var="' + i + '"]').val(data.vars[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function parseUrl() {
|
function parseUrl() {
|
||||||
var id = getQueryParam('id')
|
var id = getQueryParam('id')
|
||||||
|
|
||||||
@@ -118,21 +145,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
})
|
})
|
||||||
.success(function (result) {
|
.success(function (result) {
|
||||||
var data = JSON.parse(result.files['config.json'].content)
|
var data = JSON.parse(result.files['config.json'].content)
|
||||||
if (data.js) {
|
updateCustomizerFromJson(data)
|
||||||
$('#plugin-section input').each(function () {
|
|
||||||
$(this).prop('checked', ~$.inArray(this.value, data.js))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (data.css) {
|
|
||||||
$('#less-section input').each(function () {
|
|
||||||
$(this).prop('checked', ~$.inArray(this.value, data.css))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (data.vars) {
|
|
||||||
for (var i in data.vars) {
|
|
||||||
$('input[data-var="' + i + '"]').val(data.vars[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.error(function (err) {
|
.error(function (err) {
|
||||||
showError('Error fetching bootstrap config file', err)
|
showError('Error fetching bootstrap config file', err)
|
||||||
@@ -233,7 +246,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
if (('variables.less' === filename) && vars) lessSource += generateCustomLess(vars)
|
if (('variables.less' === filename) && vars) lessSource += generateCustomLess(vars)
|
||||||
})
|
})
|
||||||
|
|
||||||
lessSource = lessSource.replace(/@import[^\n]*/gi, '') //strip any imports
|
lessSource = lessSource.replace(/@import[^\n]*/gi, '') // strip any imports
|
||||||
return lessSource
|
return lessSource
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,6 +337,61 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeImportAlerts() {
|
||||||
|
importDropTarget.nextAll('.alert').remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleConfigFileSelect(e) {
|
||||||
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
|
var file = (e.originalEvent.hasOwnProperty('dataTransfer')) ? e.originalEvent.dataTransfer.files[0] : e.originalEvent.target.files[0]
|
||||||
|
|
||||||
|
if (!file.type.match('application/json')) {
|
||||||
|
return showAlert('danger', '<strong>Ruh roh.</strong> We can only read <code>.json</code> files. Please try again.', importDropTarget)
|
||||||
|
}
|
||||||
|
|
||||||
|
var reader = new FileReader()
|
||||||
|
|
||||||
|
reader.onload = (function () {
|
||||||
|
return function (e) {
|
||||||
|
var text = e.target.result
|
||||||
|
|
||||||
|
try {
|
||||||
|
var json = JSON.parse(text)
|
||||||
|
|
||||||
|
if (typeof json != 'object') {
|
||||||
|
throw new Error('JSON data from config file is not an object.')
|
||||||
|
}
|
||||||
|
|
||||||
|
updateCustomizerFromJson(json)
|
||||||
|
showAlert('success', '<strong>Woohoo!</strong> Your configuration was successfully uploaded. Tweak your settings, then hit Download.', importDropTarget)
|
||||||
|
} catch (err) {
|
||||||
|
return showAlert('danger', '<strong>Shucks.</strong> We can only read valid <code>.json</code> files. Please try again.', importDropTarget)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})(file)
|
||||||
|
|
||||||
|
reader.readAsText(file)
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleConfigDragOver(e) {
|
||||||
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
|
e.originalEvent.dataTransfer.dropEffect = 'copy'
|
||||||
|
|
||||||
|
removeImportAlerts()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (supportsFile) {
|
||||||
|
importDropTarget
|
||||||
|
.on('dragover', handleConfigDragOver)
|
||||||
|
.on('drop', handleConfigFileSelect)
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#import-file-select').on('select', handleConfigFileSelect)
|
||||||
|
$('#import-manual-trigger').on('click', removeImportAlerts)
|
||||||
|
|
||||||
var inputsComponent = $('#less-section input')
|
var inputsComponent = $('#less-section input')
|
||||||
var inputsPlugin = $('#plugin-section input')
|
var inputsPlugin = $('#plugin-section input')
|
||||||
var inputsVariables = $('#less-variables-section input')
|
var inputsVariables = $('#less-variables-section input')
|
||||||
@@ -410,7 +478,8 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
{ type: 'image/svg+xml;charset=utf-8' }
|
{ type: 'image/svg+xml;charset=utf-8' }
|
||||||
)
|
)
|
||||||
var objectUrl = url.createObjectURL(svg);
|
var objectUrl = url.createObjectURL(svg);
|
||||||
if (/^blob:/.exec(objectUrl) === null) {
|
|
||||||
|
if (/^blob:/.exec(objectUrl) === null || !supportsFile) {
|
||||||
// `URL.createObjectURL` created a URL that started with something other
|
// `URL.createObjectURL` created a URL that started with something other
|
||||||
// than "blob:", which means it has been polyfilled and is not supported by
|
// than "blob:", which means it has been polyfilled and is not supported by
|
||||||
// this browser.
|
// this browser.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/* Blob.js
|
/* Blob.js
|
||||||
* A Blob implementation.
|
* A Blob implementation.
|
||||||
* 2014-05-31
|
* 2014-07-01
|
||||||
*
|
*
|
||||||
* By Eli Grey, http://eligrey.com
|
* By Eli Grey, http://eligrey.com
|
||||||
* By Devin Samarin, https://github.com/eboyjr
|
* By Devin Samarin, https://github.com/eboyjr
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
return FakeBlobBuilder;
|
return FakeBlobBuilder;
|
||||||
}(view));
|
}(view));
|
||||||
|
|
||||||
view.Blob = function Blob(blobParts, options) {
|
view.Blob = function(blobParts, options) {
|
||||||
var type = options ? (options.type || "") : "";
|
var type = options ? (options.type || "") : "";
|
||||||
var builder = new BlobBuilder();
|
var builder = new BlobBuilder();
|
||||||
if (blobParts) {
|
if (blobParts) {
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
/* FileSaver.js
|
/* FileSaver.js
|
||||||
* A saveAs() FileSaver implementation.
|
* A saveAs() FileSaver implementation.
|
||||||
* 2014-05-27
|
* 2014-07-21
|
||||||
*
|
*
|
||||||
* By Eli Grey, http://eligrey.com
|
* By Eli Grey, http://eligrey.com
|
||||||
* License: X11/MIT
|
* License: X11/MIT
|
||||||
* See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
|
* See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*global self */
|
/*global self */
|
||||||
@@ -49,18 +49,17 @@ var saveAs = saveAs
|
|||||||
}
|
}
|
||||||
, force_saveable_type = "application/octet-stream"
|
, force_saveable_type = "application/octet-stream"
|
||||||
, fs_min_size = 0
|
, fs_min_size = 0
|
||||||
, deletion_queue = []
|
// See https://code.google.com/p/chromium/issues/detail?id=375297#c7 for
|
||||||
, process_deletion_queue = function() {
|
// the reasoning behind the timeout and revocation flow
|
||||||
var i = deletion_queue.length;
|
, arbitrary_revoke_timeout = 10
|
||||||
while (i--) {
|
, revoke = function(file) {
|
||||||
var file = deletion_queue[i];
|
setTimeout(function() {
|
||||||
if (typeof file === "string") { // file is an object URL
|
if (typeof file === "string") { // file is an object URL
|
||||||
get_URL().revokeObjectURL(file);
|
get_URL().revokeObjectURL(file);
|
||||||
} else { // file is a File
|
} else { // file is a File
|
||||||
file.remove();
|
file.remove();
|
||||||
}
|
}
|
||||||
}
|
}, arbitrary_revoke_timeout);
|
||||||
deletion_queue.length = 0; // clear queue
|
|
||||||
}
|
}
|
||||||
, dispatch = function(filesaver, event_types, event) {
|
, dispatch = function(filesaver, event_types, event) {
|
||||||
event_types = [].concat(event_types);
|
event_types = [].concat(event_types);
|
||||||
@@ -84,11 +83,6 @@ var saveAs = saveAs
|
|||||||
, blob_changed = false
|
, blob_changed = false
|
||||||
, object_url
|
, object_url
|
||||||
, target_view
|
, target_view
|
||||||
, get_object_url = function() {
|
|
||||||
var object_url = get_URL().createObjectURL(blob);
|
|
||||||
deletion_queue.push(object_url);
|
|
||||||
return object_url;
|
|
||||||
}
|
|
||||||
, dispatch_all = function() {
|
, dispatch_all = function() {
|
||||||
dispatch(filesaver, "writestart progress write writeend".split(" "));
|
dispatch(filesaver, "writestart progress write writeend".split(" "));
|
||||||
}
|
}
|
||||||
@@ -96,15 +90,16 @@ var saveAs = saveAs
|
|||||||
, fs_error = function() {
|
, fs_error = function() {
|
||||||
// don't create more object URLs than needed
|
// don't create more object URLs than needed
|
||||||
if (blob_changed || !object_url) {
|
if (blob_changed || !object_url) {
|
||||||
object_url = get_object_url(blob);
|
object_url = get_URL().createObjectURL(blob);
|
||||||
}
|
}
|
||||||
if (target_view) {
|
if (target_view) {
|
||||||
target_view.location.href = object_url;
|
target_view.location.href = object_url;
|
||||||
} else {
|
} else {
|
||||||
window.open(object_url, "_blank");
|
view.open(object_url, "_blank");
|
||||||
}
|
}
|
||||||
filesaver.readyState = filesaver.DONE;
|
filesaver.readyState = filesaver.DONE;
|
||||||
dispatch_all();
|
dispatch_all();
|
||||||
|
revoke(object_url);
|
||||||
}
|
}
|
||||||
, abortable = function(func) {
|
, abortable = function(func) {
|
||||||
return function() {
|
return function() {
|
||||||
@@ -121,17 +116,20 @@ var saveAs = saveAs
|
|||||||
name = "download";
|
name = "download";
|
||||||
}
|
}
|
||||||
if (can_use_save_link) {
|
if (can_use_save_link) {
|
||||||
object_url = get_object_url(blob);
|
object_url = get_URL().createObjectURL(blob);
|
||||||
save_link.href = object_url;
|
save_link.href = object_url;
|
||||||
save_link.download = name;
|
save_link.download = name;
|
||||||
click(save_link);
|
click(save_link);
|
||||||
filesaver.readyState = filesaver.DONE;
|
filesaver.readyState = filesaver.DONE;
|
||||||
dispatch_all();
|
dispatch_all();
|
||||||
|
revoke(object_url);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Object and web filesystem URLs have a problem saving in Google Chrome when
|
// Object and web filesystem URLs have a problem saving in Google Chrome when
|
||||||
// viewed in a tab, so I force save with application/octet-stream
|
// viewed in a tab, so I force save with application/octet-stream
|
||||||
// http://code.google.com/p/chromium/issues/detail?id=91158
|
// http://code.google.com/p/chromium/issues/detail?id=91158
|
||||||
|
// Update: Google errantly closed 91158, I submitted it again:
|
||||||
|
// https://code.google.com/p/chromium/issues/detail?id=389642
|
||||||
if (view.chrome && type && type !== force_saveable_type) {
|
if (view.chrome && type && type !== force_saveable_type) {
|
||||||
slice = blob.slice || blob.webkitSlice;
|
slice = blob.slice || blob.webkitSlice;
|
||||||
blob = slice.call(blob, 0, blob.size, force_saveable_type);
|
blob = slice.call(blob, 0, blob.size, force_saveable_type);
|
||||||
@@ -158,9 +156,9 @@ var saveAs = saveAs
|
|||||||
file.createWriter(abortable(function(writer) {
|
file.createWriter(abortable(function(writer) {
|
||||||
writer.onwriteend = function(event) {
|
writer.onwriteend = function(event) {
|
||||||
target_view.location.href = file.toURL();
|
target_view.location.href = file.toURL();
|
||||||
deletion_queue.push(file);
|
|
||||||
filesaver.readyState = filesaver.DONE;
|
filesaver.readyState = filesaver.DONE;
|
||||||
dispatch(filesaver, "writeend", event);
|
dispatch(filesaver, "writeend", event);
|
||||||
|
revoke(file);
|
||||||
};
|
};
|
||||||
writer.onerror = function() {
|
writer.onerror = function() {
|
||||||
var error = writer.error;
|
var error = writer.error;
|
||||||
@@ -217,11 +215,6 @@ var saveAs = saveAs
|
|||||||
FS_proto.onwriteend =
|
FS_proto.onwriteend =
|
||||||
null;
|
null;
|
||||||
|
|
||||||
view.addEventListener("unload", process_deletion_queue, false);
|
|
||||||
saveAs.unload = function() {
|
|
||||||
process_deletion_queue();
|
|
||||||
view.removeEventListener("unload", process_deletion_queue, false);
|
|
||||||
};
|
|
||||||
return saveAs;
|
return saveAs;
|
||||||
}(
|
}(
|
||||||
typeof self !== "undefined" && self
|
typeof self !== "undefined" && self
|
||||||
Vendored
+14
File diff suppressed because one or more lines are too long
Vendored
+5
File diff suppressed because one or more lines are too long
+16
-10
@@ -23,6 +23,12 @@ lead: "A list of the browser bugs that Bootstrap is currently grappling with."
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Internet Explorer 11</td>
|
||||||
|
<td>Hovered element still remains in <code>:hover</code> state after scrolling away</td>
|
||||||
|
<td><a href="https://connect.microsoft.com/IE/feedback/details/926665/ie-11-hovering-over-an-element-and-then-scrolling-without-moving-the-mouse-pointer-leaves-the-element-in-hover-state">IE bug #926665</a></td>
|
||||||
|
<td><a href="https://github.com/twbs/bootstrap/issues/14211">#14211</a></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Firefox</td>
|
<td>Firefox</td>
|
||||||
<td><code>.table-bordered</code> with an empty <code><tbody></code> is missing borders</td>
|
<td><code>.table-bordered</code> with an empty <code><tbody></code> is missing borders</td>
|
||||||
@@ -42,10 +48,10 @@ lead: "A list of the browser bugs that Bootstrap is currently grappling with."
|
|||||||
<td><a href="https://github.com/twbs/bootstrap/issues/10690">#10690</a></td>
|
<td><a href="https://github.com/twbs/bootstrap/issues/10690">#10690</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Firefox <strong>≤27</strong></td>
|
<td>Firefox</td>
|
||||||
<td><code>position: relative;</code> doesn't work inside tables</td>
|
<td>Java applets that are descendants of elements with forced hardware acceleration using <code>translate3d(0,0,0)</code> are invisible on Windows</td>
|
||||||
<td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=63895">Mozilla bug #63895</a></td>
|
<td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1048279">Mozilla bug #1048279</a></td>
|
||||||
<td><a href="https://github.com/twbs/bootstrap/issues/12467">#12467</a></td>
|
<td><a href="https://github.com/twbs/bootstrap/issues/14124">#14124</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Chrome</td>
|
<td>Chrome</td>
|
||||||
@@ -53,12 +59,6 @@ lead: "A list of the browser bugs that Bootstrap is currently grappling with."
|
|||||||
<td><a href="https://code.google.com/p/chromium/issues/detail?id=337668">Chromium issue #337668</a></td>
|
<td><a href="https://code.google.com/p/chromium/issues/detail?id=337668">Chromium issue #337668</a></td>
|
||||||
<td><a href="https://github.com/twbs/bootstrap/issues/8350">#8350</a>, <a href="https://github.com/necolas/normalize.css/issues/283">Normalize #283</a></td>
|
<td><a href="https://github.com/twbs/bootstrap/issues/8350">#8350</a>, <a href="https://github.com/necolas/normalize.css/issues/283">Normalize #283</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>Chrome</td>
|
|
||||||
<td>Navbar rendering problem on Windows after several clicks</td>
|
|
||||||
<td><a href="https://code.google.com/p/chromium/issues/detail?id=272750">Chromium issue #272750</a>, <a href="https://bugs.webkit.org/show_bug.cgi?id=119793">WebKit bug #119793</a></td>
|
|
||||||
<td><a href="https://github.com/twbs/bootstrap/issues/9226">#9226</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Chrome</td>
|
<td>Chrome</td>
|
||||||
<td><code>display: table;</code> within <code>display: block;</code> forces sibling content to new line</td>
|
<td><code>display: table;</code> within <code>display: block;</code> forces sibling content to new line</td>
|
||||||
@@ -95,6 +95,12 @@ lead: "A list of the browser bugs that Bootstrap is currently grappling with."
|
|||||||
<td><a href="https://code.google.com/p/chromium/issues/detail?id=346051">Chromium issue #346051</a></td>
|
<td><a href="https://code.google.com/p/chromium/issues/detail?id=346051">Chromium issue #346051</a></td>
|
||||||
<td><a href="https://github.com/twbs/bootstrap/issues/12548">#12548</a></td>
|
<td><a href="https://github.com/twbs/bootstrap/issues/12548">#12548</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Chrome</td>
|
||||||
|
<td><code><input type="password"></code> sporadically causes bad widths on floated elements</td>
|
||||||
|
<td><a href="https://code.google.com/p/chromium/issues/detail?id=377346">Chrome issue #377346</a></td>
|
||||||
|
<td><a href="https://github.com/twbs/bootstrap/issues/13892">#13892</a></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Safari</td>
|
<td>Safari</td>
|
||||||
<td>Insufficient CSS percentage precision</td>
|
<td>Insufficient CSS percentage precision</td>
|
||||||
|
|||||||
+12
-2
@@ -12,6 +12,7 @@ lead: Customize Bootstrap's components, Less variables, and jQuery plugins to ge
|
|||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<style>
|
<style>
|
||||||
.bs-customizer,
|
.bs-customizer,
|
||||||
|
.bs-customizer-import,
|
||||||
.bs-docs-sidebar {
|
.bs-docs-sidebar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -23,6 +24,17 @@ lead: Customize Bootstrap's components, Less variables, and jQuery plugins to ge
|
|||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<!-- Customizer form -->
|
<!-- Customizer form -->
|
||||||
|
|
||||||
|
<div class="bs-docs-section bs-customizer-import">
|
||||||
|
<div id="import-drop-target" class="bs-dropzone">
|
||||||
|
<h2>✍</h2>
|
||||||
|
<p class="lead">Have an existing configuration? Upload your <code>config.json</code> to import it.</p>
|
||||||
|
<p>Drag and drop here, or <label id="import-manual-trigger" class="btn-link">manually upload<input type="file" id="import-file-select" class="hidden"></label>.</p>
|
||||||
|
<hr>
|
||||||
|
<p><strong>Don't have one?</strong> That's okay—just start customizing the fields below.</p>
|
||||||
|
</div>
|
||||||
|
</div><!-- /import -->
|
||||||
|
|
||||||
<form class="bs-customizer" role="form">
|
<form class="bs-customizer" role="form">
|
||||||
<div class="bs-docs-section" id="less-section">
|
<div class="bs-docs-section" id="less-section">
|
||||||
<button class="btn btn-default toggle" type="button">Toggle all</button>
|
<button class="btn btn-default toggle" type="button">Toggle all</button>
|
||||||
@@ -358,8 +370,6 @@ lead: Customize Bootstrap's components, Less variables, and jQuery plugins to ge
|
|||||||
{% include customizer-variables.html %}
|
{% include customizer-variables.html %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="bs-docs-section">
|
<div class="bs-docs-section">
|
||||||
<h1 id="download" class="page-header">Download</h1>
|
<h1 id="download" class="page-header">Download</h1>
|
||||||
|
|
||||||
|
|||||||
Vendored
+444
@@ -0,0 +1,444 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v3.2.0 (http://getbootstrap.com)
|
||||||
|
* Copyright 2011-2014 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
|
||||||
|
.btn-default,
|
||||||
|
.btn-primary,
|
||||||
|
.btn-success,
|
||||||
|
.btn-info,
|
||||||
|
.btn-warning,
|
||||||
|
.btn-danger {
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.btn-default:active,
|
||||||
|
.btn-primary:active,
|
||||||
|
.btn-success:active,
|
||||||
|
.btn-info:active,
|
||||||
|
.btn-warning:active,
|
||||||
|
.btn-danger:active,
|
||||||
|
.btn-default.active,
|
||||||
|
.btn-primary.active,
|
||||||
|
.btn-success.active,
|
||||||
|
.btn-info.active,
|
||||||
|
.btn-warning.active,
|
||||||
|
.btn-danger.active {
|
||||||
|
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||||
|
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||||
|
}
|
||||||
|
.btn:active,
|
||||||
|
.btn.active {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-default {
|
||||||
|
text-shadow: 0 1px 0 #fff;
|
||||||
|
background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
|
||||||
|
background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #dbdbdb;
|
||||||
|
border-color: #ccc;
|
||||||
|
}
|
||||||
|
.btn-default:hover,
|
||||||
|
.btn-default:focus {
|
||||||
|
background-color: #e0e0e0;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-default:active,
|
||||||
|
.btn-default.active {
|
||||||
|
background-color: #e0e0e0;
|
||||||
|
border-color: #dbdbdb;
|
||||||
|
}
|
||||||
|
.btn-default:disabled,
|
||||||
|
.btn-default[disabled] {
|
||||||
|
background-color: #e0e0e0;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-primary {
|
||||||
|
background-image: -webkit-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#2d6ca2));
|
||||||
|
background-image: linear-gradient(to bottom, #428bca 0%, #2d6ca2 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #2b669a;
|
||||||
|
}
|
||||||
|
.btn-primary:hover,
|
||||||
|
.btn-primary:focus {
|
||||||
|
background-color: #2d6ca2;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-primary:active,
|
||||||
|
.btn-primary.active {
|
||||||
|
background-color: #2d6ca2;
|
||||||
|
border-color: #2b669a;
|
||||||
|
}
|
||||||
|
.btn-primary:disabled,
|
||||||
|
.btn-primary[disabled] {
|
||||||
|
background-color: #2d6ca2;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-success {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641));
|
||||||
|
background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #3e8f3e;
|
||||||
|
}
|
||||||
|
.btn-success:hover,
|
||||||
|
.btn-success:focus {
|
||||||
|
background-color: #419641;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-success:active,
|
||||||
|
.btn-success.active {
|
||||||
|
background-color: #419641;
|
||||||
|
border-color: #3e8f3e;
|
||||||
|
}
|
||||||
|
.btn-success:disabled,
|
||||||
|
.btn-success[disabled] {
|
||||||
|
background-color: #419641;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-info {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
|
||||||
|
background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #28a4c9;
|
||||||
|
}
|
||||||
|
.btn-info:hover,
|
||||||
|
.btn-info:focus {
|
||||||
|
background-color: #2aabd2;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-info:active,
|
||||||
|
.btn-info.active {
|
||||||
|
background-color: #2aabd2;
|
||||||
|
border-color: #28a4c9;
|
||||||
|
}
|
||||||
|
.btn-info:disabled,
|
||||||
|
.btn-info[disabled] {
|
||||||
|
background-color: #2aabd2;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-warning {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316));
|
||||||
|
background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #e38d13;
|
||||||
|
}
|
||||||
|
.btn-warning:hover,
|
||||||
|
.btn-warning:focus {
|
||||||
|
background-color: #eb9316;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-warning:active,
|
||||||
|
.btn-warning.active {
|
||||||
|
background-color: #eb9316;
|
||||||
|
border-color: #e38d13;
|
||||||
|
}
|
||||||
|
.btn-warning:disabled,
|
||||||
|
.btn-warning[disabled] {
|
||||||
|
background-color: #eb9316;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.btn-danger {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a));
|
||||||
|
background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #b92c28;
|
||||||
|
}
|
||||||
|
.btn-danger:hover,
|
||||||
|
.btn-danger:focus {
|
||||||
|
background-color: #c12e2a;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
}
|
||||||
|
.btn-danger:active,
|
||||||
|
.btn-danger.active {
|
||||||
|
background-color: #c12e2a;
|
||||||
|
border-color: #b92c28;
|
||||||
|
}
|
||||||
|
.btn-danger:disabled,
|
||||||
|
.btn-danger[disabled] {
|
||||||
|
background-color: #c12e2a;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.thumbnail,
|
||||||
|
.img-thumbnail {
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.dropdown-menu > li > a:hover,
|
||||||
|
.dropdown-menu > li > a:focus {
|
||||||
|
background-color: #e8e8e8;
|
||||||
|
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||||
|
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.dropdown-menu > .active > a,
|
||||||
|
.dropdown-menu > .active > a:hover,
|
||||||
|
.dropdown-menu > .active > a:focus {
|
||||||
|
background-color: #357ebd;
|
||||||
|
background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #428bca 0%, #357ebd 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#357ebd));
|
||||||
|
background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.navbar-default {
|
||||||
|
background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8));
|
||||||
|
background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.navbar-default .navbar-nav > .open > a,
|
||||||
|
.navbar-default .navbar-nav > .active > a {
|
||||||
|
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f3f3f3 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #ebebeb 0%, #f3f3f3 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f3f3f3));
|
||||||
|
background-image: linear-gradient(to bottom, #ebebeb 0%, #f3f3f3 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff3f3f3', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.navbar-brand,
|
||||||
|
.navbar-nav > li > a {
|
||||||
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
|
||||||
|
}
|
||||||
|
.navbar-inverse {
|
||||||
|
background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222));
|
||||||
|
background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.navbar-inverse .navbar-nav > .open > a,
|
||||||
|
.navbar-inverse .navbar-nav > .active > a {
|
||||||
|
background-image: -webkit-linear-gradient(top, #222 0%, #282828 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #222 0%, #282828 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#222), to(#282828));
|
||||||
|
background-image: linear-gradient(to bottom, #222 0%, #282828 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff282828', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||||
|
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||||
|
}
|
||||||
|
.navbar-inverse .navbar-brand,
|
||||||
|
.navbar-inverse .navbar-nav > li > a {
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
|
||||||
|
}
|
||||||
|
.navbar-static-top,
|
||||||
|
.navbar-fixed-top,
|
||||||
|
.navbar-fixed-bottom {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.alert {
|
||||||
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
}
|
||||||
|
.alert-success {
|
||||||
|
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc));
|
||||||
|
background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #b2dba1;
|
||||||
|
}
|
||||||
|
.alert-info {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0));
|
||||||
|
background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #9acfea;
|
||||||
|
}
|
||||||
|
.alert-warning {
|
||||||
|
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0));
|
||||||
|
background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #f5e79e;
|
||||||
|
}
|
||||||
|
.alert-danger {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3));
|
||||||
|
background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #dca7a7;
|
||||||
|
}
|
||||||
|
.progress {
|
||||||
|
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5));
|
||||||
|
background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar {
|
||||||
|
background-image: -webkit-linear-gradient(top, #428bca 0%, #3071a9 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #428bca 0%, #3071a9 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#3071a9));
|
||||||
|
background-image: linear-gradient(to bottom, #428bca 0%, #3071a9 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-success {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44));
|
||||||
|
background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-info {
|
||||||
|
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5));
|
||||||
|
background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-warning {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f));
|
||||||
|
background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-danger {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c));
|
||||||
|
background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress-bar-striped {
|
||||||
|
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||||
|
}
|
||||||
|
.list-group {
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||||
|
}
|
||||||
|
.list-group-item.active,
|
||||||
|
.list-group-item.active:hover,
|
||||||
|
.list-group-item.active:focus {
|
||||||
|
text-shadow: 0 -1px 0 #3071a9;
|
||||||
|
background-image: -webkit-linear-gradient(top, #428bca 0%, #3278b3 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #428bca 0%, #3278b3 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#3278b3));
|
||||||
|
background-image: linear-gradient(to bottom, #428bca 0%, #3278b3 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #3278b3;
|
||||||
|
}
|
||||||
|
.panel {
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||||
|
}
|
||||||
|
.panel-default > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||||
|
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-primary > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #428bca 0%, #357ebd 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#357ebd));
|
||||||
|
background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-success > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6));
|
||||||
|
background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-info > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
|
||||||
|
background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-warning > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc));
|
||||||
|
background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.panel-danger > .panel-heading {
|
||||||
|
background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc));
|
||||||
|
background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.well {
|
||||||
|
background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||||
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5));
|
||||||
|
background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
border-color: #dcdcdc;
|
||||||
|
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||||
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||||
|
}
|
||||||
|
/*# sourceMappingURL=bootstrap-theme.css.map */
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+6324
File diff suppressed because it is too large
Load Diff
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2172
File diff suppressed because it is too large
Load Diff
Vendored
+3
-3
File diff suppressed because one or more lines are too long
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -171,5 +168,7 @@
|
|||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
<script src="../../assets/js/docs.min.js"></script>
|
<script src="../../assets/js/docs.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ body {
|
|||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
|
||||||
/* Navbar positioning foo */
|
/* Navbar positioning foo */
|
||||||
.navbar-wrapper {
|
.navbar-wrapper {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
|||||||
@@ -17,9 +17,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -35,10 +32,10 @@
|
|||||||
<div class="navbar-wrapper">
|
<div class="navbar-wrapper">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<div class="navbar navbar-inverse navbar-static-top" role="navigation">
|
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -66,7 +63,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -81,7 +78,7 @@
|
|||||||
<li data-target="#myCarousel" data-slide-to="1"></li>
|
<li data-target="#myCarousel" data-slide-to="1"></li>
|
||||||
<li data-target="#myCarousel" data-slide-to="2"></li>
|
<li data-target="#myCarousel" data-slide-to="2"></li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner" role="listbox">
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="First slide">
|
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="First slide">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -113,8 +110,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
|
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
|
||||||
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
||||||
|
<span class="sr-only">Previous</span>
|
||||||
|
</a>
|
||||||
|
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
|
||||||
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||||
|
<span class="sr-only">Next</span>
|
||||||
|
</a>
|
||||||
</div><!-- /.carousel -->
|
</div><!-- /.carousel -->
|
||||||
|
|
||||||
|
|
||||||
@@ -206,5 +209,7 @@
|
|||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
<script src="../../assets/js/docs.min.js"></script>
|
<script src="../../assets/js/docs.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ body {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: 0 1px 3px rgba(0,0,0,.5);
|
text-shadow: 0 1px 3px rgba(0,0,0,.5);
|
||||||
-webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
|
||||||
box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Extra markup and styles for table-esque vertical and horizontal centering */
|
/* Extra markup and styles for table-esque vertical and horizontal centering */
|
||||||
@@ -43,6 +41,8 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%; /* For at least Firefox */
|
height: 100%; /* For at least Firefox */
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
-webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
||||||
|
box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
||||||
}
|
}
|
||||||
.site-wrapper-inner {
|
.site-wrapper-inner {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -75,5 +72,7 @@
|
|||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
<script src="../../assets/js/docs.min.js"></script>
|
<script src="../../assets/js/docs.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -32,10 +29,10 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -55,7 +52,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -243,5 +240,7 @@
|
|||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
<script src="../../assets/js/docs.min.js"></script>
|
<script src="../../assets/js/docs.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,80 +0,0 @@
|
|||||||
/*
|
|
||||||
* Row with equal height columns
|
|
||||||
* --------------------------------------------------
|
|
||||||
*/
|
|
||||||
.row-eq-height {
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Styles copied from the Grid example to make grid rows & columns visible.
|
|
||||||
*/
|
|
||||||
.container {
|
|
||||||
padding-right: 15px;
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
margin-top: 25px;
|
|
||||||
}
|
|
||||||
.row {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
.row .row {
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
[class*="col-"] {
|
|
||||||
padding-top: 15px;
|
|
||||||
padding-bottom: 15px;
|
|
||||||
background-color: #eee;
|
|
||||||
background-color: rgba(86,61,124,.15);
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border: 1px solid rgba(86,61,124,.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Callout styles copied from Bootstrap's main docs.
|
|
||||||
*/
|
|
||||||
/* 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;
|
|
||||||
}
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
|
|
||||||
|
|
||||||
<title>Equal Height Columns Example for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="equal-height-columns.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
|
||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Bootstrap equal-height columns experiment</h1>
|
|
||||||
<p class="lead">A simple experiment that adds flexbox-based equal-height columns to Bootstrap's grid system.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Normal row (with unequal-height columns)</h3>
|
|
||||||
<p>For comparison, here's a normal row, <strong>without</strong> <code>.row-eq-height</code>.</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-4">.row > .col-xs-4</div>
|
|
||||||
<div class="col-xs-4">.row > .col-xs-4<br>this is<br>a much<br>taller<br>column<br>than the others</div>
|
|
||||||
<div class="col-xs-4">.row > .col-xs-4</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Row with equal-height columns</h3>
|
|
||||||
<p>This row uses the custom <code>.row-eq-height</code> class defined in <a href="equal-height-columns.css">this example's CSS</a> to make all of its columns automatically be of equal height.</p>
|
|
||||||
<p>All of the columns will stretch vertically to occupy the same height as the tallest column.</p>
|
|
||||||
|
|
||||||
<div class="row row-eq-height">
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4</div>
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4<br>this is<br>a much<br>taller<br>column<br>than the others</div>
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-danger">
|
|
||||||
<h4>Warning: Browser compatibility</h4>
|
|
||||||
<p>The <code>.row-eq-height</code> class uses <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes">CSS3's flexbox layout mode</a>, which is not supported in Internet Explorer 9 and below.</p>
|
|
||||||
<p>In any unsupported browser, the <code>.row-eq-height</code> class will have no effect.</p>
|
|
||||||
<p>For more info on browser support for flexbox, please consult <a href="http://caniuse.com/flexbox">"Can I use..."</a>.</p>
|
|
||||||
</div>
|
|
||||||
<div class="bs-callout bs-callout-warning">
|
|
||||||
<h4>Warning: Changes column wrapping behavior</h4>
|
|
||||||
<p>If you have put more than 12 columns in one <code>.row-eq-height</code>, the columns will be forced to shrink into a single row, instead of wrapping onto a new line as they normally would.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Equal-height row with more than 12 columns</h3>
|
|
||||||
<div class="row row-eq-height">
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4</div>
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4</div>
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4</div>
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4<br>This and subsequent columns would normally have wrapped onto a new line,<br>if not for <code>.row-eq-height</code>.</div>
|
|
||||||
<div class="col-xs-4">.row.row-eq-height > .col-xs-4<br></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -149,8 +146,7 @@
|
|||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
================================================== -->
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -34,10 +31,10 @@
|
|||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<ul class="nav nav-pills pull-right">
|
<ul class="nav nav-pills pull-right" role="tablist">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">About</a></li>
|
<li role="presentation"><a href="#">About</a></li>
|
||||||
<li><a href="#">Contact</a></li>
|
<li role="presentation"><a href="#">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3 class="text-muted">Project name</h3>
|
<h3 class="text-muted">Project name</h3>
|
||||||
</div>
|
</div>
|
||||||
@@ -79,8 +76,7 @@
|
|||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
================================================== -->
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -32,10 +29,10 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -55,7 +52,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div><!--/.navbar-collapse -->
|
</div><!--/.navbar-collapse -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
<!-- Main jumbotron for a primary marketing message or call to action -->
|
<!-- Main jumbotron for a primary marketing message or call to action -->
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
@@ -99,5 +96,7 @@
|
|||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -81,8 +78,7 @@
|
|||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
================================================== -->
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -33,10 +30,10 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- Fixed navbar -->
|
<!-- Fixed navbar -->
|
||||||
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -69,7 +66,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
@@ -91,5 +88,7 @@
|
|||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -33,10 +30,10 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- Static navbar -->
|
<!-- Static navbar -->
|
||||||
<div class="navbar navbar-default navbar-static-top" role="navigation">
|
<nav class="navbar navbar-default navbar-static-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -69,7 +66,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -92,5 +89,7 @@
|
|||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -35,10 +32,10 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<!-- Static navbar -->
|
<!-- Static navbar -->
|
||||||
<div class="navbar navbar-default" role="navigation">
|
<nav class="navbar navbar-default" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -71,7 +68,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
</div><!--/.container-fluid -->
|
</div><!--/.container-fluid -->
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
<!-- Main component for a primary marketing message or call to action -->
|
<!-- Main component for a primary marketing message or call to action -->
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
@@ -90,5 +87,7 @@
|
|||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -22,9 +22,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -35,10 +32,10 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- Fixed navbar -->
|
<!-- Fixed navbar -->
|
||||||
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -71,7 +68,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
@@ -105,5 +102,7 @@
|
|||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -31,10 +28,10 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
|
<nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -50,7 +47,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /.nav-collapse -->
|
</div><!-- /.nav-collapse -->
|
||||||
</div><!-- /.container -->
|
</div><!-- /.container -->
|
||||||
</div><!-- /.navbar -->
|
</nav><!-- /.navbar -->
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
@@ -129,6 +126,10 @@
|
|||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
|
|
||||||
<script src="offcanvas.js"></script>
|
<script src="offcanvas.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||||
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
|
||||||
|
|
||||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
||||||
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
@@ -38,17 +35,18 @@
|
|||||||
<h2 class="form-signin-heading">Please sign in</h2>
|
<h2 class="form-signin-heading">Please sign in</h2>
|
||||||
<input type="email" class="form-control" placeholder="Email address" required autofocus>
|
<input type="email" class="form-control" placeholder="Email address" required autofocus>
|
||||||
<input type="password" class="form-control" placeholder="Password" required>
|
<input type="password" class="form-control" placeholder="Password" required>
|
||||||
<label class="checkbox">
|
<div class="checkbox">
|
||||||
<input type="checkbox" value="remember-me"> Remember me
|
<label>
|
||||||
</label>
|
<input type="checkbox" value="remember-me"> Remember me
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||||
================================================== -->
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user