Skip to content

Commit 43fa324

Browse files
Formatting for breadcrumbs (#19)
* Added styles for breadcrumbs * add use of toolbar variable and remove non-links rendering
1 parent c4bbbc4 commit 43fa324

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/css/breadcrumbs.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ a + .breadcrumbs {
2525
.breadcrumbs li {
2626
display: inline;
2727
margin: 0;
28+
color: var(--ds-primary-main);
2829
}
2930

3031
.breadcrumbs li::after {
3132
content: "/";
3233
padding: 0 var(--ds-space-1);
34+
color: var(--toolbar-muted-color);
3335
}
3436

3537
.breadcrumbs li:last-of-type::after {

src/css/toolbar.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
top: var(--navbar-height);
1111
z-index: var(--z-index-toolbar);
1212
padding-left: calc(24 / var(--rem-base) * 1rem);
13+
margin-top: calc(24 / var(--rem-base) * 1rem);
1314
}
1415

1516
.toolbar ul li:last-of-type {
1617
color: var(--toolbar-muted-color);
1718
}
1819

1920
.toolbar a {
20-
color: var(--link-font-color);
21+
color: inherit;
2122
}
2223

2324
.nav-toggle::after {

src/css/vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
/* dimensions and positioning */
107107
--site-padding: var(--ds-space-4);
108108
--navbar-height: calc(100 / var(--rem-base) * 1rem);
109-
--toolbar-height: calc(45 / var(--rem-base) * 1rem);
109+
--toolbar-height: calc(22 / var(--rem-base) * 1rem);
110110
--drawer-height: var(--toolbar-height);
111111
--body-top: var(--navbar-height);
112112
--body-min-height: calc(100vh - var(--body-top));

src/partials/breadcrumbs.hbs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
{{/if}}
88
{{/with}}
99
{{#each page.breadcrumbs}}
10-
<li>
1110
{{~#if (and ./url (eq ./urlType 'internal'))~}}
11+
<li>
1212
<a href="{{{relativize ./url}}}">{{{./content}}}</a>
13-
{{~else~}}
14-
{{{./content}}}
15-
{{~/if~}}
1613
</li>
14+
{{~/if~}}
1715
{{/each}}
1816
</ul>
1917
{{/if}}

0 commit comments

Comments
 (0)