|
17 | 17 | box-shadow: 0 0 0 10000px $eccgui-color-modal-backdrop; |
18 | 18 | } |
19 | 19 |
|
20 | | -.#{$eccgui}-visual-tour__overlay { |
| 20 | +.#{$eccgui}-visual-tour__backdrop { |
21 | 21 | position: fixed; |
22 | 22 | inset: 0; |
23 | 23 | box-sizing: content-box; |
24 | 24 | opacity: 0; |
25 | 25 | } |
26 | 26 |
|
27 | | -// TODO: From https://popper.js.org/docs/v2/tutorial/ until we fine-tune this part |
28 | | - |
29 | | -#arrow, |
30 | | -#arrow .#{$eccgui}-visual-tour__tooltip__arrow-shape, |
31 | | -#arrow .#{$eccgui}-visual-tour__tooltip__arrow-shape::before { |
32 | | - position: absolute; |
33 | | - border-right: 8px solid transparent; |
34 | | - border-bottom: 8px solid dimgrey; |
35 | | - border-left: 8px solid transparent; |
36 | | -} |
37 | | - |
38 | | -#arrow { |
39 | | - visibility: hidden; |
40 | | -} |
41 | | - |
42 | | -#arrow .#{$eccgui}-visual-tour__tooltip__arrow-shape::before { |
43 | | - visibility: visible; |
44 | | - content: ""; |
45 | | -} |
| 27 | +.#{$eccgui}-visual-tour__arrow { |
| 28 | + &::before { |
| 29 | + background: $card-background-color; |
| 30 | + } |
46 | 31 |
|
47 | | -.#{$eccgui}-visual-tour__tooltip[data-popper-placement^="top"] > #arrow { |
48 | | - bottom: -8px; |
49 | | - .#{$eccgui}-visual-tour__tooltip__arrow-shape::before { |
50 | | - transform: rotate(180deg); |
| 32 | + .#{$eccgui}-visual-tour__overlay[data-popper-placement="top"] & { |
| 33 | + bottom: -0.5 * $eccgui-size-block-whitespace; |
| 34 | + } |
| 35 | + .#{$eccgui}-visual-tour__overlay[data-popper-placement="right"] & { |
| 36 | + left: -0.5 * $eccgui-size-block-whitespace; |
| 37 | + } |
| 38 | + .#{$eccgui}-visual-tour__overlay[data-popper-placement="bottom"] & { |
| 39 | + top: -0.5 * $eccgui-size-block-whitespace; |
| 40 | + } |
| 41 | + .#{$eccgui}-visual-tour__overlay[data-popper-placement="left"] & { |
| 42 | + right: -0.5 * $eccgui-size-block-whitespace; |
51 | 43 | } |
52 | 44 | } |
53 | 45 |
|
54 | | -.#{$eccgui}-visual-tour__tooltip[data-popper-placement^="bottom"] > #arrow { |
55 | | - top: -8px; |
56 | | -} |
| 46 | +.#{$eccgui}-visual-tour__overlay { |
| 47 | + &--small { |
| 48 | + @extend .#{$eccgui}-tooltip--small; |
| 49 | + } |
57 | 50 |
|
58 | | -.#{$eccgui}-visual-tour__tooltip[data-popper-placement^="left"] > #arrow { |
59 | | - right: 4px; |
60 | | - .#{$eccgui}-visual-tour__tooltip__arrow-shape::before { |
61 | | - transform: rotate(90deg); |
| 51 | + &--medium { |
| 52 | + @extend .#{$eccgui}-tooltip--medium; |
62 | 53 | } |
63 | | -} |
64 | 54 |
|
65 | | -.#{$eccgui}-visual-tour__tooltip[data-popper-placement^="right"] > #arrow { |
66 | | - left: -28px; |
67 | | - .#{$eccgui}-visual-tour__tooltip__arrow-shape::before { |
68 | | - transform: rotate(270deg); |
| 55 | + &--large { |
| 56 | + @extend .#{$eccgui}-tooltip--large; |
69 | 57 | } |
70 | 58 | } |
0 commit comments