Skip to content

Commit 65a2b91

Browse files
committed
Layout Cookbook - Breadcrumb example with clear intent
1 parent 3193a4a commit 65a2b91

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

css-cookbook/breadcrumb-navigation--download.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,9 @@
2828
padding: .5em 1em;
2929
}
3030

31-
.breadcrumb li::before {
31+
.breadcrumb li:not(:first-child)::before {
3232
content: "→";
3333
}
34-
35-
.breadcrumb li:first-child::before {
36-
content: "";
37-
}
3834
</style>
3935

4036
</head>
@@ -52,4 +48,4 @@
5248

5349
</body>
5450

55-
</html>
51+
</html>

css-cookbook/breadcrumb-navigation.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@
2424
display: flex;
2525
}
2626

27-
.breadcrumb li::before {
27+
.breadcrumb li:not(:first-child)::before {
2828
content: "→";
2929
}
30-
31-
.breadcrumb li:first-child::before {
32-
content: "";
33-
}
3430
</style>
3531
</head>
3632

@@ -50,14 +46,10 @@
5046
.breadcrumb ul {
5147
display: flex;
5248
}
53-
54-
.breadcrumb li::before {
49+
50+
.breadcrumb li:not(:first-child)::before {
5551
content: "→";
5652
}
57-
58-
.breadcrumb li:first-child::before {
59-
content: "";
60-
}
6153
</textarea>
6254

6355
<textarea class="playable playable-html" style="height: 170px;">
@@ -77,4 +69,4 @@
7769
</body>
7870
<script src="playable.js"></script>
7971

80-
</html>
72+
</html>

0 commit comments

Comments
 (0)