From 60d6c5402b3ecb705756a566b3e712b7bd8c0dcc Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 24 Apr 2019 08:51:34 +0000 Subject: [FIX] web: change bootstrap fonts only for reports Commit 42530b02fe14 was fixing a bug in reports that were using the standard bootstrap fonts instead of the changes we made in $font-family-sans-serif To solve this, 42530b02fe14 replicated the change in the file web_editor/static/src/scss/bootstrap_overridden.scss which is imported in report_assets_common **before** web._assets_bootstrap This was solving the issue for the report but had also the side-effect of changing body font-family in enterprise as the bootstrap_overridden.scss file is also used in web_editor._assets_backend_helpers and web_editor._assets_frontend_helpers 42530b02fe14 had effect only on enterprise where the desired font is Roboto/Noto Create a new bootstrap_overridden (6th of the name) file only for report closes odoo/odoo#32902 Signed-off-by: Martin Trigaux (mat) --- addons/web/static/src/scss/bootstrap_overridden_report.scss | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 addons/web/static/src/scss/bootstrap_overridden_report.scss (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/scss/bootstrap_overridden_report.scss b/addons/web/static/src/scss/bootstrap_overridden_report.scss new file mode 100644 index 00000000000..a6e1cd23b32 --- /dev/null +++ b/addons/web/static/src/scss/bootstrap_overridden_report.scss @@ -0,0 +1,2 @@ +// remove Noto Color Emoji +$font-family-sans-serif: "Noto", "Lucida Grande", Helvetica, Verdana, Arial, sans-serif; -- cgit v1.2.3 From baf3d39bf07af8f66d0a71acbaa48ae12fdb7392 Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Fri, 3 May 2019 12:36:52 +0000 Subject: [FIX] web: Use Noto as fallback to Lato Arabic customers are complaining the Lato font is very odd looking for Arabic scripts. Furthermore, since #32312 Noto is used as the prefered font to display arabic scripts. The classes are used by the "Company Tagline" configured along with the template in use in the general settings. opw-1946109 closes odoo/odoo#33141 Signed-off-by: Martin Trigaux (mat) --- addons/web/static/src/scss/layout_background.scss | 2 +- addons/web/static/src/scss/layout_boxed.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/scss/layout_background.scss b/addons/web/static/src/scss/layout_background.scss index caeb1f0c2bf..93ac948b2ad 100644 --- a/addons/web/static/src/scss/layout_background.scss +++ b/addons/web/static/src/scss/layout_background.scss @@ -1,5 +1,5 @@ .o_background_footer, .o_background_header, .o_report_layout_background { - font-family: 'Lato'; + font-family: 'Lato', 'Noto'; color: gray('700'); } .o_background_header { diff --git a/addons/web/static/src/scss/layout_boxed.scss b/addons/web/static/src/scss/layout_boxed.scss index bf19b6fb7ae..2129f583b21 100644 --- a/addons/web/static/src/scss/layout_boxed.scss +++ b/addons/web/static/src/scss/layout_boxed.scss @@ -1,5 +1,5 @@ .o_boxed_footer, .o_boxed_header, .o_report_layout_boxed { - font-family: 'Lato'; + font-family: 'Lato' 'Noto'; color: gray('700'); font-size: 12px; } -- cgit v1.2.3 From 32d696ec43a9c9a9b70ccd5e2039dc5ab5a285fa Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 6 May 2019 08:51:32 +0000 Subject: [FIX] web: blurry menu dropdown on chrome when zoom != 100% This rev. disables Popper.js 3d transformation for positioning bootstrap dropdowns in navbar, as this transformation causes a rendering issue on webkit-based browsers (the text in the dropdown is blurry). See https://github.com/twbs/bootstrap/issues/23590 Note that it has already been disabled for the other menu dropdowns (user menu, debug menu) by rev. 5373db1. Another solution would have been to override the default value in our bootstrap.js extension file, but for dropdowns that aren't in the navbar, the dynamic positionning could be interesting. Fixes #33096 closes odoo/odoo#33174 Signed-off-by: Martin Geubelle (mge) --- addons/web/static/src/xml/base.xml | 2 +- addons/web/static/src/xml/menu.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 359eea9b631..223a7b7785c 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1553,7 +1553,7 @@
  • -
  • -