Skip to content

Commit 7ca4ca1

Browse files
committed
Fixed transitions on back-to-top button
1 parent f6efb78 commit 7ca4ca1

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Diff for: material/assets/stylesheets/main.2e1f6369.min.css.map

-1
This file was deleted.

Diff for: material/assets/stylesheets/main.2e1f6369.min.css renamed to material/assets/stylesheets/main.80873392.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/assets/stylesheets/main.80873392.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{% endif %}
4040
{% endblock %}
4141
{% block styles %}
42-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.2e1f6369.min.css' | url }}">
42+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.80873392.min.css' | url }}">
4343
{% if config.theme.palette %}
4444
{% set palette = config.theme.palette %}
4545
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.f1a3b89f.min.css' | url }}">

Diff for: src/assets/stylesheets/main/layout/_top.scss

+5-4
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,18 @@
3333
padding: px2rem(8px) px2rem(16px);
3434
color: var(--md-default-fg-color--light);
3535
font-size: px2rem(14px);
36-
background: var(--md-default-bg-color);
36+
background-color: var(--md-default-bg-color);
3737
border-radius: px2rem(32px);
3838
outline: none;
3939
box-shadow:
4040
0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.1),
4141
0 0 px2rem(1px) hsla(0, 0%, 0%, 0.25);
4242
transform: translate(-50%, 0);
4343
transition:
44-
opacity 125ms,
44+
color 125ms,
45+
background-color 125ms,
4546
transform 125ms cubic-bezier(0.4, 0, 0.2, 1),
46-
background-color 125ms;
47+
opacity 125ms;
4748

4849
// [print]: Hide back-to-top button
4950
@media print {
@@ -67,7 +68,7 @@
6768
&:focus,
6869
&:hover {
6970
color: var(--md-accent-bg-color);
70-
background: var(--md-accent-fg-color);
71+
background-color: var(--md-accent-fg-color);
7172
}
7273

7374
// Inline icon

0 commit comments

Comments
 (0)