Skip to content

Layout Cookbook - Breadcrumb example with clear intent #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions css-cookbook/breadcrumb-navigation--download.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
padding: .5em 1em;
}

.breadcrumb li::before {
.breadcrumb li:not(:first-child)::before {
content: "→";
}

.breadcrumb li:first-child::before {
content: "";
}
</style>

</head>
Expand All @@ -52,4 +48,4 @@

</body>

</html>
</html>
16 changes: 4 additions & 12 deletions css-cookbook/breadcrumb-navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@
display: flex;
}

.breadcrumb li::before {
.breadcrumb li:not(:first-child)::before {
content: "→";
}

.breadcrumb li:first-child::before {
content: "";
}
</style>
</head>

Expand All @@ -50,14 +46,10 @@
.breadcrumb ul {
display: flex;
}
.breadcrumb li::before {

.breadcrumb li:not(:first-child)::before {
content: "→";
}

.breadcrumb li:first-child::before {
content: "";
}
</textarea>

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

</html>
</html>