Skip to content

Commit

Permalink
Reverted top-margin of back-to-top button
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jul 3, 2021
1 parent 3649fda commit 8b322d3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions material/assets/stylesheets/main.1fbdda8f.min.css.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion material/assets/stylesheets/main.3d0eea20.min.css.map

This file was deleted.

4 changes: 2 additions & 2 deletions material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.3d0eea20.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1fbdda8f.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.f1a3b89f.min.css' | url }}">
Expand Down Expand Up @@ -223,7 +223,7 @@ <h1>{{ page.title | d(config.site_name, true)}}</h1>
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.455f5155.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.70097392.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/javascripts/components/top/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function mountBackToTop(

/* Update state */
next([{ hidden }, { height }]) {
setBackToTopOffset(el, height + 12)
setBackToTopOffset(el, height + 16)
if (hidden)
setBackToTopState(el, "hidden")
else
Expand Down
2 changes: 1 addition & 1 deletion src/assets/stylesheets/main/layout/_top.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// Back-to-top button
.md-top {
position: fixed;
top: px2rem(48px + 12px);
top: px2rem(48px + 16px);
z-index: 3;
margin-left: 50%;
padding: px2rem(8px) px2rem(16px);
Expand Down

0 comments on commit 8b322d3

Please sign in to comment.