From d6293730fc1a841e60bb145e5ac6470205effe9f Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 25 Sep 2015 23:26:28 +0200 Subject: private mail: some work on conversations view --- view/css/mod_mail.css | 70 +++++++-------------------------------- view/theme/redbasic/css/style.css | 4 +-- view/tpl/mail_conv.tpl | 24 +++++++------- view/tpl/prv_message.tpl | 8 ++--- 4 files changed, 30 insertions(+), 76 deletions(-) (limited to 'view') diff --git a/view/css/mod_mail.css b/view/css/mod_mail.css index 11affffbd..f0f4458fa 100644 --- a/view/css/mod_mail.css +++ b/view/css/mod_mail.css @@ -1,26 +1,3 @@ -/* message */ - -#mail-list-wrapper { - border-top: 1px solid #ccc; - padding: 5px 5px 5px 5px; -} - -span.mail-list { - float: left; - width: 20%; -} - -img.mail-list-sender-photo { - height: 24px; - width: 24px; - float: left; - margin-right: 30px; -} - -.mail-list-remove { - width: 5% !important; -} - /* message/new */ #prvmail-to-label, @@ -48,49 +25,26 @@ img.mail-list-sender-photo { cursor: pointer; } -#prvmail-end { - clear: both; -} - /* message/id */ .mail-conv-outside-wrapper { - margin-top: 30px; + display: table; + table-layout: fixed; } -.mail-conv-sender, -.mail-conv-detail { - float: left; -} - -.mail-conv-detail { - margin-left: 20px; - width: 500px; -} - -.mail-conv-subject { - font-size: 1.4em; - margin: 10px 0; -} - -.mail-conv-delete-wrapper { - float: right; - margin-right: 30px; - margin-top: 15px; - margin-bottom: 5px; -} - -.mail-conv-recall-wrapper { - float: right; +.mail-conv-sender { + display: table-cell; + vertical-align: top; margin-right: 10px; - margin-top: 15px; - margin-bottom: 5px; } -.mail-conv-outside-wrapper-end { - clear: both; +.mail-conv-sender-name { + font-weight: bold; } -.mail-conv-break { - clear: both; +.mail-conv-detail { + display: table-cell; + vertical-align: top; + width: 100%; + padding-left: 10px; } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index efb5b39ba..2ff6c1eb4 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1565,9 +1565,9 @@ th,td { overflow: hidden; } -/* message */ +/* mail */ -img.mail-list-sender-photo { +img.mail-conv-sender-photo { -moz-border-radius: $radiuspx; border-radius: $radiuspx; } diff --git a/view/tpl/mail_conv.tpl b/view/tpl/mail_conv.tpl index ec8f8c1e3..0a5e5a2c5 100755 --- a/view/tpl/mail_conv.tpl +++ b/view/tpl/mail_conv.tpl @@ -1,18 +1,18 @@
- {{$mail.from_name}} -
{{$mail.from_name}}
+ {{$mail.from_name}}
-
+
{{if $mail.is_recalled}}{{$mail.is_recalled}}{{/if}} -
{{$mail.date}}
-
{{$mail.subject}}
+ +
{{$mail.date}}
{{$mail.body}}
-
- {{if $mail.can_recall}} -
- {{/if}} -
-
+
+ {{if $mail.can_recall}} + + {{/if}} + +
+
+
-
diff --git a/view/tpl/prv_message.tpl b/view/tpl/prv_message.tpl index c6f393aa4..a83896f32 100755 --- a/view/tpl/prv_message.tpl +++ b/view/tpl/prv_message.tpl @@ -8,7 +8,7 @@
{{$to}}
{{if $showinputs}} - + {{else}} {{$select}} @@ -18,10 +18,10 @@
{{$subject}}
- +
{{$yourmessage}}
- +
@@ -51,6 +51,6 @@
-
+
-- cgit v1.2.3