From fd1bb05f2deffd1bd9a48963ef3917fe9f0ef090 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sat, 19 Mar 2016 18:46:16 +0800 Subject: add breadcrumb code --- src/navigation.less | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/navigation.less') diff --git a/src/navigation.less b/src/navigation.less index 8fbcc0f..2e94d30 100644 --- a/src/navigation.less +++ b/src/navigation.less @@ -1 +1,31 @@ // Navigation +.breadcrumb { + list-style: none; + margin: .5rem 0; + padding: 1.2rem; + + li { + display: inline-block; + margin: 0; + + a { + text-decoration: none; + } + + &:last-child { + &, + a { + color: lighten(@body-font-color, 20%); + pointer-events: none; + } + } + + &:not(:last-child) { + &::after { + content: "/"; + padding: 0 .4rem; + color: @control-color; + } + } + } +} -- cgit v1.3.1-26-gb76a