From 3c0976a1e50efee96ddb71a42ee4b77dcac76cdc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 28 Jul 2015 09:34:49 -0400 Subject: [PATCH 01/14] 1.0.20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d4cdc83..e647f65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodebb-theme-persona", - "version": "1.0.19", + "version": "1.0.20", "nbbpm": { "compatibility": "^0.7.1" }, From 780a3a2dc05e2bf44eb82a3b3cc98d176b12d307 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 28 Jul 2015 10:12:32 -0400 Subject: [PATCH 02/14] 1.0.21 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e647f65..2176f3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodebb-theme-persona", - "version": "1.0.20", + "version": "1.0.21", "nbbpm": { "compatibility": "^0.7.1" }, From 14243e80ac5b0c8904bf2f0a98de250878d9cf69 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 29 Jul 2015 12:43:02 -0400 Subject: [PATCH 03/14] Update styling and templates for nodebb/nodebb@60a6775, and also added better chat styling in general --- less/chats.less | 62 +++++++++++++++++++++++------ templates/chat.tpl | 12 +++--- templates/chats.tpl | 3 +- templates/partials/chat_message.tpl | 4 +- 4 files changed, 58 insertions(+), 23 deletions(-) diff --git a/less/chats.less b/less/chats.less index b874f3d..f63e32e 100644 --- a/less/chats.less +++ b/less/chats.less @@ -56,7 +56,12 @@ font-weight: bold; i { - font-size: 1rem; + font-size: 14px; + vertical-align: center; + + &.fa-keyboard-o { + .animation(topic-reply-pulse 2s ease-in infinite); + } } } @@ -65,32 +70,63 @@ } } - ul.well { + ul { height: 250px; overflow-y: auto; resize: none; word-wrap: break-word; + padding: 0; + margin: 0; - li { + li.chat-message { list-style-type: none; - margin-bottom: 10px; font-weight: 300; + padding: 0 1.428rem; + + &:first-child { + padding-top: 1.428rem; + } - .chat-user-image { - width: 20px; - height: 20px; + &:last-child { + padding-bottom: 1.428rem; + } + + &[data-break="true"] { + padding-top: 1rem; + margin-top: 1rem; + border-top: 1px solid @gray-lighter; + } + + a { + display: block; + float: left; + + .chat-user-image { + width: 32px; + height: 32px; + } + } + + .chat-user { + display: inline-block; + margin-left: 13px; } .chat-timestamp { - color: darkgrey; - min-width: 60px; + color: @gray-light; + font-size: 1rem; display: inline-block; - text-align: right; + margin-left: 10px; .user-select(none); } .message-body { - clear: both; + margin-left: 45px; + + p { + margin: 7px 0 0 0; + line-height: 2rem; + } } &[data-self="0"] + [data-self="0"], &[data-self="1"] + [data-self="1"] { @@ -104,8 +140,8 @@ } .user-typing { - margin-top: -1.5em; - .opacity(0.5); + color: @gray-light; + margin: 1.428rem 0; } .selected[data-since] { diff --git a/templates/chat.tpl b/templates/chat.tpl index 25ee726..8db82cd 100644 --- a/templates/chat.tpl +++ b/templates/chat.tpl @@ -5,18 +5,18 @@