Skip to content

Commit bda3d57

Browse files
committed
Merge branch '2.1.2-wip' of github.com:twitter/bootstrap into 2.1.2-wip
2 parents 003fccc + f4d3d7d commit bda3d57

File tree

7 files changed

+145
-35
lines changed

7 files changed

+145
-35
lines changed

CONTRIBUTING.md

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,65 @@
11
# Contributing to Bootstrap
22

3-
Recommendations and requirements for how to best contribute to Bootstrap. We strive to obey these as best as possible, though we may drift as development continues in our primary development branches. As always, thanks for contributing--we hope these guidelines make it easier and shed some light on our approach and processes.
3+
Looking to contribute something to Bootstrap? **Here's how you can help.**
44

5-
### Key branches
6-
- `master` is the latest, deployed version
7-
- `*-wip` is the official work in progress branch for the next release
85

9-
### Notes on the repo
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+
1028
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.
1129

12-
### Pull requests
30+
31+
32+
## Pull requests
33+
1334
- Try to submit pull requests against the latest `*-wip` branch for easier merging
1435
- Any changes to the docs must be made to the Mustache templates, not just the compiled HTML pages
1536
- CSS changes must be done in .less files first, never just the compiled files
1637
- If modifying the .less files, always recompile and commit the compiled files bootstrap.css and bootstrap.min.css
1738
- Try not to pollute your pull request with unintended changes--keep them simple and small
1839
- Try to share which browsers your code has been tested in before submitting a pull request
1940

20-
### Coding standards: HTML
41+
42+
43+
## Coding standards: HTML
44+
2145
- Two spaces for indentation, never tabs
2246
- Double quotes only, never single quotes
2347
- Always use proper indentation
2448
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
2549

26-
### Coding standards: CSS
50+
51+
52+
## Coding standards: CSS
53+
2754
- Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
2855
- Multiple-line approach (one property and value per line)
2956
- Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`)
3057
- End all lines with a semi-colon
3158
- For multiple, comma-separated selectors, place each selector on it's own line
3259
- 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).
3360

34-
### License
61+
62+
63+
## License
64+
3565
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twitter/bootstrap/blob/master/LICENSE

docs/assets/css/bootstrap-responsive.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@
820820
margin-left: 0;
821821
}
822822
[class*="span"],
823+
.uneditable-input[class*="span"],
823824
.row-fluid [class*="span"] {
824825
display: block;
825826
float: none;

docs/assets/css/bootstrap.css

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ h6 {
655655
margin: 10px 0;
656656
font-family: inherit;
657657
font-weight: bold;
658-
line-height: 1;
658+
line-height: 20px;
659659
color: inherit;
660660
text-rendering: optimizelegibility;
661661
}
@@ -671,42 +671,42 @@ h6 small {
671671
color: #999999;
672672
}
673673

674-
h1 {
675-
font-size: 36px;
674+
h1,
675+
h2,
676+
h3 {
676677
line-height: 40px;
677678
}
678679

680+
h1 {
681+
font-size: 38.5px;
682+
}
683+
679684
h2 {
680-
font-size: 30px;
681-
line-height: 40px;
685+
font-size: 31.5px;
682686
}
683687

684688
h3 {
685-
font-size: 24px;
686-
line-height: 40px;
689+
font-size: 24.5px;
687690
}
688691

689692
h4 {
690-
font-size: 18px;
691-
line-height: 20px;
693+
font-size: 17.5px;
692694
}
693695

694696
h5 {
695697
font-size: 14px;
696-
line-height: 20px;
697698
}
698699

699700
h6 {
700-
font-size: 12px;
701-
line-height: 20px;
701+
font-size: 11.9px;
702702
}
703703

704704
h1 small {
705-
font-size: 24px;
705+
font-size: 24.5px;
706706
}
707707

708708
h2 small {
709-
font-size: 18px;
709+
font-size: 17.5px;
710710
}
711711

712712
h3 small {
@@ -992,6 +992,7 @@ input[type="color"],
992992
font-size: 14px;
993993
line-height: 20px;
994994
color: #555555;
995+
vertical-align: middle;
995996
-webkit-border-radius: 4px;
996997
-moz-border-radius: 4px;
997998
border-radius: 4px;

less/forms.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ input[type="color"],
8686
line-height: @baseLineHeight;
8787
color: @gray;
8888
.border-radius(@inputBorderRadius);
89+
vertical-align: middle;
8990
}
9091

9192
// Reset appearance properties for textual inputs and textarea

less/responsive-767px-max.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
}
5959
// Make all grid-sized elements block level again
6060
[class*="span"],
61+
.uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
6162
.row-fluid [class*="span"] {
6263
float: none;
6364
display: block;

less/tests/forms-responsive.html

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Bootstrap, from Twitter</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="description" content="">
8+
<meta name="author" content="">
9+
10+
<!-- Le styles -->
11+
<link href="../../docs/assets/css/bootstrap.css" rel="stylesheet">
12+
<link href="../../docs/assets/css/bootstrap-responsive.css" rel="stylesheet">
13+
<style>
14+
body {
15+
padding-top: 30px;
16+
padding-bottom: 30px;
17+
}
18+
</style>
19+
20+
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
21+
<!--[if lt IE 9]>
22+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
23+
<![endif]-->
24+
25+
<!-- Le fav and touch icons -->
26+
<link rel="shortcut icon" href="../../docs/assets/ico/favicon.ico">
27+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../docs/assets/ico/apple-touch-icon-144-precomposed.png">
28+
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../docs/assets/ico/apple-touch-icon-114-precomposed.png">
29+
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../docs/assets/ico/apple-touch-icon-72-precomposed.png">
30+
<link rel="apple-touch-icon-precomposed" href="../../docs/assets/ico/apple-touch-icon-57-precomposed.png">
31+
</head>
32+
33+
<body>
34+
35+
<form class="container">
36+
37+
<div class="page-header">
38+
<h1>Fixed grid</h1>
39+
</div>
40+
41+
<h3>Vertical alignment</h3>
42+
<input type="text" class="span2" placeholder="span2">
43+
<select class="span2"><option>span2</option></select>
44+
<span class="uneditable-input span2">span1</span>
45+
46+
<h3>Width across elements</h3>
47+
<div>
48+
<input type="text" class="span2" placeholder="span2">
49+
</div>
50+
<div>
51+
<select class="span2"><option>span2</option></select>
52+
</div>
53+
<div>
54+
<span class="uneditable-input span2">span2</span>
55+
</div>
56+
57+
58+
<div class="page-header">
59+
<h1>Fluid grid</h1>
60+
</div>
61+
62+
<div class="row-fluid">
63+
<input type="text" class="span2" placeholder="span2">
64+
<select class="span2"><option>span2</option></select>
65+
<span class="uneditable-input span2">span1</span>
66+
</div>
67+
68+
</form> <!-- /container -->
69+
70+
</body>
71+
</html>

less/type.less

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ h1, h2, h3, h4, h5, h6 {
5757
margin: (@baseLineHeight / 2) 0;
5858
font-family: @headingsFontFamily;
5959
font-weight: @headingsFontWeight;
60-
line-height: 1;
60+
line-height: @baseLineHeight;
6161
color: @headingsColor;
6262
text-rendering: optimizelegibility; // Fix the character spacing for headings
6363
small {
@@ -66,17 +66,22 @@ h1, h2, h3, h4, h5, h6 {
6666
color: @grayLight;
6767
}
6868
}
69-
h1 { font-size: 36px; line-height: 40px; }
70-
h2 { font-size: 30px; line-height: 40px; }
71-
h3 { font-size: 24px; line-height: 40px; }
72-
h4 { font-size: 18px; line-height: 20px; }
73-
h5 { font-size: 14px; line-height: 20px; }
74-
h6 { font-size: 12px; line-height: 20px; }
75-
76-
h1 small { font-size: 24px; }
77-
h2 small { font-size: 18px; }
78-
h3 small { font-size: 14px; }
79-
h4 small { font-size: 14px; }
69+
70+
h1,
71+
h2,
72+
h3 { line-height: @baseLineHeight * 2; }
73+
74+
h1 { font-size: @baseFontSize * 2.75; } // ~38px
75+
h2 { font-size: @baseFontSize * 2.25; } // ~32px
76+
h3 { font-size: @baseFontSize * 1.75; } // ~24px
77+
h4 { font-size: @baseFontSize * 1.25; } // ~18px
78+
h5 { font-size: @baseFontSize; }
79+
h6 { font-size: @baseFontSize * 0.85; } // ~12px
80+
81+
h1 small { font-size: @baseFontSize * 1.75; } // ~24px
82+
h2 small { font-size: @baseFontSize * 1.25; } // ~18px
83+
h3 small { font-size: @baseFontSize; }
84+
h4 small { font-size: @baseFontSize; }
8085

8186

8287
// Page header

0 commit comments

Comments
 (0)