Skip to content

Commit

Permalink
Merge pull request #69 from github/sticky-github-logo-header
Browse files Browse the repository at this point in the history
Sticky GitHub logo header
  • Loading branch information
Octomerger authored Sep 28, 2020
2 parents c13fcf7 + 67f9bb3 commit a96f15d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- product > category > maptopic > article -->
<div class="sidebar d-none d-lg-block">

<div class="d-flex flex-items-center p-4" style="z-index: 3;" id="github-logo">
<div class="d-flex flex-items-center p-4 position-sticky top-0 sidebar-background-color" style="z-index: 3;" id="github-logo">
<a href="/{{ currentLanguage }}" class="text-white" aria-hidden="true">
{% octicon "mark-github" height="32" %}
</a>
Expand Down
4 changes: 4 additions & 0 deletions stylesheets/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
}
}

.sidebar-background-color {
background-color: $blue-900;
}

.sidebar-products > li {
margin: 4px 0;
}
Expand Down

0 comments on commit a96f15d

Please sign in to comment.