Skip to content

Commit b0a8255

Browse files
committed
add layers to task
1 parent 8b11c62 commit b0a8255

File tree

1 file changed

+38
-18
lines changed

1 file changed

+38
-18
lines changed

learn/tasks/cascade/cascade.html

+38-18
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,25 @@
1010
</style>
1111

1212
<style class="editable">
13-
#outer div ul .nav a {
14-
background-color: blue;
15-
padding: 5px;
16-
display: inline-block;
17-
margin-bottom: 10px;
18-
}
13+
@layer yellow, blue, green;
1914

20-
div div li a {
21-
color: yellow;
15+
@layer blue {
16+
#outer div ul .nav a {
17+
background-color: blue;
18+
padding: 5px;
19+
display: inline-block;
20+
margin-bottom: 10px;
21+
}
22+
}
23+
@layer yellow {
24+
div div li a {
25+
color: yellow;
26+
}
27+
}
28+
@layer green {
29+
a {
30+
color: lightgreen;
31+
}
2232
}
2333
</style>
2434
</head>
@@ -35,17 +45,27 @@
3545
</div>
3646
</section>
3747

38-
<textarea class="playable playable-css" style="height: 250px;">
39-
#outer div ul .nav a {
40-
background-color: blue;
41-
padding: 5px;
42-
display: inline-block;
43-
margin-bottom: 10px;
44-
}
48+
<textarea class="playable playable-css" style="height: 400px;">
49+
@layer yellow, blue, green;
4550

46-
div div li a {
47-
color: yellow;
48-
}
51+
@layer blue {
52+
#outer div ul .nav a {
53+
background-color: blue;
54+
padding: 5px;
55+
display: inline-block;
56+
margin-bottom: 10px;
57+
}
58+
}
59+
@layer yellow {
60+
div div li a {
61+
color: yellow;
62+
}
63+
}
64+
@layer green {
65+
a {
66+
color: lightgreen;
67+
}
68+
}
4969
</textarea>
5070

5171
<textarea class="playable playable-html" style="height: 170px;">

0 commit comments

Comments
 (0)