From a4c1f9a48c4a2ec284f3db8d35d7d7634cc4b860 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Thu, 20 Mar 2014 20:41:51 +0100 Subject: [PATCH] More nice animations to chat ui. --- src/styles/components/_chat.scss | 22 +++++++++++++++++----- static/partials/chat.html | 6 +++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/styles/components/_chat.scss b/src/styles/components/_chat.scss index 2afcf75d..c20ae2ab 100644 --- a/src/styles/components/_chat.scss +++ b/src/styles/components/_chat.scss @@ -54,14 +54,20 @@ width:260px; -ms-transition: left 200ms ease-in-out; -o-transition: left 200ms ease-in-out; transition: left 200ms ease-in-out; +background: #e7e7e7; } .chatlist { position:absolute; top:0px; -left:0px; +left:100%; bottom:0px; -right:0px; +width:100%; background: #e7e7e7; +-webkit-transition: left 200ms ease-in-out; +-moz-transition: left 200ms ease-in-out; +-ms-transition: left 200ms ease-in-out; +-o-transition: left 200ms ease-in-out; +transition: left 200ms ease-in-out; .list-group { margin-top:-1px; margin-bottom:-1px; @@ -90,9 +96,9 @@ background: #e7e7e7; .chatpane { position:absolute; top:0px; -left:0px; -bottom:0px; right:0px; +bottom:0px; +width:100%; -webkit-transition: 0.3s; -webkit-transform-style: preserve-3d; -moz-transition: 0.3s; @@ -106,6 +112,12 @@ transform-style: preserve-3d; -o-backface-visibility: hidden; backface-visibility: hidden; } +.showchatlist .chatpane { +right:100%; +} +.showchatlist .chatlist { +left:0px; +} .withChat .chatpane.flip { -webkit-transform: rotateY(360deg); -moz-transform: rotateY(360deg); @@ -149,7 +161,7 @@ border-top: 1px solid $bordercolor; border-bottom: 1px solid $bordercolor; border-right: 1px solid $bordercolor; height:36px; -line-height:36px; +line-height:34px; } .chat.active .chatheader { } diff --git a/static/partials/chat.html b/static/partials/chat.html index 9832deb2..14e5c3dc 100644 --- a/static/partials/chat.html +++ b/static/partials/chat.html @@ -1,6 +1,6 @@ -
-
-
+
+
+
{{_("Chat sessions")}}