diff --git a/less/chats.less b/less/chats.less index 1a1d550..a96b980 100644 --- a/less/chats.less +++ b/less/chats.less @@ -3,24 +3,40 @@ max-height: 608px; overflow-x: hidden; overflow-y: auto; + border-top: 1px solid @gray-lighter; li { + position: relative; clear: both; list-style-type: none; padding: 0.5em; + height: 70px; .pointer; + border-left: 1px solid; + border-right: 1px solid; + border-bottom: 1px solid; + border-color: @gray-lighter; + + background: @body-bg; + &.typing { - span:after { + .username:after { visibility: visible; } } &.unread { - .bg-variant(@state-warning-bg); + background: lighten(@brand-primary, 25%); } - span { + &.bg-primary { + background: @brand-primary; + } + + .username { + font-size: 18px; + &:after { display: inline-block; font-family: "FontAwesome"; @@ -30,6 +46,13 @@ } } + .teaser-timestamp { + font-size: 10px; + position: absolute; + top: 8px; + right: 24px; + } + a { display: block; .text-ellipsis; @@ -40,11 +63,21 @@ } .user-img { - width:24px; - height:24px; + width: 50px; + height: 50px; + float: left; + margin-top: 4px; + margin-right: 13px; margin-left: 0.5em; border-radius: 50%; } + + .status { + position: absolute; + left: 50px; + font-size: 20px; + top: 10px; + } } } @@ -163,4 +196,19 @@ textarea { resize: none; } +} + +.expanded-chat { + h1 { + margin: 0px; + padding-bottom: 20px; + } + + .chat-content { + padding-top: 10px; + } + + .input-group { + position: absolute; + } } \ No newline at end of file diff --git a/package.json b/package.json index 577af91..acc84c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodebb-theme-persona", - "version": "2.1.17", + "version": "2.1.18", "nbbpm": { "compatibility": "^0.8.0" }, diff --git a/templates/chats.tpl b/templates/chats.tpl index 0d95b58..23457b1 100644 --- a/templates/chats.tpl +++ b/templates/chats.tpl @@ -1,27 +1,48 @@
-
+
+
    + +
  • + + + {chats.username} + {chats.teaser.content} + +
  • + + +
  • + + + {contacts.username} +
  • + +
+ +
+ +
[[error:chat-restricted]]
-
-
- -

[[modules:chat.message-history]]

-
-
- [[recent:title]][[modules:chat.seven_days]][[modules:chat.thirty_days]][[modules:chat.three_months]] -
    - -
-
- - - - -
+
+ + +

{meta.username}

+ + + [[recent:title]][[modules:chat.seven_days]][[modules:chat.thirty_days]][[modules:chat.three_months]] +
    + +
+
+ + + +
@@ -30,38 +51,4 @@
-
-
-
-

[[modules:chat.contacts]]

-
-
-
    - -
  • - - - {contacts.username} -
  • - -
-
-
-
-
-

[[modules:chat.recent-chats]]

-
-
-
    - -
  • - - - {chats.username} -
  • - -
-
-
-