Commit cc88edc6 authored by Patrick's avatar Patrick

Version 1.7.1

parent ab6ed2be
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="file://$PROJECT_DIR$" libraries="{Node.js v0.12.2 Core Modules}" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7.8 virtualenv at C:\Users\Patrick\v1" project-jdk-type="Python SDK" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<module fileurl="file://$PROJECT_DIR$/.idea/repanier.iml" filepath="$PROJECT_DIR$/.idea/repanier.iml" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="FacetManager">
<facet type="django" name="Django">
<option name="rootFolder" value="$MODULE_DIR$" />
<option name="settingsModule" value="mysite/" />
<option name="manageScript" value="" />
<option name="environment" value="&lt;map&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_EMAIL_USE_TLS&lt;/string&gt;&#10; &lt;string&gt;True&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_EMAIL_HOST_USER&lt;/string&gt;&#10; &lt;string&gt;;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_ADMIN_NAME&lt;/string&gt;&#10; &lt;string&gt;Patrick&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_ADMIN_EMAIL&lt;/string&gt;&#10; &lt;string&gt;;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_EMAIL_HOST&lt;/string&gt;&#10; &lt;string&gt;;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_DEBUG&lt;/string&gt;&#10; &lt;string&gt;True&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_DATABASE_PORT&lt;/string&gt;&#10; &lt;string&gt;9002&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_DATABASE_NAME&lt;/string&gt;&#10; &lt;string&gt;ptidej&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE&lt;/string&gt;&#10; &lt;string&gt;ptidej.ptidej_settings&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_DATABASE_HOST&lt;/string&gt;&#10; &lt;string&gt;;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_EMAIL_PORT&lt;/string&gt;&#10; &lt;string&gt;587&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_DATABASE_PASSWORD&lt;/string&gt;&#10; &lt;string&gt;raspberry&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_EMAIL_HOST_PASSWORD&lt;/string&gt;&#10; &lt;string&gt;k30Nao#Ku8t:&lt;/string&gt;&#10; &lt;/entry&gt;&#10; &lt;entry&gt;&#10; &lt;string&gt;DJANGO_SETTINGS_MODULE_DATABASE_USER&lt;/string&gt;&#10; &lt;string&gt;pi&lt;/string&gt;&#10; &lt;/entry&gt;&#10;&lt;/map&gt;" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/repanier" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/mysite" isTestSource="false" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Node.js v0.12.2 Core Modules" level="application" />
<component name="TemplatesService">
<option name="TEMPLATE_CONFIGURATION" value="Jinja2" />
<option name="TEMPLATE_FOLDERS">
<option value="$MODULE_DIR$/mysite/templates" />
<option value="$MODULE_DIR$/repanier/templates" />
\ No newline at end of file
<component name="DependencyValidationManager">
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectTasksOptions">
<TaskOptions isEnabled="true">
<option name="arguments" value="--no-color $FileName$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Compiles .less files into .css files" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="less" />
<option name="immediateSync" value="false" />
<option name="name" value="LESS" />
<option name="output" value="$FileNameWithoutExtension$.css" />
<option name="outputFilters">
<option name="description" value="lessc error format" />
<option name="name" value="lessc" />
<option name="regExp" value="$MESSAGE$$FILE_PATH$?:$LINE$:$COLUMN$" />
<option name="outputFromStdout" value="true" />
<option name="passParentEnvs" value="true" />
<option name="program" value="C:/Program Files/nodejs/node_modules/.bin/lessc.cmd" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="true" />
<option name="workingDir" value="$FileDir$" />
<envs />
\ No newline at end of file
root = true
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 4
# Enforce Unix newlines
*.css text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.less text eol=lf
*.md text eol=lf
*.svg text eol=lf
*.yml text eol=lf
# Ignore docs files
# Numerous always-ignore extensions
# OS or Editor folders
# Komodo
# grunt-html-validation
# Folders to ignore
language: node_js
- "0.10"
- time travis_retry sudo pip install -r test-infra/requirements.txt
- rvm use 1.9.3 --fuzzy
- export GEMDIR=$(rvm gemdir)
- if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $GEMDIR) jekyll=$JEKYLL_VERSION rouge=$ROUGE_VERSION" > pseudo_Gemfile.lock; fi
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true
- time npm install -g grunt-cli
- ./test-infra/ download npm-modules
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/ download rubygems; fi
- if [ "$TWBS_TEST" = core ]; then ./test-infra/ upload npm-modules; fi
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/ upload rubygems; fi
- SAUCE_USERNAME: bootstrap
- secure: "pJkBwnuae9dKU5tEcCqccfS1QQw7/meEcfz63fM7ba7QJNjoA6BaXj08L5Z3Vb5vBmVPwBawxo5Hp0jC0r/Z/O0hGnAmz/Cz09L+cy7dSAZ9x4hvZePSja/UAusaB5ogMoO8l2b773MzgQeSmrLbExr9BWLeqEfjC2hFgdgHLaQ="
- secure: "gqjqISbxBJK6byFbsmr1AyP1qoWH+rap06A2gI7v72+Tn2PU2nYkIMUkCvhZw6K889jv+LhQ/ybcBxDOXHpNCExCnSgB4dcnmYp+9oeNZb37jSP0rQ+Ib4OTLjzc3/FawE/fUq5kukZTC7porzc/k0qJNLAZRx3YLALmK1GIdUY="
- secure: "Gghh/e3Gsbj1+4RR9Lh2aR/xJl35HWiHqlPIeSUqE9D7uDCVTAwNce/dGL3Ew7uJPfJ6Pgr70wD3zgu3stw0Zmzayax0hiDtGwcQCxVIER08wqGANK9C2Q7PYJkNTNtiTo6ehKWbdV4Z+/U+TEYyQfpQTDbAFYk/vVpsdjp0Lmc="
- secure: "RTbRdx4G/2OTLfrZtP1VbRljxEmd6A1F3GqXboeQTldsnAlwpsES65es5CE3ub/rmixLApOY9ot7OPmNixFgC2Y8xOsV7lNCC62QVpmqQEDyGFFQKb3yO6/dmwQxdsCqGfzf9Np6Wh5V22QFvr50ZLKLd7Uhd9oXMDIk/z1MJ3o="
- TWBS_TEST=core
- TWBS_TEST=validate-html
- TWBS_TEST=sauce-js-unit
fast_finish: true
slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH
# Contributing to Bootstrap
Looking to contribute something to Bootstrap? **Here's how you can help.**
Please take a moment to review this document in order to make the contribution
process easy and effective for everyone involved.
Following these guidelines helps to communicate that you respect the time of
the developers managing and developing this open source project. In return,
they should reciprocate that respect in addressing your issue or assessing
patches and features.
## Using the issue tracker
The [issue tracker]( is
the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests)
and [submitting pull requests](#pull-requests), but please respect the following
* Please **do not** use the issue tracker for personal support requests. Stack
Overflow ([`twitter-bootstrap-3`]( tag) or [IRC]( are better places to get help.
* Please **do not** derail or troll issues. Keep the discussion on topic and
respect the opinions of others.
* Please **do not** open issues or pull requests regarding the code in
[`Normalize`]( (open them in
their respective repositories).
## Bug reports
A bug is a _demonstrable problem_ that is caused by the code in the repository.
Good bug reports are extremely helpful, so thanks!
Guidelines for bug reports:
1. **Use the GitHub issue search** &mdash; check if the issue has already been
2. **Check if the issue has been fixed** &mdash; try to reproduce it using the
latest `master` or development branch in the repository.
3. **Isolate the problem** &mdash; ideally create a [reduced test
case]( and a live example.
[This JS Bin](,output) is a helpful template.
A good bug report shouldn't leave others needing to chase you up for more
information. Please try to be as detailed as possible in your report. What is
your environment? What steps will reproduce the issue? What browser(s) and OS
experience the problem? Do other browsers show the bug differently? What
would you expect to be the outcome? All these details will help people to fix
any potential bugs.
> Short and descriptive example bug report title
> A summary of the issue and the browser/OS environment in which it occurs. If
> suitable, include the steps required to reproduce the bug.
> 1. This is the first step
> 2. This is the second step
> 3. Further steps, etc.
> `<url>` - a link to the reduced test case
> Any other information you want to share that is relevant to the issue being
> reported. This might include the lines of code that you have identified as
> causing the bug, and potential solutions (and your opinions on their
> merits).
## Feature requests
Feature requests are welcome. But take a moment to find out whether your idea
fits with the scope and aims of the project. It's up to *you* to make a strong
case to convince the project's developers of the merits of this feature. Please
provide as much detail and context as possible.
## Pull requests
Good pull requests—patches, improvements, new features—are a fantastic
help. They should remain focused in scope and avoid containing unrelated
**Please ask first** before embarking on any significant pull request (e.g.
implementing features, refactoring code, porting to a different language),
otherwise you risk spending a lot of time working on something that the
project's developers might not want to merge into the project.
Please adhere to the [coding guidelines](#code-guidelines) used throughout the
project (indentation, accurate comments, etc.) and any other requirements
(such as test coverage).
Adhering to the following process is the best way to get your work
included in the project:
1. [Fork]( the project, clone your fork,
and configure the remotes:
# Clone your fork of the repo into the current directory
git clone<your-username>/bootstrap.git
# Navigate to the newly cloned directory
cd bootstrap
# Assign the original repo to a remote called "upstream"
git remote add upstream
2. If you cloned a while ago, get the latest changes from upstream:
git checkout master
git pull upstream master
3. Create a new topic branch (off the main project development branch) to
contain your feature, change, or fix:
git checkout -b <topic-branch-name>
4. Commit your changes in logical chunks. Please adhere to these [git commit
message guidelines](
or your code is unlikely be merged into the main project. Use Git's
[interactive rebase](
feature to tidy up your commits before making them public.
5. Locally merge (or rebase) the upstream development branch into your topic branch:
git pull [--rebase] upstream master
6. Push your topic branch up to your fork:
git push origin <topic-branch-name>
7. [Open a Pull Request](
with a clear title and description against the `master` branch.
**IMPORTANT**: By submitting a patch, you agree to allow the project owners to
license your work under the terms of the [MIT License](
## Code guidelines
### HTML
[Adhere to the Code Guide.](
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags).
- Use CDNs and HTTPS for third-party JS when possible. We don't use protocol-relative URLs in this case because they break when viewing the page locally via `file://`.
- Use [WAI-ARIA]( attributes in documentation examples to promote accessibility.
### CSS
[Adhere to the Code Guide.](
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post]( for more details.
### JS
- No semicolons (in client-side JS)
- 2 spaces (no tabs)
- strict mode
- "Attractive"
### Checking coding style
Run `grunt test` before committing to ensure your changes follow our coding standards.
## License
By contributing your code, you agree to license your contribution under the [MIT license](
Prior to v3.1.0, Bootstrap was released under the Apache License v2.0.
* Bootstrap's Gruntfile
* Copyright 2013-2014 Twitter, Inc.
* Licensed under MIT (
module.exports = function (grunt) {
'use strict';
// Force use of Unix newlines
grunt.util.linefeed = '\n';
RegExp.quote = function (string) {
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
var fs = require('fs');
var path = require('path');
var npmShrinkwrap = require('npm-shrinkwrap');
var BsLessdocParser = require('./grunt/bs-lessdoc-parser.js');
var generateRawFiles = require('./grunt/bs-raw-files-generator.js');
// Project configuration.
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n' +
' * Bootstrap v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright 2011-<%="yyyy") %> <%= %>\n' +
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
' */\n',
// NOTE: This jqueryCheck code is duplicated in customizer.js; if making changes here, be sure to update the other copy too.
jqueryCheck: 'if (typeof jQuery === \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n',
// Task configuration.
clean: {
dist: ['dist', 'docs/dist']
jshint: {
options: {
jshintrc: 'js/.jshintrc'
grunt: {
options: {
jshintrc: 'grunt/.jshintrc'
src: ['Gruntfile.js', 'grunt/*.js']
src: {
src: 'js/*.js'
test: {
options: {
jshintrc: 'js/tests/unit/.jshintrc'
src: 'js/tests/unit/*.js'
assets: {
src: ['docs/assets/js/src/*.js', 'docs/assets/js/*.js', '!docs/assets/js/*.min.js']
jscs: {
options: {
config: 'js/.jscsrc'
grunt: {
src: '<%= jshint.grunt.src %>'
src: {
src: '<%= jshint.src.src %>'
test: {
src: '<%= jshint.test.src %>'
assets: {
options: {
requireCamelCaseOrUpperCaseIdentifiers: null
src: '<%= jshint.assets.src %>'
concat: {
options: {
banner: '<%= banner %>\n<%= jqueryCheck %>',
stripBanners: false
bootstrap: {
src: [
dest: 'dist/js/<%= %>.js'
uglify: {
options: {
preserveComments: 'some'
bootstrap: {
src: '<%= concat.bootstrap.dest %>',
dest: 'dist/js/<%= %>.min.js'
customize: {
src: [
dest: 'docs/assets/js/customize.min.js'
docsJs: {
// NOTE: This src list is duplicated in footer.html; if making changes here, be sure to update the other copy too.
src: [
dest: 'docs/assets/js/docs.min.js'
qunit: {
options: {
inject: 'js/tests/unit/phantom.js'
files: 'js/tests/index.html'
less: {
compileCore: {
options: {
strictMath: true,
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: '<%= %>',
sourceMapFilename: 'dist/css/<%= %>'
files: {
'dist/css/<%= %>.css': 'less/bootstrap.less'
compileTheme: {
options: {
strictMath: true,
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: '<%= %>',
sourceMapFilename: 'dist/css/<%= %>'
files: {
'dist/css/<%= %>-theme.css': 'less/theme.less'
autoprefixer: {
options: {