Skip to content

Commit

Permalink
Merge pull request #1174 from CruGlobal/8427-beacon-placement
Browse files Browse the repository at this point in the history
[MPDX-8427] Move beacon above Windows scrollbar
  • Loading branch information
canac authored Nov 6, 2024
2 parents fd125c5 + 5b0ab44 commit 758815f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pages/helpjuice.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#helpjuice-widget {
bottom: 160px !important;
--right-position: 80px;
}

Expand Down Expand Up @@ -38,7 +39,9 @@

#helpjuice-widget.bottomRight {
right: 10px !important;
transition: right 0.3s ease;
@media not (prefers-reduced-motion) {
transition: right 0.3s ease;
}
}

#helpjuice-widget.bottomRight.visible,
Expand All @@ -47,14 +50,13 @@
}

/*
* Expand the hover hitbox to be 20px above and below the button, extend to the right edge of the
* screen and be 20px past the left edge of the button.
* Expand the hover hitbox to extend to the right edge of the screen and be 20px past the left edge
* of the button.
*/
#helpjuice-widget.bottomRight::before {
content: '';
position: absolute;
height: calc(var(--right-position) + 40px);
top: -20px;
height: var(--right-position);
right: calc(var(--right-position) * -1);
left: -20px;
z-index: -1;
Expand Down

0 comments on commit 758815f

Please sign in to comment.