Skip to content

Commit 005a46d

Browse files
estelledipikabh
andauthored
Apply suggestions from code review
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
1 parent fad24e6 commit 005a46d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

learn/cascade/specificity-boxes.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@
1515
background-color: red;
1616
}
1717

18-
/* specificity: 2-0-1 */
18+
/* 2. specificity: 2-0-1 */
1919
#outer #inner a {
2020
background-color: blue;
2121
}
2222

23-
/* specificity: 1-0-4 */
23+
/* 3. specificity: 1-0-4 */
2424
#outer div ul li a {
2525
color: yellow;
2626
}
2727

28-
/* specificity: 1-1-3 */
28+
/* 4. specificity: 1-1-3 */
2929
#outer div ul .nav a {
3030
color: white;
3131
}
3232

33-
/* specificity: 0-2-4 */
33+
/* 5. specificity: 0-2-4 */
3434
div div li:nth-child(2) a:hover {
3535
border: 10px solid black;
3636
}
3737

38-
/* specificity: 0-2-3 */
38+
/* 6. specificity: 0-2-3 */
3939
div li:nth-child(2) a:hover {
4040
border: 10px dashed black;
4141
}
4242

43-
/* specificity: 0-3-3 */
43+
/* 7. specificity: 0-3-3 */
4444
div div .nav:nth-child(2) a:hover {
4545
border: 10px double black;
4646
}
@@ -81,37 +81,37 @@
8181

8282
<textarea class="playable playable-css" style="height: 280px;">
8383

84-
/* specificity: 1-0-1 */
84+
/* 1. specificity: 1-0-1 */
8585
#outer a {
8686
background-color: red;
8787
}
8888

89-
/* specificity: 2-0-1 */
89+
/* 2. specificity: 2-0-1 */
9090
#outer #inner a {
9191
background-color: blue;
9292
}
9393

94-
/* specificity: 1-0-4 */
94+
/* 3. specificity: 1-0-4 */
9595
#outer div ul li a {
9696
color: yellow;
9797
}
9898

99-
/* specificity: 1-1-3 */
99+
/* 4. specificity: 1-1-3 */
100100
#outer div ul .nav a {
101101
color: white;
102102
}
103103

104-
/* specificity: 0-2-4 */
104+
/* 5. specificity: 0-2-4 */
105105
div div li:nth-child(2) a:hover {
106106
border: 10px solid black;
107107
}
108108

109-
/* specificity: 0-2-3 */
109+
/* 6. specificity: 0-2-3 */
110110
div li:nth-child(2) a:hover {
111111
border: 10px dashed black;
112112
}
113113

114-
/* specificity: 0-3-3 */
114+
/* 7. specificity: 0-3-3 */
115115
div div .nav:nth-child(2) a:hover {
116116
border: 10px double black;
117117
}

0 commit comments

Comments
 (0)