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
Copy file name to clipboardExpand all lines: bower_components/bootstrap/CONTRIBUTING.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,35 +23,44 @@ We only accept issues that are bug reports or feature requests. Bugs must be iso
23
23
24
24
25
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
+
26
32
## Pull requests
27
33
28
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
29
36
- CSS changes must be done in .less files first, never just the compiled files
30
37
- If modifying the .less files, always recompile and commit the compiled files bootstrap.css and bootstrap.min.css
31
38
- Try not to pollute your pull request with unintended changes--keep them simple and small
32
39
- Try to share which browsers your code has been tested in before submitting a pull request
33
40
34
41
35
42
36
-
## Coding standards
37
-
38
-
### HTML
43
+
## Coding standards: HTML
39
44
40
45
- Two spaces for indentation, never tabs
41
46
- Double quotes only, never single quotes
42
47
- Always use proper indentation
43
48
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
44
49
45
-
### CSS
50
+
51
+
52
+
## Coding standards: CSS
46
53
47
54
- Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
48
55
- Multiple-line approach (one property and value per line)
49
56
- Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`)
50
57
- End all lines with a semi-colon
51
-
- For multiple, comma-separated selectors, place each selector on its own line
58
+
- For multiple, comma-separated selectors, place each selector on it's own line
52
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).
0 commit comments