summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/xml/tip.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-06-07 17:03:42 +0200
committerAaron Bohy <aab@odoo.com>2016-06-16 14:59:40 +0200
commitd0993c19adc421dc3dd4edd0dacda045e07d5cbb (patch)
tree1aa7bffd3a4e3fc77c8e3c80439eb4138b8e064d /addons/web_tour/static/src/xml/tip.xml
parent38bb6a7f8135a676046bd810cd6c26d2198302c0 (diff)
[IMP] web_tour: tip animation
* Improve the JS/LESS so that its content makes the tip grow with a bubble effect (instead of using a popover). * Avoid flickering when the mouse leave/enter the tip or move between the tip and its anchor element. * Use text-align:left instead of justify * Set the content width in JS (to a larger width) to be customizable * Round LESS variable to avoid values like 266.6666666666 * Set opening direction according to viewport: - Top and bottom tips open towards the right except if they overflow the window on this right - Left and right tips open towards the bottom except if they overflow the window on this bottom * Improve the 'Skip these steps' mechanism (which is easier as we don't use bootstrap's popover anymore)
Diffstat (limited to 'addons/web_tour/static/src/xml/tip.xml')
-rw-r--r--addons/web_tour/static/src/xml/tip.xml11
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/web_tour/static/src/xml/tip.xml b/addons/web_tour/static/src/xml/tip.xml
index b8109646dcd..8874b5b72e8 100644
--- a/addons/web_tour/static/src/xml/tip.xml
+++ b/addons/web_tour/static/src/xml/tip.xml
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
-
-<t t-name="Tip">
- <div class="o_tooltip">
- <div t-attf-class="o_breathing #{widget.info.position}"/>
+ <div t-name="Tip" t-attf-class="o_tooltip #{widget.info.position}">
+ <div class="o_tooltip_overlay"/>
+ <div class="o_tooltip_content" t-attf-style="width: #{widget.info.width}px;">
+ <t t-raw="widget.info.content"/>
+ </div>
</div>
-</t>
-
</templates>