Skip to content

Commit 1187c38

Browse files
committed
fix: Update breadcrumbs
Resolves #248
1 parent c2bfb3f commit 1187c38

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

src/css/breadcrumbs.css

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
.breadcrumbs-container {
2-
padding-top: 2rem;
3-
}
4-
51
.breadcrumbs {
6-
max-width: var(--doc-max-width);
72
flex: 1 1;
83
padding: 0;
94
line-height: var(--nav-line-height);
@@ -12,26 +7,24 @@
127
font-size: calc(16 / var(--rem-base) * 1rem);
138
}
149

10+
.breadcrumbs-container {
11+
padding: 20px 0;
12+
background-color: var(--body-background-color);
13+
border-bottom: 1px solid var(--nav-panel-divider-color);
14+
}
15+
1516
@media screen and (min-width: 1024px) {
1617
.breadcrumbs {
1718
max-width: var(--doc-max-width--desktop);
1819
min-width: 0;
1920
}
2021
.breadcrumbs-container {
21-
position: fixed;
22+
position: sticky;
2223
top: 83px;
23-
padding: 1rem 0;
24-
right: var(--toc-width--widescreen);
25-
left: var(--nav-width);
26-
margin-left: 3rem;
27-
margin-right: 3rem;
28-
background-color: var(--body-background-color);
29-
border-bottom: 1px solid var(--nav-panel-divider-color);
24+
padding: 20px 20px;
25+
margin: 0 -1rem;
3026
z-index: 99;
3127
}
32-
.doc {
33-
padding-top: 60px;
34-
}
3528
}
3629

3730
a + .breadcrumbs {
@@ -43,6 +36,7 @@ a + .breadcrumbs {
4336
flex-wrap: wrap;
4437
list-style: none;
4538
padding: 0;
39+
margin: 0;
4640
}
4741

4842
.breadcrumbs li {

src/partials/article.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<article class="doc">
2-
{{> article-latest}}
32
{{> breadcrumbs}}
3+
{{> article-latest}}
44
{{#with page.title}}
55
<h1 id="page-title" class="page">{{{this}}}</h1>
66
{{/with}}
@@ -10,4 +10,4 @@
1010
{{{page.contents}}}
1111
{{> nav-section-summary}}
1212
{{> pagination}}
13-
</article>
13+
</article>

0 commit comments

Comments
 (0)