[IMP] mail: followers css + widget integration in inbox and formview

bzr revid: fva@openerp.com-20121024152043-q5j7hpa4rur39k03
This commit is contained in:
Frédéric van der Essen
2012-10-24 17:20:43 +02:00
parent 7a507ea93e
commit 8d9fdcc352
5 changed files with 117 additions and 63 deletions
+74 -8
View File
@@ -1,6 +1,3 @@
.oe_mail_wall_threads{
padding: 16px;
}
/* ------------ MAIL WIDGET --------------- */
.openerp .oe_mail, .openerp .oe_mail *{
@@ -9,7 +6,7 @@
.openerp .oe_mail {
display: inline-block;
position: relative;
width: 740px;
width: 720px;
margin: 0px;
}
.openerp .oe_mail .oe_thread{
@@ -27,6 +24,7 @@
border-radius: 2px;
margin-bottom: 2px;
min-height: 40px;
border: solid 1px rgba(0,0,0,0.03);
}
.openerp .oe_mail .oe_msg_indented{
background: #FFF;
@@ -58,7 +56,6 @@
margin-left: 40px;
}
.openerp .oe_mail .oe_msg .oe_msg_footer{
height: 16px;
padding-left: 4px;
overflow: hidden;
font-size: 11px;
@@ -69,9 +66,6 @@
opacity: 1;
-webkit-transition: opacity 0.2s linear;
}
.openerp .oe_mail .oe_msg.oe_msg_composer .oe_msg_footer{
height: auto;
}
.openerp .oe_mail .oe_msg .oe_msg_content{
display: block;
overflow: hidden;
@@ -248,3 +242,75 @@
opacity: 1;
-webkit-transition: opacity 0.2s linear;
}
/* ---------------- FOLLOWERS ------------------ */
.openerp .oe_followers{
position: relative;
display: inline-block;
padding-top: 4px;
width: 120px;
float: right;
}
/* a) THE FOLLOW BUTTON */
.openerp .oe_followers button.oe_follower{
display: block;
text-align: center;
width:100%;
}
.openerp .oe_followers button.oe_follower.oe_following{
background-color: #3465A4;
background-image: -webkit-linear-gradient(top, #729FCF, #3465A4);
color: white;
}
.openerp .oe_followers button.oe_follower .oe_follow,
.openerp .oe_followers button.oe_follower .oe_unfollow,
.openerp .oe_followers button.oe_follower .oe_following{
display: none;
}
/* a.1) when following, show 'following' */
.openerp .oe_followers button.oe_follower.oe_following .oe_following{
display: inline;
}
/* a.2) when following and hovering, show 'unfollow' */
.openerp .oe_followers button.oe_follower.oe_following:hover .oe_following{
display: none;
}
.openerp .oe_followers button.oe_follower.oe_following:hover .oe_unfollow{
display: inline;
}
/* a.3) when not following show 'follow' */
.openerp .oe_followers button.oe_follower.oe_notfollow .oe_follow{
display: inline;
}
.openerp .oe_followers .oe_subtype_list{
margin-bottom: 4px;
}
/* b) THE FOLLOWERS */
.openerp .oe_followers .oe_follower_title{
margin-top: 4px;
}
.openerp .oe_followers .oe_partner {
height: 32px;
overflow: hidden;
}
.openerp .oe_followers .oe_partner img{
width: 32px;
margin-right:4px;
border-radius: 2px;
}
/* ----------- FORM INTEGRATION ------------ */
/* Nothing to do yay! */
/* ----------- INBOX INTEGRATION ----------- */
.openerp .oe_mail_wall .oe_mail{
margin: 16px;
}