diff options
| author | Simon Lejeune <sle@openerp.com> | 2014-12-23 10:32:27 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2014-12-23 10:32:27 +0100 |
| commit | b7e2f5be8b060e4e048138441be039cccb705fe1 (patch) | |
| tree | 36eb8c4f210dd0fc384b28a95d65cab46533f654 /addons/web/static | |
| parent | 63b92c6bfd22883e17e845c80286002fdf8c597d (diff) | |
[FIX] web: base.css: fallback for browsers without calc support
see https://developer.mozilla.org/en-US/docs/Web/CSS/calc
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/css/base.css | 2 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 236b038bab8..1b816cd7945 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -86,11 +86,13 @@ */ } .openerp.openerp_webclient_container { + height: 95%; height: calc(100% - 34px); overflow: auto; } @media (max-width: 768px) { .openerp.openerp_webclient_container { + height: 90%; height: calc(100% - 52px); } } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 7343d1e0406..2dc158f9e33 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -201,10 +201,12 @@ $sheet-padding: 16px font-size: 13px background: white &.openerp_webclient_container + height: 95% // fallback for browsers without support for calc() height: calc(100% - 34px) overflow: auto @media (max-width: 768px) &.openerp_webclient_container + height: 90% // fallback for browsers without support for calc() height: calc(100% - 52px) // }}} //Placeholder style{{{ |
