From 96791886c88dff35b402b95c50300e2b865b904c Mon Sep 17 00:00:00 2001 From: Pau Giner Date: Thu, 15 May 2014 17:55:40 +0200 Subject: [PATCH] More prominent metadata panel invite. The invite animation has been made more prominent and the chevron is highlighted. this only applies until the user opens the panel for the first time. Change-Id: I91d1b9bffaf302890f63b741313aa47cc4beef24 --- resources/mmv/ui/img/drag-active.svg | 73 +++++++++++++++++++ .../mmv/ui/mmv.ui.metadataPanelScroller.less | 12 ++- 2 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 resources/mmv/ui/img/drag-active.svg diff --git a/resources/mmv/ui/img/drag-active.svg b/resources/mmv/ui/img/drag-active.svg new file mode 100644 index 000000000..8063e5ac8 --- /dev/null +++ b/resources/mmv/ui/img/drag-active.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + diff --git a/resources/mmv/ui/mmv.ui.metadataPanelScroller.less b/resources/mmv/ui/mmv.ui.metadataPanelScroller.less index bf4290663..1facb3a6d 100644 --- a/resources/mmv/ui/mmv.ui.metadataPanelScroller.less +++ b/resources/mmv/ui/mmv.ui.metadataPanelScroller.less @@ -5,7 +5,7 @@ .mw-mmv-post-image { .animation( mw-mmv-appear-animation 0.5s ease 0s 1 normal forwards ); &.invite { - .animation( mw-mmv-invite-animation 0.5s ease 0s 1 normal forwards ); + .animation( mw-mmv-invite-animation 1s ease 0s 1 normal forwards ); } } @@ -41,8 +41,8 @@ 0% { margin-top: 0px; } - 50% { - margin-top: -15px; + 33% { + margin-top: -30px; } 100% { margin-top: 0; @@ -79,13 +79,17 @@ background-repeat: no-repeat; background-position: center bottom; margin: 0 auto; - opacity: 0.6; + opacity: 0.7; transition: opacity 0.25s; &.pointing-down { background-position: center top; .rotate(180deg); } + .mw-mmv-post-image.invite & { + background-image: url(img/drag-active.svg); + opacity: 0.9; + } } .mw-mmv-post-image:hover .mw-mmv-drag-icon {