Skip to content

Commit

Permalink
Removed back-to-top button in print view
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jul 3, 2021
1 parent 8b322d3 commit 68de4db
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion material/assets/stylesheets/main.1fbdda8f.min.css.map

This file was deleted.

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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.1fbdda8f.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.2e1f6369.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
5 changes: 5 additions & 0 deletions src/assets/stylesheets/main/layout/_top.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
transform 125ms cubic-bezier(0.4, 0, 0.2, 1),
background-color 125ms;

// [print]: Hide back-to-top button
@media print {
display: none;
}

// Adjust for right-to-left languages
[dir="rtl"] & {
float: left;
Expand Down

0 comments on commit 68de4db

Please sign in to comment.