From aeef04de2ab350456bc3b90e6d6cf3c955a78b1b Mon Sep 17 00:00:00 2001 From: Gil Hanan Date: Wed, 21 Sep 2016 13:36:56 +0300 Subject: [PATCH] More efficient way to style menu items seperator Using CSS selector + in order to skip first item, instead style all items and restyle first item using nth-child * tested successfully with one item, two, and more. --- app/app.css | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/app.css b/app/app.css index c92524070a..48e881d4ec 100644 --- a/app/app.css +++ b/app/app.css @@ -19,12 +19,7 @@ display: inline; } -.menu > li:before { +.menu > li + li:before { content: "|"; padding-right: 0.3em; } - -.menu > li:nth-child(1):before { - content: ""; - padding: 0; -}