summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2018-12-13 15:04:05 +0000
committerSébastien Theys <seb@odoo.com>2018-12-24 15:03:29 +0000
commitf1c196e609d74f7eb48aadd79973e3138fec0593 (patch)
treecbcddd74b78c64a84b3be7f88078326020d12819 /addons/web/static/src
parent3b30f7ad05295ac47aca19b4fdab4fee513adb62 (diff)
[FIX] portal: change width of portal modal to match backend
Some features are common to portal and backend, such as the sign modal in enterprise. This commit uniformize the width of the modal to make it more consistent between the two by default. Of course themes can still customize this behavior. closes odoo/odoo#29521
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/scss/bootstrap_overridden.scss4
-rw-r--r--addons/web/static/src/scss/primary_variables.scss3
2 files changed, 5 insertions, 2 deletions
diff --git a/addons/web/static/src/scss/bootstrap_overridden.scss b/addons/web/static/src/scss/bootstrap_overridden.scss
index 09dd5ddbfd4..e8406c948e9 100644
--- a/addons/web/static/src/scss/bootstrap_overridden.scss
+++ b/addons/web/static/src/scss/bootstrap_overridden.scss
@@ -133,8 +133,8 @@ $modal-inner-padding: $o-horizontal-padding;
// FIXME $modal-title-padding ?
-$modal-lg: 980px;
-$modal-md: 650px;
+$modal-lg: $o-modal-lg;
+$modal-md: $o-modal-md;
// Breadcrumbs
diff --git a/addons/web/static/src/scss/primary_variables.scss b/addons/web/static/src/scss/primary_variables.scss
index e3b520e47f1..02835171794 100644
--- a/addons/web/static/src/scss/primary_variables.scss
+++ b/addons/web/static/src/scss/primary_variables.scss
@@ -65,6 +65,9 @@ $o-sheet-vpadding: 24px;
$o-notification-error-bg-color: #F16567;
$o-notification-info-bg-color: #FCFBEA;
+$o-modal-lg: 980px;
+$o-modal-md: 650px;
+
// Needed for having no spacing between sheet and mail body in mass_mailing:
// Different required cancel paddings between web and web_enterprise
$o-sheet-cancel-tpadding: 0px;