| 1 |
.pf-v6-c-tooltip { |
| 2 |
--pf-v6-c-tooltip--MaxWidth: 18.75rem; |
| 3 |
--pf-v6-c-tooltip--BoxShadow: var(--pf-t--global--box-shadow--md); |
| 4 |
--pf-v6-c-tooltip__content--PaddingBlockStart: var(--pf-t--global--spacer--sm); |
| 5 |
--pf-v6-c-tooltip__content--PaddingInlineEnd: var(--pf-t--global--spacer--md); |
| 6 |
--pf-v6-c-tooltip__content--PaddingBlockEnd: var(--pf-t--global--spacer--sm); |
| 7 |
--pf-v6-c-tooltip__content--PaddingInlineStart: var(--pf-t--global--spacer--md); |
| 8 |
--pf-v6-c-tooltip__content--Color: var(--pf-t--global--text--color--inverse); |
| 9 |
--pf-v6-c-tooltip__content--BackgroundColor: var(--pf-t--global--background--color--inverse--default); |
| 10 |
--pf-v6-c-tooltip__content--FontSize: var(--pf-t--global--font--size--body--sm); |
| 11 |
--pf-v6-c-tooltip__content--BorderRadius: var(--pf-t--global--border--radius--small); |
| 12 |
--pf-v6-c-tooltip__arrow--Width: 0.9375rem; |
| 13 |
--pf-v6-c-tooltip__arrow--Height: 0.9375rem; |
| 14 |
--pf-v6-c-tooltip__arrow--BackgroundColor: var(--pf-t--global--background--color--inverse--default); |
| 15 |
--pf-v6-c-tooltip__arrow--BoxShadow: var(--pf-t--global--box-shadow--md); |
| 16 |
--pf-v6-c-tooltip__arrow--m-top--TranslateX: -50%; |
| 17 |
--pf-v6-c-tooltip__arrow--m-top--TranslateY: 50%; |
| 18 |
--pf-v6-c-tooltip__arrow--m-top--Rotate: 45deg; |
| 19 |
--pf-v6-c-tooltip__arrow--m-right--TranslateX: -50%; |
| 20 |
--pf-v6-c-tooltip__arrow--m-right--TranslateY: -50%; |
| 21 |
--pf-v6-c-tooltip__arrow--m-right--Rotate: 45deg; |
| 22 |
--pf-v6-c-tooltip__arrow--m-bottom--TranslateX: -50%; |
| 23 |
--pf-v6-c-tooltip__arrow--m-bottom--TranslateY: -50%; |
| 24 |
--pf-v6-c-tooltip__arrow--m-bottom--Rotate: 45deg; |
| 25 |
--pf-v6-c-tooltip__arrow--m-left--TranslateX: 50%; |
| 26 |
--pf-v6-c-tooltip__arrow--m-left--TranslateY: -50%; |
| 27 |
--pf-v6-c-tooltip__arrow--m-left--Rotate: 45deg; |
| 28 |
} |
| 29 |
|
| 30 |
.pf-v6-c-tooltip { |
| 31 |
position: relative; |
| 32 |
max-width: var(--pf-v6-c-tooltip--MaxWidth); |
| 33 |
box-shadow: var(--pf-v6-c-tooltip--BoxShadow); |
| 34 |
} |
| 35 |
.pf-v6-c-tooltip:is(.pf-m-top, |
| 36 |
.pf-m-top-left, |
| 37 |
.pf-m-top-right) { |
| 38 |
--pf-v6-c-tooltip__arrow--InsetBlockEnd: var(--pf-v6-c-tooltip--m-top--InsetBlockEnd, 0); |
| 39 |
--pf-v6-c-tooltip__arrow--InsetInlineStart: var(--pf-v6-c-tooltip--m-top--InsetInlineStart, 50%); |
| 40 |
--pf-v6-c-tooltip__arrow--TranslateX: var(--pf-v6-c-tooltip__arrow--m-top--TranslateX); |
| 41 |
--pf-v6-c-tooltip__arrow--TranslateY: var(--pf-v6-c-tooltip__arrow--m-top--TranslateY); |
| 42 |
--pf-v6-c-tooltip__arrow--Rotate: var(--pf-v6-c-tooltip__arrow--m-top--Rotate); |
| 43 |
} |
| 44 |
.pf-v6-c-tooltip:is(.pf-m-bottom, |
| 45 |
.pf-m-bottom-left, |
| 46 |
.pf-m-bottom-right) { |
| 47 |
--pf-v6-c-tooltip__arrow--InsetBlockStart: var(--pf-v6-c-tooltip--m-bottom--InsetBlockStart, 0); |
| 48 |
--pf-v6-c-tooltip__arrow--InsetInlineStart: var(--pf-v6-c-tooltip--m-bottom--InsetInlineStart, 50%); |
| 49 |
--pf-v6-c-tooltip__arrow--TranslateX: var(--pf-v6-c-tooltip__arrow--m-bottom--TranslateX); |
| 50 |
--pf-v6-c-tooltip__arrow--TranslateY: var(--pf-v6-c-tooltip__arrow--m-bottom--TranslateY); |
| 51 |
--pf-v6-c-tooltip__arrow--Rotate: var(--pf-v6-c-tooltip__arrow--m-bottom--Rotate); |
| 52 |
} |
| 53 |
.pf-v6-c-tooltip:is(.pf-m-left, |
| 54 |
.pf-m-left-top, |
| 55 |
.pf-m-left-bottom) { |
| 56 |
--pf-v6-c-tooltip__arrow--InsetBlockStart: var(--pf-v6-c-tooltip--m-left--InsetBlockStart, 50%); |
| 57 |
--pf-v6-c-tooltip__arrow--InsetInlineEnd: var(--pf-v6-c-tooltip--m-left--InsetInlineEnd, 0); |
| 58 |
--pf-v6-c-tooltip__arrow--TranslateX: var(--pf-v6-c-tooltip__arrow--m-left--TranslateX); |
| 59 |
--pf-v6-c-tooltip__arrow--TranslateY: var(--pf-v6-c-tooltip__arrow--m-left--TranslateY); |
| 60 |
--pf-v6-c-tooltip__arrow--Rotate: var(--pf-v6-c-tooltip__arrow--m-left--Rotate); |
| 61 |
} |
| 62 |
.pf-v6-c-tooltip:is(.pf-m-right, |
| 63 |
.pf-m-right-top, |
| 64 |
.pf-m-right-bottom) { |
| 65 |
--pf-v6-c-tooltip__arrow--InsetBlockStart: var(--pf-v6-c-tooltip--m-right--InsetBlockStart, 50%); |
| 66 |
--pf-v6-c-tooltip__arrow--InsetInlineStart: var(--pf-v6-c-tooltip--m-right--InsetInlineStart, 0); |
| 67 |
--pf-v6-c-tooltip__arrow--TranslateX: var(--pf-v6-c-tooltip__arrow--m-right--TranslateX); |
| 68 |
--pf-v6-c-tooltip__arrow--TranslateY: var(--pf-v6-c-tooltip__arrow--m-right--TranslateY); |
| 69 |
--pf-v6-c-tooltip__arrow--Rotate: var(--pf-v6-c-tooltip__arrow--m-right--Rotate); |
| 70 |
} |
| 71 |
.pf-v6-c-tooltip:is(.pf-m-left-top, |
| 72 |
.pf-m-right-top) { |
| 73 |
--pf-v6-c-tooltip__arrow--InsetBlockStart: 0; |
| 74 |
--pf-v6-c-tooltip__arrow--TranslateY: var(--pf-v6-c-tooltip__arrow--m-top--TranslateY); |
| 75 |
} |
| 76 |
.pf-v6-c-tooltip:is(.pf-m-left-bottom, |
| 77 |
.pf-m-right-bottom) { |
| 78 |
--pf-v6-c-tooltip__arrow--InsetBlockStart: auto; |
| 79 |
--pf-v6-c-tooltip__arrow--InsetBlockEnd: 0; |
| 80 |
} |
| 81 |
.pf-v6-c-tooltip:is(.pf-m-top-left, |
| 82 |
.pf-m-bottom-left) { |
| 83 |
--pf-v6-c-tooltip__arrow--InsetInlineStart: 0; |
| 84 |
--pf-v6-c-tooltip__arrow--TranslateX: var(--pf-v6-c-tooltip__arrow--m-left--TranslateX); |
| 85 |
} |
| 86 |
.pf-v6-c-tooltip:is(.pf-m-top-right, |
| 87 |
.pf-m-bottom-right) { |
| 88 |
--pf-v6-c-tooltip__arrow--InsetInlineEnd: 0; |
| 89 |
--pf-v6-c-tooltip__arrow--InsetInlineStart: auto; |
| 90 |
} |
| 91 |
|
| 92 |
.pf-v6-c-tooltip__content { |
| 93 |
position: relative; |
| 94 |
padding-block-start: var(--pf-v6-c-tooltip__content--PaddingBlockStart); |
| 95 |
padding-block-end: var(--pf-v6-c-tooltip__content--PaddingBlockEnd); |
| 96 |
padding-inline-start: var(--pf-v6-c-tooltip__content--PaddingInlineStart); |
| 97 |
padding-inline-end: var(--pf-v6-c-tooltip__content--PaddingInlineEnd); |
| 98 |
font-size: var(--pf-v6-c-tooltip__content--FontSize); |
| 99 |
color: var(--pf-v6-c-tooltip__content--Color); |
| 100 |
text-align: center; |
| 101 |
overflow-wrap: anywhere; |
| 102 |
background-color: var(--pf-v6-c-tooltip__content--BackgroundColor); |
| 103 |
border-radius: var(--pf-v6-c-tooltip__content--BorderRadius); |
| 104 |
} |
| 105 |
.pf-v6-c-tooltip__content.pf-m-text-align-left { |
| 106 |
text-align: start; |
| 107 |
} |
| 108 |
|
| 109 |
.pf-v6-c-tooltip__arrow { |
| 110 |
position: absolute; |
| 111 |
top: var(--pf-v6-c-tooltip__arrow--InsetBlockStart, auto); |
| 112 |
right: var(--pf-v6-c-tooltip__arrow--InsetInlineEnd, auto); |
| 113 |
bottom: var(--pf-v6-c-tooltip__arrow--InsetBlockEnd, auto); |
| 114 |
left: var(--pf-v6-c-tooltip__arrow--InsetInlineStart, auto); |
| 115 |
width: var(--pf-v6-c-tooltip__arrow--Width); |
| 116 |
height: var(--pf-v6-c-tooltip__arrow--Height); |
| 117 |
pointer-events: none; |
| 118 |
background-color: var(--pf-v6-c-tooltip__arrow--BackgroundColor); |
| 119 |
box-shadow: var(--pf-v6-c-tooltip__arrow--BoxShadow); |
| 120 |
transform: translateX(var(--pf-v6-c-tooltip__arrow--TranslateX, 0)) translateY(var(--pf-v6-c-tooltip__arrow--TranslateY, 0)) rotate(var(--pf-v6-c-tooltip__arrow--Rotate, 0)); |
| 121 |
} |