Skip to content

Commit

Permalink
fix: Update breadcrumbs
Browse files Browse the repository at this point in the history
Resolves #248
  • Loading branch information
oodamien committed May 28, 2024
1 parent c2bfb3f commit 1187c38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
26 changes: 10 additions & 16 deletions src/css/breadcrumbs.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.breadcrumbs-container {
padding-top: 2rem;
}

.breadcrumbs {
max-width: var(--doc-max-width);
flex: 1 1;
padding: 0;
line-height: var(--nav-line-height);
Expand All @@ -12,26 +7,24 @@
font-size: calc(16 / var(--rem-base) * 1rem);
}

.breadcrumbs-container {
padding: 20px 0;
background-color: var(--body-background-color);
border-bottom: 1px solid var(--nav-panel-divider-color);
}

@media screen and (min-width: 1024px) {
.breadcrumbs {
max-width: var(--doc-max-width--desktop);
min-width: 0;
}
.breadcrumbs-container {
position: fixed;
position: sticky;
top: 83px;
padding: 1rem 0;
right: var(--toc-width--widescreen);
left: var(--nav-width);
margin-left: 3rem;
margin-right: 3rem;
background-color: var(--body-background-color);
border-bottom: 1px solid var(--nav-panel-divider-color);
padding: 20px 20px;
margin: 0 -1rem;
z-index: 99;
}
.doc {
padding-top: 60px;
}
}

a + .breadcrumbs {
Expand All @@ -43,6 +36,7 @@ a + .breadcrumbs {
flex-wrap: wrap;
list-style: none;
padding: 0;
margin: 0;
}

.breadcrumbs li {
Expand Down
4 changes: 2 additions & 2 deletions src/partials/article.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<article class="doc">
{{> article-latest}}
{{> breadcrumbs}}
{{> article-latest}}
{{#with page.title}}
<h1 id="page-title" class="page">{{{this}}}</h1>
{{/with}}
Expand All @@ -10,4 +10,4 @@
{{{page.contents}}}
{{> nav-section-summary}}
{{> pagination}}
</article>
</article>

0 comments on commit 1187c38

Please sign in to comment.