From 2c2f7c56256789c5f61963f0ebf0388f2f216fc1 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 21 Feb 2017 11:20:08 +0100 Subject: [PATCH] Animate call outs along with review entries --- .../web/public/stylesheets/app/editor/review-panel.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/web/public/stylesheets/app/editor/review-panel.less b/services/web/public/stylesheets/app/editor/review-panel.less index 2ca2c4e4b6..cfe3ac2223 100644 --- a/services/web/public/stylesheets/app/editor/review-panel.less +++ b/services/web/public/stylesheets/app/editor/review-panel.less @@ -29,6 +29,8 @@ @rp-toolbar-height : 32px; +@rp-entry-animation-speed: 0.3s; + .rp-button() { @@ -185,7 +187,7 @@ border-radius: 3px; color: #FFF; cursor: pointer; - transition: top 0.3s, left 0.1s, right 0.1s; + transition: top @rp-entry-animation-speed, left 0.1s, right 0.1s; .no-animate & { transition: none; } @@ -281,7 +283,7 @@ border-left: solid @rp-entry-ribbon-width transparent; border-radius: 3px; background-color: #FFF; - transition: top 0.3s, left 0.1s, right 0.1s; + transition: top @rp-entry-animation-speed, left 0.1s, right 0.1s; .no-animate & { transition: none; } @@ -499,6 +501,7 @@ } .rp-entry-callout { + transition: top @rp-entry-animation-speed, height @rp-entry-animation-speed; .rp-state-current-file & { position: absolute; border-top: 1px solid grey;