|
| 1 | +/* styles are based on node_modules/tippy.js/dist/tippy.css */ |
| 2 | + |
| 3 | +.tippy-box[data-animation="fade"][data-state="hidden"] { |
| 4 | + opacity: 0; |
| 5 | +} |
| 6 | + |
| 7 | +[data-tippy-root] { |
| 8 | + max-width: calc(100vw - 10px); |
| 9 | +} |
| 10 | + |
| 11 | +.tippy-box { |
| 12 | + position: relative; |
| 13 | + background-color: var(--color-body); |
| 14 | + color: var(--color-secondary-dark-6); |
| 15 | + border: 1px solid var(--color-secondary); |
| 16 | + border-radius: var(--border-radius); |
| 17 | + font-size: 1rem; |
| 18 | + transition-property: transform, visibility, opacity; |
| 19 | +} |
| 20 | + |
| 21 | +.tippy-content { |
| 22 | + position: relative; |
| 23 | + padding: 1rem; |
| 24 | + z-index: 1; |
| 25 | +} |
| 26 | + |
| 27 | +.tippy-box[data-placement^="top"] > .tippy-svg-arrow { |
| 28 | + bottom: 0; |
| 29 | +} |
| 30 | + |
| 31 | +.tippy-box[data-placement^="top"] > .tippy-svg-arrow::after, |
| 32 | +.tippy-box[data-placement^="top"] > .tippy-svg-arrow > svg { |
| 33 | + top: 16px; |
| 34 | + transform: rotate(180deg); |
| 35 | +} |
| 36 | + |
| 37 | +.tippy-box[data-placement^="bottom"] > .tippy-svg-arrow { |
| 38 | + top: 0; |
| 39 | +} |
| 40 | + |
| 41 | +.tippy-box[data-placement^="bottom"] > .tippy-svg-arrow > svg { |
| 42 | + bottom: 16px; |
| 43 | +} |
| 44 | + |
| 45 | +.tippy-box[data-placement^="left"] > .tippy-svg-arrow { |
| 46 | + right: 0; |
| 47 | +} |
| 48 | + |
| 49 | +.tippy-box[data-placement^="left"] > .tippy-svg-arrow::after, |
| 50 | +.tippy-box[data-placement^="left"] > .tippy-svg-arrow > svg { |
| 51 | + transform: rotate(90deg); |
| 52 | + top: calc(50% - 3px); |
| 53 | + left: 11px; |
| 54 | +} |
| 55 | + |
| 56 | +.tippy-box[data-placement^="right"] > .tippy-svg-arrow { |
| 57 | + left: 0; |
| 58 | +} |
| 59 | + |
| 60 | +.tippy-box[data-placement^="right"] > .tippy-svg-arrow::after, |
| 61 | +.tippy-box[data-placement^="right"] > .tippy-svg-arrow > svg { |
| 62 | + transform: rotate(-90deg); |
| 63 | + top: calc(50% - 3px); |
| 64 | + right: 11px; |
| 65 | +} |
| 66 | + |
| 67 | +.tippy-svg-arrow { |
| 68 | + width: 16px; |
| 69 | + height: 16px; |
| 70 | + text-align: initial; |
| 71 | +} |
| 72 | + |
| 73 | +.tippy-svg-arrow, |
| 74 | +.tippy-svg-arrow > svg { |
| 75 | + position: absolute; |
| 76 | +} |
| 77 | + |
| 78 | +.tippy-svg-arrow-outer { |
| 79 | + fill: var(--color-secondary); |
| 80 | +} |
| 81 | + |
| 82 | +.tippy-svg-arrow-inner { |
| 83 | + fill: var(--color-body); |
| 84 | +} |
0 commit comments