diff options
author | wyhaya <wyhaya@gmail.com> | 2019-04-16 04:25:57 +0000 |
---|---|---|
committer | wyhaya <wyhaya@gmail.com> | 2019-04-16 04:25:57 +0000 |
commit | f62d1824995fefa486d1fad30356e1beb936cfa2 (patch) | |
tree | 0615ef6bdd2736bc116b0fd65500d8c9b199824f /src/renderer.rs | |
parent | Only run tests on Linux (diff) | |
download | miniserve-f62d1824995fefa486d1fad30356e1beb936cfa2.tar.gz miniserve-f62d1824995fefa486d1fad30356e1beb936cfa2.zip |
Modify back to top button
Diffstat (limited to 'src/renderer.rs')
-rw-r--r-- | src/renderer.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index bccfb05..8113075 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -483,12 +483,15 @@ fn css(color_scheme: &ColorScheme) -> Markup { }} .back {{ position: fixed; + width: 3.8rem; + height: 3.8rem; + align-items: center; + justify-content: center; bottom: 3rem; right: 3.75rem; background: {back_button_background}; border-radius: 100%; box-shadow: 0 0 8px -4px #888888; - padding: 1.4rem 1.5rem; color: {back_button_link_color}; display: none; }} @@ -590,7 +593,7 @@ fn css(color_scheme: &ColorScheme) -> Markup { display: block; }} .back {{ - display: initial; + display: flex; }} .back {{ right: 1.5rem; |