KC console on PatternFly init
|
@ -1,11 +0,0 @@
|
||||||
# editorconfig.org
|
|
||||||
|
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
insert_final_newline = true
|
|
|
@ -1,44 +0,0 @@
|
||||||
# Ignore compiled docs
|
|
||||||
_gh_pages
|
|
||||||
_site
|
|
||||||
|
|
||||||
# Numerous always-ignore extensions
|
|
||||||
*.diff
|
|
||||||
*.err
|
|
||||||
*.orig
|
|
||||||
*.log
|
|
||||||
*.rej
|
|
||||||
*.swo
|
|
||||||
*.swp
|
|
||||||
*.zip
|
|
||||||
*.vi
|
|
||||||
*~
|
|
||||||
*.sass-cache
|
|
||||||
*.ruby-version
|
|
||||||
|
|
||||||
# OS or Editor folders
|
|
||||||
.DS_Store
|
|
||||||
._*
|
|
||||||
Thumbs.db
|
|
||||||
.cache
|
|
||||||
.project
|
|
||||||
.settings
|
|
||||||
.tmproj
|
|
||||||
*.esproj
|
|
||||||
nbproject
|
|
||||||
*.sublime-project
|
|
||||||
*.sublime-workspace
|
|
||||||
|
|
||||||
# Komodo
|
|
||||||
*.komodoproject
|
|
||||||
.komodotools
|
|
||||||
|
|
||||||
# grunt-html-validation
|
|
||||||
validation-staus.json
|
|
||||||
|
|
||||||
# Folders to ignore
|
|
||||||
.hg
|
|
||||||
.svn
|
|
||||||
.CVS
|
|
||||||
.idea
|
|
||||||
node_modules
|
|
|
@ -1,11 +0,0 @@
|
||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- 0.8
|
|
||||||
before_script:
|
|
||||||
- gem install jekyll
|
|
||||||
- npm install -g grunt-cli
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- secure: Besg41eyU+2mfxrywQ4ydOShMdc34ImaO0S0ENP+aCOBuyNBIgP59wy5tBMmyai2/8eInYeVps4Td96mWInMMxzTe3Bar7eTLG5tWVKRSr/wc4NBPZ/ppoPAmCEsz9Y+VptRH9/FO8n7hsL9EFZ+xBKbG+C0SccGoyBDpA5j7/w=
|
|
||||||
- secure: Ptiv7phCImFP3ALIz+sMQzrZg8k7C1gLZbFBhWxjnQr3g06wIfX3Ls5y9OHvxid+lOZZjISui3wzBVgpVHqwHUYf96+r0mo6/mJ+F4ffUmShZANVaIMD/JRTnXhUQJbvntGLvxn1EYWPdNM+2IHJrMipnjHxU9tkgAnlel4Zdew=
|
|
||||||
- TWBS_HAVE_OWN_BROWSERSTACK_KEY: ""
|
|
|
@ -1 +0,0 @@
|
||||||
getbootstrap.com
|
|
|
@ -1,66 +0,0 @@
|
||||||
# Contributing to Bootstrap
|
|
||||||
|
|
||||||
Looking to contribute something to Bootstrap? **Here's how you can help.**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Reporting issues
|
|
||||||
|
|
||||||
We only accept issues that are bug reports or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Bootstrap core. Please read the following guidelines before opening any issue.
|
|
||||||
|
|
||||||
1. **Search for existing issues.** We get a lot of duplicate issues, and you'd help us out a lot by first checking if someone else has reported the same issue. Moreover, the issue may have already been resolved with a fix available.
|
|
||||||
2. **Create an isolated and reproducible test case.** Be sure the problem exists in Bootstrap's code with a [reduced test case](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report.
|
|
||||||
3. **Include a live example.** Make use of jsFiddle or jsBin to share your isolated test cases.
|
|
||||||
4. **Share as much information as possible.** Include operating system and version, browser and version, version of Bootstrap, customized or vanilla build, etc. where appropriate. Also include steps to reproduce the bug.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Key branches
|
|
||||||
|
|
||||||
- `master` is the latest, deployed version.
|
|
||||||
- `gh-pages` is the hosted docs (not to be used for pull requests).
|
|
||||||
- `*-wip` is the official work in progress branch for the next release.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Pull requests
|
|
||||||
|
|
||||||
- Try to submit pull requests against the latest `*-wip` branch for easier merging
|
|
||||||
- CSS changes must be done in .less files first, never just the compiled files
|
|
||||||
- If modifying the .less files, always recompile and commit the compiled files bootstrap.css and bootstrap.min.css
|
|
||||||
- Try not to pollute your pull request with unintended changes--keep them simple and small
|
|
||||||
- Try to share which browsers your code has been tested in before submitting a pull request
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Coding standards
|
|
||||||
|
|
||||||
### HTML
|
|
||||||
|
|
||||||
- Two spaces for indentation, never tabs
|
|
||||||
- Double quotes only, never single quotes
|
|
||||||
- Always use proper indentation
|
|
||||||
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
|
|
||||||
|
|
||||||
### CSS
|
|
||||||
|
|
||||||
- Adhere to the [Recess 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
|
|
||||||
- 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).
|
|
||||||
|
|
||||||
### JS
|
|
||||||
|
|
||||||
- No semicolons
|
|
||||||
- Comma first
|
|
||||||
- 2 spaces (no tabs)
|
|
||||||
- strict mode
|
|
||||||
- "Attractive"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twbs/bootstrap/blob/master/LICENSE
|
|
|
@ -1,195 +0,0 @@
|
||||||
/* jshint node: true */
|
|
||||||
|
|
||||||
module.exports = function(grunt) {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
// Project configuration.
|
|
||||||
grunt.initConfig({
|
|
||||||
|
|
||||||
// Metadata.
|
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
|
||||||
banner: '/**\n' +
|
|
||||||
'* <%= pkg.name %>.js v<%= pkg.version %> by @fat and @mdo\n' +
|
|
||||||
'* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
|
||||||
'* <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' +
|
|
||||||
'*/\n',
|
|
||||||
jqueryCheck: 'if (!jQuery) { throw new Error(\"Bootstrap requires jQuery\") }\n\n',
|
|
||||||
|
|
||||||
// Task configuration.
|
|
||||||
clean: {
|
|
||||||
dist: ['dist']
|
|
||||||
},
|
|
||||||
|
|
||||||
jshint: {
|
|
||||||
options: {
|
|
||||||
jshintrc: 'js/.jshintrc'
|
|
||||||
},
|
|
||||||
gruntfile: {
|
|
||||||
src: 'Gruntfile.js'
|
|
||||||
},
|
|
||||||
src: {
|
|
||||||
src: ['js/*.js']
|
|
||||||
},
|
|
||||||
test: {
|
|
||||||
src: ['js/tests/unit/*.js']
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
concat: {
|
|
||||||
options: {
|
|
||||||
banner: '<%= banner %><%= jqueryCheck %>',
|
|
||||||
stripBanners: false
|
|
||||||
},
|
|
||||||
bootstrap: {
|
|
||||||
src: [
|
|
||||||
'js/transition.js',
|
|
||||||
'js/alert.js',
|
|
||||||
'js/button.js',
|
|
||||||
'js/carousel.js',
|
|
||||||
'js/collapse.js',
|
|
||||||
'js/dropdown.js',
|
|
||||||
'js/modal.js',
|
|
||||||
'js/tooltip.js',
|
|
||||||
'js/popover.js',
|
|
||||||
'js/scrollspy.js',
|
|
||||||
'js/tab.js',
|
|
||||||
'js/affix.js'
|
|
||||||
],
|
|
||||||
dest: 'dist/js/<%= pkg.name %>.js'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
uglify: {
|
|
||||||
options: {
|
|
||||||
banner: '<%= banner %>'
|
|
||||||
},
|
|
||||||
bootstrap: {
|
|
||||||
src: ['<%= concat.bootstrap.dest %>'],
|
|
||||||
dest: 'dist/js/<%= pkg.name %>.min.js'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
recess: {
|
|
||||||
options: {
|
|
||||||
compile: true
|
|
||||||
},
|
|
||||||
bootstrap: {
|
|
||||||
src: ['less/bootstrap.less'],
|
|
||||||
dest: 'dist/css/<%= pkg.name %>.css'
|
|
||||||
},
|
|
||||||
min: {
|
|
||||||
options: {
|
|
||||||
compress: true
|
|
||||||
},
|
|
||||||
src: ['less/bootstrap.less'],
|
|
||||||
dest: 'dist/css/<%= pkg.name %>.min.css'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
qunit: {
|
|
||||||
options: {
|
|
||||||
inject: 'js/tests/unit/phantom.js'
|
|
||||||
},
|
|
||||||
files: ['js/tests/*.html']
|
|
||||||
},
|
|
||||||
|
|
||||||
connect: {
|
|
||||||
server: {
|
|
||||||
options: {
|
|
||||||
port: 3000,
|
|
||||||
base: '.'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
jekyll: {
|
|
||||||
docs: {}
|
|
||||||
},
|
|
||||||
|
|
||||||
validation: {
|
|
||||||
options: {
|
|
||||||
reset: true,
|
|
||||||
},
|
|
||||||
files: {
|
|
||||||
src: ["_gh_pages/**/*.html"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
watch: {
|
|
||||||
src: {
|
|
||||||
files: '<%= jshint.src.src %>',
|
|
||||||
tasks: ['jshint:src', 'qunit']
|
|
||||||
},
|
|
||||||
test: {
|
|
||||||
files: '<%= jshint.test.src %>',
|
|
||||||
tasks: ['jshint:test', 'qunit']
|
|
||||||
},
|
|
||||||
recess: {
|
|
||||||
files: 'less/*.less',
|
|
||||||
tasks: ['recess']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
// These plugins provide necessary tasks.
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-qunit');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
||||||
grunt.loadNpmTasks('grunt-html-validation');
|
|
||||||
grunt.loadNpmTasks('grunt-jekyll');
|
|
||||||
grunt.loadNpmTasks('grunt-recess');
|
|
||||||
grunt.loadNpmTasks('browserstack-runner');
|
|
||||||
|
|
||||||
|
|
||||||
// Docs HTML validation task
|
|
||||||
grunt.registerTask('validate-docs', ['jekyll', 'validation']);
|
|
||||||
|
|
||||||
// Test task.
|
|
||||||
var testSubtasks = ['jshint', 'qunit', 'validate-docs'];
|
|
||||||
// Only run BrowserStack tests under Travis
|
|
||||||
if (process.env.TRAVIS) {
|
|
||||||
// Only run BrowserStack tests if this is a mainline commit in twbs/bootstrap, or you have your own BrowserStack key
|
|
||||||
if ((process.env.TRAVIS_REPO_SLUG === 'twbs/bootstrap' && process.env.TRAVIS_PULL_REQUEST === 'false') || process.env.TWBS_HAVE_OWN_BROWSERSTACK_KEY) {
|
|
||||||
testSubtasks.push('browserstack_runner');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
grunt.registerTask('test', testSubtasks);
|
|
||||||
|
|
||||||
// JS distribution task.
|
|
||||||
grunt.registerTask('dist-js', ['concat', 'uglify']);
|
|
||||||
|
|
||||||
// CSS distribution task.
|
|
||||||
grunt.registerTask('dist-css', ['recess']);
|
|
||||||
|
|
||||||
// Full distribution task.
|
|
||||||
grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js']);
|
|
||||||
|
|
||||||
// Default task.
|
|
||||||
grunt.registerTask('default', ['test', 'dist']);
|
|
||||||
|
|
||||||
// task for building customizer
|
|
||||||
grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () {
|
|
||||||
var fs = require('fs')
|
|
||||||
|
|
||||||
function getFiles(type) {
|
|
||||||
var files = {}
|
|
||||||
fs.readdirSync(type)
|
|
||||||
.filter(function (path) {
|
|
||||||
return new RegExp('\\.' + type + '$').test(path)
|
|
||||||
})
|
|
||||||
.forEach(function (path) {
|
|
||||||
return files[path] = fs.readFileSync(type + '/' + path, 'utf8')
|
|
||||||
})
|
|
||||||
return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'
|
|
||||||
}
|
|
||||||
|
|
||||||
var customize = fs.readFileSync('customize.html', 'utf-8')
|
|
||||||
var files = '<!-- generated -->\n<script id="files">\n' + getFiles('js') + getFiles('less') + '<\/script>\n<!-- /generated -->'
|
|
||||||
fs.writeFileSync('customize.html', customize.replace(/<!-- generated -->(.|[\n\r])*<!-- \/generated -->/, files))
|
|
||||||
});
|
|
||||||
};
|
|
|
@ -1,25 +0,0 @@
|
||||||
# Dependencies
|
|
||||||
markdown: rdiscount
|
|
||||||
pygments: true
|
|
||||||
|
|
||||||
# Permalinks
|
|
||||||
permalink: pretty
|
|
||||||
|
|
||||||
# Server
|
|
||||||
destination: ./_gh_pages
|
|
||||||
exclude: [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "CNAME", "LICENSE", "Gruntfile.js", "package.json", "node_modules", "README.md", "less"]
|
|
||||||
port: 9001
|
|
||||||
|
|
||||||
# Custom vars
|
|
||||||
repo: https://github.com/twbs/bootstrap
|
|
||||||
download: https://github.com/twbs/bootstrap/archive/3.0.0-wip.zip
|
|
||||||
download_dist: http://getbootstrap.com/bs-v3.0.0-rc.2-dist.zip
|
|
||||||
|
|
||||||
glyphicons: http://glyphicons.getbootstrap.com
|
|
||||||
glyphicons_repo: https://github.com/twbs/bootstrap-glyphicons
|
|
||||||
|
|
||||||
blog: http://blog.getbootstrap.com
|
|
||||||
expo: http://expo.getbootstrap.com
|
|
||||||
|
|
||||||
cdn_css: //netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css
|
|
||||||
cdn_js: //netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/js/bootstrap.min.js
|
|
|
@ -1 +0,0 @@
|
||||||
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script>var z = document.createElement("script"); z.async = true; z.src = "http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
|
|
|
@ -1,33 +0,0 @@
|
||||||
<!-- Bootstrap core JavaScript
|
|
||||||
================================================== -->
|
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
<script src="{{ page.base_url }}assets/js/jquery.js"></script>
|
|
||||||
<script src="{{ page.base_url }}dist/js/bootstrap.js"></script>
|
|
||||||
|
|
||||||
<script src="http://platform.twitter.com/widgets.js"></script>
|
|
||||||
<script src="{{ page.base_url }}assets/js/holder.js"></script>
|
|
||||||
|
|
||||||
<script src="{{ page.base_url }}assets/js/application.js"></script>
|
|
||||||
|
|
||||||
{% if page.slug == "customize" %}
|
|
||||||
<script src="{{ page.base_url }}assets/js/less.js"></script>
|
|
||||||
<script src="{{ page.base_url }}assets/js/jszip.js"></script>
|
|
||||||
<script src="{{ page.base_url }}assets/js/uglify.js"></script>
|
|
||||||
<script src="{{ page.base_url }}assets/js/jquery.bbq.min.js"></script>
|
|
||||||
<script src="{{ page.base_url }}assets/js/customizer.js"></script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Analytics
|
|
||||||
================================================== -->
|
|
||||||
<script>
|
|
||||||
var _gauges = _gauges || [];
|
|
||||||
(function() {
|
|
||||||
var t = document.createElement('script');
|
|
||||||
t.async = true;
|
|
||||||
t.id = 'gauges-tracker';
|
|
||||||
t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
|
|
||||||
t.src = '//secure.gaug.es/track.js';
|
|
||||||
var s = document.getElementsByTagName('script')[0];
|
|
||||||
s.parentNode.insertBefore(t, s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
|
@ -1,43 +0,0 @@
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>
|
|
||||||
{% if page.title == "Bootstrap" %}
|
|
||||||
{{ page.title }}
|
|
||||||
{% else if %}
|
|
||||||
{{ page.title }} · Bootstrap
|
|
||||||
{% endif %}
|
|
||||||
</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="{{ page.base_url }}dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Documentation extras -->
|
|
||||||
<link href="{{ page.base_url }}assets/css/docs.css" rel="stylesheet">
|
|
||||||
<link href="{{ page.base_url }}assets/css/pygments-manni.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="{{ page.base_url }}assets/js/html5shiv.js"></script>
|
|
||||||
<script src="{{ page.base_url }}assets/js/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
<!-- Favicons -->
|
|
||||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ page.base_url }}assets/ico/apple-touch-icon-144-precomposed.png">
|
|
||||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ page.base_url }}assets/ico/apple-touch-icon-114-precomposed.png">
|
|
||||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ page.base_url }}assets/ico/apple-touch-icon-72-precomposed.png">
|
|
||||||
<link rel="apple-touch-icon-precomposed" href="{{ page.base_url }}assets/ico/apple-touch-icon-57-precomposed.png">
|
|
||||||
<link rel="shortcut icon" href="{{ page.base_url }}assets/ico/favicon.png">
|
|
||||||
|
|
||||||
<script>
|
|
||||||
var _gaq = _gaq || [];
|
|
||||||
_gaq.push(['_setAccount', 'UA-146052-10']);
|
|
||||||
_gaq.push(['_trackPageview']);
|
|
||||||
(function() {
|
|
||||||
var ga = document.createElement('script'); ga.async = true;
|
|
||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
|
@ -1,135 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#dropdowns">Dropdowns</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#dropdowns-example">Example</a></li>
|
|
||||||
<li><a href="#dropdowns-alignment">Alignment options</a></li>
|
|
||||||
<li><a href="#dropdowns-headers">Headers</a></li>
|
|
||||||
<li><a href="#dropdowns-disabled">Disabled menu items</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#btn-groups">Button groups</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#btn-groups-single">Basic button group</a></li>
|
|
||||||
<li><a href="#btn-groups-toolbar">Button toolbar</a></li>
|
|
||||||
<li><a href="#btn-groups-sizing">Button group sizing</a></li>
|
|
||||||
<li><a href="#btn-groups-nested">Nested button groups</a></li>
|
|
||||||
<li><a href="#btn-groups-vertical">Vertical variation</a></li>
|
|
||||||
<li><a href="#btn-groups-justified">Justified link buttons</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#btn-dropdowns">Button dropdowns</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#btn-dropdowns-single">Single button dropdown</a></li>
|
|
||||||
<li><a href="#btn-dropdowns-split">Split button dropdown</a></li>
|
|
||||||
<li><a href="#btn-dropdowns-sizes">Button sizes</a></li>
|
|
||||||
<li><a href="#btn-dropdowns-dropup">Dropup variation</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#input-groups">Input groups</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#input-groups-basic">Basic input group</a></li>
|
|
||||||
<li><a href="#input-groups-sizes">Sizing options</a></li>
|
|
||||||
<li><a href="#input-groups-checkboxes-radios">Checkbox and radios addons</a></li>
|
|
||||||
<li><a href="#input-groups-buttons">Button addons</a></li>
|
|
||||||
<li><a href="#input-groups-buttons-dropdowns">Buttons with dropdowns</a></li>
|
|
||||||
<li><a href="#input-groups-buttons-segmented">Segmented buttons</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#nav">Navs</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#nav-tabs">Tabs nav</a></li>
|
|
||||||
<li><a href="#nav-pills">Pills nav</a></li>
|
|
||||||
<li><a href="#nav-justified">Justified nav</a></li>
|
|
||||||
<li><a href="#nav-disabled-links">Disabled links</a></li>
|
|
||||||
<li><a href="#nav-alignment">Alignment options</a></li>
|
|
||||||
<li><a href="#nav-dropdowns">Using dropdowns</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#navbar">Navbar</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#navbar-default">Default navbar</a></li>
|
|
||||||
<li><a href="#navbar-buttons">Buttons in navbars</a></li>
|
|
||||||
<li><a href="#navbar-text">Text in navbars</a></li>
|
|
||||||
<li><a href="#navbar-links">Links in navbars</a></li>
|
|
||||||
<li><a href="#navbar-component-alignment">Component alignment</a></li>
|
|
||||||
<li><a href="#navbar-fixed-top">Fixed top navbar</a></li>
|
|
||||||
<li><a href="#navbar-fixed-bottom">Fixed bottom navbar</a></li>
|
|
||||||
<li><a href="#navbar-static-top">Static top navbar</a></li>
|
|
||||||
<li><a href="#navbar-inverted">Inverted navbar</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#breadcrumbs">Breadcrumbs</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#pagination">Pagination</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#pagination-default">Default pagination</a></li>
|
|
||||||
<li><a href="#pagination-pager">Pager</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#labels">Labels</a></li>
|
|
||||||
<li><a href="#badges">Badges</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#type-components">Typography</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#type-components-jumbotron">Jumbotron</a></li>
|
|
||||||
<li><a href="#type-components-page-header">Page header</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#thumbnails">Thumbnails</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#thumbnails-default">Default thumbnails</a></li>
|
|
||||||
<li><a href="#thumbnails-custom-content">Custom content</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#alerts">Alerts</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#alerts-default">Default alert</a></li>
|
|
||||||
<li><a href="#alerts-alternatives">Contextual alternatives</a></li>
|
|
||||||
<li><a href="#alerts-dismissable">Dismissable alerts</a></li>
|
|
||||||
<li><a href="#alerts-links">Links in alerts</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#progress">Progress bars</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#progress-basic">Basic progress bar</a></li>
|
|
||||||
<li><a href="#progress-alternatives">Contextual alternatives</a></li>
|
|
||||||
<li><a href="#progress-striped">Striped</a></li>
|
|
||||||
<li><a href="#progress-animated">Animated</a></li>
|
|
||||||
<li><a href="#progress-stacked">Stacked</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#media">Media object</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#media-default">Default media</a></li>
|
|
||||||
<li><a href="#media-list">Media list</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#list-group">List group</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#list-group-basic">Basic list group</a></li>
|
|
||||||
<li><a href="#list-group-badges">Badges</a></li>
|
|
||||||
<li><a href="#list-group-linked">Linked items</a></li>
|
|
||||||
<li><a href="#list-group-custom-content">Custom content</a></li>
|
|
||||||
<!-- <li><a href="#list-group-pic">Leading picture</a></li> -->
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#panels">Panels</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#panels-basic">Basic panel</a></li>
|
|
||||||
<li><a href="#panels-heading">Panel with heading</a></li>
|
|
||||||
<li><a href="#panels-alternatives">Contextual alternatives</a></li>
|
|
||||||
<li><a href="#panels-list-group">With list groups</a>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#wells">Wells</a></li>
|
|
|
@ -1,78 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#overview">Overview</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#overview-doctype">HTML5 doctype</a></li>
|
|
||||||
<li><a href="#overview-mobile">Mobile first</a></li>
|
|
||||||
<li><a href="#overview-responsive-images">Responsive images</a></li>
|
|
||||||
<li><a href="#overview-type-links">Type and links</a></li>
|
|
||||||
<li><a href="#overview-normalize">Normalize</a></li>
|
|
||||||
<li><a href="#overview-container">Container</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#glyphicons">Glyphicons</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#grid">Grid system</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#grid-media-queries">Media queries</a></li>
|
|
||||||
<li><a href="#grid-options">Available options</a></li>
|
|
||||||
<li><a href="#grid-example-basic">Ex: Stacked-to-horizonal</a></li>
|
|
||||||
<li><a href="#grid-example-mixed">Ex: Mobile-desktop</a></li>
|
|
||||||
<li><a href="#grid-example-mixed-complete">Ex: Mobile, tablet, desktop</a></li>
|
|
||||||
<li><a href="#grid-responsive-resets">Responsive column resets</a></li>
|
|
||||||
<li><a href="#grid-offsetting">Offset columns</a></li>
|
|
||||||
<li><a href="#grid-nesting">Nested columns</a></li>
|
|
||||||
<li><a href="#grid-column-ordering">Column ordering</a></li>
|
|
||||||
<li><a href="#grid-less">LESS mixins and variables</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#type">Typography</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#type-headings">Headings</a></li>
|
|
||||||
<li><a href="#type-body-copy">Body copy</a></li>
|
|
||||||
<li><a href="#type-emphasis">Emphasis</a></li>
|
|
||||||
<li><a href="#type-abbreviations">Abbreviations</a></li>
|
|
||||||
<li><a href="#type-addresses">Addresses</a></li>
|
|
||||||
<li><a href="#type-blockquotes">Blockquotes</a></li>
|
|
||||||
<li><a href="#type-lists">Lists</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#code">Code</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#tables">Tables</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#tables-example">Basic example</a></li>
|
|
||||||
<li><a href="#tables-striped">Zebra striping</a></li>
|
|
||||||
<li><a href="#tables-bordered">Bordered tables</a></li>
|
|
||||||
<li><a href="#tables-hover-rows">Hover rows</a></li>
|
|
||||||
<li><a href="#tables-condensed">Condensed tables</a></li>
|
|
||||||
<li><a href="#tables-contextual-classes">Contextual classes</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#forms">Forms</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#forms-example">Basic example</a></li>
|
|
||||||
<li><a href="#forms-inline">Inline variation</a></li>
|
|
||||||
<li><a href="#forms-horizontal">Horizontal variation</a></li>
|
|
||||||
<li><a href="#forms-controls">Supported controls</a></li>
|
|
||||||
<li><a href="#forms-controls-static">Static form control</a></li>
|
|
||||||
<li><a href="#forms-control-states">Control states</a></li>
|
|
||||||
<li><a href="#forms-control-sizes">Control sizing</a></li>
|
|
||||||
<li><a href="#forms-help-text">Help text</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#buttons">Buttons</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#buttons-options">Button options</a></li>
|
|
||||||
<li><a href="#buttons-sizes">Sizes</a></li>
|
|
||||||
<li><a href="#buttons-disabled">Disabled</a></li>
|
|
||||||
<li><a href="#buttons-tags">Button tags</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#images">Images</a></li>
|
|
||||||
<li><a href="#helper-classes">Helper classes</a></li>
|
|
||||||
<li><a href="#responsive-utilities">Responsive utilities</a></li>
|
|
|
@ -1,40 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#less">LESS components</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#plugins">jQuery plugins</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#less-variables">LESS variables</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#variables-basics">Basics</a></li>
|
|
||||||
<li><a href="#variables-buttons">Buttons</a></li>
|
|
||||||
<li><a href="#variables-form-states">Form states</a></li>
|
|
||||||
<li><a href="#variables-alerts">Alerts</a></li>
|
|
||||||
<li><a href="#variables-navbar">Navbar</a></li>
|
|
||||||
<li><a href="#variables-nav">Nav</a></li>
|
|
||||||
<li><a href="#variables-tables">Tables</a></li>
|
|
||||||
<li><a href="#variables-forms">Forms</a></li>
|
|
||||||
<li><a href="#variables-dropdowns">Dropdowns</a></li>
|
|
||||||
<li><a href="#variables-panels-wells">Panels and wells</a></li>
|
|
||||||
<li><a href="#variables-accordion">Accordion</a></li>
|
|
||||||
<li><a href="#variables-badges">Badges</a></li>
|
|
||||||
<li><a href="#variables-breadcrumbs">Breadcrumbs</a></li>
|
|
||||||
<li><a href="#variables-jumbotron">Jumbotron</a></li>
|
|
||||||
<li><a href="#variables-modals">Modals</a></li>
|
|
||||||
<li><a href="#variables-carousel">Carousel</a></li>
|
|
||||||
<li><a href="#variables-list-group">List group</a></li>
|
|
||||||
<li><a href="#variables-thumbnails">Thumbnails</a></li>
|
|
||||||
<li><a href="#variables-progress">Progress bars</a></li>
|
|
||||||
<li><a href="#variables-pagination">Pagination</a></li>
|
|
||||||
<li><a href="#variables-pager">Pager</a></li>
|
|
||||||
<li><a href="#variables-labels">Labels</a></li>
|
|
||||||
<li><a href="#variables-tooltips-popovers">Tooltips and popovers</a></li>
|
|
||||||
<li><a href="#variables-close">Close button</a></li>
|
|
||||||
<li><a href="#variables-type">Type</a></li>
|
|
||||||
<li><a href="#variables-other">Other</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#download">Download</a>
|
|
||||||
</li>
|
|
|
@ -1,34 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#download">Download Bootstrap</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#download-options">Download options</a></li>
|
|
||||||
<li><a href="#download-cdn">Bootstrap CDN</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#whats-included">What's included</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#template">Basic template</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#examples">Examples</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#disable-responsive">Disabling responsiveness</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#browsers">Browser support</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#third-parties">Third party support</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#accessibility">Accessibility</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#license-faqs">License FAQs</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#customizing">Customizing Bootstrap</a>
|
|
||||||
</li>
|
|
|
@ -1,88 +0,0 @@
|
||||||
<li>
|
|
||||||
<a href="#js-overview">Overview</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#js-individual-compiled">Individual or compiled</a></li>
|
|
||||||
<li><a href="#js-data-attrs">Data attributes</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-events">Events</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#transitions">Transitions</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#modals">Modal</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#modals-examples">Examples</a></li>
|
|
||||||
<li><a href="#modals-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#dropdowns">Dropdown</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#dropdowns-examples">Examples</a></li>
|
|
||||||
<li><a href="#dropdowns-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#scrollspy">Scrollspy</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#scrollspy-examples">Examples</a></li>
|
|
||||||
<li><a href="#scrollspy-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#tabs">Tab</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#tabs-examples">Examples</a></li>
|
|
||||||
<li><a href="#tabs-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#tooltips">Tooltip</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#tooltips-examples">Examples</a></li>
|
|
||||||
<li><a href="#tooltips-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#popovers">Popover</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#popovers-examples">Examples</a></li>
|
|
||||||
<li><a href="#popovers-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#alerts">Alert</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#alerts-examples">Examples</a></li>
|
|
||||||
<li><a href="#alerts-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#buttons">Button</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#buttons-examples">Examples</a></li>
|
|
||||||
<li><a href="#buttons-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#collapse">Collapse</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#collapse-examples">Examples</a></li>
|
|
||||||
<li><a href="#collapse-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#carousel">Carousel</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#carousel-examples">Examples</a></li>
|
|
||||||
<li><a href="#carousel-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#affix">Affix</a>
|
|
||||||
<ul class="nav">
|
|
||||||
<li><a href="#affix-examples">Examples</a></li>
|
|
||||||
<li><a href="#affix-usage">Usage</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
|
@ -1,32 +0,0 @@
|
||||||
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a href="{{ page.base_url }}" class="navbar-brand">Bootstrap 3 RC2</a>
|
|
||||||
</div>
|
|
||||||
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li{% if page.slug == "getting-started" %} class="active"{% endif %}>
|
|
||||||
<a href="{{ page.base_url }}getting-started">Getting started</a>
|
|
||||||
</li>
|
|
||||||
<li{% if page.slug == "css" %} class="active"{% endif %}>
|
|
||||||
<a href="{{ page.base_url }}css">CSS</a>
|
|
||||||
</li>
|
|
||||||
<li{% if page.slug == "components" %} class="active"{% endif %}>
|
|
||||||
<a href="{{ page.base_url }}components">Components</a>
|
|
||||||
</li>
|
|
||||||
<li{% if page.slug == "js" %} class="active"{% endif %}>
|
|
||||||
<a href="{{ page.base_url }}javascript">JavaScript</a>
|
|
||||||
</li>
|
|
||||||
<li{% if page.slug == "customize" %} class="active"{% endif %}>
|
|
||||||
<a href="{{ page.base_url }}customize">Customize</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<div class="bs-old-docs">
|
|
||||||
<div class="container">
|
|
||||||
<strong>
|
|
||||||
<a href="{{ page.base_url }}2.3.2/">Looking for Bootstrap 2.3.2 docs?</a>
|
|
||||||
</strong>
|
|
||||||
We've moved it to a new home while we push forward with Bootstrap 3. <a href="http://blog.getbootstrap.com/">Read the blog</a> for details.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,16 +0,0 @@
|
||||||
<div class="bs-social">
|
|
||||||
<ul class="bs-social-buttons">
|
|
||||||
<li>
|
|
||||||
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=watch&count=true" width="100" height="20" title="Star on GitHub"></iframe>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=fork&count=true" width="102" height="20" title="Fork on GitHub"></iframe>
|
|
||||||
</li>
|
|
||||||
<li class="follow-btn">
|
|
||||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
|
|
||||||
</li>
|
|
||||||
<li class="tweet-btn">
|
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://getbootstrap.com/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
|
@ -1,52 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Meta, title, CSS, favicons, etc. -->
|
|
||||||
{% include header.html %}
|
|
||||||
<!-- Place anything custom after this. -->
|
|
||||||
</head>
|
|
||||||
<body data-spy="scroll" data-target=".bs-sidebar">
|
|
||||||
<a class="sr-only" href="#content">Skip navigation</a>
|
|
||||||
|
|
||||||
<!-- Docs master nav -->
|
|
||||||
{% include nav-main.html %}
|
|
||||||
|
|
||||||
<!-- Docs page layout -->
|
|
||||||
<div class="bs-header" id="content" role="banner">
|
|
||||||
<div class="container">
|
|
||||||
<h1>{{ page.title }}</h1>
|
|
||||||
<p>{{ page.lead }}</p>
|
|
||||||
{% include ads.html %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Callout for the old docs link -->
|
|
||||||
{% include old-bs-docs.html %}
|
|
||||||
|
|
||||||
<div class="container bs-docs-container">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Footer
|
|
||||||
================================================== -->
|
|
||||||
<footer class="bs-footer">
|
|
||||||
{% include social-buttons.html %}
|
|
||||||
|
|
||||||
<p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
|
|
||||||
<p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
|
||||||
<ul class="footer-links">
|
|
||||||
<li><a href="{{ site.blog }}">Blog</a></li>
|
|
||||||
<li class="muted">·</li>
|
|
||||||
<li><a href="{{ site.repo }}/issues?state=open">Issues</a></li>
|
|
||||||
<li class="muted">·</li>
|
|
||||||
<li><a href="{{ site.repo }}/releases">Releases</a></li>
|
|
||||||
</ul>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<!-- JS and analytics only. -->
|
|
||||||
{% include footer.html %}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,72 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Meta, title, CSS, favicons, etc. -->
|
|
||||||
{% include header.html %}
|
|
||||||
<!-- Place anything custom after this. -->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<a class="sr-only" href="#content">Skip navigation</a>
|
|
||||||
|
|
||||||
<!-- Docs master nav -->
|
|
||||||
{% include nav-main.html %}
|
|
||||||
|
|
||||||
<!-- Docs page layout -->
|
|
||||||
<div class="bs-header" id="content">
|
|
||||||
<div class="container">
|
|
||||||
<h1>{{ page.title }}</h1>
|
|
||||||
<p>{{ page.lead }}</p>
|
|
||||||
{% include ads.html %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Callout for the old docs link -->
|
|
||||||
{% include old-bs-docs.html %}
|
|
||||||
|
|
||||||
<div class="container bs-docs-container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="bs-sidebar hidden-print" role="complementary">
|
|
||||||
<ul class="nav bs-sidenav">
|
|
||||||
{% if page.slug == "getting-started" %}
|
|
||||||
{% include nav-getting-started.html %}
|
|
||||||
{% elsif page.slug == "css" %}
|
|
||||||
{% include nav-css.html %}
|
|
||||||
{% elsif page.slug == "components" %}
|
|
||||||
{% include nav-components.html %}
|
|
||||||
{% elsif page.slug == "js" %}
|
|
||||||
{% include nav-javascript.html %}
|
|
||||||
{% elsif page.slug == "customize" %}
|
|
||||||
{% include nav-customize.html %}
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-9" role="main">
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Footer
|
|
||||||
================================================== -->
|
|
||||||
<footer class="bs-footer" role="contentinfo">
|
|
||||||
{% include social-buttons.html %}
|
|
||||||
|
|
||||||
<p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
|
|
||||||
<p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
|
||||||
<ul class="footer-links">
|
|
||||||
<li><a href="{{ site.blog }}">Blog</a></li>
|
|
||||||
<li class="muted">·</li>
|
|
||||||
<li><a href="{{ site.repo }}/issues?state=open">Issues</a></li>
|
|
||||||
<li class="muted">·</li>
|
|
||||||
<li><a href="{{ site.repo }}/releases">Releases</a></li>
|
|
||||||
</ul>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<!-- JS and analytics only. -->
|
|
||||||
{% include footer.html %}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,43 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Meta, title, CSS, favicons, etc. -->
|
|
||||||
{% include header.html %}
|
|
||||||
<!-- Place anything custom after this. -->
|
|
||||||
</head>
|
|
||||||
<body class="bs-docs-home">
|
|
||||||
<a class="sr-only" href="#content">Skip navigation</a>
|
|
||||||
|
|
||||||
<!-- Docs master nav -->
|
|
||||||
{% include nav-main.html %}
|
|
||||||
|
|
||||||
<!-- Page content of course! -->
|
|
||||||
{{ content }}
|
|
||||||
|
|
||||||
<!-- Callout for the old docs link -->
|
|
||||||
{% include old-bs-docs.html %}
|
|
||||||
|
|
||||||
<footer class="container" role="contentinfo">
|
|
||||||
{% include social-buttons.html %}
|
|
||||||
|
|
||||||
<ul class="bs-masthead-links">
|
|
||||||
<li>
|
|
||||||
<a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);">GitHub project</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="../getting-started#examples" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Examples']);">Examples</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{{ site.glyphicons }}" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Glyphicons']);">Glyphicons</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{{ site.expo }}" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Expo']);">Bootstrap Expo</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<!-- JS and analytics only. -->
|
|
||||||
{% include footer.html %}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,929 +0,0 @@
|
||||||
/*
|
|
||||||
* Bootstrap Documentation
|
|
||||||
* Special styles for presenting Bootstrap's documentation and code examples.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Key scaffolding
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
body {
|
|
||||||
position: relative; /* For scrollyspy */
|
|
||||||
padding-top: 50px; /* Account for fixed navbar */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Custom docs button */
|
|
||||||
.btn-bs {
|
|
||||||
color: #563d7c;
|
|
||||||
background-color: #fff;
|
|
||||||
border-color: #e5e5e5;
|
|
||||||
}
|
|
||||||
.btn-bs:hover,
|
|
||||||
.btn-bs:focus,
|
|
||||||
.btn-bs:active {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #563d7c;
|
|
||||||
border-color: #563d7c;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Homepage button */
|
|
||||||
.btn-outline {
|
|
||||||
color: #fff;
|
|
||||||
background-color: transparent;
|
|
||||||
border-color: #cdbfe3;
|
|
||||||
}
|
|
||||||
.btn-outline:hover,
|
|
||||||
.btn-outline:focus,
|
|
||||||
.btn-outline:active {
|
|
||||||
color: #563d7c;
|
|
||||||
background-color: #fff;
|
|
||||||
border-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Temp CSS until RC2 */
|
|
||||||
.bs-customize-placeholder {
|
|
||||||
margin-bottom: -100px;
|
|
||||||
padding: 80px 30px;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Top nav and header
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
.bs-docs-nav {
|
|
||||||
background-color: #563d7c;
|
|
||||||
border-color: #463265;
|
|
||||||
}
|
|
||||||
.bs-docs-nav .navbar-collapse {
|
|
||||||
border-color: #463265;
|
|
||||||
}
|
|
||||||
.bs-docs-nav .navbar-brand {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.bs-docs-nav .navbar-nav > li > a {
|
|
||||||
color: #cdbfe3;
|
|
||||||
}
|
|
||||||
.bs-docs-nav .navbar-nav > li > a:hover {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.bs-docs-nav .navbar-nav > .active > a,
|
|
||||||
.bs-docs-nav .navbar-nav > .active > a:hover {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #463265;
|
|
||||||
}
|
|
||||||
.bs-docs-nav .navbar-toggle {
|
|
||||||
border-color: #563d7c;
|
|
||||||
}
|
|
||||||
.bs-docs-nav .navbar-toggle:hover {
|
|
||||||
background-color: #463265;
|
|
||||||
border-color: #463265;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Old docs callout */
|
|
||||||
.bs-old-docs {
|
|
||||||
padding: 15px 20px;
|
|
||||||
color: #777;
|
|
||||||
background-color: #fafafa;
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
.bs-old-docs strong {
|
|
||||||
color: #555;
|
|
||||||
}
|
|
||||||
.bs-docs-home .bs-old-docs {
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
text-align: center;
|
|
||||||
color: inherit;
|
|
||||||
background-color: transparent;
|
|
||||||
border-color: transparent;
|
|
||||||
}
|
|
||||||
.bs-docs-home .bs-old-docs a {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Homepage */
|
|
||||||
.bs-docs-home {
|
|
||||||
color: #cdbfe3;
|
|
||||||
background-color: #563d7c;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Homepage masthead
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
.bs-masthead {
|
|
||||||
position: relative;
|
|
||||||
padding: 30px 15px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.bs-masthead h1 {
|
|
||||||
font-size: 50px;
|
|
||||||
line-height: 1;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Download button */
|
|
||||||
.bs-masthead .btn-outline {
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
padding: 18px 24px;
|
|
||||||
font-size: 21px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Textual links */
|
|
||||||
.bs-social {
|
|
||||||
margin-top: 30px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.bs-masthead-links {
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
padding-left: 0;
|
|
||||||
list-style: none;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.bs-masthead-links li {
|
|
||||||
display: inline;
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.bs-masthead-links li + li {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
.bs-masthead-links a {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Customize and Download button
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
.bs-customizer .toggle {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.bs-customizer label {
|
|
||||||
margin-top: 10px;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #444;
|
|
||||||
}
|
|
||||||
.bs-customizer h2 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
padding-top: 30px;
|
|
||||||
}
|
|
||||||
.bs-customizer h4 {
|
|
||||||
margin-top: 15px;
|
|
||||||
}
|
|
||||||
.bs-customizer input[type="text"] {
|
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
||||||
background-color: #fafafa;
|
|
||||||
}
|
|
||||||
.bs-customizer .help-block {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-customize-download {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#less-section label {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Docs pages and sections
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Page headers */
|
|
||||||
.bs-header {
|
|
||||||
padding: 30px 30px 40px;
|
|
||||||
font-size: 16px;
|
|
||||||
color: #5a5a5a;
|
|
||||||
text-align: center;
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
.bs-header h1 {
|
|
||||||
color: #563d7c;
|
|
||||||
}
|
|
||||||
.bs-header p {
|
|
||||||
font-weight: 300;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
.bs-header .container {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-docs-section + .bs-docs-section {
|
|
||||||
padding-top: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Ads in page headers */
|
|
||||||
.carbonad {
|
|
||||||
width: auto !important;
|
|
||||||
margin: 50px -30px -40px !important;
|
|
||||||
padding: 20px !important;
|
|
||||||
overflow: hidden; /* clearfix */
|
|
||||||
height: auto !important;
|
|
||||||
font-size: 13px !important;
|
|
||||||
line-height: 16px !important;
|
|
||||||
text-align: left;
|
|
||||||
background: none !important;
|
|
||||||
border: 0 !important;
|
|
||||||
border-top: 1px solid #e5e5e5 !important;
|
|
||||||
}
|
|
||||||
.carbonad-img {
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
.carbonad-text,
|
|
||||||
.carbonad-tag {
|
|
||||||
float: none !important;
|
|
||||||
display: block !important;
|
|
||||||
width: auto !important;
|
|
||||||
height: auto !important;
|
|
||||||
margin-left: 145px !important;
|
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
|
|
||||||
}
|
|
||||||
.carbonad-text {
|
|
||||||
padding-top: 0 !important;
|
|
||||||
}
|
|
||||||
.carbonad-tag {
|
|
||||||
text-align: left !important;
|
|
||||||
}
|
|
||||||
.carbonad #azcarbon > img {
|
|
||||||
display: none; /* hide what I assume are tracking images */
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Docs sidebar
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* By default it's not affixed in mobile views, so undo that */
|
|
||||||
.bs-sidebar.affix {
|
|
||||||
position: static;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* First level of nav */
|
|
||||||
.bs-sidenav {
|
|
||||||
margin-top: 30px;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
text-shadow: 0 1px 0 #fff;
|
|
||||||
background-color: #f7f5fa;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* All levels of nav */
|
|
||||||
.bs-sidebar .nav > li > a {
|
|
||||||
display: block;
|
|
||||||
color: #716b7a;
|
|
||||||
padding: 5px 20px;
|
|
||||||
}
|
|
||||||
.bs-sidebar .nav > li > a:hover,
|
|
||||||
.bs-sidebar .nav > li > a:focus {
|
|
||||||
text-decoration: none;
|
|
||||||
background-color: #e5e3e9;
|
|
||||||
border-right: 1px solid #dbd8e0;
|
|
||||||
}
|
|
||||||
.bs-sidebar .nav > .active > a,
|
|
||||||
.bs-sidebar .nav > .active:hover > a,
|
|
||||||
.bs-sidebar .nav > .active:focus > a {
|
|
||||||
font-weight: bold;
|
|
||||||
color: #563d7c;
|
|
||||||
background-color: transparent;
|
|
||||||
border-right: 1px solid #563d7c;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nav: second level (shown on .active) */
|
|
||||||
.bs-sidebar .nav .nav {
|
|
||||||
display: none; /* Hide by default, but at >768px, show it */
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
.bs-sidebar .nav .nav > li > a {
|
|
||||||
padding-top: 3px;
|
|
||||||
padding-bottom: 3px;
|
|
||||||
padding-left: 30px;
|
|
||||||
font-size: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Side notes for calling out things
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Base styles (regardless of theme) */
|
|
||||||
.bs-callout {
|
|
||||||
margin: 20px 0;
|
|
||||||
padding: 15px 30px 15px 15px;
|
|
||||||
border-left: 5px solid #eee;
|
|
||||||
}
|
|
||||||
.bs-callout h4 {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
.bs-callout p:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.bs-callout code,
|
|
||||||
.bs-callout .highlight {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Themes for different contexts */
|
|
||||||
.bs-callout-danger {
|
|
||||||
background-color: #fcf2f2;
|
|
||||||
border-color: #dFb5b4;
|
|
||||||
}
|
|
||||||
.bs-callout-warning {
|
|
||||||
background-color: #fefbed;
|
|
||||||
border-color: #f1e7bc;
|
|
||||||
}
|
|
||||||
.bs-callout-info {
|
|
||||||
background-color: #f0f7fd;
|
|
||||||
border-color: #d0e3f0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Examples grid
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
.bs-examples h4 {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.bs-examples p {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Special grid styles
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
.show-grid {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
.show-grid [class^="col-"] {
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
background-color: #eee;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
background-color: rgba(86,61,124,.15);
|
|
||||||
border: 1px solid rgba(86,61,124,.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Bootstrap code examples
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Base class */
|
|
||||||
.bs-example {
|
|
||||||
position: relative;
|
|
||||||
padding: 45px 15px 15px;
|
|
||||||
margin: 0 -15px 15px;
|
|
||||||
background-color: #fafafa;
|
|
||||||
box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
|
|
||||||
border-color: #e5e5e5 #eee #eee;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 1px 0;
|
|
||||||
}
|
|
||||||
/* Echo out a label for the example */
|
|
||||||
.bs-example:after {
|
|
||||||
content: "Example";
|
|
||||||
position: absolute;
|
|
||||||
top: 15px;
|
|
||||||
left: 15px;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #bbb;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tweak display of the examples */
|
|
||||||
.bs-example + .highlight {
|
|
||||||
margin: -15px -15px 15px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0 0 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tweak content of examples for optimum awesome */
|
|
||||||
.bs-example > p:last-child,
|
|
||||||
.bs-example > ul:last-child,
|
|
||||||
.bs-example > ol:last-child,
|
|
||||||
.bs-example > blockquote:last-child,
|
|
||||||
.bs-example > .form-control:last-child,
|
|
||||||
.bs-example > .table:last-child,
|
|
||||||
.bs-example > .navbar:last-child
|
|
||||||
.bs-example > .jumbotron:last-child,
|
|
||||||
.bs-example > .alert:last-child,
|
|
||||||
.bs-example > .panel:last-child,
|
|
||||||
.bs-example > .list-group:last-child,
|
|
||||||
.bs-example > .well:last-child,
|
|
||||||
.bs-example > .progress:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.bs-example > p > .close {
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Typography */
|
|
||||||
.bs-example-type .table td:last-child {
|
|
||||||
color: #999;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
.bs-example-type .table td {
|
|
||||||
padding: 15px 0;
|
|
||||||
border-color: #eee;
|
|
||||||
}
|
|
||||||
.bs-example-type .table tr:first-child td {
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
.bs-example-type h1,
|
|
||||||
.bs-example-type h2,
|
|
||||||
.bs-example-type h3,
|
|
||||||
.bs-example-type h4,
|
|
||||||
.bs-example-type h5,
|
|
||||||
.bs-example-type h6 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Images */
|
|
||||||
.bs-example > .img-circle,
|
|
||||||
.bs-example > .img-rounded,
|
|
||||||
.bs-example > .img-thumbnail {
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Buttons */
|
|
||||||
.bs-example > .btn,
|
|
||||||
.bs-example > .btn-group {
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.bs-example > .btn-toolbar + .btn-toolbar {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Forms */
|
|
||||||
.bs-example-control-sizing select,
|
|
||||||
.bs-example-control-sizing input[type="text"] + input[type="text"] {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
.bs-example-form .input-group {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.bs-example > textarea.form-control {
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* List groups */
|
|
||||||
.bs-example > .list-group {
|
|
||||||
max-width: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Navbar examples */
|
|
||||||
.bs-example .navbar:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.bs-navbar-top-example,
|
|
||||||
.bs-navbar-bottom-example {
|
|
||||||
z-index: 1;
|
|
||||||
padding: 0;
|
|
||||||
overflow: hidden; /* cut the drop shadows off */
|
|
||||||
}
|
|
||||||
.bs-navbar-top-example .navbar-fixed-top,
|
|
||||||
.bs-navbar-bottom-example .navbar-fixed-bottom {
|
|
||||||
position: relative;
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
.bs-navbar-top-example {
|
|
||||||
padding-bottom: 45px;
|
|
||||||
}
|
|
||||||
.bs-navbar-top-example:after {
|
|
||||||
top: auto;
|
|
||||||
bottom: 15px;
|
|
||||||
}
|
|
||||||
.bs-navbar-top-example .navbar-fixed-top {
|
|
||||||
top: -1px;
|
|
||||||
}
|
|
||||||
.bs-navbar-bottom-example {
|
|
||||||
padding-top: 45px;
|
|
||||||
}
|
|
||||||
.bs-navbar-bottom-example .navbar-fixed-bottom {
|
|
||||||
bottom: -1px;
|
|
||||||
}
|
|
||||||
.bs-navbar-bottom-example .navbar {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bs-navbar-top-example {
|
|
||||||
border-radius: 0 0 4px 4px;
|
|
||||||
}
|
|
||||||
.bs-navbar-bottom-example {
|
|
||||||
border-radius: 4px 4px 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Example modals */
|
|
||||||
.bs-example-modal {
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
.bs-example-modal .modal {
|
|
||||||
position: relative;
|
|
||||||
top: auto;
|
|
||||||
right: auto;
|
|
||||||
left: auto;
|
|
||||||
bottom: auto;
|
|
||||||
z-index: 1;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.bs-example-modal .modal-dialog {
|
|
||||||
left: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Example dropdowns */
|
|
||||||
.bs-example > .dropdown > .dropdown-menu {
|
|
||||||
position: static;
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Example tabbable tabs */
|
|
||||||
.bs-example-tabs .nav-tabs {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tooltips */
|
|
||||||
.bs-example-tooltips {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.bs-example-tooltips > .btn {
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Popovers */
|
|
||||||
.bs-example-popover {
|
|
||||||
padding-bottom: 24px;
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
}
|
|
||||||
.bs-example-popover .popover {
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
float: left;
|
|
||||||
width: 260px;
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Responsive docs
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Responsive (scrollable) doc tables */
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.bs-table-scrollable {
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
overflow-y: hidden;
|
|
||||||
overflow-x: scroll;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
.bs-table-scrollable .table {
|
|
||||||
margin-bottom: 0;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
.bs-table-scrollable .table th,
|
|
||||||
.bs-table-scrollable .table td {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
.bs-table-scrollable .table th:first-child,
|
|
||||||
.bs-table-scrollable .table td:first-child {
|
|
||||||
border-left: 0;
|
|
||||||
}
|
|
||||||
.bs-table-scrollable .table th:last-child,
|
|
||||||
.bs-table-scrollable .table td:last-child {
|
|
||||||
border-right: 0;
|
|
||||||
}
|
|
||||||
.bs-table-scrollable .table tr:last-child th,
|
|
||||||
.bs-table-scrollable .table tr:last-child td {
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.bs-table-scrollable .highlight pre {
|
|
||||||
white-space: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Related: responsive utilities tables */
|
|
||||||
.table code {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Utility classes table
|
|
||||||
------------------------- */
|
|
||||||
.bs-table th small,
|
|
||||||
.responsive-utilities th small {
|
|
||||||
display: block;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.responsive-utilities tbody th {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
.responsive-utilities td {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.responsive-utilities td.is-visible {
|
|
||||||
color: #468847;
|
|
||||||
background-color: #dff0d8 !important;
|
|
||||||
}
|
|
||||||
.responsive-utilities td.is-hidden {
|
|
||||||
color: #ccc;
|
|
||||||
background-color: #f9f9f9 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive tests
|
|
||||||
------------------------- */
|
|
||||||
.responsive-utilities-test {
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
.responsive-utilities-test .col-xs-6 {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.responsive-utilities-test span {
|
|
||||||
padding: 15px 10px;
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 1.1;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.visible-on .col-xs-6 .hidden-xs,
|
|
||||||
.visible-on .col-xs-6 .hidden-sm,
|
|
||||||
.visible-on .col-xs-6 .hidden-md,
|
|
||||||
.visible-on .col-xs-6 .hidden-lg,
|
|
||||||
.hidden-on .col-xs-6 .visible-xs,
|
|
||||||
.hidden-on .col-xs-6 .visible-sm,
|
|
||||||
.hidden-on .col-xs-6 .visible-md,
|
|
||||||
.hidden-on .col-xs-6 .visible-lg {
|
|
||||||
color: #999;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
.visible-on .col-xs-6 .visible-xs,
|
|
||||||
.visible-on .col-xs-6 .visible-sm,
|
|
||||||
.visible-on .col-xs-6 .visible-md,
|
|
||||||
.visible-on .col-xs-6 .visible-lg,
|
|
||||||
.hidden-on .col-xs-6 .hidden-xs,
|
|
||||||
.hidden-on .col-xs-6 .hidden-sm,
|
|
||||||
.hidden-on .col-xs-6 .hidden-md,
|
|
||||||
.hidden-on .col-xs-6 .hidden-lg {
|
|
||||||
color: #468847;
|
|
||||||
background-color: #dff0d8;
|
|
||||||
border: 1px solid #d6e9c6;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Footer
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
.bs-footer {
|
|
||||||
padding-top: 40px;
|
|
||||||
padding-bottom: 30px;
|
|
||||||
margin-top: 100px;
|
|
||||||
text-align: center;
|
|
||||||
border-top: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
.bs-footer p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
.footer-links {
|
|
||||||
margin: 10px 0;
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
.footer-links li {
|
|
||||||
display: inline;
|
|
||||||
padding: 0 2px;
|
|
||||||
}
|
|
||||||
.footer-links li:first-child {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Social proof buttons from GitHub & Twitter */
|
|
||||||
.bs-social {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
.bs-social-buttons {
|
|
||||||
display: inline-block;
|
|
||||||
margin-bottom: 0;
|
|
||||||
padding-left: 0;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
.bs-social-buttons li {
|
|
||||||
display: inline-block;
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
.bs-social-buttons li + li {
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
.bs-social-buttons .twitter-follow-button {
|
|
||||||
width: 225px !important;
|
|
||||||
}
|
|
||||||
.bs-social-buttons .twitter-share-button {
|
|
||||||
width: 98px !important;
|
|
||||||
}
|
|
||||||
/* Style the GitHub buttons via CSS instead of inline attributes */
|
|
||||||
.github-btn {
|
|
||||||
border: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Misc docs stuff
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Pseudo :focus state for showing how it looks in the docs */
|
|
||||||
#focusedInput {
|
|
||||||
border-color: rgba(82,168,236,.8);
|
|
||||||
outline: 0;
|
|
||||||
outline: thin dotted \9; /* IE6-9 */
|
|
||||||
-moz-box-shadow: 0 0 8px rgba(82,168,236,.6);
|
|
||||||
box-shadow: 0 0 8px rgba(82,168,236,.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Scrollspy demo on fixed height div */
|
|
||||||
.scrollspy-example {
|
|
||||||
position: relative;
|
|
||||||
height: 200px;
|
|
||||||
margin-top: 10px;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlight {
|
|
||||||
padding: 9px 14px;
|
|
||||||
margin-bottom: 14px;
|
|
||||||
background-color: #f7f7f9;
|
|
||||||
border: 1px solid #e1e1e8;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.highlight pre {
|
|
||||||
padding: 0;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
background-color: transparent;
|
|
||||||
border: 0;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
.highlight pre code {
|
|
||||||
font-size: inherit;
|
|
||||||
color: #333; /* Effectively the base text color */
|
|
||||||
}
|
|
||||||
.highlight pre .lineno {
|
|
||||||
display: inline-block;
|
|
||||||
width: 22px;
|
|
||||||
padding-right: 5px;
|
|
||||||
margin-right: 10px;
|
|
||||||
text-align: right;
|
|
||||||
color: #bebec5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Better spacing on download options in getting started */
|
|
||||||
.bs-docs-dl-options h4 {
|
|
||||||
margin-top: 15px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Responsive variations
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Hide code snippets on mobile devices */
|
|
||||||
@media screen and (max-width: 480px) {
|
|
||||||
.highlight {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tablets and up */
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
|
|
||||||
.bs-header {
|
|
||||||
font-size: 21px;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
.bs-header h1 {
|
|
||||||
font-size: 60px;
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-example {
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
background-color: #fff;
|
|
||||||
border-width: 1px;
|
|
||||||
border-color: #ddd;
|
|
||||||
border-radius: 4px 4px 0 0;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
.bs-example + .prettyprint,
|
|
||||||
.bs-example + .highlight {
|
|
||||||
margin-top: -16px;
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
border-width: 1px;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carbonad {
|
|
||||||
margin: 0 !important;
|
|
||||||
border: 1px solid #e5e5e5 !important;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Show the docs nav */
|
|
||||||
.bs-sidebar {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tweak display of docs jumbotrons */
|
|
||||||
.bs-masthead {
|
|
||||||
padding-top: 140px;
|
|
||||||
padding-bottom: 140px;
|
|
||||||
}
|
|
||||||
.bs-masthead h1 {
|
|
||||||
font-size: 100px;
|
|
||||||
}
|
|
||||||
.bs-masthead .lead {
|
|
||||||
margin-left: 15%;
|
|
||||||
margin-right: 15%;
|
|
||||||
font-size: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-navbar-top-example .navbar-fixed-top,
|
|
||||||
.bs-navbar-bottom-example .navbar-fixed-bottom {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tablets/desktops and up */
|
|
||||||
@media screen and (min-width: 992px) {
|
|
||||||
.bs-header h1,
|
|
||||||
.bs-header p {
|
|
||||||
margin-right: 380px;
|
|
||||||
}
|
|
||||||
.carbonad {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
right: 0;
|
|
||||||
padding: 15px !important;
|
|
||||||
width: 330px !important;
|
|
||||||
min-height: 132px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Show the hidden subnavs when space allows it */
|
|
||||||
.bs-sidebar .nav > .active > ul {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
/* Widen the fixed sidebar */
|
|
||||||
.bs-sidebar.affix,
|
|
||||||
.bs-sidebar.affix-bottom {
|
|
||||||
width: 213px;
|
|
||||||
}
|
|
||||||
.bs-sidebar.affix {
|
|
||||||
position: fixed; /* Undo the static from mobile-first approach */
|
|
||||||
top: 80px;
|
|
||||||
}
|
|
||||||
.bs-sidebar.affix-bottom {
|
|
||||||
position: absolute; /* Undo the static from mobile-first approach */
|
|
||||||
}
|
|
||||||
.bs-sidebar.affix-bottom .bs-sidenav,
|
|
||||||
.bs-sidebar.affix .bs-sidenav {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Large desktops and up */
|
|
||||||
@media screen and (min-width: 1200px) {
|
|
||||||
|
|
||||||
/* Widen the fixed sidebar again */
|
|
||||||
.bs-sidebar.affix-bottom,
|
|
||||||
.bs-sidebar.affix {
|
|
||||||
width: 263px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.9 KiB |
|
@ -1,83 +0,0 @@
|
||||||
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
|
|
||||||
// IT'S ALL JUST JUNK FOR OUR DOCS!
|
|
||||||
// ++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
|
|
||||||
!function ($) {
|
|
||||||
|
|
||||||
$(function(){
|
|
||||||
|
|
||||||
var $window = $(window)
|
|
||||||
var $body = $(document.body)
|
|
||||||
|
|
||||||
var navHeight = $('.navbar').outerHeight(true) + 10
|
|
||||||
|
|
||||||
$body.scrollspy({
|
|
||||||
target: '.bs-sidebar',
|
|
||||||
offset: navHeight
|
|
||||||
})
|
|
||||||
|
|
||||||
$window.on('load', function () {
|
|
||||||
$body.scrollspy('refresh')
|
|
||||||
})
|
|
||||||
|
|
||||||
$('.bs-docs-container [href=#]').click(function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
})
|
|
||||||
|
|
||||||
// back to top
|
|
||||||
setTimeout(function () {
|
|
||||||
var $sideBar = $('.bs-sidebar')
|
|
||||||
|
|
||||||
$sideBar.affix({
|
|
||||||
offset: {
|
|
||||||
top: function () {
|
|
||||||
var offsetTop = $sideBar.offset().top
|
|
||||||
var sideBarMargin = parseInt($sideBar.children(0).css('margin-top'), 10)
|
|
||||||
var navOuterHeight = $('.bs-docs-nav').height()
|
|
||||||
|
|
||||||
return (this.top = offsetTop - navOuterHeight - sideBarMargin)
|
|
||||||
}
|
|
||||||
, bottom: function () {
|
|
||||||
return (this.bottom = $('.bs-footer').outerHeight(true))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}, 100)
|
|
||||||
|
|
||||||
setTimeout(function () {
|
|
||||||
$('.bs-top').affix()
|
|
||||||
}, 100)
|
|
||||||
|
|
||||||
// tooltip demo
|
|
||||||
$('.tooltip-demo').tooltip({
|
|
||||||
selector: "[data-toggle=tooltip]",
|
|
||||||
container: "body"
|
|
||||||
})
|
|
||||||
|
|
||||||
$('.tooltip-test').tooltip()
|
|
||||||
$('.popover-test').popover()
|
|
||||||
|
|
||||||
$('.bs-docs-navbar').tooltip({
|
|
||||||
selector: "a[data-toggle=tooltip]",
|
|
||||||
container: ".bs-docs-navbar .nav"
|
|
||||||
})
|
|
||||||
|
|
||||||
// popover demo
|
|
||||||
$("[data-toggle=popover]")
|
|
||||||
.popover()
|
|
||||||
|
|
||||||
// button state demo
|
|
||||||
$('#fat-btn')
|
|
||||||
.click(function () {
|
|
||||||
var btn = $(this)
|
|
||||||
btn.button('loading')
|
|
||||||
setTimeout(function () {
|
|
||||||
btn.button('reset')
|
|
||||||
}, 3000)
|
|
||||||
})
|
|
||||||
|
|
||||||
// carousel demo
|
|
||||||
$('.bs-docs-carousel-example').carousel()
|
|
||||||
})
|
|
||||||
|
|
||||||
}(window.jQuery)
|
|
|
@ -1,175 +0,0 @@
|
||||||
window.onload = function () { // wait for load in a dumb way because B-0
|
|
||||||
var cw = '/*!\n * Bootstrap v3.0.0-rc.2\n *\n * Copyright 2013 Twitter, Inc\n * Licensed under the Apache License v2.0\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Designed and built with all the love in the world @twitter by @mdo and @fat.\n */\n\n'
|
|
||||||
|
|
||||||
function generateUrl() {
|
|
||||||
var vars = {}
|
|
||||||
|
|
||||||
$('#less-variables-section input')
|
|
||||||
.each(function () {
|
|
||||||
$(this).val() && (vars[ $(this).prev().text() ] = $(this).val())
|
|
||||||
})
|
|
||||||
|
|
||||||
var data = {
|
|
||||||
vars: vars,
|
|
||||||
css: $('#less-section input:not(:checked)').map(function () { return this.value }).toArray(),
|
|
||||||
js: $('#plugin-section input:not(:checked)').map(function () { return this.value }).toArray()
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($.isEmptyObject(data.vars) && !data.css.length && !data.js.length) return
|
|
||||||
|
|
||||||
window.location = jQuery.param.querystring('/customize/', data)
|
|
||||||
}
|
|
||||||
|
|
||||||
function parseUrl() {
|
|
||||||
var data = jQuery.deparam.querystring()
|
|
||||||
|
|
||||||
if (data.js) {
|
|
||||||
for (var i = 0; i < data.js.length; i++) {
|
|
||||||
var input = $('input[value="'+data.js[i]+'"]')
|
|
||||||
input && input.prop('checked', false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.css) {
|
|
||||||
for (var i = 0; i < data.css.length; i++) {
|
|
||||||
var input = $('input[value="'+data.css[i]+'"]')
|
|
||||||
input && input.prop('checked', false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.vars) {
|
|
||||||
// todo (fat): vars
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function generateZip(css, js, complete) {
|
|
||||||
if (!css && !js) return alert('you want to build nothing… o_O')
|
|
||||||
|
|
||||||
var zip = new JSZip()
|
|
||||||
|
|
||||||
if (css) {
|
|
||||||
var cssFolder = zip.folder('css')
|
|
||||||
for (var fileName in css) {
|
|
||||||
cssFolder.file(fileName, css[fileName])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (js) {
|
|
||||||
var jsFolder = zip.folder('js')
|
|
||||||
for (var fileName in js) {
|
|
||||||
jsFolder.file(fileName, js[fileName])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var content = zip.generate()
|
|
||||||
|
|
||||||
location.href = 'data:application/zip;base64,' + content
|
|
||||||
|
|
||||||
complete()
|
|
||||||
}
|
|
||||||
|
|
||||||
function generateCustomCSS(vars) {
|
|
||||||
var result = ''
|
|
||||||
|
|
||||||
for (var key in vars) {
|
|
||||||
result += key + ': ' + vars[key] + ';\n'
|
|
||||||
}
|
|
||||||
|
|
||||||
return result + '\n\n'
|
|
||||||
}
|
|
||||||
|
|
||||||
function generateCSS() {
|
|
||||||
var $checked = $('#less-section input:checked')
|
|
||||||
|
|
||||||
if (!$checked.length) return false
|
|
||||||
|
|
||||||
var result = {}
|
|
||||||
var vars = {}
|
|
||||||
var css = ''
|
|
||||||
|
|
||||||
$('#less-variables-section input')
|
|
||||||
.each(function () {
|
|
||||||
$(this).val() && (vars[ $(this).prev().text() ] = $(this).val())
|
|
||||||
})
|
|
||||||
|
|
||||||
css += __less['variables.less']
|
|
||||||
if (vars) css += generateCustomCSS(vars)
|
|
||||||
css += __less['mixins.less']
|
|
||||||
css += $checked
|
|
||||||
.map(function () { return __less[this.value] })
|
|
||||||
.toArray()
|
|
||||||
.join('\n')
|
|
||||||
|
|
||||||
css = css.replace(/@import[^\n]*/gi, '') //strip any imports
|
|
||||||
|
|
||||||
try {
|
|
||||||
var parser = new less.Parser({
|
|
||||||
paths: ['variables.less', 'mixins.less']
|
|
||||||
, optimization: 0
|
|
||||||
, filename: 'bootstrap.css'
|
|
||||||
}).parse(css, function (err, tree) {
|
|
||||||
if (err) return alert(err)
|
|
||||||
|
|
||||||
result = {
|
|
||||||
'bootstrap.css' : cw + tree.toCSS(),
|
|
||||||
'bootstrap.min.css' : cw + tree.toCSS({ compress: true })
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} catch (err) {
|
|
||||||
return alert(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
function generateJavascript() {
|
|
||||||
var $checked = $('#plugin-section input:checked')
|
|
||||||
if (!$checked.length) return false
|
|
||||||
|
|
||||||
var js = $checked
|
|
||||||
.map(function () { return __js[this.value] })
|
|
||||||
.toArray()
|
|
||||||
.join('\n')
|
|
||||||
|
|
||||||
return {
|
|
||||||
'bootstrap.js': js,
|
|
||||||
'bootstrap.min.js': cw + uglify(js)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var $downloadBtn = $('#btn-download').on('click', function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
$downloadBtn.addClass('loading')
|
|
||||||
generateZip(generateCSS(), generateJavascript(), function () {
|
|
||||||
$downloadBtn.removeClass('loading')
|
|
||||||
setTimeout(function () {
|
|
||||||
generateUrl()
|
|
||||||
}, 1)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
var inputsComponent = $('#less-section input')
|
|
||||||
var inputsPlugin = $('#plugin-section input')
|
|
||||||
var inputsVariables = $('#less-variables-section input')
|
|
||||||
|
|
||||||
$('#less-section .toggle').on('click', function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
inputsComponent.prop('checked', !inputsComponent.is(':checked'))
|
|
||||||
})
|
|
||||||
|
|
||||||
$('#plugin-section .toggle').on('click', function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
inputsPlugin.prop('checked', !inputsPlugin.is(':checked'))
|
|
||||||
})
|
|
||||||
|
|
||||||
$('#less-variables-section .toggle').on('click', function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
inputsVariables.val('')
|
|
||||||
})
|
|
||||||
|
|
||||||
try {
|
|
||||||
parseUrl()
|
|
||||||
} catch (e) {
|
|
||||||
// maybe alert user that we can't parse their url
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,419 +0,0 @@
|
||||||
/*
|
|
||||||
|
|
||||||
Holder - 2.0 - client side image placeholders
|
|
||||||
(c) 2012-2013 Ivan Malopinsky / http://imsky.co
|
|
||||||
|
|
||||||
Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
Commercial use requires attribution.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
var Holder = Holder || {};
|
|
||||||
(function (app, win) {
|
|
||||||
|
|
||||||
var preempted = false,
|
|
||||||
fallback = false,
|
|
||||||
canvas = document.createElement('canvas');
|
|
||||||
|
|
||||||
//getElementsByClassName polyfill
|
|
||||||
document.getElementsByClassName||(document.getElementsByClassName=function(e){var t=document,n,r,i,s=[];if(t.querySelectorAll)return t.querySelectorAll("."+e);if(t.evaluate){r=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",n=t.evaluate(r,t,null,0,null);while(i=n.iterateNext())s.push(i)}else{n=t.getElementsByTagName("*"),r=new RegExp("(^|\\s)"+e+"(\\s|$)");for(i=0;i<n.length;i++)r.test(n[i].className)&&s.push(n[i])}return s})
|
|
||||||
|
|
||||||
//getComputedStyle polyfill
|
|
||||||
window.getComputedStyle||(window.getComputedStyle=function(e,t){return this.el=e,this.getPropertyValue=function(t){var n=/(\-([a-z]){1})/g;return t=="float"&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(){return arguments[2].toUpperCase()})),e.currentStyle[t]?e.currentStyle[t]:null},this})
|
|
||||||
|
|
||||||
//http://javascript.nwbox.com/ContentLoaded by Diego Perini with modifications
|
|
||||||
function contentLoaded(n,t){var l="complete",s="readystatechange",u=!1,h=u,c=!0,i=n.document,a=i.documentElement,e=i.addEventListener?"addEventListener":"attachEvent",v=i.addEventListener?"removeEventListener":"detachEvent",f=i.addEventListener?"":"on",r=function(e){(e.type!=s||i.readyState==l)&&((e.type=="load"?n:i)[v](f+e.type,r,u),!h&&(h=!0)&&t.call(n,null))},o=function(){try{a.doScroll("left")}catch(n){setTimeout(o,50);return}r("poll")};if(i.readyState==l)t.call(n,"lazy");else{if(i.createEventObject&&a.doScroll){try{c=!n.frameElement}catch(y){}c&&o()}i[e](f+"DOMContentLoaded",r,u),i[e](f+s,r,u),n[e](f+"load",r,u)}};
|
|
||||||
|
|
||||||
//https://gist.github.com/991057 by Jed Schmidt with modifications
|
|
||||||
function selector(a){
|
|
||||||
a=a.match(/^(\W)?(.*)/);var b=document["getElement"+(a[1]?a[1]=="#"?"ById":"sByClassName":"sByTagName")](a[2]);
|
|
||||||
var ret=[]; b!=null&&(b.length?ret=b:b.length==0?ret=b:ret=[b]); return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
//shallow object property extend
|
|
||||||
function extend(a,b){var c={};for(var d in a)c[d]=a[d];for(var e in b)c[e]=b[e];return c}
|
|
||||||
|
|
||||||
//hasOwnProperty polyfill
|
|
||||||
if (!Object.prototype.hasOwnProperty)
|
|
||||||
Object.prototype.hasOwnProperty = function(prop) {
|
|
||||||
var proto = this.__proto__ || this.constructor.prototype;
|
|
||||||
return (prop in this) && (!(prop in proto) || proto[prop] !== this[prop]);
|
|
||||||
}
|
|
||||||
|
|
||||||
function text_size(width, height, template) {
|
|
||||||
height = parseInt(height,10);
|
|
||||||
width = parseInt(width,10);
|
|
||||||
var bigSide = Math.max(height, width)
|
|
||||||
var smallSide = Math.min(height, width)
|
|
||||||
var scale = 1 / 12;
|
|
||||||
var newHeight = Math.min(smallSide * 0.75, 0.75 * bigSide * scale);
|
|
||||||
return {
|
|
||||||
height: Math.round(Math.max(template.size, newHeight))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function draw(ctx, dimensions, template, ratio) {
|
|
||||||
var ts = text_size(dimensions.width, dimensions.height, template);
|
|
||||||
var text_height = ts.height;
|
|
||||||
var width = dimensions.width * ratio,
|
|
||||||
height = dimensions.height * ratio;
|
|
||||||
var font = template.font ? template.font : "sans-serif";
|
|
||||||
canvas.width = width;
|
|
||||||
canvas.height = height;
|
|
||||||
ctx.textAlign = "center";
|
|
||||||
ctx.textBaseline = "middle";
|
|
||||||
ctx.fillStyle = template.background;
|
|
||||||
ctx.fillRect(0, 0, width, height);
|
|
||||||
ctx.fillStyle = template.foreground;
|
|
||||||
ctx.font = "bold " + text_height + "px " + font;
|
|
||||||
var text = template.text ? template.text : (Math.floor(dimensions.width) + "x" + Math.floor(dimensions.height));
|
|
||||||
var text_width = ctx.measureText(text).width;
|
|
||||||
if (text_width / width >= 0.75) {
|
|
||||||
text_height = Math.floor(text_height * 0.75 * (width/text_width));
|
|
||||||
}
|
|
||||||
//Resetting font size if necessary
|
|
||||||
ctx.font = "bold " + (text_height * ratio) + "px " + font;
|
|
||||||
ctx.fillText(text, (width / 2), (height / 2), width);
|
|
||||||
return canvas.toDataURL("image/png");
|
|
||||||
}
|
|
||||||
|
|
||||||
function render(mode, el, holder, src) {
|
|
||||||
var dimensions = holder.dimensions,
|
|
||||||
theme = holder.theme,
|
|
||||||
text = holder.text ? decodeURIComponent(holder.text) : holder.text;
|
|
||||||
var dimensions_caption = dimensions.width + "x" + dimensions.height;
|
|
||||||
theme = (text ? extend(theme, {
|
|
||||||
text: text
|
|
||||||
}) : theme);
|
|
||||||
theme = (holder.font ? extend(theme, {
|
|
||||||
font: holder.font
|
|
||||||
}) : theme);
|
|
||||||
if (mode == "image") {
|
|
||||||
el.setAttribute("data-src", src);
|
|
||||||
el.setAttribute("alt", text ? text : theme.text ? theme.text + " [" + dimensions_caption + "]" : dimensions_caption);
|
|
||||||
if (fallback || !holder.auto) {
|
|
||||||
el.style.width = dimensions.width + "px";
|
|
||||||
el.style.height = dimensions.height + "px";
|
|
||||||
}
|
|
||||||
if (fallback) {
|
|
||||||
el.style.backgroundColor = theme.background;
|
|
||||||
} else {
|
|
||||||
el.setAttribute("src", draw(ctx, dimensions, theme, ratio));
|
|
||||||
}
|
|
||||||
} else if (mode == "background") {
|
|
||||||
if (!fallback) {
|
|
||||||
el.style.backgroundImage = "url(" + draw(ctx, dimensions, theme, ratio) + ")";
|
|
||||||
el.style.backgroundSize = dimensions.width + "px " + dimensions.height + "px";
|
|
||||||
}
|
|
||||||
} else if (mode == "fluid") {
|
|
||||||
el.setAttribute("data-src", src);
|
|
||||||
el.setAttribute("alt", text ? text : theme.text ? theme.text + " [" + dimensions_caption + "]" : dimensions_caption);
|
|
||||||
if (dimensions.height.substr(-1) == "%") {
|
|
||||||
el.style.height = dimensions.height
|
|
||||||
} else {
|
|
||||||
el.style.height = dimensions.height + "px"
|
|
||||||
}
|
|
||||||
if (dimensions.width.substr(-1) == "%") {
|
|
||||||
el.style.width = dimensions.width
|
|
||||||
} else {
|
|
||||||
el.style.width = dimensions.width + "px"
|
|
||||||
}
|
|
||||||
if (el.style.display == "inline" || el.style.display == "") {
|
|
||||||
el.style.display = "block";
|
|
||||||
}
|
|
||||||
if (fallback) {
|
|
||||||
el.style.backgroundColor = theme.background;
|
|
||||||
} else {
|
|
||||||
el.holderData = holder;
|
|
||||||
fluid_images.push(el);
|
|
||||||
fluid_update(el);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function fluid_update(element) {
|
|
||||||
var images;
|
|
||||||
if (element.nodeType == null) {
|
|
||||||
images = fluid_images;
|
|
||||||
} else {
|
|
||||||
images = [element]
|
|
||||||
}
|
|
||||||
for (i in images) {
|
|
||||||
var el = images[i]
|
|
||||||
if (el.holderData) {
|
|
||||||
var holder = el.holderData;
|
|
||||||
el.setAttribute("src", draw(ctx, {
|
|
||||||
height: el.clientHeight,
|
|
||||||
width: el.clientWidth
|
|
||||||
}, holder.theme, ratio));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function parse_flags(flags, options) {
|
|
||||||
|
|
||||||
var ret = {
|
|
||||||
theme: settings.themes.gray
|
|
||||||
}, render = false;
|
|
||||||
|
|
||||||
for (sl = flags.length, j = 0; j < sl; j++) {
|
|
||||||
var flag = flags[j];
|
|
||||||
if (app.flags.dimensions.match(flag)) {
|
|
||||||
render = true;
|
|
||||||
ret.dimensions = app.flags.dimensions.output(flag);
|
|
||||||
} else if (app.flags.fluid.match(flag)) {
|
|
||||||
render = true;
|
|
||||||
ret.dimensions = app.flags.fluid.output(flag);
|
|
||||||
ret.fluid = true;
|
|
||||||
} else if (app.flags.colors.match(flag)) {
|
|
||||||
ret.theme = app.flags.colors.output(flag);
|
|
||||||
} else if (options.themes[flag]) {
|
|
||||||
//If a theme is specified, it will override custom colors
|
|
||||||
ret.theme = options.themes[flag];
|
|
||||||
} else if (app.flags.text.match(flag)) {
|
|
||||||
ret.text = app.flags.text.output(flag);
|
|
||||||
} else if (app.flags.font.match(flag)) {
|
|
||||||
ret.font = app.flags.font.output(flag);
|
|
||||||
} else if (app.flags.auto.match(flag)) {
|
|
||||||
ret.auto = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return render ? ret : false;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!canvas.getContext) {
|
|
||||||
fallback = true;
|
|
||||||
} else {
|
|
||||||
if (canvas.toDataURL("image/png")
|
|
||||||
.indexOf("data:image/png") < 0) {
|
|
||||||
//Android doesn't support data URI
|
|
||||||
fallback = true;
|
|
||||||
} else {
|
|
||||||
var ctx = canvas.getContext("2d");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var dpr = 1, bsr = 1;
|
|
||||||
|
|
||||||
if(!fallback){
|
|
||||||
dpr = window.devicePixelRatio || 1,
|
|
||||||
bsr = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
var ratio = dpr / bsr;
|
|
||||||
|
|
||||||
var fluid_images = [];
|
|
||||||
|
|
||||||
var settings = {
|
|
||||||
domain: "holder.js",
|
|
||||||
images: "img",
|
|
||||||
bgnodes: ".holderjs",
|
|
||||||
themes: {
|
|
||||||
"gray": {
|
|
||||||
background: "#eee",
|
|
||||||
foreground: "#aaa",
|
|
||||||
size: 12
|
|
||||||
},
|
|
||||||
"social": {
|
|
||||||
background: "#3a5a97",
|
|
||||||
foreground: "#fff",
|
|
||||||
size: 12
|
|
||||||
},
|
|
||||||
"industrial": {
|
|
||||||
background: "#434A52",
|
|
||||||
foreground: "#C2F200",
|
|
||||||
size: 12
|
|
||||||
}
|
|
||||||
},
|
|
||||||
stylesheet: ".holderjs-fluid {font-size:16px;font-weight:bold;text-align:center;font-family:sans-serif;margin:0}"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
app.flags = {
|
|
||||||
dimensions: {
|
|
||||||
regex: /^(\d+)x(\d+)$/,
|
|
||||||
output: function (val) {
|
|
||||||
var exec = this.regex.exec(val);
|
|
||||||
return {
|
|
||||||
width: +exec[1],
|
|
||||||
height: +exec[2]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
fluid: {
|
|
||||||
regex: /^([0-9%]+)x([0-9%]+)$/,
|
|
||||||
output: function (val) {
|
|
||||||
var exec = this.regex.exec(val);
|
|
||||||
return {
|
|
||||||
width: exec[1],
|
|
||||||
height: exec[2]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
colors: {
|
|
||||||
regex: /#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,
|
|
||||||
output: function (val) {
|
|
||||||
var exec = this.regex.exec(val);
|
|
||||||
return {
|
|
||||||
size: settings.themes.gray.size,
|
|
||||||
foreground: "#" + exec[2],
|
|
||||||
background: "#" + exec[1]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
text: {
|
|
||||||
regex: /text\:(.*)/,
|
|
||||||
output: function (val) {
|
|
||||||
return this.regex.exec(val)[1];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
font: {
|
|
||||||
regex: /font\:(.*)/,
|
|
||||||
output: function (val) {
|
|
||||||
return this.regex.exec(val)[1];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
auto: {
|
|
||||||
regex: /^auto$/
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var flag in app.flags) {
|
|
||||||
if (!app.flags.hasOwnProperty(flag)) continue;
|
|
||||||
app.flags[flag].match = function (val) {
|
|
||||||
return val.match(this.regex)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
app.add_theme = function (name, theme) {
|
|
||||||
name != null && theme != null && (settings.themes[name] = theme);
|
|
||||||
return app;
|
|
||||||
};
|
|
||||||
|
|
||||||
app.add_image = function (src, el) {
|
|
||||||
var node = selector(el);
|
|
||||||
if (node.length) {
|
|
||||||
for (var i = 0, l = node.length; i < l; i++) {
|
|
||||||
var img = document.createElement("img")
|
|
||||||
img.setAttribute("data-src", src);
|
|
||||||
node[i].appendChild(img);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return app;
|
|
||||||
};
|
|
||||||
|
|
||||||
app.run = function (o) {
|
|
||||||
var options = extend(settings, o),
|
|
||||||
images = [], imageNodes = [], bgnodes = [];
|
|
||||||
|
|
||||||
if(typeof(options.images) == "string"){
|
|
||||||
imageNodes = selector(options.images);
|
|
||||||
}
|
|
||||||
else if (window.NodeList && options.images instanceof window.NodeList) {
|
|
||||||
imageNodes = options.images;
|
|
||||||
} else if (window.Node && options.images instanceof window.Node) {
|
|
||||||
imageNodes = [options.images];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(typeof(options.bgnodes) == "string"){
|
|
||||||
bgnodes = selector(options.bgnodes);
|
|
||||||
} else if (window.NodeList && options.elements instanceof window.NodeList) {
|
|
||||||
bgnodes = options.bgnodes;
|
|
||||||
} else if (window.Node && options.bgnodes instanceof window.Node) {
|
|
||||||
bgnodes = [options.bgnodes];
|
|
||||||
}
|
|
||||||
|
|
||||||
preempted = true;
|
|
||||||
|
|
||||||
for (i = 0, l = imageNodes.length; i < l; i++) images.push(imageNodes[i]);
|
|
||||||
|
|
||||||
var holdercss = document.getElementById("holderjs-style");
|
|
||||||
if (!holdercss) {
|
|
||||||
holdercss = document.createElement("style");
|
|
||||||
holdercss.setAttribute("id", "holderjs-style");
|
|
||||||
holdercss.type = "text/css";
|
|
||||||
document.getElementsByTagName("head")[0].appendChild(holdercss);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!options.nocss) {
|
|
||||||
if (holdercss.styleSheet) {
|
|
||||||
holdercss.styleSheet.cssText += options.stylesheet;
|
|
||||||
} else {
|
|
||||||
holdercss.appendChild(document.createTextNode(options.stylesheet));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var cssregex = new RegExp(options.domain + "\/(.*?)\"?\\)");
|
|
||||||
|
|
||||||
for (var l = bgnodes.length, i = 0; i < l; i++) {
|
|
||||||
var src = window.getComputedStyle(bgnodes[i], null)
|
|
||||||
.getPropertyValue("background-image");
|
|
||||||
var flags = src.match(cssregex);
|
|
||||||
var bgsrc = bgnodes[i].getAttribute("data-background-src");
|
|
||||||
|
|
||||||
if (flags) {
|
|
||||||
var holder = parse_flags(flags[1].split("/"), options);
|
|
||||||
if (holder) {
|
|
||||||
render("background", bgnodes[i], holder, src);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if(bgsrc != null){
|
|
||||||
var holder = parse_flags(bgsrc.substr(bgsrc.lastIndexOf(options.domain) + options.domain.length + 1)
|
|
||||||
.split("/"), options);
|
|
||||||
if(holder){
|
|
||||||
render("background", bgnodes[i], holder, src);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (l = images.length, i = 0; i < l; i++) {
|
|
||||||
|
|
||||||
var attr_src = attr_data_src = src = null;
|
|
||||||
|
|
||||||
try{
|
|
||||||
attr_src = images[i].getAttribute("src");
|
|
||||||
attr_datasrc = images[i].getAttribute("data-src");
|
|
||||||
}catch(e){}
|
|
||||||
|
|
||||||
if (attr_datasrc == null && !! attr_src && attr_src.indexOf(options.domain) >= 0) {
|
|
||||||
src = attr_src;
|
|
||||||
} else if ( !! attr_datasrc && attr_datasrc.indexOf(options.domain) >= 0) {
|
|
||||||
src = attr_datasrc;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (src) {
|
|
||||||
var holder = parse_flags(src.substr(src.lastIndexOf(options.domain) + options.domain.length + 1)
|
|
||||||
.split("/"), options);
|
|
||||||
if (holder) {
|
|
||||||
if (holder.fluid) {
|
|
||||||
render("fluid", images[i], holder, src)
|
|
||||||
} else {
|
|
||||||
render("image", images[i], holder, src);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return app;
|
|
||||||
};
|
|
||||||
|
|
||||||
contentLoaded(win, function () {
|
|
||||||
if (window.addEventListener) {
|
|
||||||
window.addEventListener("resize", fluid_update, false);
|
|
||||||
window.addEventListener("orientationchange", fluid_update, false);
|
|
||||||
} else {
|
|
||||||
window.attachEvent("onresize", fluid_update)
|
|
||||||
}
|
|
||||||
preempted || app.run();
|
|
||||||
});
|
|
||||||
|
|
||||||
if (typeof define === "function" && define.amd) {
|
|
||||||
define("Holder", [], function () {
|
|
||||||
return app;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
})(Holder, window);
|
|
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"name": "bootstrap",
|
|
||||||
"version": "3.0.0",
|
|
||||||
"main": ["./dist/js/bootstrap.js", "./dist/css/bootstrap.css"],
|
|
||||||
"ignore": [
|
|
||||||
"**/.*"
|
|
||||||
],
|
|
||||||
"dependencies": {
|
|
||||||
"jquery": ">= 1.9.0"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"username": "--secure--",
|
|
||||||
"key": "--secure--",
|
|
||||||
"test_path": "js/tests/index.html",
|
|
||||||
"browsers": [
|
|
||||||
{
|
|
||||||
"browser": "firefox",
|
|
||||||
"browser_version": "latest",
|
|
||||||
"os": "OS X",
|
|
||||||
"os_version": "Mountain Lion"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"browser": "safari",
|
|
||||||
"browser_version": "latest",
|
|
||||||
"os": "OS X",
|
|
||||||
"os_version": "Mountain Lion"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"browser": "chrome",
|
|
||||||
"browser_version": "latest",
|
|
||||||
"os": "OS X",
|
|
||||||
"os_version": "Mountain Lion"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"browser": "firefox",
|
|
||||||
"browser_version": "latest",
|
|
||||||
"os": "Windows",
|
|
||||||
"os_version": "7"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"browser": "chrome",
|
|
||||||
"browser_version": "latest",
|
|
||||||
"os": "Windows",
|
|
||||||
"os_version": "7"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
"name": "twbs/bootstrap"
|
|
||||||
, "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development."
|
|
||||||
, "keywords": ["bootstrap", "css"]
|
|
||||||
, "homepage": "http://getbootstrap.com"
|
|
||||||
, "authors": [
|
|
||||||
{
|
|
||||||
"name": "Mark Otto",
|
|
||||||
"email": "markdotto@gmail.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Jacob Thornton",
|
|
||||||
"email": "jacobthornton@gmail.com"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
, "support": {
|
|
||||||
"issues": "https://github.com/twbs/bootstrap/issues"
|
|
||||||
}
|
|
||||||
, "license": "Apache-2.0"
|
|
||||||
}
|
|
|
@ -1,134 +0,0 @@
|
||||||
/* GLOBAL STYLES
|
|
||||||
-------------------------------------------------- */
|
|
||||||
/* Padding below the footer and lighter body text */
|
|
||||||
|
|
||||||
body {
|
|
||||||
padding-bottom: 40px;
|
|
||||||
color: #5a5a5a;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* CUSTOMIZE THE NAVBAR
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Special class on .container surrounding .navbar, used for positioning it into place. */
|
|
||||||
.navbar-wrapper {
|
|
||||||
position: relative;
|
|
||||||
z-index: 15;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* CUSTOMIZE THE CAROUSEL
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Carousel base class */
|
|
||||||
.carousel {
|
|
||||||
margin-bottom: 60px;
|
|
||||||
|
|
||||||
/* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
|
|
||||||
margin-top: -90px;
|
|
||||||
}
|
|
||||||
/* Since positioning the image, we need to help out the caption */
|
|
||||||
.carousel-caption {
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Declare heights because of positioning of img element */
|
|
||||||
.carousel .item {
|
|
||||||
height: 500px;
|
|
||||||
}
|
|
||||||
.carousel-inner > .item > img {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
min-width: 100%;
|
|
||||||
height: 500px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* MARKETING CONTENT
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Pad the edges of the mobile views a bit */
|
|
||||||
.marketing {
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Center align the text within the three columns below the carousel */
|
|
||||||
.marketing .col-lg-4 {
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
.marketing h2 {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
.marketing .col-lg-4 p {
|
|
||||||
margin-left: 10px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Featurettes
|
|
||||||
------------------------- */
|
|
||||||
|
|
||||||
.featurette-divider {
|
|
||||||
margin: 80px 0; /* Space out the Bootstrap <hr> more */
|
|
||||||
}
|
|
||||||
.featurette {
|
|
||||||
padding-top: 120px; /* Vertically center images part 1: add padding above and below text. */
|
|
||||||
overflow: hidden; /* Vertically center images part 2: clear their floats. */
|
|
||||||
}
|
|
||||||
.featurette-image {
|
|
||||||
margin-top: -120px; /* Vertically center images part 3: negative margin up the image the same amount of the padding to center it. */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Give some space on the sides of the floated elements so text doesn't run right into it. */
|
|
||||||
.featurette-image.pull-left {
|
|
||||||
margin-right: 40px;
|
|
||||||
}
|
|
||||||
.featurette-image.pull-right {
|
|
||||||
margin-left: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Thin out the marketing headings */
|
|
||||||
.featurette-heading {
|
|
||||||
font-size: 50px;
|
|
||||||
font-weight: 300;
|
|
||||||
line-height: 1;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* RESPONSIVE CSS
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
|
|
||||||
/* Remve the edge padding needed for mobile */
|
|
||||||
.marketing {
|
|
||||||
padding-left: 0;
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Navbar positioning foo */
|
|
||||||
.navbar-wrapper {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
/* The navbar becomes detached from the top, so we round the corners */
|
|
||||||
.navbar-wrapper .navbar {
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Bump up size of carousel content */
|
|
||||||
.carousel-caption p {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
font-size: 21px;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,184 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Carousel Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
<link href="../../dist/css/bootstrap-glyphicons.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="carousel.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<!-- NAVBAR
|
|
||||||
================================================== -->
|
|
||||||
<body>
|
|
||||||
<div class="navbar-wrapper">
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="navbar navbar-inverse navbar-static-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="navbar-collapse collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li class="dropdown-header">Nav header</li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Carousel
|
|
||||||
================================================== -->
|
|
||||||
<div id="myCarousel" class="carousel slide">
|
|
||||||
<!-- Indicators -->
|
|
||||||
<ol class="carousel-indicators">
|
|
||||||
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
|
|
||||||
<li data-target="#myCarousel" data-slide-to="1"></li>
|
|
||||||
<li data-target="#myCarousel" data-slide-to="2"></li>
|
|
||||||
</ol>
|
|
||||||
<div class="carousel-inner">
|
|
||||||
<div class="item active">
|
|
||||||
<img data-src="holder.js/1500x500/auto/#777:#7a7a7a/text:First slide" alt="">
|
|
||||||
<div class="container">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<h1>Example headline.</h1>
|
|
||||||
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p><a class="btn btn-large btn-primary" href="#">Sign up today</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img data-src="holder.js/1500x500/auto/#777:#7a7a7a/text:Second slide" alt="">
|
|
||||||
<div class="container">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<h1>Another example headline.</h1>
|
|
||||||
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p><a class="btn btn-large btn-primary" href="#">Learn more</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<img data-src="holder.js/1500x500/auto/#777:#7a7a7a/text:Third slide" alt="">
|
|
||||||
<div class="container">
|
|
||||||
<div class="carousel-caption">
|
|
||||||
<h1>One more for good measure.</h1>
|
|
||||||
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
|
||||||
<p><a class="btn btn-large btn-primary" href="#">Browse gallery</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
|
|
||||||
<a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
|
|
||||||
</div><!-- /.carousel -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Marketing messaging and featurettes
|
|
||||||
================================================== -->
|
|
||||||
<!-- Wrap the rest of the page in another container to center all the content. -->
|
|
||||||
|
|
||||||
<div class="container marketing">
|
|
||||||
|
|
||||||
<!-- Three columns of text below the carousel -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<img class="img-circle" data-src="holder.js/140x140">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna.</p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!-- /.col-lg-4 -->
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<img class="img-circle" data-src="holder.js/140x140">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.</p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!-- /.col-lg-4 -->
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<img class="img-circle" data-src="holder.js/140x140">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!-- /.col-lg-4 -->
|
|
||||||
</div><!-- /.row -->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- START THE FEATURETTES -->
|
|
||||||
|
|
||||||
<hr class="featurette-divider">
|
|
||||||
|
|
||||||
<div class="featurette">
|
|
||||||
<img class="featurette-image img-circle pull-right" data-src="holder.js/512x512">
|
|
||||||
<h2 class="featurette-heading">First featurette heading. <span class="text-muted">It'll blow your mind.</span></h2>
|
|
||||||
<p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr class="featurette-divider">
|
|
||||||
|
|
||||||
<div class="featurette">
|
|
||||||
<img class="featurette-image img-circle pull-left" data-src="holder.js/512x512">
|
|
||||||
<h2 class="featurette-heading">Oh yeah, it's that good. <span class="text-muted">See for yourself.</span></h2>
|
|
||||||
<p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr class="featurette-divider">
|
|
||||||
|
|
||||||
<div class="featurette">
|
|
||||||
<img class="featurette-image img-circle pull-right" data-src="holder.js/512x512">
|
|
||||||
<h2 class="featurette-heading">And lastly, this one. <span class="text-muted">Checkmate.</span></h2>
|
|
||||||
<p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr class="featurette-divider">
|
|
||||||
|
|
||||||
<!-- /END THE FEATURETTES -->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- FOOTER -->
|
|
||||||
<footer>
|
|
||||||
<p class="pull-right"><a href="#">Back to top</a></p>
|
|
||||||
<p>© 2013 Company, Inc. · <a href="#">Privacy</a> · <a href="#">Terms</a></p>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</div><!-- /.container -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
|
||||||
================================================== -->
|
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
<script src="../../assets/js/holder.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,28 +0,0 @@
|
||||||
.container {
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 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;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
background-color: rgba(86,61,124,.15);
|
|
||||||
border: 1px solid rgba(86,61,124,.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
margin-top: 40px;
|
|
||||||
margin-bottom: 40px;
|
|
||||||
}
|
|
|
@ -1,108 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Grid Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="grid.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Bootstrap grid examples</h1>
|
|
||||||
<p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Three equal columns</h3>
|
|
||||||
<p>Get three equal-width columns <strong>starting at desktops and scaling to large desktops</strong>. On mobile devices, tablets and below, the columns will automatically stack.</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Three unequal columns</h3>
|
|
||||||
<p>Get three columns <strong>starting at desktops and scaling to large desktops</strong> of various widths. Remember, grid columns should add up to twelve for a single horizontal block. More than that, and columns start stacking no matter the viewport.</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3">.col-md-3</div>
|
|
||||||
<div class="col-md-6">.col-md-6</div>
|
|
||||||
<div class="col-md-3">.col-md-3</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Two columns</h3>
|
|
||||||
<p>Get two columns <strong>starting at desktops and scaling to large desktops</strong>.</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">.col-md-8</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Full width, single column</h3>
|
|
||||||
<p class="text-warning">No grid classes are necessary for full-width elements.</p>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h3>Two columns with two nested columns</h3>
|
|
||||||
<p>Per the documentation, nesting is easy—just put a row of columns within an existing row. This gives you two columns <strong>starting at desktops and scaling to large desktops</strong>, with another two (equal widths) within the larger column.</p>
|
|
||||||
<p>At mobile device sizes, tablets and down, these columns and their nested columns will stack.</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">
|
|
||||||
.col-md-8
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">.col-md-6</div>
|
|
||||||
<div class="col-md-6">.col-md-6</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">.col-md-4</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h3>Mixed: mobile and desktop</h3>
|
|
||||||
<p>The Bootstrap 3 grid system has four tiers of classes: xs (phones), sm (tablets), md (desktops), and lg (larger desktops). You can use nearly any combination of these classes to create more dynamic and flexible layouts.</p>
|
|
||||||
<p>Each tier of classes scales up, meaning if you plan on setting the same widths for xs and sm, you only need to specify xs.</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-md-6">.col-xs-6 .col-md-6</div>
|
|
||||||
<div class="col-xs-6 col-md-6">.col-xs-6 .col-md-6</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h3>Mixed: mobile, tablet, and desktop</h3>
|
|
||||||
<p></p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12 col-sm-8 col-lg-8">.col-xs-12 .col-lg-8</div>
|
|
||||||
<div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-lg-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
|
|
||||||
<div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
|
|
||||||
<div class="col-xs-6 col-sm-4 col-lg-4">.col-xs-6 .col-sm-4 .col-lg-4</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6 col-sm-6 col-lg-6">.col-xs-6 .col-sm-6 .col-lg-6</div>
|
|
||||||
<div class="col-xs-6 col-sm-6 col-lg-6">.col-xs-6 .col-sm-6 .col-lg-6</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,67 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Narrow Jumbotron Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="jumbotron-narrow.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container-narrow">
|
|
||||||
<div class="header">
|
|
||||||
<ul class="nav nav-pills pull-right">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">About</a></li>
|
|
||||||
<li><a href="#">Contact</a></li>
|
|
||||||
</ul>
|
|
||||||
<h3 class="text-muted">Project name</h3>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Jumbotron heading</h1>
|
|
||||||
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
|
||||||
<p><a class="btn btn-large btn-success" href="#">Sign up today</a></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row marketing">
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<h4>Subheading</h4>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
|
|
||||||
|
|
||||||
<h4>Subheading</h4>
|
|
||||||
<p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
|
|
||||||
|
|
||||||
<h4>Subheading</h4>
|
|
||||||
<p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-lg-6">
|
|
||||||
<h4>Subheading</h4>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
|
|
||||||
|
|
||||||
<h4>Subheading</h4>
|
|
||||||
<p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
|
|
||||||
|
|
||||||
<h4>Subheading</h4>
|
|
||||||
<p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="footer">
|
|
||||||
<p>© Company 2013</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,78 +0,0 @@
|
||||||
/* Space out content a bit */
|
|
||||||
body {
|
|
||||||
padding-top: 20px;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Everything but the jumbotron gets side spacing for mobile-first views */
|
|
||||||
.header,
|
|
||||||
.marketing,
|
|
||||||
.footer {
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Custom page header */
|
|
||||||
.header {
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
/* Make the masthead heading the same height as the navigation */
|
|
||||||
.header h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
line-height: 40px;
|
|
||||||
padding-bottom: 19px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Custom page footer */
|
|
||||||
.footer {
|
|
||||||
padding-top: 19px;
|
|
||||||
color: #777;
|
|
||||||
border-top: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Custom container */
|
|
||||||
.container-narrow {
|
|
||||||
margin: 0 auto;
|
|
||||||
max-width: 700px;
|
|
||||||
}
|
|
||||||
.container-narrow > hr {
|
|
||||||
margin: 30px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Main marketing message and sign up button */
|
|
||||||
.jumbotron {
|
|
||||||
text-align: center;
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
.jumbotron .btn {
|
|
||||||
font-size: 21px;
|
|
||||||
padding: 14px 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Supporting marketing content */
|
|
||||||
.marketing {
|
|
||||||
margin: 40px 0;
|
|
||||||
}
|
|
||||||
.marketing p + h4 {
|
|
||||||
margin-top: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive: Portrait tablets and up */
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
/* Remove the padding we set earlier */
|
|
||||||
.header,
|
|
||||||
.marketing,
|
|
||||||
.footer {
|
|
||||||
padding-left: 0;
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
/* Space out the masthead */
|
|
||||||
.header {
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
||||||
/* Remove the bottom border on the jumbotron for visual effect */
|
|
||||||
.jumbotron {
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,99 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Jumbotron Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="jumbotron.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="navbar-collapse collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li class="dropdown-header">Nav header</li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<form class="navbar-form navbar-right">
|
|
||||||
<input type="text" placeholder="Email" class="form-control">
|
|
||||||
<input type="password" placeholder="Password" class="form-control">
|
|
||||||
<button type="submit" class="btn">Sign in</button>
|
|
||||||
</form>
|
|
||||||
</div><!--/.navbar-collapse -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<!-- Main jumbotron for a primary marketing message or call to action -->
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
<p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
|
|
||||||
<p><a class="btn btn-primary btn-large">Learn more »</a></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="body-content">
|
|
||||||
|
|
||||||
<!-- Example row of columns -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<p>© Company 2013</p>
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,30 +0,0 @@
|
||||||
/* Move down content because we have a fixed navbar that is 50px tall */
|
|
||||||
body {
|
|
||||||
padding-top: 50px;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set widths on the navbar form inputs since otherwise they're 100% wide */
|
|
||||||
.navbar-form input[type="text"],
|
|
||||||
.navbar-form input[type="password"] {
|
|
||||||
width: 180px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Wrapping element */
|
|
||||||
/* Set some basic padding to keep content from hitting the edges */
|
|
||||||
.body-content {
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive: Portrait tablets and up */
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
/* Let the jumbotron breathe */
|
|
||||||
.jumbotron {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
/* Remove padding from wrapping element since we kick in the grid classes here */
|
|
||||||
.body-content {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,73 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Justified Nav Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="justified-nav.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="masthead">
|
|
||||||
<h3 class="text-muted">Project name</h3>
|
|
||||||
<ul class="nav navbar-nav nav-justified">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#">Projects</a></li>
|
|
||||||
<li><a href="#">Services</a></li>
|
|
||||||
<li><a href="#">Downloads</a></li>
|
|
||||||
<li><a href="#">About</a></li>
|
|
||||||
<li><a href="#">Contact</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Jumbotron -->
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Marketing stuff!</h1>
|
|
||||||
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet.</p>
|
|
||||||
<p><a class="btn btn-large btn-success" href="#">Get started today</a></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="body-content">
|
|
||||||
|
|
||||||
<!-- Example row of columns -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.</p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div><!-- /.body-content -->
|
|
||||||
|
|
||||||
<!-- Site footer -->
|
|
||||||
<div class="footer">
|
|
||||||
<p>© Company 2013</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,81 +0,0 @@
|
||||||
body {
|
|
||||||
padding-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Everything but the jumbotron gets side spacing for mobile-first views */
|
|
||||||
.masthead,
|
|
||||||
.body-content,
|
|
||||||
.footer {
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
border-top: 1px solid #ddd;
|
|
||||||
margin-top: 30px;
|
|
||||||
padding-top: 29px;
|
|
||||||
padding-bottom: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Main marketing message and sign up button */
|
|
||||||
.jumbotron {
|
|
||||||
text-align: center;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
.jumbotron .btn {
|
|
||||||
font-size: 21px;
|
|
||||||
padding: 14px 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Customize the nav-justified links to be fill the entire space of the .navbar */
|
|
||||||
.nav-justified {
|
|
||||||
max-height: 50px;
|
|
||||||
background-color: #eee;
|
|
||||||
border-radius: 5px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
}
|
|
||||||
.nav-justified > li > a {
|
|
||||||
padding-top: 15px;
|
|
||||||
padding-bottom: 15px;
|
|
||||||
color: #777;
|
|
||||||
font-weight: bold;
|
|
||||||
text-align: center;
|
|
||||||
border-left: 1px solid rgba(255,255,255,.75);
|
|
||||||
border-right: 1px solid rgba(0,0,0,.1);
|
|
||||||
background-color: #e5e5e5; /* Old browsers */
|
|
||||||
background-repeat: repeat-x; /* Repeat the gradient */
|
|
||||||
background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%); /* FF3.6+ */
|
|
||||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
|
|
||||||
background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Chrome 10+,Safari 5.1+ */
|
|
||||||
background-image: -ms-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* IE10+ */
|
|
||||||
background-image: -o-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Opera 11.10+ */
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
|
|
||||||
background-image: linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* W3C */
|
|
||||||
}
|
|
||||||
.nav-justified > .active > a {
|
|
||||||
background-color: #ddd;
|
|
||||||
background-image: none;
|
|
||||||
box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
|
|
||||||
}
|
|
||||||
.nav-justified > li:first-child > a {
|
|
||||||
border-left: 0;
|
|
||||||
border-top-left-radius: 5px;
|
|
||||||
border-bottom-left-radius: 5px;
|
|
||||||
}
|
|
||||||
.nav-justified > li:last-child > a {
|
|
||||||
border-right: 0;
|
|
||||||
border-top-right-radius: 5px;
|
|
||||||
border-bottom-right-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Responsive: Portrait tablets and up */
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
/* Remove the padding we set earlier */
|
|
||||||
.masthead,
|
|
||||||
.marketing,
|
|
||||||
.footer {
|
|
||||||
padding-left: 0;
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,77 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Fixed Top Navbar Example for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="navbar-fixed-top.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- Fixed navbar -->
|
|
||||||
<div class="navbar navbar-fixed-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="navbar-collapse collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li class="dropdown-header">Nav header</li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li><a href="../navbar/">Default</a></li>
|
|
||||||
<li><a href="../navbar-static-top/">Static top</a></li>
|
|
||||||
<li class="active"><a href="./">Fixed top</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!--/.nav-collapse -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<!-- Main component for a primary marketing message or call to action -->
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Navbar example</h1>
|
|
||||||
<p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
|
|
||||||
<p>
|
|
||||||
<a class="btn btn-large btn-primary" href="../../components/#navbar">View navbar docs »</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
|
||||||
================================================== -->
|
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,7 +0,0 @@
|
||||||
body {
|
|
||||||
padding-top: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.jumbotron {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
|
@ -1,78 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Static Top Navbar Example for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="navbar-static-top.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- Static navbar -->
|
|
||||||
<div class="navbar navbar-static-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="navbar-collapse collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li class="dropdown-header">Nav header</li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li><a href="../navbar/">Default</a></li>
|
|
||||||
<li class="active"><a href="./">Static top</a></li>
|
|
||||||
<li><a href="../navbar-fixed-top/">Fixed top</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!--/.nav-collapse -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<!-- Main component for a primary marketing message or call to action -->
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Navbar example</h1>
|
|
||||||
<p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
|
|
||||||
<p>
|
|
||||||
<a class="btn btn-large btn-primary" href="../../components/#navbar">View navbar docs »</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
|
||||||
================================================== -->
|
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,3 +0,0 @@
|
||||||
.jumbotron {
|
|
||||||
margin-top: 30px;
|
|
||||||
}
|
|
|
@ -1,77 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Navbar Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="navbar.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<!-- Static navbar -->
|
|
||||||
<div class="navbar">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="navbar-collapse collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li class="dropdown-header">Nav header</li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li class="active"><a href="./">Default</a></li>
|
|
||||||
<li><a href="../navbar-static-top/">Static top</a></li>
|
|
||||||
<li><a href="../navbar-fixed-top/">Fixed top</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!--/.nav-collapse -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Main component for a primary marketing message or call to action -->
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Navbar example</h1>
|
|
||||||
<p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
|
|
||||||
<p>
|
|
||||||
<a class="btn btn-large btn-primary" href="../../components/#navbar">View navbar docs »</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
|
||||||
================================================== -->
|
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,7 +0,0 @@
|
||||||
body {
|
|
||||||
padding: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar {
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
|
@ -1,116 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Off Canvas Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="offcanvas.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.nav-collapse -->
|
|
||||||
</div><!-- /.container -->
|
|
||||||
</div><!-- /.navbar -->
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="row row-offcanvas row-offcanvas-right">
|
|
||||||
<div class="col-xs-12 col-sm-9">
|
|
||||||
<p class="pull-right visible-xs">
|
|
||||||
<button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
|
|
||||||
</p>
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
<p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-6 col-sm-6 col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!--/span-->
|
|
||||||
<div class="col-6 col-sm-6 col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!--/span-->
|
|
||||||
<div class="col-6 col-sm-6 col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!--/span-->
|
|
||||||
<div class="col-6 col-sm-6 col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!--/span-->
|
|
||||||
<div class="col-6 col-sm-6 col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!--/span-->
|
|
||||||
<div class="col-6 col-sm-6 col-lg-4">
|
|
||||||
<h2>Heading</h2>
|
|
||||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
||||||
<p><a class="btn btn-default" href="#">View details »</a></p>
|
|
||||||
</div><!--/span-->
|
|
||||||
</div><!--/row-->
|
|
||||||
</div><!--/span-->
|
|
||||||
|
|
||||||
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">
|
|
||||||
<div class="well sidebar-nav">
|
|
||||||
<ul class="nav">
|
|
||||||
<li>Sidebar</li>
|
|
||||||
<li class="active"><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li>Sidebar</li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li>Sidebar</li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
<li><a href="#">Link</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!--/.well -->
|
|
||||||
</div><!--/span-->
|
|
||||||
</div><!--/row-->
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<p>© Company 2013</p>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</div><!--/.container-->
|
|
||||||
|
|
||||||
<!-- jQuery and plugin -->
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
<script src="offcanvas.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,48 +0,0 @@
|
||||||
/*
|
|
||||||
* Style twaks
|
|
||||||
* --------------------------------------------------
|
|
||||||
*/
|
|
||||||
body {
|
|
||||||
padding-top: 70px;
|
|
||||||
}
|
|
||||||
footer {
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Off Canvas
|
|
||||||
* --------------------------------------------------
|
|
||||||
*/
|
|
||||||
@media screen and (max-width: 768px) {
|
|
||||||
.row-offcanvas {
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden; /* Needed for Internet Explorer */
|
|
||||||
-webkit-transition: all 0.25s ease-out;
|
|
||||||
-moz-transition: all 0.25s ease-out;
|
|
||||||
transition: all 0.25s ease-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.row-offcanvas-right
|
|
||||||
.sidebar-offcanvas {
|
|
||||||
right: -58.333333333333336%; /* 6 columns */
|
|
||||||
}
|
|
||||||
|
|
||||||
.row-offcanvas-left
|
|
||||||
.sidebar-offcanvas {
|
|
||||||
left: -58.333333333333336%; /* 6 columns */
|
|
||||||
}
|
|
||||||
|
|
||||||
.row-offcanvas-right.active {
|
|
||||||
right: 58.333333333333336%; /* 6 columns */
|
|
||||||
}
|
|
||||||
|
|
||||||
.row-offcanvas-left.active {
|
|
||||||
left: 58.333333333333336%; /* 6 columns */
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-offcanvas {
|
|
||||||
position: absolute;
|
|
||||||
width: 58.333333333333336%; /* 6 columns */
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
$(document).ready(function() {
|
|
||||||
$('[data-toggle=offcanvas]').click(function() {
|
|
||||||
$('.row-offcanvas').toggleClass('active');
|
|
||||||
});
|
|
||||||
});
|
|
Before Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 158 KiB |
Before Width: | Height: | Size: 120 KiB |
Before Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 198 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 41 KiB |
|
@ -1,35 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Signin Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="signin.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<form class="form-signin">
|
|
||||||
<h2 class="form-signin-heading">Please sign in</h2>
|
|
||||||
<input type="text" class="form-control" placeholder="Email address" autofocus>
|
|
||||||
<input type="password" class="form-control" placeholder="Password">
|
|
||||||
<label class="checkbox">
|
|
||||||
<input type="checkbox" value="remember-me"> Remember me
|
|
||||||
</label>
|
|
||||||
<button class="btn btn-large btn-primary btn-block" type="submit">Sign in</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,40 +0,0 @@
|
||||||
body {
|
|
||||||
padding-top: 40px;
|
|
||||||
padding-bottom: 40px;
|
|
||||||
background-color: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-signin {
|
|
||||||
max-width: 330px;
|
|
||||||
padding: 15px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
.form-signin .form-signin-heading,
|
|
||||||
.form-signin .checkbox {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.form-signin .checkbox {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
.form-signin .form-control {
|
|
||||||
position: relative;
|
|
||||||
font-size: 16px;
|
|
||||||
height: auto;
|
|
||||||
padding: 10px;
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
.form-signin .form-control:focus {
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
.form-signin input[type="text"] {
|
|
||||||
margin-bottom: -1px;
|
|
||||||
border-bottom-left-radius: 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
}
|
|
||||||
.form-signin input[type="password"] {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
border-top-left-radius: 0;
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Starter Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="starter-template.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
</ul>
|
|
||||||
</div><!--/.nav-collapse -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="starter-template">
|
|
||||||
<h1>Bootstrap starter template</h1>
|
|
||||||
<p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div><!-- /.container -->
|
|
||||||
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,7 +0,0 @@
|
||||||
body {
|
|
||||||
padding-top: 50px;
|
|
||||||
}
|
|
||||||
.starter-template {
|
|
||||||
padding: 40px 15px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
|
@ -1,77 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Sticky Footer Navbar Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="sticky-footer-navbar.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- Wrap all page content here -->
|
|
||||||
<div id="wrap">
|
|
||||||
|
|
||||||
<!-- Fixed navbar -->
|
|
||||||
<div class="navbar navbar-fixed-top">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="#">Project name</a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="active"><a href="#">Home</a></li>
|
|
||||||
<li><a href="#about">About</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#">Action</a></li>
|
|
||||||
<li><a href="#">Another action</a></li>
|
|
||||||
<li><a href="#">Something else here</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li class="dropdown-header">Nav header</li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
<li><a href="#">One more separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div><!--/.nav-collapse -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Begin page content -->
|
|
||||||
<div class="container">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Sticky footer with fixed navbar</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added within <code>#wrap</code> with <code>padding-top: 60px;</code> on the <code>.container</code>.</p>
|
|
||||||
<p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="footer">
|
|
||||||
<div class="container">
|
|
||||||
<p class="text-muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript
|
|
||||||
================================================== -->
|
|
||||||
<script src="../../assets/js/jquery.js"></script>
|
|
||||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,52 +0,0 @@
|
||||||
/* Sticky footer styles
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
html,
|
|
||||||
body {
|
|
||||||
height: 100%;
|
|
||||||
/* The html and body elements cannot have any padding or margin. */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Wrapper for page content to push down footer */
|
|
||||||
#wrap {
|
|
||||||
min-height: 100%;
|
|
||||||
height: auto !important;
|
|
||||||
height: 100%;
|
|
||||||
/* Negative indent footer by its height */
|
|
||||||
margin: 0 auto -60px;
|
|
||||||
/* Pad bottom by footer height */
|
|
||||||
padding: 0 0 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set the fixed height of the footer here */
|
|
||||||
#footer {
|
|
||||||
height: 60px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Lastly, apply responsive CSS fixes as necessary */
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
#footer {
|
|
||||||
margin-left: -20px;
|
|
||||||
margin-right: -20px;
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Custom page CSS
|
|
||||||
-------------------------------------------------- */
|
|
||||||
/* Not required for template or sticky footer method. */
|
|
||||||
|
|
||||||
#wrap > .container {
|
|
||||||
padding: 60px 15px 0;
|
|
||||||
}
|
|
||||||
.container .credit {
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-size: 80%;
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Sticky Footer Template for Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
|
||||||
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="sticky-footer.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- Wrap all page content here -->
|
|
||||||
<div id="wrap">
|
|
||||||
|
|
||||||
<!-- Begin page content -->
|
|
||||||
<div class="container">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Sticky footer</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS.</p>
|
|
||||||
<p>Use <a href="../sticky-footer-navbar">the sticky footer with a fixed navbar</a> if need be, too.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="footer">
|
|
||||||
<div class="container">
|
|
||||||
<p class="text-muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,48 +0,0 @@
|
||||||
/* Sticky footer styles
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
html,
|
|
||||||
body {
|
|
||||||
height: 100%;
|
|
||||||
/* The html and body elements cannot have any padding or margin. */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Wrapper for page content to push down footer */
|
|
||||||
#wrap {
|
|
||||||
min-height: 100%;
|
|
||||||
height: auto !important;
|
|
||||||
height: 100%;
|
|
||||||
/* Negative indent footer by its height */
|
|
||||||
margin: 0 auto -60px;
|
|
||||||
/* Pad bottom by footer height */
|
|
||||||
padding: 0 0 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set the fixed height of the footer here */
|
|
||||||
#footer {
|
|
||||||
height: 60px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Lastly, apply responsive CSS fixes as necessary */
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
#footer {
|
|
||||||
margin-left: -20px;
|
|
||||||
margin-right: -20px;
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Custom page CSS
|
|
||||||
-------------------------------------------------- */
|
|
||||||
/* Not required for template or sticky footer method. */
|
|
||||||
|
|
||||||
.container {
|
|
||||||
width: auto;
|
|
||||||
max-width: 680px;
|
|
||||||
padding: 0 15px;
|
|
||||||
}
|
|
||||||
.container .credit {
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
|
@ -1,546 +0,0 @@
|
||||||
---
|
|
||||||
layout: default
|
|
||||||
title: Getting started
|
|
||||||
slug: getting-started
|
|
||||||
lead: "An overview of Bootstrap, how to download and use, basic templates and examples, and more."
|
|
||||||
base_url: "../"
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Getting started
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="download">Download Bootstrap</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">There are a few easy ways to quickly get started with Bootstrap, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.</p>
|
|
||||||
|
|
||||||
<h3>Download latest full source</h3>
|
|
||||||
<p>Until Bootstrap 3.0.0 is finalized, download the latest full source code (includes compiled and minified versions of our CSS and JavaScript under the <code>dist/</code> directory).</p>
|
|
||||||
<p><a class="btn btn-lg btn-primary" href="{{ site.download }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest Bootstrap 3</a></p>
|
|
||||||
<!--
|
|
||||||
<h3>Download compiled CSS and JS</h3>
|
|
||||||
<p class="lead">The fastest way to get started is to get the compiled and minified versions of our CSS and JavaScript. No documentation or original source files are included.</p>
|
|
||||||
<p><a class="btn btn-lg btn-primary" href="{{ site.download_dist }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a></p>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<h3 id="download-options">More download options</h3>
|
|
||||||
<div class="bs-docs-dl-options">
|
|
||||||
<h4>
|
|
||||||
<a href="{{ site.download }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest source code</a>
|
|
||||||
</h4>
|
|
||||||
<p>Get the original files for all CSS and JavaScript by downloading the latest version directly from GitHub.</p>
|
|
||||||
<h4>
|
|
||||||
<a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'GitHub project']);">Clone or fork via GitHub</a>
|
|
||||||
</h4>
|
|
||||||
<p>Clone the entire project or fork your own version of Bootstrap to make it your own by visiting us on GitHub.</p>
|
|
||||||
<h4>
|
|
||||||
Install with <a href="http://bower.io">Bower</a>
|
|
||||||
</h4>
|
|
||||||
<p>Install and manage the original files for all CSS and JavaScript, along with a local copy of the docs, using <a href="http://bower.io">Bower</a>.</p>
|
|
||||||
{% highlight bash %}$ bower install bootstrap{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 id="download-cdn">Use the Bootstrap CDN</h3>
|
|
||||||
<p>The folks over at <a href="https://www.netdna.com/">NetDNA</a> have graciously provided CDN support for Bootstrap's CSS and JavaScript. To use, swap your local instances for the <a href="http://www.bootstrapcdn.com/">Bootstrap CDN</a> links listed below.</p>
|
|
||||||
{% highlight html linenos %}
|
|
||||||
<!-- Latest compiled and minified CSS -->
|
|
||||||
<link rel="stylesheet" href="{{ site.cdn_css }}">
|
|
||||||
|
|
||||||
<!-- Latest compiled and minified JavaScript -->
|
|
||||||
<script src="{{ site.cdn_js }}"></script>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning" id="callout-less-compilation">
|
|
||||||
<h4>LESS compilation</h4>
|
|
||||||
<p>If you download the original files, you need to compile Bootstrap's LESS files into usable CSS. To do that, Bootstrap only officially supports <a href="http://twitter.github.io/recess/">Recess</a>, Twitter's CSS hinter built on top of <a href="http://lesscss.org">less.js</a>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- File structure
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="whats-included">What's included</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations.</p>
|
|
||||||
<p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p>
|
|
||||||
|
|
||||||
{% highlight bash %}
|
|
||||||
bootstrap/
|
|
||||||
├── css/
|
|
||||||
│ ├── bootstrap.css
|
|
||||||
│ ├── bootstrap.min.css
|
|
||||||
├── js/
|
|
||||||
│ ├── bootstrap.js
|
|
||||||
│ ├── bootstrap.min.js
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>).</p>
|
|
||||||
<div class="bs-callout bs-callout-danger">
|
|
||||||
<h4>jQuery required</h4>
|
|
||||||
<p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included, as shown in the <a href="#template">starter template</a>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Template
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="template">Basic template</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Make use of a super basic HTML template, or dive into a <a href="../getting-started#examples">few examples</a> we've started for you. We encourage folks to iterate on these examples and not simply use them as an end result.</p>
|
|
||||||
|
|
||||||
<p>Copy and paste the HTML from below to get started with a bare bones Bootstrap document.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Bootstrap 101 Template</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<!-- Bootstrap -->
|
|
||||||
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
|
|
||||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
||||||
<script src="//code.jquery.com/jquery.js"></script>
|
|
||||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
|
||||||
<script src="js/bootstrap.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
|
|
||||||
<script src="js/respond.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Template
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="examples">Examples</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Build on the basic template above with Bootstrap's many components. Check out some of the more advanced tips for how to customize and build on top of them.</p>
|
|
||||||
|
|
||||||
<div class="row bs-examples">
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/starter-template/">
|
|
||||||
<img src="../examples/screenshots/starter-template.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Starter template</h4>
|
|
||||||
<p>Nothing but the basics: compiled CSS and JavaScript along with a container.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/grid/">
|
|
||||||
<img src="../examples/screenshots/grid.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Grids</h4>
|
|
||||||
<p>Multiple examples of grid layouts with all four tiers, nesting, and more.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/jumbotron/">
|
|
||||||
<img src="../examples/screenshots/jumbotron.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Jumbotron</h4>
|
|
||||||
<p>Build around the jumbotron with a navbar and some basic grid columns.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/jumbotron-narrow/">
|
|
||||||
<img src="../examples/screenshots/jumbotron-narrow.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Narrow jumbotron</h4>
|
|
||||||
<p>Build a more custom page by narrowing the default container and jumbotron.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/navbar/">
|
|
||||||
<img src="../examples/screenshots/navbar.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Navbar</h4>
|
|
||||||
<p>Super basic template that includes the navbar along with some additional content.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/navbar-static-top/">
|
|
||||||
<img src="../examples/screenshots/navbar-static.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Static top navbar</h4>
|
|
||||||
<p>Super basic template with a static top navbar along with some additional content.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/navbar-fixed-top/">
|
|
||||||
<img src="../examples/screenshots/navbar-fixed.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Fixed navbar</h4>
|
|
||||||
<p>Super basic template with a fixed top navbar along with some additional content.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/signin/">
|
|
||||||
<img src="../examples/screenshots/sign-in.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Sign-in page</h4>
|
|
||||||
<p>Custom form layout and design for a simple sign in form.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/sticky-footer/">
|
|
||||||
<img src="../examples/screenshots/sticky-footer.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Sticky footer</h4>
|
|
||||||
<p>Attach a footer to the bottom of the viewport when the content is shorter than it.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/sticky-footer-navbar/">
|
|
||||||
<img src="../examples/screenshots/sticky-footer-navbar.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Sticky footer with navbar</h4>
|
|
||||||
<p>Attach a footer to the bottom of the viewport along with a fixed navbar at the top.</p>
|
|
||||||
</div>
|
|
||||||
<div class="clearfix visible-xs"></div>
|
|
||||||
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/offcanvas/">
|
|
||||||
<img src="../examples/screenshots/offcanvas.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Offcanvas</h4>
|
|
||||||
<p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 col-md-4">
|
|
||||||
<a class="thumbnail" href="../examples/carousel/">
|
|
||||||
<img src="../examples/screenshots/carousel.jpg" alt="">
|
|
||||||
</a>
|
|
||||||
<h4>Carousel</h4>
|
|
||||||
<p>Customize the navbar and carousel, then add some new components.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Template
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="disable-responsive">Disabling responsiveness</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Don't want your site or application to be scale on different device? With a little bit of work, you can disable the responsive features of Bootstrap so that mobile users see your full desktop-version site.</p>
|
|
||||||
|
|
||||||
<h3>Steps to disable responsive views</h3>
|
|
||||||
<p>To disable responsive features, follow these steps. See it in action in the modified template below.</p>
|
|
||||||
<ol>
|
|
||||||
<li>Remove (or just don't add) the viewport <code><meta></code> mentioned in <a href="../css/#overview-mobile">the CSS docs</a></li>
|
|
||||||
<li>Force a single <code>max-width</code> on the <code>.container</code> (e.g., <code>.container { max-width: 940px; }</code>). Be sure that this comes after the default Bootstrap CSS; otherwise, you'll need <code>!important</code>.</li>
|
|
||||||
<li>For grid layouts, make use of <code>.col-xs-*</code> classes in addition to or in place of the medium/large ones. Don't worry, the extra-small device grid scales up to all resolutions, so you're set there.</li>
|
|
||||||
</ol>
|
|
||||||
<p>You'll still need respond.js for IE8 (since our media queries are still there and need to be picked up). This just disables the "mobile site" of Bootstrap.</p>
|
|
||||||
|
|
||||||
<h3>Bootstrap template with disabled responsive</h3>
|
|
||||||
<p>We've taken the above steps and applied them to a basic template here. Note the steps above are called out in comments here, e.g. <code><-- 1. --></code>.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Disabling responsiveness in Bootstrap</title>
|
|
||||||
|
|
||||||
<!-- 1. Note there is no meta tag here -->
|
|
||||||
|
|
||||||
<!-- Load default Bootstrap -->
|
|
||||||
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
||||||
|
|
||||||
<!-- 2. Add our custom CSS to set the container's fixed width -->
|
|
||||||
<style>
|
|
||||||
.container { max-width: 940px; }
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
|
|
||||||
<!-- 3. When using grid columns, use the `.col-xs-*` classes -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-4">One third</div>
|
|
||||||
<div class="col-xs-4">One third</div>
|
|
||||||
<div class="col-xs-4">One third</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
||||||
<script src="//code.jquery.com/jquery.js"></script>
|
|
||||||
|
|
||||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
|
||||||
<script src="js/bootstrap.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
|
|
||||||
<script src="js/respond.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Browser support
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="browsers">Browser support</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Bootstrap is built to work best in the latest desktop and mobile browsers, meaning older and less advanced browsers might receive a less stylized, though fully functional, version of certain components.</p>
|
|
||||||
|
|
||||||
<h3>Supported browsers</h3>
|
|
||||||
<p>Specifically, we support the latest versions of the following:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Chrome (Mac, Windows, iOS, and Android)</li>
|
|
||||||
<li>Safari (Mac and iOS only, as Windows has more or less been discontinued)</li>
|
|
||||||
<li>Firefox (Mac, Windows)</li>
|
|
||||||
<li>Internet Explorer</li>
|
|
||||||
<li>Opera (Mac, Windows)</li>
|
|
||||||
</ul>
|
|
||||||
<p>Unofficially, Bootstrap should look and behave well enough in Chromium for Linux and Internet Explorer 7, though they are not officially supported.</p>
|
|
||||||
|
|
||||||
<h3>Internet Explorer 8 and 9</h3>
|
|
||||||
<p>Internet Explorer 8 and 9 are also supported, however, please be aware that many CSS3 properties—e.g., rounded corners and shadows—are not supported by IE8. The <code>placeholder</code> attribute is also not supported in either of these versions.</p>
|
|
||||||
<p>In addition, <strong>Internet Explorer 8 requires the use of <a href="https://github.com/scottjehl/Respond">respond.js</a> to enable media query support.</strong></p>
|
|
||||||
|
|
||||||
<h3>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>
|
|
||||||
{% highlight html %}
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>See <a href="http://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge">this StackOverflow question</a> for more information.</p>
|
|
||||||
|
|
||||||
<h3>Windows Phone 8 and Internet Explorer 10</h3>
|
|
||||||
<p>Internet Explorer 10 doesn't differentiate device width from viewport width, and thus doesn't properly apply the media queries in Bootstrap's CSS. To address this, you can optionally include the following CSS and JavaScript to work around this problem until Microsoft issues a fix.</p>
|
|
||||||
{% highlight css %}
|
|
||||||
@-webkit-viewport { width: device-width; }
|
|
||||||
@-moz-viewport { width: device-width; }
|
|
||||||
@-ms-viewport { width: device-width; }
|
|
||||||
@-o-viewport { width: device-width; }
|
|
||||||
@viewport { width: device-width; }
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
{% highlight js %}
|
|
||||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
|
||||||
var msViewportStyle = document.createElement("style")
|
|
||||||
msViewportStyle.appendChild(
|
|
||||||
document.createTextNode(
|
|
||||||
"@-ms-viewport{width:auto!important}"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
document.getElementsByTagName("head")[0].appendChild(msViewportStyle)
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
<p>For more information and usage guidelines, read <a href="http://timkadlec.com/2013/01/windows-phone-8-and-device-width/">Windows Phone 8 and Device-Width</a>.</p>
|
|
||||||
|
|
||||||
<h3>Safari percent rounding</h3>
|
|
||||||
<p>In the latest Safari for Mac, its rendering engine has a little trouble with the long decimal places of our <code>.col-*-1</code> grid classes, meaning if you have 12 individual columns you'll notice they come up short compared to other rows of columns. There's not much we can do here (<a href="https://github.com/twbs/bootstrap/issues/9282">see #9282</a>) but you do have some options:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Add <code>.pull-right</code> to your last grid column to get the hard-right alignment</li>
|
|
||||||
<li>Tweak your percentages manually to get the perfect rounding for Safari (more difficult than the first option)</li>
|
|
||||||
</ul>
|
|
||||||
<p>We'll keep an eye on this though and update our code if we have an easy solution.</p>
|
|
||||||
|
|
||||||
<h3>Modals and mobile devices</h3>
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<h3>Browser zooming</h3>
|
|
||||||
<p>Page zooming inevitably presents rendering artifacts in some components, both in Bootstrap and the rest of the web. Depending on the issue, we may be able to fix it (search first and then open an issue if need be). However, we tend to ignore these as they often have no direct solution other than hacky workarounds.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Third party support
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="third-parties">Third party support</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">While we don't officially support any third party plugins or add-ons, we do offer some useful advice to help avoid potential issues in your projects.</p>
|
|
||||||
|
|
||||||
<h3>Google Maps</h3>
|
|
||||||
<p>If you're using Google Maps on a Bootstrapped project, you might run into some display problems due to our use of <code>* { box-sizing: border-box; }</code>. Previously, you may have also ran into issues with the use of <code>max-width</code> on images. The following snippet should avoid all those problems.</p>
|
|
||||||
{% highlight css %}
|
|
||||||
/* Fix Google Maps canvas
|
|
||||||
*
|
|
||||||
* Wrap your Google Maps embed in a `.google-map-canvas` to reset Bootstrap's
|
|
||||||
* global `box-sizing` changes. You may optionally need to reset the `max-width`
|
|
||||||
* on images in case you've applied that anywhere else. (That shouldn't be as
|
|
||||||
* necessary with Bootstrap 3 though as that behavior is relegated to the
|
|
||||||
* `.img-responsive` class.)
|
|
||||||
*/
|
|
||||||
|
|
||||||
.google-map-canvas,
|
|
||||||
.google-map-canvas * { .box-sizing(content-box); }
|
|
||||||
|
|
||||||
/* Optional responsive image override */
|
|
||||||
img { max-width: none; }
|
|
||||||
{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Accessibility
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="accessibility">Accessibility</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Bootstrap follows common web standards, and with minimal extra effort, can be used to create sites that are accessibile to those using <abbr title="Assistive Technology" class="initialism">AT</abbr>.</p>
|
|
||||||
|
|
||||||
<h3>Skip navigation</h3>
|
|
||||||
<p>If your navigation contains many links and comes before the main content in the DOM, add a <code>Skip to content</code> link immediately after your opening <code><body></code> tag. <a href="http://a11yproject.com/posts/skip-nav-links/">(read why)</a></p>
|
|
||||||
{% highlight html %}
|
|
||||||
<body>
|
|
||||||
<a href="#content" class="sr-only">Skip to content</a>
|
|
||||||
<div class="container" id="content">
|
|
||||||
The main page content.
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<h3>Nested headers</h3>
|
|
||||||
<p>Another "gotcha" has to do with how you nest your <code><header></code> elements. <a href="http://squizlabs.github.io/HTML_CodeSniffer/Standards/Section508/">Section 508</a> states that your largest header must be an <code>h1</code>, and the next header must be an <code><h2></code>, etc. This is hard to achieve in practice, but if the largest header on your site is smaller than Bootstrap's default 38px, you should consider modifying your stylesheets before using a smaller header element.</p>
|
|
||||||
|
|
||||||
<h3>Additional resources</h3>
|
|
||||||
<ul>
|
|
||||||
<li><a href="https://github.com/squizlabs/HTML_CodeSniffer">"HTML Codesniffer" bookmarklet for identifying accessibility issues</a></li>
|
|
||||||
<li><a href="http://a11yproject.com/">The A11Y Project</a></li>
|
|
||||||
<li><a href="https://developer.mozilla.org/en-US/docs/Accessibility">MDN accessibility documentation</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- License FAQs
|
|
||||||
================================================== -->
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="license-faqs">License FAQs</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Bootstrap is released under the Apache 2 license and is copyright {{ site.time | date: "%Y" }} Twitter. Boiled down to smaller chunks, it can be described with the following conditions.</p>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12 col-lg-6">
|
|
||||||
<h4>It allows you to:</h4>
|
|
||||||
<ul>
|
|
||||||
<li>Freely download and use Bootstrap, in whole or in part, for personal, company internal or commercial purposes</li>
|
|
||||||
<li>Use Bootstrap in packages or distributions that you create</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="col-12 col-lg-6">
|
|
||||||
<h4>It forbids you to:</h4>
|
|
||||||
<ul>
|
|
||||||
<li>Redistribute any piece of Bootstrap without proper attribution</li>
|
|
||||||
<li>Use any marks owned by Twitter in any way that might state or imply that Twitter endorses your distribution</li>
|
|
||||||
<li>Use any marks owned by Twitter in any way that might state or imply that you created the Twitter software in question</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12 col-lg-6">
|
|
||||||
<h4>It requires you to:</h4>
|
|
||||||
<ul>
|
|
||||||
<li>Include a copy of the license in any redistribution you may make that includes Bootstrap</li>
|
|
||||||
<li>Provide clear attribution to Twitter for any distributions that include Bootstrap</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="col-12 col-lg-6">
|
|
||||||
<h4>It does not require you to:</h4>
|
|
||||||
<ul>
|
|
||||||
<li>Include the source of Bootstrap itself, or of any modifications you may have made to it, in any redistribution you may assemble that includes it</li>
|
|
||||||
<li>Submit changes that you make to Bootstrap back to the Bootstrap project (though such feedback is encouraged)</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p>The full Bootstrap license is located <a href="{{ site.repo }}/blob/master/README.md">in the project repository</a> for more information.</p>
|
|
||||||
</div><!-- /.bs-docs-section -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="bs-docs-section">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1 id="customizing">Customizing Bootstrap</h1>
|
|
||||||
</div>
|
|
||||||
<p class="lead">Customizing Bootstrap is best accomplished when you treat it as another dependency in your development stack. Doing so ensures future upgrades are as easy as possible while also familiarizing yourself to the intricacies of the framework.</p>
|
|
||||||
|
|
||||||
<p>Once you've downloaded and included Bootstrap's CSS into your templates, you can move on to customizing the included components. To do so, create a new stylesheet (LESS, if you like, or just plain CSS) to house your customizations.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info">
|
|
||||||
<h4>Compiled or minified?</h4>
|
|
||||||
<p>Unless you plan on reading a good chunk of the compiled CSS, go with the minified. It's the same code, just compacted. Less bandwidth is good, especially in production environments.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>From there, include whatever Bootstrap components and HTML content you need to get your template setup. It's best to have a rough idea in mind of modifications to make and content to include, so be sure to spend a brief amount of time on that before moving on.</p>
|
|
||||||
|
|
||||||
<h3>Customizing components</h3>
|
|
||||||
<p>There are varying degrees to customizing components, but most fall into two camps: light customizations and complete visual overhauls. Luckily, there are plenty of examples of both.</p>
|
|
||||||
<p>We define light customizations as mostly surface layer changes, things like a color and font changes to existing Bootstrap components. A great example of this is the the <a href="http://translate.twitter.com">Twitter Translation Center</a> (coded by @mdo). Let's look at how to implement the custom button we wrote for this site, <code>.btn-ttc</code>.</p>
|
|
||||||
<p>Instead of using the provided Bootstrap buttons, which only require just one class to start, <code>.btn</code>, we'll add our own modifier class, <code>.btn-ttc</code>. This will give us a slightly custom look with minimal effort.</p>
|
|
||||||
{% highlight html %}
|
|
||||||
<button type="button" class="btn btn-ttc">Save changes</button>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>In the custom stylesheet, add the following CSS:</p>
|
|
||||||
|
|
||||||
{% highlight css %}
|
|
||||||
/* Custom button
|
|
||||||
-------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Override base .btn styles */
|
|
||||||
/* Apply text and background changes to three key states: default, hover, and active (click). */
|
|
||||||
.btn-ttc,
|
|
||||||
.btn-ttc:hover,
|
|
||||||
.btn-ttc:active {
|
|
||||||
color: white;
|
|
||||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
||||||
background-color: #007da7;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Apply the custom-colored gradients */
|
|
||||||
/* Note: you'll need to include all the appropriate gradients for various browsers and standards. */
|
|
||||||
.btn-ttc {
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
background-image: linear-gradient(top, #009ED2 0%, #007DA7 100%);
|
|
||||||
...
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set the hover state */
|
|
||||||
/* An easy hover state is just to move the gradient up a small amount. Add other embellishments as you see fit. */
|
|
||||||
.btn-ttc:hover {
|
|
||||||
background-position: 0 -15px;
|
|
||||||
}
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
<p>Customizing Bootstrap components takes time, but should be straightforward. <strong>Look to the source code often and duplicate the selectors you need for your modifications.</strong> Placing them after the Bootstrap source makes for easy overriding without complication. <strong>To recap, here's the basic workflow:</strong></p>
|
|
||||||
<ul>
|
|
||||||
<li>For each element you want to customize, find its code in the compiled Bootstrap CSS. Copy and paste the selector for a component as-is. For instance, to customize the navbar background, just snag <code>.navbar</code>.</li>
|
|
||||||
<li>Add all your custom CSS in a separate stylesheet using the selectors you just copied from the Bootstrap source. No need for prefacing with additional classes or using <code>!important</code> here.</li>
|
|
||||||
<li>Rinse and repeat until you're happy with your customizations.</li>
|
|
||||||
</ul>
|
|
||||||
<p>Going beyond light customizations and into visual overhauls is just as straightforward as the above custom button. For a site like <a href="http://yourkarma.com">Karma</a>, which uses Bootstrap as a CSS reset with heavy modifications, more extensive work is involved, but well worth it in the end.</p>
|
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-info">
|
|
||||||
<h4>Alternate customization methods</h4>
|
|
||||||
<p>While not recommended for folks new to Bootstrap, you may use one of two alternate methods for customization. The first is modifying the source .less files (making upgrades super difficult), and the second is mapping source LESS code to <a href="http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html">your own classes via mixins</a>. For the time being, neither options are documented here.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Removing potential bloat</h3>
|
|
||||||
<p>Not all sites and applications need to make use of everything Bootstrap has to offer, especially in production environments where bandwidth literally becomes a financial issue. We encourage folks to remove whatever is unused with our <a href="../customize/">Customizer</a>.</p>
|
|
||||||
<p>Using the Customizer, simply uncheck any component, feature, or asset you don't need. Hit download and swap out the default Bootstrap files with these newly customized ones. You'll get vanilla Bootstrap, but without the features *you* deem unnecessary. All custom builds include compiled and minified versions, so use whichever works for you.</p>
|
|
||||||
|
|
||||||
</div>
|
|
|
@ -1,16 +0,0 @@
|
||||||
---
|
|
||||||
layout: home
|
|
||||||
title: Bootstrap
|
|
||||||
base_url: "./"
|
|
||||||
---
|
|
||||||
|
|
||||||
<main class="bs-masthead" id="content" role="main">
|
|
||||||
<div class="container">
|
|
||||||
<h1>Bootstrap 3</h1>
|
|
||||||
<p class="lead">Sleek, intuitive, and powerful mobile-first front-end framework for faster and easier web development.</p>
|
|
||||||
<p>
|
|
||||||
<a href="{{ site.download }}" class="btn btn-outline btn-lg" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 3.0.0 RC2']);">Download latest BS3</a>
|
|
||||||
</p>
|
|
||||||
<p><strong>Heads up!</strong> Downloads are pulled directly from the latest committed code on GitHub, and as a result our docs may at times be out of sync.</p>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"validthis": true,
|
|
||||||
"laxcomma" : true,
|
|
||||||
"laxbreak" : true,
|
|
||||||
"browser" : true,
|
|
||||||
"eqeqeq" : false,
|
|
||||||
"eqnull" : true,
|
|
||||||
"debug" : true,
|
|
||||||
"devel" : true,
|
|
||||||
"curly" : false,
|
|
||||||
"boss" : true,
|
|
||||||
"expr" : true,
|
|
||||||
"asi" : true
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Bootstrap Plugin Test Suite</title>
|
|
||||||
|
|
||||||
<!-- jquery -->
|
|
||||||
<!--<script src="http://code.jquery.com/jquery-1.7.min.js"></script>-->
|
|
||||||
<script src="vendor/jquery.js"></script>
|
|
||||||
|
|
||||||
<!-- qunit -->
|
|
||||||
<link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen" />
|
|
||||||
<script src="vendor/qunit.js"></script>
|
|
||||||
|
|
||||||
<!-- plugin sources -->
|
|
||||||
<script src="../../js/transition.js"></script>
|
|
||||||
<script src="../../js/alert.js"></script>
|
|
||||||
<script src="../../js/button.js"></script>
|
|
||||||
<script src="../../js/carousel.js"></script>
|
|
||||||
<script src="../../js/collapse.js"></script>
|
|
||||||
<script src="../../js/dropdown.js"></script>
|
|
||||||
<script src="../../js/modal.js"></script>
|
|
||||||
<script src="../../js/scrollspy.js"></script>
|
|
||||||
<script src="../../js/tab.js"></script>
|
|
||||||
<script src="../../js/tooltip.js"></script>
|
|
||||||
<script src="../../js/popover.js"></script>
|
|
||||||
<script src="../../js/affix.js"></script>
|
|
||||||
|
|
||||||
<!-- unit tests -->
|
|
||||||
<script src="unit/transition.js"></script>
|
|
||||||
<script src="unit/alert.js"></script>
|
|
||||||
<script src="unit/button.js"></script>
|
|
||||||
<script src="unit/carousel.js"></script>
|
|
||||||
<script src="unit/collapse.js"></script>
|
|
||||||
<script src="unit/dropdown.js"></script>
|
|
||||||
<script src="unit/modal.js"></script>
|
|
||||||
<script src="unit/scrollspy.js"></script>
|
|
||||||
<script src="unit/tab.js"></script>
|
|
||||||
<script src="unit/tooltip.js"></script>
|
|
||||||
<script src="unit/popover.js"></script>
|
|
||||||
<script src="unit/affix.js"></script>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<h1 id="qunit-header">Bootstrap Plugin Test Suite</h1>
|
|
||||||
<h2 id="qunit-banner"></h2>
|
|
||||||
<h2 id="qunit-userAgent"></h2>
|
|
||||||
<ol id="qunit-tests"></ol>
|
|
||||||
<div id="qunit-fixture"></div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,63 +0,0 @@
|
||||||
// Simple phantom.js integration script
|
|
||||||
// Adapted from Modernizr
|
|
||||||
|
|
||||||
function waitFor(testFx, onReady, timeOutMillis) {
|
|
||||||
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 5001 //< Default Max Timout is 5s
|
|
||||||
, start = new Date().getTime()
|
|
||||||
, condition = false
|
|
||||||
, interval = setInterval(function () {
|
|
||||||
if ((new Date().getTime() - start < maxtimeOutMillis) && !condition) {
|
|
||||||
// If not time-out yet and condition not yet fulfilled
|
|
||||||
condition = (typeof(testFx) === "string" ? eval(testFx) : testFx()) //< defensive code
|
|
||||||
} else {
|
|
||||||
if (!condition) {
|
|
||||||
// If condition still not fulfilled (timeout but condition is 'false')
|
|
||||||
console.log("'waitFor()' timeout")
|
|
||||||
phantom.exit(1)
|
|
||||||
} else {
|
|
||||||
// Condition fulfilled (timeout and/or condition is 'true')
|
|
||||||
typeof(onReady) === "string" ? eval(onReady) : onReady() //< Do what it's supposed to do once the condition is fulfilled
|
|
||||||
clearInterval(interval) //< Stop this interval
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, 100) //< repeat check every 100ms
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (phantom.args.length === 0 || phantom.args.length > 2) {
|
|
||||||
console.log('Usage: phantom.js URL')
|
|
||||||
phantom.exit()
|
|
||||||
}
|
|
||||||
|
|
||||||
var page = new WebPage()
|
|
||||||
|
|
||||||
// Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this")
|
|
||||||
page.onConsoleMessage = function(msg) {
|
|
||||||
console.log(msg)
|
|
||||||
};
|
|
||||||
|
|
||||||
page.open(phantom.args[0], function(status){
|
|
||||||
if (status !== "success") {
|
|
||||||
console.log("Unable to access network")
|
|
||||||
phantom.exit()
|
|
||||||
} else {
|
|
||||||
waitFor(function(){
|
|
||||||
return page.evaluate(function(){
|
|
||||||
var el = document.getElementById('qunit-testresult')
|
|
||||||
if (el && el.innerText.match('completed')) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
}, function(){
|
|
||||||
var failedNum = page.evaluate(function(){
|
|
||||||
var el = document.getElementById('qunit-testresult')
|
|
||||||
try {
|
|
||||||
return el.getElementsByClassName('failed')[0].innerHTML
|
|
||||||
} catch (e) { }
|
|
||||||
return 10000
|
|
||||||
});
|
|
||||||
phantom.exit((parseInt(failedNum, 10) > 0) ? 1 : 0)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
|
@ -1,14 +0,0 @@
|
||||||
/*
|
|
||||||
* Simple connect server for phantom.js
|
|
||||||
* Adapted from Modernizr
|
|
||||||
*/
|
|
||||||
|
|
||||||
var connect = require('connect')
|
|
||||||
, http = require('http')
|
|
||||||
, fs = require('fs')
|
|
||||||
, app = connect()
|
|
||||||
.use(connect.static(__dirname + '/../../'));
|
|
||||||
|
|
||||||
http.createServer(app).listen(3000);
|
|
||||||
|
|
||||||
fs.writeFileSync(__dirname + '/pid.txt', process.pid, 'utf-8')
|
|
|
@ -1,25 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("affix")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var affix = $.fn.affix.noConflict()
|
|
||||||
ok(!$.fn.affix, 'affix was set back to undefined (org value)')
|
|
||||||
$.fn.affix = affix
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
ok($(document.body).affix, 'affix method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
ok($(document.body).affix()[0] == document.body, 'document.body returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should exit early if element is not visible", function () {
|
|
||||||
var $affix = $('<div style="display: none"></div>').affix()
|
|
||||||
$affix.data('bs.affix').checkPosition()
|
|
||||||
ok(!$affix.hasClass('affix'), 'affix class was not added')
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
|
@ -1,62 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("alert")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var alert = $.fn.alert.noConflict()
|
|
||||||
ok(!$.fn.alert, 'alert was set back to undefined (org value)')
|
|
||||||
$.fn.alert = alert
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
ok($(document.body).alert, 'alert method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
ok($(document.body).alert()[0] == document.body, 'document.body returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should fade element out on clicking .close", function () {
|
|
||||||
var alertHTML = '<div class="alert-message warning fade in">'
|
|
||||||
+ '<a class="close" href="#" data-dismiss="alert">×</a>'
|
|
||||||
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>'
|
|
||||||
+ '</div>'
|
|
||||||
, alert = $(alertHTML).alert()
|
|
||||||
|
|
||||||
alert.find('.close').click()
|
|
||||||
|
|
||||||
ok(!alert.hasClass('in'), 'remove .in class on .close click')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should remove element when clicking .close", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
|
|
||||||
var alertHTML = '<div class="alert-message warning fade in">'
|
|
||||||
+ '<a class="close" href="#" data-dismiss="alert">×</a>'
|
|
||||||
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>'
|
|
||||||
+ '</div>'
|
|
||||||
, alert = $(alertHTML).appendTo('#qunit-fixture').alert()
|
|
||||||
|
|
||||||
ok($('#qunit-fixture').find('.alert-message').length, 'element added to dom')
|
|
||||||
|
|
||||||
alert.find('.close').click()
|
|
||||||
|
|
||||||
ok(!$('#qunit-fixture').find('.alert-message').length, 'element removed from dom')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should not fire closed when close is prevented", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop();
|
|
||||||
$('<div class="alert"/>')
|
|
||||||
.on('close.bs.alert', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
ok(true);
|
|
||||||
start();
|
|
||||||
})
|
|
||||||
.on('closed.bs.alert', function () {
|
|
||||||
ok(false);
|
|
||||||
})
|
|
||||||
.alert('close')
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
|
@ -1,116 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("button")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var button = $.fn.button.noConflict()
|
|
||||||
ok(!$.fn.button, 'button was set back to undefined (org value)')
|
|
||||||
$.fn.button = button
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
ok($(document.body).button, 'button method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
ok($(document.body).button()[0] == document.body, 'document.body returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return set state to loading", function () {
|
|
||||||
var btn = $('<button class="btn" data-loading-text="fat">mdo</button>')
|
|
||||||
equals(btn.html(), 'mdo', 'btn text equals mdo')
|
|
||||||
btn.button('loading')
|
|
||||||
equals(btn.html(), 'fat', 'btn text equals fat')
|
|
||||||
stop()
|
|
||||||
setTimeout(function () {
|
|
||||||
ok(btn.attr('disabled'), 'btn is disabled')
|
|
||||||
ok(btn.hasClass('disabled'), 'btn has disabled class')
|
|
||||||
start()
|
|
||||||
}, 0)
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return reset state", function () {
|
|
||||||
var btn = $('<button class="btn" data-loading-text="fat">mdo</button>')
|
|
||||||
equals(btn.html(), 'mdo', 'btn text equals mdo')
|
|
||||||
btn.button('loading')
|
|
||||||
equals(btn.html(), 'fat', 'btn text equals fat')
|
|
||||||
stop()
|
|
||||||
setTimeout(function () {
|
|
||||||
ok(btn.attr('disabled'), 'btn is disabled')
|
|
||||||
ok(btn.hasClass('disabled'), 'btn has disabled class')
|
|
||||||
start()
|
|
||||||
stop()
|
|
||||||
btn.button('reset')
|
|
||||||
equals(btn.html(), 'mdo', 'btn text equals mdo')
|
|
||||||
setTimeout(function () {
|
|
||||||
ok(!btn.attr('disabled'), 'btn is not disabled')
|
|
||||||
ok(!btn.hasClass('disabled'), 'btn does not have disabled class')
|
|
||||||
start()
|
|
||||||
}, 0)
|
|
||||||
}, 0)
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should toggle active", function () {
|
|
||||||
var btn = $('<button class="btn">mdo</button>')
|
|
||||||
ok(!btn.hasClass('active'), 'btn does not have active class')
|
|
||||||
btn.button('toggle')
|
|
||||||
ok(btn.hasClass('active'), 'btn has class active')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should toggle active when btn children are clicked", function () {
|
|
||||||
var btn = $('<button class="btn" data-toggle="button">mdo</button>')
|
|
||||||
, inner = $('<i></i>')
|
|
||||||
btn
|
|
||||||
.append(inner)
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
ok(!btn.hasClass('active'), 'btn does not have active class')
|
|
||||||
inner.click()
|
|
||||||
ok(btn.hasClass('active'), 'btn has class active')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should toggle active when btn children are clicked within btn-group", function () {
|
|
||||||
var btngroup = $('<div class="btn-group" data-toggle="buttons"></div>')
|
|
||||||
, btn = $('<button class="btn">fat</button>')
|
|
||||||
, inner = $('<i></i>')
|
|
||||||
btngroup
|
|
||||||
.append(btn.append(inner))
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
ok(!btn.hasClass('active'), 'btn does not have active class')
|
|
||||||
inner.click()
|
|
||||||
ok(btn.hasClass('active'), 'btn has class active')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should check for closest matching toggle", function () {
|
|
||||||
var group = '<div class="btn-group" data-toggle="buttons">' +
|
|
||||||
'<label class="btn btn-primary active">' +
|
|
||||||
'<input type="radio" name="options" id="option1" checked="true"> Option 1' +
|
|
||||||
'</label>' +
|
|
||||||
'<label class="btn btn-primary">' +
|
|
||||||
'<input type="radio" name="options" id="option2"> Option 2' +
|
|
||||||
'</label>' +
|
|
||||||
'<label class="btn btn-primary">' +
|
|
||||||
'<input type="radio" name="options" id="option3"> Option 3' +
|
|
||||||
'</label>' +
|
|
||||||
'</div>'
|
|
||||||
|
|
||||||
group = $(group)
|
|
||||||
|
|
||||||
var btn1 = $(group.children()[0])
|
|
||||||
var btn2 = $(group.children()[1])
|
|
||||||
var btn3 = $(group.children()[2])
|
|
||||||
|
|
||||||
group.appendTo($('#qunit-fixture'))
|
|
||||||
|
|
||||||
ok(btn1.hasClass('active'), 'btn1 has active class')
|
|
||||||
ok(btn1.find('input').prop('checked'), 'btn1 is checked')
|
|
||||||
ok(!btn2.hasClass('active'), 'btn2 does not have active class')
|
|
||||||
ok(!btn2.find('input').prop('checked'), 'btn2 is not checked')
|
|
||||||
btn2.find('input').click()
|
|
||||||
ok(!btn1.hasClass('active'), 'btn1 does not have active class')
|
|
||||||
ok(!btn1.find('input').prop('checked'), 'btn1 is checked')
|
|
||||||
ok(btn2.hasClass('active'), 'btn2 has active class')
|
|
||||||
ok(btn2.find('input').prop('checked'), 'btn2 is checked')
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
|
@ -1,87 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("carousel")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var carousel = $.fn.carousel.noConflict()
|
|
||||||
ok(!$.fn.carousel, 'carousel was set back to undefined (org value)')
|
|
||||||
$.fn.carousel = carousel
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
ok($(document.body).carousel, 'carousel method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
ok($(document.body).carousel()[0] == document.body, 'document.body returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should not fire sliden when slide is prevented", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
$('<div class="carousel"/>')
|
|
||||||
.on('slide.bs.carousel', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
ok(true);
|
|
||||||
start();
|
|
||||||
})
|
|
||||||
.on('slid.bs.carousel', function () {
|
|
||||||
ok(false);
|
|
||||||
})
|
|
||||||
.carousel('next')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should fire slide event with direction", function () {
|
|
||||||
var template = '<div id="myCarousel" class="carousel slide"><div class="carousel-inner"><div class="item active"><img alt=""><div class="carousel-caption"><h4>{{_i}}First Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Second Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Third Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div></div><a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a><a class="right carousel-control" href="#myCarousel" data-slide="next">›</a></div>'
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
$(template).on('slide.bs.carousel', function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
ok(e.direction)
|
|
||||||
ok(e.direction === 'right' || e.direction === 'left')
|
|
||||||
start()
|
|
||||||
}).carousel('next')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should fire slide event with relatedTarget", function () {
|
|
||||||
var template = '<div id="myCarousel" class="carousel slide"><div class="carousel-inner"><div class="item active"><img alt=""><div class="carousel-caption"><h4>{{_i}}First Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Second Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div><div class="item"><img alt=""><div class="carousel-caption"><h4>{{_i}}Third Thumbnail label{{/i}}</h4><p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div></div></div><a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a><a class="right carousel-control" href="#myCarousel" data-slide="next">›</a></div>'
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
$(template)
|
|
||||||
.on('slide.bs.carousel', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
ok(e.relatedTarget);
|
|
||||||
ok($(e.relatedTarget).hasClass('item'));
|
|
||||||
start();
|
|
||||||
})
|
|
||||||
.carousel('next')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should set interval from data attribute", 4, function () {
|
|
||||||
var template = $('<div id="myCarousel" class="carousel slide"> <div class="carousel-inner"> <div class="item active"> <img alt=""> <div class="carousel-caption"> <h4>{{_i}}First Thumbnail label{{/i}}</h4> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> </div> <div class="item"> <img alt=""> <div class="carousel-caption"> <h4>{{_i}}Second Thumbnail label{{/i}}</h4> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> </div> <div class="item"> <img alt=""> <div class="carousel-caption"> <h4>{{_i}}Third Thumbnail label{{/i}}</h4> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> </div> </div> <a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a> <a class="right carousel-control" href="#myCarousel" data-slide="next">›</a> </div>');
|
|
||||||
template.attr("data-interval", 1814);
|
|
||||||
|
|
||||||
template.appendTo("body");
|
|
||||||
$('[data-slide]').first().click();
|
|
||||||
ok($('#myCarousel').data('bs.carousel').options.interval == 1814);
|
|
||||||
$('#myCarousel').remove();
|
|
||||||
|
|
||||||
template.appendTo("body").attr("data-modal", "foobar");
|
|
||||||
$('[data-slide]').first().click();
|
|
||||||
ok($('#myCarousel').data('bs.carousel').options.interval == 1814, "even if there is an data-modal attribute set");
|
|
||||||
$('#myCarousel').remove();
|
|
||||||
|
|
||||||
template.appendTo("body");
|
|
||||||
$('[data-slide]').first().click();
|
|
||||||
$('#myCarousel').attr('data-interval', 1860);
|
|
||||||
$('[data-slide]').first().click();
|
|
||||||
ok($('#myCarousel').data('bs.carousel').options.interval == 1814, "attributes should be read only on intitialization");
|
|
||||||
$('#myCarousel').remove();
|
|
||||||
|
|
||||||
template.attr("data-interval", false);
|
|
||||||
template.appendTo("body");
|
|
||||||
$('#myCarousel').carousel(1);
|
|
||||||
ok($('#myCarousel').data('bs.carousel').options.interval === false, "data attribute has higher priority than default options");
|
|
||||||
$('#myCarousel').remove();
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,164 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("collapse")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var collapse = $.fn.collapse.noConflict()
|
|
||||||
ok(!$.fn.collapse, 'collapse was set back to undefined (org value)')
|
|
||||||
$.fn.collapse = collapse
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
ok($(document.body).collapse, 'collapse method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
ok($(document.body).collapse()[0] == document.body, 'document.body returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should show a collapsed element", function () {
|
|
||||||
var el = $('<div class="collapse"></div>').collapse('show')
|
|
||||||
ok(el.hasClass('in'), 'has class in')
|
|
||||||
ok(/height/.test(el.attr('style')), 'has height set')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should hide a collapsed element", function () {
|
|
||||||
var el = $('<div class="collapse"></div>').collapse('hide')
|
|
||||||
ok(!el.hasClass('in'), 'does not have class in')
|
|
||||||
ok(/height/.test(el.attr('style')), 'has height set')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should not fire shown when show is prevented", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
$('<div class="collapse"/>')
|
|
||||||
.on('show.bs.collapse', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
ok(true);
|
|
||||||
start();
|
|
||||||
})
|
|
||||||
.on('shown.bs.collapse', function () {
|
|
||||||
ok(false);
|
|
||||||
})
|
|
||||||
.collapse('show')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should reset style to auto after finishing opening collapse", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
$('<div class="collapse" style="height: 0px"/>')
|
|
||||||
.on('show.bs.collapse', function () {
|
|
||||||
ok(this.style.height == '0px')
|
|
||||||
})
|
|
||||||
.on('shown.bs.collapse', function () {
|
|
||||||
ok(this.style.height == 'auto')
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.collapse('show')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should add active class to target when collapse shown", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
|
|
||||||
var target = $('<a data-toggle="collapse" href="#test1"></a>')
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
|
|
||||||
var collapsible = $('<div id="test1"></div>')
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
.on('show.bs.collapse', function () {
|
|
||||||
ok(!target.hasClass('collapsed'))
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
|
|
||||||
target.click()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should remove active class to target when collapse hidden", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
|
|
||||||
var target = $('<a data-toggle="collapse" href="#test1"></a>')
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
|
|
||||||
var collapsible = $('<div id="test1" class="in"></div>')
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
.on('hide.bs.collapse', function () {
|
|
||||||
ok(target.hasClass('collapsed'))
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
|
|
||||||
target.click()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should remove active class from inactive accordion targets", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
|
|
||||||
var accordion = $('<div id="accordion"><div class="accordion-group"></div><div class="accordion-group"></div><div class="accordion-group"></div></div>')
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
|
|
||||||
var target1 = $('<a data-toggle="collapse" href="#body1" data-parent="#accordion"></a>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(0))
|
|
||||||
|
|
||||||
var collapsible1 = $('<div id="body1" class="in"></div>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(0))
|
|
||||||
|
|
||||||
var target2 = $('<a class="collapsed" data-toggle="collapse" href="#body2" data-parent="#accordion"></a>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(1))
|
|
||||||
|
|
||||||
var collapsible2 = $('<div id="body2"></div>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(1))
|
|
||||||
|
|
||||||
var target3 = $('<a class="collapsed" data-toggle="collapse" href="#body3" data-parent="#accordion"></a>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(2))
|
|
||||||
|
|
||||||
var collapsible3 = $('<div id="body3"></div>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(2))
|
|
||||||
.on('show.bs.collapse', function () {
|
|
||||||
ok(target1.hasClass('collapsed'))
|
|
||||||
ok(target2.hasClass('collapsed'))
|
|
||||||
ok(!target3.hasClass('collapsed'))
|
|
||||||
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
|
|
||||||
target3.click()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should allow dots in data-parent", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
stop()
|
|
||||||
|
|
||||||
var accordion = $('<div class="accordion"><div class="accordion-group"></div><div class="accordion-group"></div><div class="accordion-group"></div></div>')
|
|
||||||
.appendTo($('#qunit-fixture'))
|
|
||||||
|
|
||||||
var target1 = $('<a data-toggle="collapse" href="#body1" data-parent=".accordion"></a>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(0))
|
|
||||||
|
|
||||||
var collapsible1 = $('<div id="body1" class="in"></div>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(0))
|
|
||||||
|
|
||||||
var target2 = $('<a class="collapsed" data-toggle="collapse" href="#body2" data-parent=".accordion"></a>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(1))
|
|
||||||
|
|
||||||
var collapsible2 = $('<div id="body2"></div>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(1))
|
|
||||||
|
|
||||||
var target3 = $('<a class="collapsed" data-toggle="collapse" href="#body3" data-parent=".accordion"></a>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(2))
|
|
||||||
|
|
||||||
var collapsible3 = $('<div id="body3"></div>')
|
|
||||||
.appendTo(accordion.find('.accordion-group').eq(2))
|
|
||||||
.on('show.bs.collapse', function () {
|
|
||||||
ok(target1.hasClass('collapsed'))
|
|
||||||
ok(target2.hasClass('collapsed'))
|
|
||||||
ok(!target3.hasClass('collapsed'))
|
|
||||||
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
|
|
||||||
target3.click()
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
|
@ -1,219 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("dropdowns")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var dropdown = $.fn.dropdown.noConflict()
|
|
||||||
ok(!$.fn.dropdown, 'dropdown was set back to undefined (org value)')
|
|
||||||
$.fn.dropdown = dropdown
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
ok($(document.body).dropdown, 'dropdown method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
var el = $("<div />")
|
|
||||||
ok(el.dropdown()[0] === el[0], 'same element returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should not open dropdown if target is disabled", function () {
|
|
||||||
var dropdownHTML = '<ul class="tabs">'
|
|
||||||
+ '<li class="dropdown">'
|
|
||||||
+ '<button disabled href="#" class="btn dropdown-toggle" data-toggle="dropdown">Dropdown</button>'
|
|
||||||
+ '<ul class="dropdown-menu">'
|
|
||||||
+ '<li><a href="#">Secondary link</a></li>'
|
|
||||||
+ '<li><a href="#">Something else here</a></li>'
|
|
||||||
+ '<li class="divider"></li>'
|
|
||||||
+ '<li><a href="#">Another link</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</li>'
|
|
||||||
+ '</ul>'
|
|
||||||
, dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
|
|
||||||
|
|
||||||
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should not open dropdown if target is disabled", function () {
|
|
||||||
var dropdownHTML = '<ul class="tabs">'
|
|
||||||
+ '<li class="dropdown">'
|
|
||||||
+ '<button href="#" class="btn dropdown-toggle disabled" data-toggle="dropdown">Dropdown</button>'
|
|
||||||
+ '<ul class="dropdown-menu">'
|
|
||||||
+ '<li><a href="#">Secondary link</a></li>'
|
|
||||||
+ '<li><a href="#">Something else here</a></li>'
|
|
||||||
+ '<li class="divider"></li>'
|
|
||||||
+ '<li><a href="#">Another link</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</li>'
|
|
||||||
+ '</ul>'
|
|
||||||
, dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
|
|
||||||
|
|
||||||
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should add class open to menu if clicked", function () {
|
|
||||||
var dropdownHTML = '<ul class="tabs">'
|
|
||||||
+ '<li class="dropdown">'
|
|
||||||
+ '<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>'
|
|
||||||
+ '<ul class="dropdown-menu">'
|
|
||||||
+ '<li><a href="#">Secondary link</a></li>'
|
|
||||||
+ '<li><a href="#">Something else here</a></li>'
|
|
||||||
+ '<li class="divider"></li>'
|
|
||||||
+ '<li><a href="#">Another link</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</li>'
|
|
||||||
+ '</ul>'
|
|
||||||
, dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
|
|
||||||
|
|
||||||
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should test if element has a # before assuming it's a selector", function () {
|
|
||||||
var dropdownHTML = '<ul class="tabs">'
|
|
||||||
+ '<li class="dropdown">'
|
|
||||||
+ '<a href="/foo/" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>'
|
|
||||||
+ '<ul class="dropdown-menu">'
|
|
||||||
+ '<li><a href="#">Secondary link</a></li>'
|
|
||||||
+ '<li><a href="#">Something else here</a></li>'
|
|
||||||
+ '<li class="divider"></li>'
|
|
||||||
+ '<li><a href="#">Another link</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</li>'
|
|
||||||
+ '</ul>'
|
|
||||||
, dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
|
|
||||||
|
|
||||||
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
test("should remove open class if body clicked", function () {
|
|
||||||
var dropdownHTML = '<ul class="tabs">'
|
|
||||||
+ '<li class="dropdown">'
|
|
||||||
+ '<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>'
|
|
||||||
+ '<ul class="dropdown-menu">'
|
|
||||||
+ '<li><a href="#">Secondary link</a></li>'
|
|
||||||
+ '<li><a href="#">Something else here</a></li>'
|
|
||||||
+ '<li class="divider"></li>'
|
|
||||||
+ '<li><a href="#">Another link</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</li>'
|
|
||||||
+ '</ul>'
|
|
||||||
, dropdown = $(dropdownHTML)
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.find('[data-toggle="dropdown"]')
|
|
||||||
.dropdown()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
|
||||||
$('body').click()
|
|
||||||
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class removed')
|
|
||||||
dropdown.remove()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should remove open class if body clicked, with multiple drop downs", function () {
|
|
||||||
var dropdownHTML =
|
|
||||||
'<ul class="nav">'
|
|
||||||
+ ' <li><a href="#menu1">Menu 1</a></li>'
|
|
||||||
+ ' <li class="dropdown" id="testmenu">'
|
|
||||||
+ ' <a class="dropdown-toggle" data-toggle="dropdown" href="#testmenu">Test menu <b class="caret"></b></a>'
|
|
||||||
+ ' <ul class="dropdown-menu" role="menu">'
|
|
||||||
+ ' <li><a href="#sub1">Submenu 1</a></li>'
|
|
||||||
+ ' </ul>'
|
|
||||||
+ ' </li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '<div class="btn-group">'
|
|
||||||
+ ' <button class="btn">Actions</button>'
|
|
||||||
+ ' <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>'
|
|
||||||
+ ' <ul class="dropdown-menu">'
|
|
||||||
+ ' <li><a href="#">Action 1</a></li>'
|
|
||||||
+ ' </ul>'
|
|
||||||
+ '</div>'
|
|
||||||
, dropdowns = $(dropdownHTML).appendTo('#qunit-fixture').find('[data-toggle="dropdown"]')
|
|
||||||
, first = dropdowns.first()
|
|
||||||
, last = dropdowns.last()
|
|
||||||
|
|
||||||
ok(dropdowns.length == 2, "Should be two dropdowns")
|
|
||||||
|
|
||||||
first.click()
|
|
||||||
ok(first.parents('.open').length == 1, 'open class added on click')
|
|
||||||
ok($('#qunit-fixture .open').length == 1, 'only one object is open')
|
|
||||||
$('body').click()
|
|
||||||
ok($("#qunit-fixture .open").length === 0, 'open class removed')
|
|
||||||
|
|
||||||
last.click()
|
|
||||||
ok(last.parent('.open').length == 1, 'open class added on click')
|
|
||||||
ok($('#qunit-fixture .open').length == 1, 'only one object is open')
|
|
||||||
$('body').click()
|
|
||||||
ok($("#qunit-fixture .open").length === 0, 'open class removed')
|
|
||||||
|
|
||||||
$("#qunit-fixture").html("")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should fire show and hide event", function () {
|
|
||||||
var dropdownHTML = '<ul class="tabs">'
|
|
||||||
+ '<li class="dropdown">'
|
|
||||||
+ '<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>'
|
|
||||||
+ '<ul class="dropdown-menu">'
|
|
||||||
+ '<li><a href="#">Secondary link</a></li>'
|
|
||||||
+ '<li><a href="#">Something else here</a></li>'
|
|
||||||
+ '<li class="divider"></li>'
|
|
||||||
+ '<li><a href="#">Another link</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</li>'
|
|
||||||
+ '</ul>'
|
|
||||||
, dropdown = $(dropdownHTML)
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.find('[data-toggle="dropdown"]')
|
|
||||||
.dropdown()
|
|
||||||
|
|
||||||
stop()
|
|
||||||
|
|
||||||
dropdown
|
|
||||||
.parent('.dropdown')
|
|
||||||
.bind('show.bs.dropdown', function () {
|
|
||||||
ok(true, 'show was called')
|
|
||||||
})
|
|
||||||
.bind('hide.bs.dropdown', function () {
|
|
||||||
ok(true, 'hide was called')
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
|
|
||||||
dropdown.click()
|
|
||||||
$(document.body).click()
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
test("should fire shown and hiden event", function () {
|
|
||||||
var dropdownHTML = '<ul class="tabs">'
|
|
||||||
+ '<li class="dropdown">'
|
|
||||||
+ '<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>'
|
|
||||||
+ '<ul class="dropdown-menu">'
|
|
||||||
+ '<li><a href="#">Secondary link</a></li>'
|
|
||||||
+ '<li><a href="#">Something else here</a></li>'
|
|
||||||
+ '<li class="divider"></li>'
|
|
||||||
+ '<li><a href="#">Another link</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</li>'
|
|
||||||
+ '</ul>'
|
|
||||||
, dropdown = $(dropdownHTML)
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.find('[data-toggle="dropdown"]')
|
|
||||||
.dropdown()
|
|
||||||
|
|
||||||
stop()
|
|
||||||
|
|
||||||
dropdown
|
|
||||||
.parent('.dropdown')
|
|
||||||
.bind('shown.bs.dropdown', function () {
|
|
||||||
ok(true, 'show was called')
|
|
||||||
})
|
|
||||||
.bind('hidden.bs.dropdown', function () {
|
|
||||||
ok(true, 'hide was called')
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
|
|
||||||
dropdown.click()
|
|
||||||
$(document.body).click()
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
|
@ -1,177 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("modal")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var modal = $.fn.modal.noConflict()
|
|
||||||
ok(!$.fn.modal, 'modal was set back to undefined (org value)')
|
|
||||||
$.fn.modal = modal
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
var div = $("<div id='modal-test'></div>")
|
|
||||||
ok(div.modal, 'modal method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
var div = $("<div id='modal-test'></div>")
|
|
||||||
ok(div.modal() == div, 'document.body returned')
|
|
||||||
$('#modal-test').remove()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should expose defaults var for settings", function () {
|
|
||||||
ok($.fn.modal.Constructor.DEFAULTS, 'default object exposed')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should insert into dom when show method is called", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
$("<div id='modal-test'></div>")
|
|
||||||
.on("shown.bs.modal", function () {
|
|
||||||
ok($('#modal-test').length, 'modal inserted into dom')
|
|
||||||
$(this).remove()
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("show")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should fire show event", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
$("<div id='modal-test'></div>")
|
|
||||||
.on("show.bs.modal", function () {
|
|
||||||
ok(true, "show was called")
|
|
||||||
})
|
|
||||||
.on("shown.bs.modal", function () {
|
|
||||||
$(this).remove()
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("show")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should not fire shown when default prevented", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
$("<div id='modal-test'></div>")
|
|
||||||
.on("show.bs.modal", function (e) {
|
|
||||||
e.preventDefault()
|
|
||||||
ok(true, "show was called")
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.on("shown.bs.modal", function () {
|
|
||||||
ok(false, "shown was called")
|
|
||||||
})
|
|
||||||
.modal("show")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should hide modal when hide is called", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
|
|
||||||
$("<div id='modal-test'></div>")
|
|
||||||
.on("shown.bs.modal", function () {
|
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
|
||||||
ok($('#modal-test').length, 'modal inserted into dom')
|
|
||||||
$(this).modal("hide")
|
|
||||||
})
|
|
||||||
.on("hidden.bs.modal", function() {
|
|
||||||
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
|
||||||
$('#modal-test').remove()
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("show")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should toggle when toggle is called", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
var div = $("<div id='modal-test'></div>")
|
|
||||||
div
|
|
||||||
.on("shown.bs.modal", function () {
|
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
|
||||||
ok($('#modal-test').length, 'modal inserted into dom')
|
|
||||||
div.modal("toggle")
|
|
||||||
})
|
|
||||||
.on("hidden.bs.modal", function() {
|
|
||||||
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
|
||||||
div.remove()
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("toggle")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should remove from dom when click [data-dismiss=modal]", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
var div = $("<div id='modal-test'><span class='close' data-dismiss='modal'></span></div>")
|
|
||||||
div
|
|
||||||
.on("shown.bs.modal", function () {
|
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
|
||||||
ok($('#modal-test').length, 'modal inserted into dom')
|
|
||||||
div.find('.close').click()
|
|
||||||
})
|
|
||||||
.on("hidden.bs.modal", function() {
|
|
||||||
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
|
||||||
div.remove()
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("toggle")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should allow modal close with 'backdrop:false'", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
var div = $("<div>", { id: 'modal-test', "data-backdrop": false })
|
|
||||||
div
|
|
||||||
.on("shown.bs.modal", function () {
|
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
|
||||||
div.modal("hide")
|
|
||||||
})
|
|
||||||
.on("hidden.bs.modal", function() {
|
|
||||||
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
|
||||||
div.remove()
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("show")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should close modal when clicking outside of modal-content", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
var div = $("<div id='modal-test'><div class='contents'></div></div>")
|
|
||||||
div
|
|
||||||
.bind("shown.bs.modal", function () {
|
|
||||||
ok($('#modal-test').length, 'modal insterted into dom')
|
|
||||||
$('.contents').click()
|
|
||||||
ok($('#modal-test').is(":visible"), 'modal visible')
|
|
||||||
$('#modal-test').click()
|
|
||||||
})
|
|
||||||
.bind("hidden.bs.modal", function() {
|
|
||||||
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
|
||||||
div.remove()
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("show")
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should trigger hide event once when clicking outside of modal-content", function () {
|
|
||||||
stop()
|
|
||||||
$.support.transition = false
|
|
||||||
var div = $("<div id='modal-test'><div class='contents'></div></div>")
|
|
||||||
var triggered
|
|
||||||
div
|
|
||||||
.bind("shown.bs.modal", function () {
|
|
||||||
triggered = 0
|
|
||||||
$('#modal-test').click()
|
|
||||||
})
|
|
||||||
.one("hidden.bs.modal", function() {
|
|
||||||
div.modal("show")
|
|
||||||
})
|
|
||||||
.bind("hide.bs.modal", function () {
|
|
||||||
triggered += 1
|
|
||||||
ok(triggered === 1, 'modal hide triggered once')
|
|
||||||
start()
|
|
||||||
})
|
|
||||||
.modal("show")
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,69 +0,0 @@
|
||||||
/*
|
|
||||||
* grunt-contrib-qunit
|
|
||||||
* http://gruntjs.com/
|
|
||||||
*
|
|
||||||
* Copyright (c) 2013 "Cowboy" Ben Alman, contributors
|
|
||||||
* Licensed under the MIT license.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*global QUnit:true, alert:true*/
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
// Don't re-order tests.
|
|
||||||
QUnit.config.reorder = false
|
|
||||||
// Run tests serially, not in parallel.
|
|
||||||
QUnit.config.autorun = false
|
|
||||||
|
|
||||||
// Send messages to the parent PhantomJS process via alert! Good times!!
|
|
||||||
function sendMessage() {
|
|
||||||
var args = [].slice.call(arguments)
|
|
||||||
alert(JSON.stringify(args))
|
|
||||||
}
|
|
||||||
|
|
||||||
// These methods connect QUnit to PhantomJS.
|
|
||||||
QUnit.log = function(obj) {
|
|
||||||
// What is this I don’t even
|
|
||||||
if (obj.message === '[object Object], undefined:undefined') { return }
|
|
||||||
// Parse some stuff before sending it.
|
|
||||||
var actual = QUnit.jsDump.parse(obj.actual)
|
|
||||||
var expected = QUnit.jsDump.parse(obj.expected)
|
|
||||||
// Send it.
|
|
||||||
sendMessage('qunit.log', obj.result, actual, expected, obj.message, obj.source)
|
|
||||||
}
|
|
||||||
|
|
||||||
QUnit.testStart = function(obj) {
|
|
||||||
sendMessage('qunit.testStart', obj.name)
|
|
||||||
}
|
|
||||||
|
|
||||||
QUnit.testDone = function(obj) {
|
|
||||||
sendMessage('qunit.testDone', obj.name, obj.failed, obj.passed, obj.total)
|
|
||||||
}
|
|
||||||
|
|
||||||
QUnit.moduleStart = function(obj) {
|
|
||||||
sendMessage('qunit.moduleStart', obj.name)
|
|
||||||
}
|
|
||||||
|
|
||||||
QUnit.begin = function () {
|
|
||||||
sendMessage('qunit.begin')
|
|
||||||
console.log("Starting test suite")
|
|
||||||
console.log("================================================\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
QUnit.moduleDone = function (opts) {
|
|
||||||
if (opts.failed === 0) {
|
|
||||||
console.log("\r\u2714 All tests passed in '" + opts.name + "' module")
|
|
||||||
} else {
|
|
||||||
console.log("\u2716 " + opts.failed + " tests failed in '" + opts.name + "' module")
|
|
||||||
}
|
|
||||||
sendMessage('qunit.moduleDone', opts.name, opts.failed, opts.passed, opts.total)
|
|
||||||
}
|
|
||||||
|
|
||||||
QUnit.done = function (opts) {
|
|
||||||
console.log("\n================================================")
|
|
||||||
console.log("Tests completed in " + opts.runtime + " milliseconds")
|
|
||||||
console.log(opts.passed + " tests of " + opts.total + " passed, " + opts.failed + " failed.")
|
|
||||||
sendMessage('qunit.done', opts.failed, opts.passed, opts.total, opts.runtime)
|
|
||||||
}
|
|
||||||
|
|
||||||
}())
|
|
|
@ -1,133 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("popover")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var popover = $.fn.popover.noConflict()
|
|
||||||
ok(!$.fn.popover, 'popover was set back to undefined (org value)')
|
|
||||||
$.fn.popover = popover
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
var div = $('<div></div>')
|
|
||||||
ok(div.popover, 'popover method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
var div = $('<div></div>')
|
|
||||||
ok(div.popover() == div, 'document.body returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should render popover element", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
var popover = $('<a href="#" title="mdo" data-content="http://twitter.com/mdo">@mdo</a>')
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.popover('show')
|
|
||||||
|
|
||||||
ok($('.popover').length, 'popover was inserted')
|
|
||||||
popover.popover('hide')
|
|
||||||
ok(!$(".popover").length, 'popover removed')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should store popover instance in popover data object", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
var popover = $('<a href="#" title="mdo" data-content="http://twitter.com/mdo">@mdo</a>')
|
|
||||||
.popover()
|
|
||||||
|
|
||||||
ok(!!popover.data('bs.popover'), 'popover instance exists')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should get title and content from options", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
var popover = $('<a href="#">@fat</a>')
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.popover({
|
|
||||||
title: function () {
|
|
||||||
return '@fat'
|
|
||||||
}
|
|
||||||
, content: function () {
|
|
||||||
return 'loves writing tests (╯°□°)╯︵ ┻━┻'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
popover.popover('show')
|
|
||||||
|
|
||||||
ok($('.popover').length, 'popover was inserted')
|
|
||||||
equals($('.popover .popover-title').text(), '@fat', 'title correctly inserted')
|
|
||||||
equals($('.popover .popover-content').text(), 'loves writing tests (╯°□°)╯︵ ┻━┻', 'content correctly inserted')
|
|
||||||
|
|
||||||
popover.popover('hide')
|
|
||||||
ok(!$('.popover').length, 'popover was removed')
|
|
||||||
$('#qunit-fixture').empty()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should get title and content from attributes", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
var popover = $('<a href="#" title="@mdo" data-content="loves data attributes (づ。◕‿‿◕。)づ ︵ ┻━┻" >@mdo</a>')
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.popover()
|
|
||||||
.popover('show')
|
|
||||||
|
|
||||||
ok($('.popover').length, 'popover was inserted')
|
|
||||||
equals($('.popover .popover-title').text(), '@mdo', 'title correctly inserted')
|
|
||||||
equals($('.popover .popover-content').text(), "loves data attributes (づ。◕‿‿◕。)づ ︵ ┻━┻", 'content correctly inserted')
|
|
||||||
|
|
||||||
popover.popover('hide')
|
|
||||||
ok(!$('.popover').length, 'popover was removed')
|
|
||||||
$('#qunit-fixture').empty()
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
test("should get title and content from attributes #2", function () {
|
|
||||||
$.support.transition = false
|
|
||||||
var popover = $('<a href="#" title="@mdo" data-content="loves data attributes (づ。◕‿‿◕。)づ ︵ ┻━┻" >@mdo</a>')
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.popover({
|
|
||||||
title: 'ignored title option',
|
|
||||||
content: 'ignored content option'
|
|
||||||
})
|
|
||||||
.popover('show')
|
|
||||||
|
|
||||||
ok($('.popover').length, 'popover was inserted')
|
|
||||||
equals($('.popover .popover-title').text(), '@mdo', 'title correctly inserted')
|
|
||||||
equals($('.popover .popover-content').text(), "loves data attributes (づ。◕‿‿◕。)づ ︵ ┻━┻", 'content correctly inserted')
|
|
||||||
|
|
||||||
popover.popover('hide')
|
|
||||||
ok(!$('.popover').length, 'popover was removed')
|
|
||||||
$('#qunit-fixture').empty()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should respect custom classes", function() {
|
|
||||||
$.support.transition = false
|
|
||||||
var popover = $('<a href="#">@fat</a>')
|
|
||||||
.appendTo('#qunit-fixture')
|
|
||||||
.popover({
|
|
||||||
title: 'Test'
|
|
||||||
, content: 'Test'
|
|
||||||
, template: '<div class="popover foobar"><div class="arrow"></div><div class="inner"><h3 class="title"></h3><div class="content"><p></p></div></div></div>'
|
|
||||||
})
|
|
||||||
|
|
||||||
popover.popover('show')
|
|
||||||
|
|
||||||
ok($('.popover').length, 'popover was inserted')
|
|
||||||
ok($('.popover').hasClass('foobar'), 'custom class is present')
|
|
||||||
|
|
||||||
popover.popover('hide')
|
|
||||||
ok(!$('.popover').length, 'popover was removed')
|
|
||||||
$('#qunit-fixture').empty()
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should destroy popover", function () {
|
|
||||||
var popover = $('<div/>').popover({trigger: 'hover'}).on('click.foo', function(){})
|
|
||||||
ok(popover.data('bs.popover'), 'popover has data')
|
|
||||||
ok($._data(popover[0], 'events').mouseover && $._data(popover[0], 'events').mouseout, 'popover has hover event')
|
|
||||||
ok($._data(popover[0], 'events').click[0].namespace == 'foo', 'popover has extra click.foo event')
|
|
||||||
popover.popover('show')
|
|
||||||
popover.popover('destroy')
|
|
||||||
ok(!popover.hasClass('in'), 'popover is hidden')
|
|
||||||
ok(!popover.data('popover'), 'popover does not have data')
|
|
||||||
ok($._data(popover[0],'events').click[0].namespace == 'foo', 'popover still has click.foo')
|
|
||||||
ok(!$._data(popover[0], 'events').mouseover && !$._data(popover[0], 'events').mouseout, 'popover does not have any events')
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
|
@ -1,37 +0,0 @@
|
||||||
$(function () {
|
|
||||||
|
|
||||||
module("scrollspy")
|
|
||||||
|
|
||||||
test("should provide no conflict", function () {
|
|
||||||
var scrollspy = $.fn.scrollspy.noConflict()
|
|
||||||
ok(!$.fn.scrollspy, 'scrollspy was set back to undefined (org value)')
|
|
||||||
$.fn.scrollspy = scrollspy
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should be defined on jquery object", function () {
|
|
||||||
ok($(document.body).scrollspy, 'scrollspy method is defined')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should return element", function () {
|
|
||||||
ok($(document.body).scrollspy()[0] == document.body, 'document.body returned')
|
|
||||||
})
|
|
||||||
|
|
||||||
test("should switch active class on scroll", function () {
|
|
||||||
var sectionHTML = '<div id="masthead"></div>'
|
|
||||||
, $section = $(sectionHTML).append('#qunit-fixture')
|
|
||||||
, topbarHTML ='<div class="topbar">'
|
|
||||||
+ '<div class="topbar-inner">'
|
|
||||||
+ '<div class="container">'
|
|
||||||
+ '<h3><a href="#">Bootstrap</a></h3>'
|
|
||||||
+ '<ul class="nav">'
|
|
||||||
+ '<li><a href="#masthead">Overview</a></li>'
|
|
||||||
+ '</ul>'
|
|
||||||
+ '</div>'
|
|
||||||
+ '</div>'
|
|
||||||
+ '</div>'
|
|
||||||
, $topbar = $(topbarHTML).scrollspy()
|
|
||||||
|
|
||||||
ok($topbar.find('.active', true))
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|