From d8d1d3aee0868b318206bb8585e8d1202243a377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Mon, 18 Feb 2019 01:13:32 -0500 Subject: [PATCH] Improve scroll-down button UI --- client/css/style.css | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 20f2216d..fb6b73c4 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1097,7 +1097,7 @@ background on hover (unless active) */ pointer-events: none; opacity: 0; transform: translateY(16px); - transition: all 0.2s ease-in-out; + transition: transform 0.2s, opacity 0.2s; cursor: pointer; } @@ -1108,18 +1108,23 @@ background on hover (unless active) */ } .scroll-down-arrow { - width: 48px; - height: 48px; - line-height: 48px; + width: 36px; + height: 36px; + line-height: 34px; border-radius: 50%; - background: #fff; - color: #333; - border: 1px solid #84ce88; + background: var(--window-bg-color); + color: #84ce88; + border: 2px solid #84ce88; text-align: center; + transition: background 0.2s, color 0.2s; + box-shadow: + 0 3px 5px -1px rgba(0, 0, 0, 0.2), + 0 6px 10px 0 rgba(0, 0, 0, 0.14); } .scroll-down:hover .scroll-down-arrow { background: #84ce88; + color: var(--window-bg-color); } .scroll-down-arrow::after {