summaryrefslogtreecommitdiff
path: root/addons/web_tour
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-11-17 11:44:21 +0000
committerqsm-odoo <qsm@odoo.com>2020-11-17 11:44:21 +0000
commit34f2303327e8f2b9b7e95bc33c6246d52a633dc1 (patch)
treed00355feccf31864d52d94550543eabe372b08d2 /addons/web_tour
parentbeeb83ca53c52dc189faaff4d76711bbcf24a08c (diff)
[FIX] web_tour: better point at the anchor element
Before this commit, tips were bouncing from 6px from the anchor to 0px from the anchor. Now they bounce from 3px from the anchor to 3px inside the anchor. closes odoo/odoo#61846 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_tour')
-rw-r--r--addons/web_tour/static/src/scss/tip.scss11
1 files changed, 6 insertions, 5 deletions
diff --git a/addons/web_tour/static/src/scss/tip.scss b/addons/web_tour/static/src/scss/tip.scss
index 14413423cd7..468e82da49a 100644
--- a/addons/web_tour/static/src/scss/tip.scss
+++ b/addons/web_tour/static/src/scss/tip.scss
@@ -1,6 +1,7 @@
$o-tip-width: 28px;
$o-tip-height: 38px;
-$o-tip-anchor-space: 3px;
+$o-tip-anchor-space: 0;
+$o-tip-bounce-half-size: 3px;
$o-tip-color: $o-enterprise-color;
$o-tip-border-width: 3px;
$o-tip-border-color: white;
@@ -13,18 +14,18 @@ $o-tip-size-delay-in: $o-tip-duration-in - $o-tip-size-duration-in;
@keyframes move-left-right {
0% {
- transform: translate(-$o-tip-anchor-space, 0);
+ transform: translate(-$o-tip-bounce-half-size, 0);
}
100% {
- transform: translate($o-tip-anchor-space, 0);
+ transform: translate($o-tip-bounce-half-size, 0);
}
}
@keyframes move-bottom-top {
0% {
- transform: translate(0, -$o-tip-anchor-space);
+ transform: translate(0, -$o-tip-bounce-half-size);
}
100% {
- transform: translate(0, $o-tip-anchor-space);
+ transform: translate(0, $o-tip-bounce-half-size);
}
}