From 6d84bb78996667f26aa0617ba429b9d1b96b538e Mon Sep 17 00:00:00 2001 From: Minh Tran Date: Tue, 10 Apr 2012 18:14:24 +0200 Subject: [PATCH] restyling of wall and chatter bzr revid: mit@openerp.com-20120410161424-pdgx77dn0o7t31am --- addons/mail/static/src/css/mail.css | 65 +++++++++++++++++++---------- addons/mail/static/src/js/mail.js | 2 +- addons/mail/static/src/xml/mail.xml | 13 +++--- 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index d920455537f..694de02a5cb 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -4,17 +4,23 @@ div.oe_mail_wall { overflow: auto; - padding: 5px; + padding: 0; + background: white; } -div.oe_mail_wall_search { - width: 55%; +/*div.oe_mail_wall_search {*/ + /*width: 550px;*/ +/*}*/ + +.oe_mail_wall_button_comment { + float: right; } /* 2 columns view */ div.oe_mail_wall_left { float: left; - width: 65%; + width: 560px; + margin: 8px; } div.oe_mail_wall_right { @@ -22,6 +28,10 @@ div.oe_mail_wall_right { width: 34%; } +.oe_mail_wall_threads { + margin-top: 8px; +} + .oe_mail_wall_thread div.oe_mail_thread_act .oe_mail_action_textarea, div.oe_mail_thread_subthread .oe_mail_action_textarea { height: 20px; padding: 2px; @@ -47,16 +57,15 @@ div.oe_mail_wall_more { .oe_mail_recthread { overflow: auto; - padding: 5px 5px 5px 5px; } /* Left-side CSS */ .oe_mail_recthread_actions { - margin-bottom: 10px; + margin-bottom: 8px; } .oe_mail_recthread_followers { - margin-bottom: 10px; + margin-bottom: 8px; } .oe_mail_followers_action, .oe_mail_followers_display { @@ -70,21 +79,16 @@ div.oe_mail_wall_more { .oe_mail_recthread_right { float: right; - width: 25%; - margin-right: 5%; + width: 240px; } .oe_mail_button_follow, .oe_mail_button_unfollow { - width: 120px; + /*width: 120px;*/ } .oe_mail_button_followers { - display: inline; - width: 120px; -} - -.oe_mail_followers h4 { - margin: 0 0 8px; + display: inline-block; + width: 240px; } /* ------------------------------ */ @@ -99,7 +103,7 @@ div.oe_mail_thread_act { div.oe_mail_thread_display { white-space: normal; - margin-bottom: 5px; + /*margin-bottom: 5px;*/ } div.oe_mail_thread_subthread { @@ -116,8 +120,7 @@ li.oe_mail_thread_msg { padding: 1px; } -.notification, .email { - background: #E0E0E0; +.notification, .comment { padding: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; @@ -126,8 +129,16 @@ li.oe_mail_thread_msg { border-radius: 4px; } -.comment { - padding: 4px; +.oe_mail_thread_msg > .comment { + background: #eee; +} + +.oe_mail_thread_subthread .comment { + background: white; +} + +.notification { + background: #eee; } .notification:after, .email:after, .comment:after { @@ -215,6 +226,14 @@ input.oe_mail, textarea.oe_mail { border-radius: 3px; } +.oe_mail_wall .oe_mail_wall_act textarea { + width: 550px; +} + +textarea.oe_mail { + height: 60px; +} + input.oe_mail:focus, textarea.oe_mail:focus { outline: 0; border-color: rgba(82, 168, 236, 0.8); @@ -246,6 +265,10 @@ p.oe_mail_msg { font-weight: bold; } +.oe_mail_msg_reply, .oe_mail_msg_delete { + margin-right: 4px; +} + a.oe_mail_oe_intlink { color: #8786b7; } diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index fc6cb833d4b..fcf02aafddd 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -638,7 +638,7 @@ openerp.mail = function(session) { load_search_view: function (view_id, defaults, hidden) { var self = this; this.searchview = new session.web.SearchView(this, this.ds_msg, view_id || false, defaults || {}, hidden || false); - var search_view_loaded = this.searchview.appendTo(this.$element.find('div.oe_mail_wall_search')); + var search_view_loaded = this.searchview.appendTo(this.$element.find('.oe_view_manager_row')); return $.when(search_view_loaded).then(function () { self.searchview.on_search.add(self.do_searchview_search); }); diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 0f49902b6b3..271064db358 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -2,13 +2,17 @@