From 8fd0f8664be5d5b3c582ae21284ba9f8f6b8a0c8 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Mon, 27 Mar 2017 14:15:39 +0200 Subject: [PATCH] [FIX] theme_default: full width in mobile When a theme is customized to be 'boxed', the website is not full width in mobile, and there is an horizontal scrolling. To fix this issue, we removed only set the width of the "wrapwrap" div to 85% when the screen is bigger than a phone. --- .../static/src/less/option_layout_boxed.less | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/theme_default/static/src/less/option_layout_boxed.less b/addons/theme_default/static/src/less/option_layout_boxed.less index db449d79b4d..4e258175923 100644 --- a/addons/theme_default/static/src/less/option_layout_boxed.less +++ b/addons/theme_default/static/src/less/option_layout_boxed.less @@ -1,4 +1,6 @@ #wrapwrap { - width: 85%; - margin: 0 auto; -} \ No newline at end of file + @media (min-width: @screen-sm-min){ + width: 85%; + margin: 0 auto; + } +}