You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
markdotto edited this page Oct 24, 2011
·
10 revisions
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.
Key branches
master is the latest, deployed version
2.0-wip is the official branch for the next major, non-backwards-compatible version
dev is the ongoing branch for the next minor point release (e.g., 1.4 or 1.5)
Pull requests
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)
Coding standards: CSS
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 it's own line