Skip to content

Commit

Permalink
Merge pull request #577 from datamade/sticky-button
Browse files Browse the repository at this point in the history
fix sticky button bug
  • Loading branch information
fgregg authored Nov 17, 2021
2 parents eabf8b7 + d41957b commit 00f02f0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion bga_database/static/css/bootstrap-overrides.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions bga_database/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,11 @@ h5 {
#story-feed-stories h5 > a {
color: unset;
}

@supports (position: sticky) {
.sticky-top-button {
position: sticky;
top: 55px;
z-index: 1020;
}
}
2 changes: 1 addition & 1 deletion templates/jinja2/department.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</nav>
</div>

<div class="sticky-top">
<div class="sticky-top-button">
<div class="float-right pt-2 ml-5">
{% include 'partials/year_selector.html' %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/jinja2/unit.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</nav>
</div>

<div class="sticky-top">
<div class="sticky-top-button">
<div class="float-right pt-2 ml-5">
{% include 'partials/year_selector.html' %}
</div>
Expand Down

0 comments on commit 00f02f0

Please sign in to comment.