From 57465b2cf80b2942ed67a6b5922c29ef7535edc3 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Fri, 20 May 2016 03:40:53 +0200 Subject: [PATCH] private messages: some work for the standard messages overview --- css/style.css | 40 ++++++++++++++++++++++++++++++-- templates/mail_conv.tpl | 2 +- templates/mail_list.tpl | 47 +++++++++++++++++++------------------- templates/message_side.tpl | 12 ++++++++++ templates/msg-header.tpl | 1 + 5 files changed, 75 insertions(+), 27 deletions(-) create mode 100644 templates/message_side.tpl diff --git a/css/style.css b/css/style.css index c1f1b3d87..134e86917 100644 --- a/css/style.css +++ b/css/style.css @@ -1701,6 +1701,12 @@ ul.viewcontact_wrapper > li { } /* private mail */ +.message-content-wrapper > li { +/* we need this overwriting because we have no template file + for the general mail page /message +*/ + list-style-type: none; +} .mail-thread { max-height: calc(100vh - 200px); } @@ -1710,6 +1716,7 @@ ul.viewcontact_wrapper > li { max-height: auto; /*height: 500px;*/ margin-bottom: 0px; + padding: 0 15px; } #mail-conversation.can-reply { /* border-bottom-left-radius: 0px; @@ -1734,9 +1741,38 @@ ul.viewcontact_wrapper > li { max-height: 120px; } .mail-conv-wrapper { - padding: 15px; - border-bottom: 1px solid rgba(238, 238, 238, 0.95) + padding: 15px 0; + border-bottom: 1px solid rgba(238, 238, 238, $contentbg_transp); } +#message-sidebar { + height: calc(100vh - 150px); +} +#message-preview { + /*padding: 0 10px;*/ + height: calc(100% - 20px); +} +#message-preview ul { + margin: 0px; +} +#message-preview .media-list li { + padding: 0px 10px; + border: none; +} +#message-preview .media-list li:hover { + border-left: none !important; +} +#message-preview .media-list li a { + color: $link_color; +} +.mail-list-outside-wrapper { + padding: 5px 0; + border-bottom: 1px solid rgba(238, 238, 238, $contentbg_transp); +} +.mail-list-outside-wrapper .contact-photo-wrapper { + height: 48px; + width: 48px; +} + #prvmail-end { clear:both; } diff --git a/templates/mail_conv.tpl b/templates/mail_conv.tpl index dd091249a..5bda169b6 100644 --- a/templates/mail_conv.tpl +++ b/templates/mail_conv.tpl @@ -1,6 +1,6 @@
-
+
{{$mail.from_name}} diff --git a/templates/mail_list.tpl b/templates/mail_list.tpl index 18a2acc96..f05221dd6 100644 --- a/templates/mail_list.tpl +++ b/templates/mail_list.tpl @@ -1,30 +1,29 @@ -
- - -
-
- - {{$from_name}} - -
-
-
{{$ago}}
- -
{{$from_name}}
- -

{{$subject}}

-
- × -

{{$count}}

+
  • +
    + +
    +
    + + {{$from_name}} + +
    +
    +
    {{$ago}}
    + +

    {{$from_name}}

    + + × +

    {{$count}}

    +
    +
    + +
    +
    +
    - -
  • -
    - -
    - + \ No newline at end of file diff --git a/templates/message_side.tpl b/templates/message_side.tpl new file mode 100644 index 000000000..88fe8ea42 --- /dev/null +++ b/templates/message_side.tpl @@ -0,0 +1,12 @@ +
    + + + {{if $tabs}} +
    +
      + {{$tabs}} +
    +
    + {{/if}} + +
    diff --git a/templates/msg-header.tpl b/templates/msg-header.tpl index 6645a4a74..8d648d89a 100644 --- a/templates/msg-header.tpl +++ b/templates/msg-header.tpl @@ -58,6 +58,7 @@ else //var objDiv = document.getElementById("mail-conversation"); //objDiv.scrollTop = objDiv.scrollHeight; $('#mail-conversation').perfectScrollbar(); + $('#message-preview').perfectScrollbar(); $('#mail-conversation').scrollTop($('#mail-conversation')[0].scrollHeight);