Skip to content

Commit 254922f

Browse files
authored
Merge pull request airbnb#47 from victorlss/master
Fixed table of contents list, add link 'back to top'
2 parents ebccd7c + bc415ed commit 254922f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44

55
## Table of Contents
66

7-
1. [Terminology](#terminology)
7+
1. [Terminology](#terminology)
88
- [Rule Declaration](#rule-declaration)
99
- [Selectors](#selectors)
1010
- [Properties](#properties)
11-
1. [CSS](#css)
11+
1. [CSS](#css)
1212
- [Formatting](#formatting)
1313
- [Comments](#comments)
1414
- [OOCSS and BEM](#oocss-and-bem)
1515
- [ID Selectors](#id-selectors)
1616
- [JavaScript hooks](#javascript-hooks)
1717
- [Border](#border)
18-
1. [Sass](#sass)
18+
1. [Sass](#sass)
1919
- [Syntax](#syntax)
2020
- [Ordering](#ordering-of-property-declarations)
2121
- [Variables](#variables)
2222
- [Mixins](#mixins)
2323
- [Extend directive](#extend-directive)
2424
- [Nested selectors](#nested-selectors)
25-
1. [Translation](#translation)
25+
1. [Translation](#translation)
2626

2727
## Terminology
2828

@@ -62,6 +62,8 @@ Finally, properties are what give the selected elements of a rule declaration th
6262
}
6363
```
6464

65+
**[⬆ back to top](#table-of-contents)**
66+
6567
## CSS
6668

6769
### Formatting
@@ -200,6 +202,7 @@ Use `0` instead of `none` to specify that a style has no border.
200202
border: 0;
201203
}
202204
```
205+
**[⬆ back to top](#table-of-contents)**
203206

204207
## Sass
205208

@@ -288,6 +291,8 @@ Again: **never nest ID selectors!**
288291
289292
If you must use an ID selector in the first place (and you should really try not to), they should never be nested. If you find yourself doing this, you need to revisit your markup, or figure out why such strong specificity is needed. If you are writing well formed HTML and CSS, you should **never** need to do this.
290293
294+
**[⬆ back to top](#table-of-contents)**
295+
291296
## Translation
292297
293298
This style guide is also available in other languages:
@@ -301,3 +306,5 @@ If you must use an ID selector in the first place (and you should really try not
301306
- ![es](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Spain.png) **Spanish**: [ismamz/guia-de-estilo-css](https://github.com/ismamz/guia-de-estilo-css)
302307
- ![vn](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Vietnam.png) **Vietnamese**: [trungk18/css-style-guide](https://github.com/trungk18/css-style-guide)
303308
- ![id](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Indonesia.png) **Bahasa Indonesia**: [mazipan/css-style-guide](https://github.com/mazipan/css-style-guide)
309+
310+
**[⬆ back to top](#table-of-contents)**

0 commit comments

Comments
 (0)