Skip to content
Snippets Groups Projects
Commit 34f23033 authored by qsm-odoo's avatar qsm-odoo
Browse files

[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: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent beeb83ca
Branches
Tags
No related merge requests found
$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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment