From 7c842393f8b6c9687a378102e33005fef04bae9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Fri, 19 Oct 2012 18:03:11 +0200 Subject: [PATCH] [IMP] mail: a more minimalist design bzr revid: fva@openerp.com-20121019160311-ssqosr9wdkmcmeaw --- addons/mail/static/src/css/mail.css | 30 +++++++++++++++++++++-------- addons/mail/static/src/xml/mail.xml | 4 +++- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index a3c3425f305..cdbc9701703 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -3,7 +3,7 @@ } .openerp .oe_mail { position: relative; - width: 560px; + width: 740px; margin: 16px; } .openerp .oe_mail .oe_thread{ @@ -17,15 +17,15 @@ .openerp .oe_mail .oe_msg{ position: relative; - background: #f7f7f7; + background: #F4F5FA; border-radius: 2px; - border: solid 1px #ececec; - margin-bottom: 4px; - min-height: 44px; + margin-bottom: 2px; + min-height: 40px; } .openerp .oe_mail .oe_msg:not(.oe_lvl_0){ - background: #eeecfc; - border: solid 1px #eee5ff; + background: #FFF; + border: none; + margin-bottom:0px; } .openerp .oe_mail .oe_msg .oe_msg_left{ position: absolute; @@ -47,14 +47,22 @@ height: 24px; } .openerp .oe_mail .oe_msg .oe_msg_footer{ - height: 32px; + height: 16px; padding-left: 4px; overflow: hidden; + font-size: 11px; + opacity:0; + -webkit-transition: opacity 0.2s linear; +} +.openerp .oe_mail .oe_thread:hover .oe_msg_footer{ + opacity: 0.8; + -webkit-transition: opacity 0.2s linear; } .openerp .oe_mail .oe_msg .oe_msg_content{ display: block; overflow: hidden; padding: 4px; + padding-bottom:1px; } .openerp .oe_mail .oe_msg .oe_msg_right .oe_msg_icons span{ float:right; @@ -62,6 +70,12 @@ height:24px; line-height:24px; text-align: center; + opacity: 0.2; + -webkit-transition: opacity 0.2s linear; +} +.openerp .oe_mail .oe_msg:hover .oe_msg_right .oe_msg_icons span{ + opacity: 1; + -webkit-transition: opacity 0.1s linear; } .openerp .oe_mail .oe_msg .oe_msg_right .oe_msg_icons a{ text-decoration: none; diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 39cd5bbce38..50247fd6164 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -219,7 +219,7 @@