From 5df66fadb12a9cc3649287071f1dada02bfea0ed Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Tue, 18 Sep 2018 20:18:23 +0200 Subject: [PATCH] breadcrumbs visually more part of navigation --- templates/default-layout.lucius | 2 +- templates/widgets/breadcrumbs.hamlet | 2 +- templates/widgets/breadcrumbs.lucius | 48 +++++++++++++++++----------- 3 files changed, 31 insertions(+), 21 deletions(-) diff --git a/templates/default-layout.lucius b/templates/default-layout.lucius index 96b838972..34285a821 100644 --- a/templates/default-layout.lucius +++ b/templates/default-layout.lucius @@ -156,6 +156,7 @@ h4 { position: relative; min-height: calc(100vh - var(--header-height)); padding: 20px; + overflow: hidden; } @media (max-width: 768px) { @@ -169,7 +170,6 @@ h4 { .main__content { position: relative; background-color: white; - overflow: hidden; transition: padding-left .2s ease-out; max-width: 1200px; margin: 0 auto; diff --git a/templates/widgets/breadcrumbs.hamlet b/templates/widgets/breadcrumbs.hamlet index 0d51fea84..50d0e1844 100644 --- a/templates/widgets/breadcrumbs.hamlet +++ b/templates/widgets/breadcrumbs.hamlet @@ -4,4 +4,4 @@ $newline never $forall bc <- parents
  • #{snd bc} -
  • #{title} +
  • #{title} diff --git a/templates/widgets/breadcrumbs.lucius b/templates/widgets/breadcrumbs.lucius index e0a3cd9ea..f817215e1 100644 --- a/templates/widgets/breadcrumbs.lucius +++ b/templates/widgets/breadcrumbs.lucius @@ -1,13 +1,28 @@ .breadcrumbs__container { position: relative; - color: var(--color-font); - margin-bottom: 10px; + color: var(--color-lightwhite); + margin-top: -11px; + margin-right: -20px; + margin-bottom: 20px; + margin-left: -42px; + padding: 4px 13px; + padding-left: 42px; + background-color: var(--color-dark); + line-height: 30px; +} + +@media (min-width: 768px) { + + .breadcrumbs__container { + margin-top: -22px; + } } .breadcrumbs__link { + color: var(--color-lightwhite); &:hover { - color: var(--color-fontsec); + color: var(--color-white); } } @@ -19,24 +34,10 @@ z-index: 1; margin-right: 10px; - &:last-child { - margin-right: 0; - font-weight: 800; - color: var(--color-dark); - top: 1px; - - &::after { - content: none; - } - } - - --color-separator: var(--color-primary); - &:hover { opacity: 1; } - &::after { content: ''; position: absolute; @@ -44,9 +45,18 @@ right: 0; width: 7px; height: 7px; - border-bottom: 1px solid var(--color-separator); - border-right: 1px solid var(--color-separator); + border-style: solid; + border-width: 0; + border-bottom-width: 1px; + border-right-width: 1px; + border-color: var(--color-white); transform: rotate(-45deg); z-index: 10; } } + +.breadcrumbs__last-item { + line-height: 28px; + vertical-align: bottom; + font-weight: 600; +}