mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Merge branch '2.1.2-wip' of github.com:twitter/bootstrap into 2.1.2-wip
This commit is contained in:
commit
bda3d57a00
@ -1,15 +1,36 @@
|
|||||||
# Contributing to Bootstrap
|
# Contributing to Bootstrap
|
||||||
|
|
||||||
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.
|
Looking to contribute something to Bootstrap? **Here's how you can help.**
|
||||||
|
|
||||||
### Key branches
|
|
||||||
- `master` is the latest, deployed version
|
|
||||||
- `*-wip` is the official work in progress branch for the next release
|
|
||||||
|
|
||||||
### Notes on the repo
|
|
||||||
|
## 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 cases](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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Notes on the repo
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
### Pull requests
|
|
||||||
|
|
||||||
|
## Pull requests
|
||||||
|
|
||||||
- Try to submit pull requests against the latest `*-wip` branch for easier merging
|
- Try to submit pull requests against the latest `*-wip` branch for easier merging
|
||||||
- Any changes to the docs must be made to the Mustache templates, not just the compiled HTML pages
|
- Any changes to the docs must be made to the Mustache templates, not just the compiled HTML pages
|
||||||
- CSS changes must be done in .less files first, never just the compiled files
|
- CSS changes must be done in .less files first, never just the compiled files
|
||||||
@ -17,13 +38,19 @@ As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and bui
|
|||||||
- Try not to pollute your pull request with unintended changes--keep them simple and small
|
- 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
|
- Try to share which browsers your code has been tested in before submitting a pull request
|
||||||
|
|
||||||
### Coding standards: HTML
|
|
||||||
|
|
||||||
|
## Coding standards: HTML
|
||||||
|
|
||||||
- Two spaces for indentation, never tabs
|
- Two spaces for indentation, never tabs
|
||||||
- Double quotes only, never single quotes
|
- Double quotes only, never single quotes
|
||||||
- Always use proper indentation
|
- Always use proper indentation
|
||||||
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
|
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
|
||||||
|
|
||||||
### Coding standards: CSS
|
|
||||||
|
|
||||||
|
## Coding standards: CSS
|
||||||
|
|
||||||
- Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
|
- 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)
|
- 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;`)
|
- Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`)
|
||||||
@ -31,5 +58,8 @@ As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and bui
|
|||||||
- For multiple, comma-separated selectors, place each selector on it's own line
|
- For multiple, comma-separated selectors, place each selector on it's 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).
|
- 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).
|
||||||
|
|
||||||
### License
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twitter/bootstrap/blob/master/LICENSE
|
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twitter/bootstrap/blob/master/LICENSE
|
||||||
|
1
docs/assets/css/bootstrap-responsive.css
vendored
1
docs/assets/css/bootstrap-responsive.css
vendored
@ -820,6 +820,7 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
[class*="span"],
|
[class*="span"],
|
||||||
|
.uneditable-input[class*="span"],
|
||||||
.row-fluid [class*="span"] {
|
.row-fluid [class*="span"] {
|
||||||
display: block;
|
display: block;
|
||||||
float: none;
|
float: none;
|
||||||
|
29
docs/assets/css/bootstrap.css
vendored
29
docs/assets/css/bootstrap.css
vendored
@ -655,7 +655,7 @@ h6 {
|
|||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 1;
|
line-height: 20px;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-rendering: optimizelegibility;
|
text-rendering: optimizelegibility;
|
||||||
}
|
}
|
||||||
@ -671,42 +671,42 @@ h6 small {
|
|||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1,
|
||||||
font-size: 36px;
|
h2,
|
||||||
|
h3 {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 38.5px;
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 30px;
|
font-size: 31.5px;
|
||||||
line-height: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 24px;
|
font-size: 24.5px;
|
||||||
line-height: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 18px;
|
font-size: 17.5px;
|
||||||
line-height: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h6 {
|
h6 {
|
||||||
font-size: 12px;
|
font-size: 11.9px;
|
||||||
line-height: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 small {
|
h1 small {
|
||||||
font-size: 24px;
|
font-size: 24.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 small {
|
h2 small {
|
||||||
font-size: 18px;
|
font-size: 17.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 small {
|
h3 small {
|
||||||
@ -992,6 +992,7 @@ input[type="color"],
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
color: #555555;
|
color: #555555;
|
||||||
|
vertical-align: middle;
|
||||||
-webkit-border-radius: 4px;
|
-webkit-border-radius: 4px;
|
||||||
-moz-border-radius: 4px;
|
-moz-border-radius: 4px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
@ -86,6 +86,7 @@ input[type="color"],
|
|||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
color: @gray;
|
color: @gray;
|
||||||
.border-radius(@inputBorderRadius);
|
.border-radius(@inputBorderRadius);
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset appearance properties for textual inputs and textarea
|
// Reset appearance properties for textual inputs and textarea
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
}
|
}
|
||||||
// Make all grid-sized elements block level again
|
// Make all grid-sized elements block level again
|
||||||
[class*="span"],
|
[class*="span"],
|
||||||
|
.uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
|
||||||
.row-fluid [class*="span"] {
|
.row-fluid [class*="span"] {
|
||||||
float: none;
|
float: none;
|
||||||
display: block;
|
display: block;
|
||||||
|
71
less/tests/forms-responsive.html
Normal file
71
less/tests/forms-responsive.html
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Bootstrap, from Twitter</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="">
|
||||||
|
|
||||||
|
<!-- Le styles -->
|
||||||
|
<link href="../../docs/assets/css/bootstrap.css" rel="stylesheet">
|
||||||
|
<link href="../../docs/assets/css/bootstrap-responsive.css" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
padding-top: 30px;
|
||||||
|
padding-bottom: 30px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Le fav and touch icons -->
|
||||||
|
<link rel="shortcut icon" href="../../docs/assets/ico/favicon.ico">
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../docs/assets/ico/apple-touch-icon-144-precomposed.png">
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../docs/assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../docs/assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
|
<link rel="apple-touch-icon-precomposed" href="../../docs/assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<form class="container">
|
||||||
|
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>Fixed grid</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3>Vertical alignment</h3>
|
||||||
|
<input type="text" class="span2" placeholder="span2">
|
||||||
|
<select class="span2"><option>span2</option></select>
|
||||||
|
<span class="uneditable-input span2">span1</span>
|
||||||
|
|
||||||
|
<h3>Width across elements</h3>
|
||||||
|
<div>
|
||||||
|
<input type="text" class="span2" placeholder="span2">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<select class="span2"><option>span2</option></select>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span class="uneditable-input span2">span2</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>Fluid grid</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
<input type="text" class="span2" placeholder="span2">
|
||||||
|
<select class="span2"><option>span2</option></select>
|
||||||
|
<span class="uneditable-input span2">span1</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form> <!-- /container -->
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -57,7 +57,7 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
margin: (@baseLineHeight / 2) 0;
|
margin: (@baseLineHeight / 2) 0;
|
||||||
font-family: @headingsFontFamily;
|
font-family: @headingsFontFamily;
|
||||||
font-weight: @headingsFontWeight;
|
font-weight: @headingsFontWeight;
|
||||||
line-height: 1;
|
line-height: @baseLineHeight;
|
||||||
color: @headingsColor;
|
color: @headingsColor;
|
||||||
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
||||||
small {
|
small {
|
||||||
@ -66,17 +66,22 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
color: @grayLight;
|
color: @grayLight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h1 { font-size: 36px; line-height: 40px; }
|
|
||||||
h2 { font-size: 30px; line-height: 40px; }
|
|
||||||
h3 { font-size: 24px; line-height: 40px; }
|
|
||||||
h4 { font-size: 18px; line-height: 20px; }
|
|
||||||
h5 { font-size: 14px; line-height: 20px; }
|
|
||||||
h6 { font-size: 12px; line-height: 20px; }
|
|
||||||
|
|
||||||
h1 small { font-size: 24px; }
|
h1,
|
||||||
h2 small { font-size: 18px; }
|
h2,
|
||||||
h3 small { font-size: 14px; }
|
h3 { line-height: @baseLineHeight * 2; }
|
||||||
h4 small { font-size: 14px; }
|
|
||||||
|
h1 { font-size: @baseFontSize * 2.75; } // ~38px
|
||||||
|
h2 { font-size: @baseFontSize * 2.25; } // ~32px
|
||||||
|
h3 { font-size: @baseFontSize * 1.75; } // ~24px
|
||||||
|
h4 { font-size: @baseFontSize * 1.25; } // ~18px
|
||||||
|
h5 { font-size: @baseFontSize; }
|
||||||
|
h6 { font-size: @baseFontSize * 0.85; } // ~12px
|
||||||
|
|
||||||
|
h1 small { font-size: @baseFontSize * 1.75; } // ~24px
|
||||||
|
h2 small { font-size: @baseFontSize * 1.25; } // ~18px
|
||||||
|
h3 small { font-size: @baseFontSize; }
|
||||||
|
h4 small { font-size: @baseFontSize; }
|
||||||
|
|
||||||
|
|
||||||
// Page header
|
// Page header
|
||||||
|
Loading…
x
Reference in New Issue
Block a user