From de9c2135a63851106818d052e29326e73ad0b418 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 19 Jan 2016 09:24:21 +0100 Subject: [PATCH] [FIX] im_livechat,mail: external lib: missing dependency @navbar-height was used in chat_window.less since rev. 8397abd but wasn't defined in the external_lib bundle (light bundle to embed im_livechat in external pages). This rev. also fixes some glitches of the chat window due to missing font-awesome, and global rule 'box-sizing: border-box' on all elements. --- .../src/less/im_livechat_bootstrap.less | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/addons/im_livechat/static/src/less/im_livechat_bootstrap.less b/addons/im_livechat/static/src/less/im_livechat_bootstrap.less index 83c3bfb7757..8df74c9796d 100644 --- a/addons/im_livechat/static/src/less/im_livechat_bootstrap.less +++ b/addons/im_livechat/static/src/less/im_livechat_bootstrap.less @@ -1,7 +1,32 @@ -// bootstrap variables needed for embedding of im_livechat outside website +// bootstrap variables and vendor prefixes needed to embed im_livechat in external pages @gray-light: lighten(#000, 46.7%); // #777 @gray-lighter: lighten(#000, 93.5%); // #eee @screen-xs-max: 767px; +@navbar-height: 44px; .text-muted { color: @gray-light; } +.box-sizing(@boxmodel) { + -webkit-box-sizing: @boxmodel; + -moz-box-sizing: @boxmodel; + box-sizing: @boxmodel; +} + +.o_chat_window { + &,* { + .box-sizing(border-box); + } + .o_chat_header { + height: 28px; + .fa-close { + text-decoration: none; + font-weight: bold; + &:before { + content: "X"; + } + } + > span { + margin: auto 0; + } + } +}