|
18 | 18 | font-size: 1rem; |
19 | 19 | } |
20 | 20 |
|
| 21 | +.tippy-content { |
| 22 | + position: relative; |
| 23 | + padding: 1rem; /* if you need different padding, use different data-theme */ |
| 24 | + z-index: 1; |
| 25 | +} |
| 26 | + |
| 27 | +/* tooltip theme for text tooltips */ |
| 28 | + |
21 | 29 | .tippy-box[data-theme="tooltip"] { |
22 | 30 | background-color: var(--color-tooltip-bg); |
23 | 31 | color: var(--color-tooltip-text); |
24 | 32 | border: none; |
25 | 33 | } |
26 | 34 |
|
27 | | -.tippy-box[data-theme="menu"] { |
28 | | - background-color: var(--color-menu); |
29 | | - color: var(--color-text); |
| 35 | +.tippy-box[data-theme="tooltip"] .tippy-content { |
| 36 | + padding: 0.5rem 1rem; |
30 | 37 | } |
31 | 38 |
|
32 | | -.tippy-box[data-theme="form-fetch-error"] { |
33 | | - border-color: var(--color-error-border); |
34 | | - background-color: var(--color-error-bg); |
35 | | - color: var(--color-error-text); |
| 39 | +.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-inner, |
| 40 | +.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-outer { |
| 41 | + fill: var(--color-tooltip-bg); |
36 | 42 | } |
37 | 43 |
|
38 | | -.tippy-content { |
39 | | - position: relative; |
40 | | - padding: 1rem; /* if you need different padding, use different data-theme */ |
41 | | - z-index: 1; |
42 | | -} |
| 44 | +/* menu theme for .ui.menu */ |
43 | 45 |
|
44 | | -.tippy-box[data-theme="tooltip"] .tippy-content { |
45 | | - padding: 0.5rem 1rem; |
| 46 | +.tippy-box[data-theme="menu"] { |
| 47 | + background-color: var(--color-menu); |
| 48 | + color: var(--color-text); |
46 | 49 | } |
47 | 50 |
|
48 | 51 | .tippy-box[data-theme="menu"] .tippy-content { |
49 | 52 | padding: 0; |
50 | 53 | } |
51 | 54 |
|
| 55 | +.tippy-box[data-theme="menu"] .tippy-svg-arrow-inner { |
| 56 | + fill: var(--color-menu); |
| 57 | +} |
| 58 | + |
| 59 | +/* box-with-header theme for .ui.attached.header and .ui.attached.segment */ |
| 60 | + |
52 | 61 | .tippy-box[data-theme="box-with-header"] .tippy-content { |
53 | 62 | padding: 0; |
54 | 63 | } |
55 | 64 |
|
| 65 | +.tippy-box[data-theme="box-with-header"][data-placement^="top"] .tippy-svg-arrow-inner { |
| 66 | + fill: var(--color-box-body); |
| 67 | +} |
| 68 | + |
| 69 | +.tippy-box[data-theme="box-with-header"][data-placement^="bottom"] .tippy-svg-arrow-inner { |
| 70 | + fill: var(--color-box-header); |
| 71 | +} |
| 72 | + |
| 73 | + |
56 | 74 | .tippy-box[data-placement^="top"] > .tippy-svg-arrow { |
57 | 75 | bottom: 0; |
58 | 76 | } |
|
111 | 129 | .tippy-svg-arrow-inner { |
112 | 130 | fill: var(--color-body); |
113 | 131 | } |
114 | | - |
115 | | -.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-inner, |
116 | | -.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-outer { |
117 | | - fill: var(--color-tooltip-bg); |
118 | | -} |
119 | | - |
120 | | -.tippy-box[data-theme="menu"] .tippy-svg-arrow-inner { |
121 | | - fill: var(--color-menu); |
122 | | -} |
123 | | - |
124 | | -.tippy-box[data-theme="box-with-header"][data-placement^="top"] .tippy-svg-arrow-inner { |
125 | | - fill: var(--color-box-body); |
126 | | -} |
127 | | - |
128 | | -.tippy-box[data-theme="box-with-header"][data-placement^="bottom"] .tippy-svg-arrow-inner { |
129 | | - fill: var(--color-box-header); |
130 | | -} |
|
0 commit comments