Skip to content

Commit b5af762

Browse files
committed
Merge branch '2.1.2-wip'
Conflicts: js/bootstrap-dropdown.js
2 parents 7426ced + 68cfedb commit b5af762

File tree

122 files changed

+4064
-1249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+4064
-1249
lines changed

.issue-guidelines.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributing to Bootstrap
2+
3+
Looking to contribute something to Bootstrap? **Here's how you can help.**
4+
5+
6+
7+
## Reporting issues
8+
9+
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.
10+
11+
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.
12+
2. **Create an isolated and reproducible test case.** Be sure the problem exists in Bootstrap's code with a [reduced test cases](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report.
13+
3. **Include a live example.** Make use of jsFiddle or jsBin to share your isolated test cases.
14+
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.
15+
16+
17+
18+
## Key branches
19+
20+
- `master` is the latest, deployed version.
21+
- `gh-pages` is the hosted docs (not to be used for pull requests).
22+
- `*-wip` is the official work in progress branch for the next release.
23+
24+
25+
26+
## Notes on the repo
27+
28+
As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and built via `make` before each commit and release. This was done to enable internationalization (translation) in a future release by uploading our strings to the [Twitter Translation Center](http://translate.twttr.com/). Any edits to the docs should be first done in the Mustache files and then recompiled into the HTML.
29+
30+
31+
32+
## Pull requests
33+
34+
- Try to submit pull requests against the latest `*-wip` branch for easier merging
35+
- Any changes to the docs must be made to the Mustache templates, not just the compiled HTML pages
36+
- CSS changes must be done in .less files first, never just the compiled files
37+
- If modifying the .less files, always recompile and commit the compiled files bootstrap.css and bootstrap.min.css
38+
- Try not to pollute your pull request with unintended changes--keep them simple and small
39+
- Try to share which browsers your code has been tested in before submitting a pull request
40+
41+
42+
43+
## Coding standards: HTML
44+
45+
- Two spaces for indentation, never tabs
46+
- Double quotes only, never single quotes
47+
- Always use proper indentation
48+
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
49+
50+
51+
52+
## Coding standards: CSS
53+
54+
- Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
55+
- Multiple-line approach (one property and value per line)
56+
- Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`)
57+
- End all lines with a semi-colon
58+
- For multiple, comma-separated selectors, place each selector on it's own line
59+
- 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).
60+
61+
62+
63+
## Coding standards: JS
64+
65+
- No semicolons
66+
- Comma first
67+
- 2 spaces (no tabs)
68+
- strict mode
69+
- "Attractive"
70+
71+
72+
73+
## License
74+
75+
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twitter/bootstrap/blob/master/LICENSE

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ build:
2828
@echo "Compiling documentation... ${CHECK} Done"
2929
@cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js
3030
@uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js
31-
@echo "/**\n* Bootstrap.js v2.1.1 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js
31+
@echo "/**\n* Bootstrap.js v2.2.0 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js
3232
@cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js
3333
@rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
3434
@echo "Compiling and minifying javascript... ${CHECK} Done"
@@ -97,12 +97,5 @@ watch:
9797
echo "Watching less files..."; \
9898
watchr -e "watch('less/.*\.less') { system 'make' }"
9999

100-
#
101-
# HAUNT GITHUB ISSUES 4 FAT & MDO ONLY (O_O )
102-
#
103-
104-
haunt:
105-
@haunt .issue-guidelines.js https://github.com/twitter/bootstrap
106-
107100

108101
.PHONY: docs watch gh-pages

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Twitter Bootstrap](http://twitter.github.com/bootstrap) [![Build Status](https://secure.travis-ci.org/twitter/bootstrap.png)](http://travis-ci.org/twitter/bootstrap)
22
=================
33

4-
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat) at Twitter.
4+
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat).
55

66
To get started, checkout http://getbootstrap.com!
77

@@ -10,7 +10,7 @@ To get started, checkout http://getbootstrap.com!
1010
Quick start
1111
-----------
1212

13-
Clone the repo, `git clone git://github.com/twitter/bootstrap.git`, or [download the latest release](https://github.com/twitter/bootstrap/zipball/master).
13+
Clone the repo, `git clone git://github.com/twitter/bootstrap.git`, [download the latest release](https://github.com/twitter/bootstrap/zipball/master), or install with twitter's [Bower](http://twitter.github.com/bower): `bower install bootstrap`.
1414

1515

1616

@@ -89,7 +89,7 @@ $ npm install recess connect uglify-js jshint -g
8989
```
9090

9191
+ **build** - `make`
92-
Runs the recess compiler to rebuild the `/less` files and compiles the docs pages. Requires recess and uglify-js. <a href="http://twitter.github.com/bootstrap/less.html#compiling">Read more in our docs &raquo;</a>
92+
Runs the recess compiler to rebuild the `/less` files and compiles the docs pages. Requires recess and uglify-js. <a href="http://twitter.github.com/bootstrap/extend.html#compiling">Read more in our docs &raquo;</a>
9393

9494
+ **test** - `make test`
9595
Runs jshint and qunit tests headlessly in [phantomjs](http://code.google.com/p/phantomjs/) (used for ci). Depends on having phantomjs installed.

component.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "bootstrap",
3+
"version": "2.2.0",
4+
"main": ["./docs/assets/js/bootstrap.js", "./docs/assets/css/bootstrap.css"],
5+
"dependencies": {
6+
"jquery": "~1.8.0"
7+
}
8+
}

docs/assets/css/bootstrap-responsive.css

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Bootstrap Responsive v2.1.1
2+
* Bootstrap Responsive v2.2.0
33
*
44
* Copyright 2012 Twitter, Inc
55
* Licensed under the Apache License v2.0
@@ -215,6 +215,9 @@
215215
.row-fluid [class*="span"]:first-child {
216216
margin-left: 0;
217217
}
218+
.row-fluid .controls-row [class*="span"] + [class*="span"] {
219+
margin-left: 2.564102564102564%;
220+
}
218221
.row-fluid .span12 {
219222
width: 100%;
220223
*width: 99.94680851063829%;
@@ -562,6 +565,9 @@
562565
.row-fluid [class*="span"]:first-child {
563566
margin-left: 0;
564567
}
568+
.row-fluid .controls-row [class*="span"] + [class*="span"] {
569+
margin-left: 2.7624309392265194%;
570+
}
565571
.row-fluid .span12 {
566572
width: 100%;
567573
*width: 99.94680851063829%;
@@ -814,6 +820,7 @@
814820
margin-left: 0;
815821
}
816822
[class*="span"],
823+
.uneditable-input[class*="span"],
817824
.row-fluid [class*="span"] {
818825
display: block;
819826
float: none;
@@ -830,6 +837,9 @@
830837
-moz-box-sizing: border-box;
831838
box-sizing: border-box;
832839
}
840+
.row-fluid [class*="offset"]:first-child {
841+
margin-left: 0;
842+
}
833843
.input-large,
834844
.input-xlarge,
835845
.input-xxlarge,
@@ -862,8 +872,11 @@
862872
width: auto;
863873
margin: 0;
864874
}
875+
.modal.fade {
876+
top: -100px;
877+
}
865878
.modal.fade.in {
866-
top: auto;
879+
top: 20px;
867880
}
868881
}
869882

@@ -895,6 +908,16 @@
895908
padding-right: 10px;
896909
padding-left: 10px;
897910
}
911+
.media .pull-left,
912+
.media .pull-right {
913+
display: block;
914+
float: none;
915+
margin-bottom: 10px;
916+
}
917+
.media-object {
918+
margin-right: 0;
919+
margin-left: 0;
920+
}
898921
.modal {
899922
top: 10px;
900923
right: 10px;
@@ -979,6 +1002,10 @@
9791002
.nav-collapse .dropdown-menu a:hover {
9801003
background-color: #f2f2f2;
9811004
}
1005+
.navbar-inverse .nav-collapse .nav > li > a,
1006+
.navbar-inverse .nav-collapse .dropdown-menu a {
1007+
color: #999999;
1008+
}
9821009
.navbar-inverse .nav-collapse .nav > li > a:hover,
9831010
.navbar-inverse .nav-collapse .dropdown-menu a:hover {
9841011
background-color: #111111;

0 commit comments

Comments
 (0)