From 65a2b91081af3cc277799049972ff8645d0ad9a7 Mon Sep 17 00:00:00 2001 From: Alexander Dreith Date: Sat, 13 Oct 2018 14:44:59 -0600 Subject: [PATCH] Layout Cookbook - Breadcrumb example with clear intent --- .../breadcrumb-navigation--download.html | 8 ++------ css-cookbook/breadcrumb-navigation.html | 16 ++++------------ 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/css-cookbook/breadcrumb-navigation--download.html b/css-cookbook/breadcrumb-navigation--download.html index d0143c96..daf92b60 100644 --- a/css-cookbook/breadcrumb-navigation--download.html +++ b/css-cookbook/breadcrumb-navigation--download.html @@ -28,13 +28,9 @@ padding: .5em 1em; } - .breadcrumb li::before { + .breadcrumb li:not(:first-child)::before { content: "→"; } - - .breadcrumb li:first-child::before { - content: ""; - } @@ -52,4 +48,4 @@ - \ No newline at end of file + diff --git a/css-cookbook/breadcrumb-navigation.html b/css-cookbook/breadcrumb-navigation.html index 145b3f89..6073c1ac 100644 --- a/css-cookbook/breadcrumb-navigation.html +++ b/css-cookbook/breadcrumb-navigation.html @@ -24,13 +24,9 @@ display: flex; } - .breadcrumb li::before { + .breadcrumb li:not(:first-child)::before { content: "→"; } - - .breadcrumb li:first-child::before { - content: ""; - } @@ -50,14 +46,10 @@ .breadcrumb ul { display: flex; } - -.breadcrumb li::before { + +.breadcrumb li:not(:first-child)::before { content: "→"; } - -.breadcrumb li:first-child::before { - content: ""; -}