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: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,25 @@
4
4
5
5
## Table of Contents
6
6
7
-
1.[Terminology](#terminology)
7
+
1.[Terminology](#terminology)
8
8
-[Rule Declaration](#rule-declaration)
9
9
-[Selectors](#selectors)
10
10
-[Properties](#properties)
11
-
1.[CSS](#css)
11
+
1.[CSS](#css)
12
12
-[Formatting](#formatting)
13
13
-[Comments](#comments)
14
14
-[OOCSS and BEM](#oocss-and-bem)
15
15
-[ID Selectors](#id-selectors)
16
16
-[JavaScript hooks](#javascript-hooks)
17
17
-[Border](#border)
18
-
1.[Sass](#sass)
18
+
1.[Sass](#sass)
19
19
-[Syntax](#syntax)
20
20
-[Ordering](#ordering-of-property-declarations)
21
21
-[Variables](#variables)
22
22
-[Mixins](#mixins)
23
23
-[Extend directive](#extend-directive)
24
24
-[Nested selectors](#nested-selectors)
25
-
1.[Translation](#translation)
25
+
1.[Translation](#translation)
26
26
27
27
## Terminology
28
28
@@ -62,6 +62,8 @@ Finally, properties are what give the selected elements of a rule declaration th
62
62
}
63
63
```
64
64
65
+
**[⬆ back to top](#table-of-contents)**
66
+
65
67
## CSS
66
68
67
69
### Formatting
@@ -200,6 +202,7 @@ Use `0` instead of `none` to specify that a style has no border.
200
202
border: 0;
201
203
}
202
204
```
205
+
**[⬆ back to top](#table-of-contents)**
203
206
204
207
## Sass
205
208
@@ -288,6 +291,8 @@ Again: **never nest ID selectors!**
288
291
289
292
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.
290
293
294
+
**[⬆ back to top](#table-of-contents)**
295
+
291
296
## Translation
292
297
293
298
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
0 commit comments