Skip to content

Commit 913a077

Browse files
authored
Merge pull request TheOdinProject#211 from dm-murphy/fix-comments-06-cascade
Foundations/06-cascade-fix: Update solution comments
2 parents f98ca16 + 0f83cb8 commit 913a077

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

foundations/06-cascade-fix/solution/solution.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ div.text {
3131
3232
.small-para {
3333
font-size: 14px;
34+
font-weight: 800;
3435
}
3536
3637
Then we placed it after the .para selector, taking advantage of the rule order since both selectors have the same specificity.
@@ -39,6 +40,7 @@ div.text {
3940
4041
p.small-para {
4142
font-size: 14px;
43+
font-weight: 800;
4244
}
4345
*/
4446

@@ -77,7 +79,8 @@ div.text {
7779
For the following rule we first removed it from its original position in the file:
7880
7981
.child {
80-
color: red;
82+
color: rgb(0, 0, 0);
83+
font-weight: 800;
8184
font-size: 14px;
8285
}
8386
@@ -87,7 +90,8 @@ div.text {
8790
Another solution would be to keep the rule where it was and just replace the div selector with the .text selector:
8891
8992
.text .child {
90-
color: red;
93+
color: rgb(0, 0, 0);
94+
font-weight: 800;
9195
font-size: 14px;
9296
}
9397
*/

0 commit comments

Comments
 (0)