diff options
| author | David Beguin <dbe@odoo.com> | 2020-01-17 12:49:56 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2020-01-17 14:54:58 +0000 |
| commit | 860768b79bd710e97d51fc2ee992eeb41a6dcf96 (patch) | |
| tree | 90c09973d65bab64175557db49c42608d65da39c /addons | |
| parent | 307f51ab8597ca14e374f809401f0cf84dcde954 (diff) | |
[IMP] portal, web: move wrapwrap flex style rules from portal to web
This commit moves the flex rules of #wrapwrap div to web so it can be used in
survey.
This is needed to make the survey footer stick to the bottom of the screen
even if main has not enough content to fill the page.
This commit prepares survey redesign.
Task ID: '2150291'
PR #43237
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/portal/static/src/scss/portal.scss | 15 | ||||
| -rw-r--r-- | addons/web/static/src/scss/base_frontend.scss | 15 | ||||
| -rw-r--r-- | addons/web/views/webclient_templates.xml | 1 |
3 files changed, 16 insertions, 15 deletions
diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index d325cab77e3..0bf8258fa5a 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -24,21 +24,6 @@ $o-portal-bg-color: desaturate($gray-200, 100%); $o-portal-use-default-colors: $body-bg == $o-portal-default-body-bg; // Frontend general -#wrapwrap { - position: relative; - display: flex; - flex-flow: column nowrap; - width: 100%; - min-height: 100%; - - > * { - flex: 0 0 auto; - } - > main { - flex: 1 0 auto; - } -} - header { .navbar-brand { flex: 0 0 auto; diff --git a/addons/web/static/src/scss/base_frontend.scss b/addons/web/static/src/scss/base_frontend.scss new file mode 100644 index 00000000000..1175ab2c990 --- /dev/null +++ b/addons/web/static/src/scss/base_frontend.scss @@ -0,0 +1,15 @@ +// Frontend general +#wrapwrap { + position: relative; + display: flex; + flex-flow: column nowrap; + width: 100%; + min-height: 100%; + + > * { + flex: 0 0 auto; + } + > main { + flex: 1 0 auto; + } +} diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index a7798e8637a..15bd4c4923a 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -399,6 +399,7 @@ </t> <t t-call="web._assets_bootstrap"/> + <link rel="stylesheet" type="text/scss" href="/web/static/src/scss/base_frontend.scss"/> <link rel="stylesheet" type="text/scss" href="/web/static/src/scss/lazyloader.scss"/> <link rel="stylesheet" type="text/scss" href="/web/static/src/scss/navbar_mobile.scss"/> <link rel="stylesheet" type="text/scss" href="/web/static/src/scss/notification.scss"/> |
