diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-06-16 17:29:51 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-06-17 13:20:44 +0200 |
| commit | cc67068360ef65a4e34a4b4883d88eef92128a49 (patch) | |
| tree | c80ca6c49eb10d4e69decff249809e3b36d8ad06 /addons/web_tour/static/src/less | |
| parent | d713a3ecc6de18c19de0be6821d6f68103e68f96 (diff) | |
[IMP] web_tour: tips on the border of the screen
* Adapt code to handle position/width/padding with pixel-precision
* Adapt overlay to not overflow the screen
* Do not let the content overflow the tip when closed
Diffstat (limited to 'addons/web_tour/static/src/less')
| -rw-r--r-- | addons/web_tour/static/src/less/tip.less | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_tour/static/src/less/tip.less b/addons/web_tour/static/src/less/tip.less index 238ec409b1e..6c9cbc981e4 100644 --- a/addons/web_tour/static/src/less/tip.less +++ b/addons/web_tour/static/src/less/tip.less @@ -36,6 +36,7 @@ height: @o-tip-size; border: @o-tip-border-width solid @odoo-brand-primary; border-radius: 50%; + padding: 0; // ! Cannot be changed ! Javascript rely on this. z-index: @zindex-modal+1; background-color: @o-tip-background-color; box-shadow: 0 0 2px 0 @odoo-brand-lightsecondary; @@ -101,7 +102,8 @@ z-index: -1; } > .o_tooltip_content { - padding: 8px 15px; + overflow: hidden; + padding: floor(@o-tip-size/4) floor(@o-tip-size/2); visibility: hidden; transition: visibility 0s ease 0s; color: black; |
