From bcd1c8a558fba149d9fe5cfc45f378b584f783db Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 31 Dec 2019 23:36:49 +0100 Subject: [PATCH] cleanup todos --- breadcrumb.scss | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/breadcrumb.scss b/breadcrumb.scss index 3c4f8fe..bfc444d 100644 --- a/breadcrumb.scss +++ b/breadcrumb.scss @@ -1,5 +1,3 @@ - - .crumbs-1 { list-style: none; overflow: hidden; @@ -14,8 +12,7 @@ float: left; cursor: pointer; - // todo: maybe replace .last with :last-child - &:not(.last):after, &:before { + &:not(:last-child):after, &:before { content:" "; display: block; width: 0; @@ -29,7 +26,7 @@ left: 100%; } - &:not(.last):after { + &:not(:last-child):after { z-index: 2; } @@ -39,12 +36,12 @@ z-index: 1; } - &.active:not(.last):after, &:hover:not(.last):after { + &.active:not(:last-child):after, &:hover:not(:last-child):after { border-left: 14px solid #ffffff; } } - .last { + :last-child { padding-right: 20px; &:before {