From bc50f53d653b41fbf342489e63e9b161a751c4d0 Mon Sep 17 00:00:00 2001 From: Dharmraj Jhala Date: Wed, 29 Oct 2014 11:30:57 +0530 Subject: [IMP] website_forum: extended biography The biography of established users (with high karma) can be seen with an expanded tooltip. This gives to users that participate some kind of reward and gratitude of their work. --- .../website_forum/static/src/css/website_forum.css | 30 ++++++++++++++++++++- .../static/src/css/website_forum.sass | 31 +++++++++++++++++++++- 2 files changed, 59 insertions(+), 2 deletions(-) (limited to 'addons/website_forum/static/src/css') diff --git a/addons/website_forum/static/src/css/website_forum.css b/addons/website_forum/static/src/css/website_forum.css index 2e1a4ebaa38..3a6deee2560 100644 --- a/addons/website_forum/static/src/css/website_forum.css +++ b/addons/website_forum/static/src/css/website_forum.css @@ -45,11 +45,15 @@ height: auto !important; } -img.img-avatar { +img.o_forum_avatar { max-height: 40px; margin-right: 10px; } +img.o_forum_avatar_big { + max-width: 75px; + margin-right: 10px; } + .oe_grey { background-color: #eeeeee; } @@ -143,3 +147,27 @@ button.btn-link.text-muted { color: #999; } +.o_forum_user_bio_expand { + position: absolute; + z-index: 200; + display: none; } + +.o_forum_tooltip_heading { + padding: 0px; + margin: 0px; + font-size: 18px; } + +.o_forum_user_bio { + color: black; + width: 318px; + min-height: 100px; + cursor: auto; + border: 1px solid darkgray; + background-color: whitesmoke; + line-height: 13px; + font-size: 11px; + word-wrap: break-word; } + .o_forum_user_bio .o_forum_tooltip_line { + min-height: 13px; } + .o_forum_user_bio .o_forum_tooltip_header { + min-height: 75px; } diff --git a/addons/website_forum/static/src/css/website_forum.sass b/addons/website_forum/static/src/css/website_forum.sass index 4cfa6e97c74..3e2fa55557f 100644 --- a/addons/website_forum/static/src/css/website_forum.sass +++ b/addons/website_forum/static/src/css/website_forum.sass @@ -36,10 +36,14 @@ max-width: 600px height: auto !important -img.img-avatar +img.o_forum_avatar max-height: 40px margin-right: 10px +img.o_forum_avatar_big + max-width: 75px + margin-right: 10px + .oe_grey background-color: #eeeeee @@ -112,3 +116,28 @@ a.no-decoration button.btn-link.text-muted color: #999 + +.o_forum_user_bio_expand + position: absolute + z-index: 200 + display: none + +.o_forum_tooltip_heading + padding: 0px + margin: 0px + font-size: 18px + +.o_forum_user_bio + color: black + width: 318px + min-height: 100px + cursor: auto + border: 1px solid darkgray + background-color: whitesmoke + line-height: 13px + font-size: 11px + word-wrap: break-word + .o_forum_tooltip_line + min-height: 13px + .o_forum_tooltip_header + min-height: 75px -- cgit v1.2.3