@agorapulse/ui-theme 22.0.15 → 22.0.16-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
// The tooltip's surface: the `floating` engine places it, draws its tip and attaches it into a CDK pane.
|
|
1
2
|
.ap-tooltip {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--ap-arrow-offset: 10px;
|
|
5
|
-
--ap-tooltip-z-index: 9999999;
|
|
3
|
+
// A component host is `inline`, and `width: fit-content` and the padding need a block.
|
|
4
|
+
display: block;
|
|
6
5
|
|
|
7
6
|
width: fit-content;
|
|
8
7
|
max-width: 350px;
|
|
9
8
|
background: var(--comp-tooltip-text-color-main-default-bg);
|
|
10
9
|
border-radius: var(--ref-border-radius-md);
|
|
11
|
-
// Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
|
|
12
|
-
position: fixed;
|
|
13
|
-
z-index: var(--ap-tooltip-z-index);
|
|
14
10
|
animation: fadeIn var(--ref-animation-short) ease-in-out;
|
|
15
11
|
|
|
16
12
|
@keyframes fadeIn {
|
|
@@ -30,21 +26,13 @@
|
|
|
30
26
|
background: var(--ref-color-white);
|
|
31
27
|
|
|
32
28
|
/* Shadow/Low (default) */
|
|
33
|
-
box-shadow:
|
|
29
|
+
box-shadow: var(--sys-elevation-floating);
|
|
34
30
|
|
|
35
31
|
.ap-content-container.ap-content-predefined-container {
|
|
36
32
|
padding: 0;
|
|
37
|
-
|
|
38
|
-
.ap-tooltip-arrow {
|
|
39
|
-
color: var(--ref-color-white);
|
|
40
|
-
}
|
|
41
33
|
}
|
|
42
34
|
}
|
|
43
35
|
|
|
44
|
-
&.ap-tooltip-click-trigger {
|
|
45
|
-
z-index: calc(var(--ap-tooltip-z-index) + 1); // has to be above the z-index of the .ap-tooltip class above
|
|
46
|
-
}
|
|
47
|
-
|
|
48
36
|
.ap-content-container {
|
|
49
37
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
|
|
50
38
|
border-radius: var(--ref-border-radius-md);
|
|
@@ -56,108 +44,29 @@
|
|
|
56
44
|
font-weight: var(--comp-tooltip-text-style-weight);
|
|
57
45
|
line-height: var(--comp-tooltip-text-style-line-height);
|
|
58
46
|
}
|
|
59
|
-
|
|
60
|
-
.ap-tooltip-arrow {
|
|
61
|
-
color: var(--ref-color-grey-100);
|
|
62
|
-
position: absolute;
|
|
63
|
-
z-index: 10000;
|
|
64
|
-
width: var(--ap-arrow-width);
|
|
65
|
-
height: var(--ap-arrow-height);
|
|
66
|
-
display: block;
|
|
67
|
-
|
|
68
|
-
path {
|
|
69
|
-
fill: currentColor;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
&.ap-tooltip-top,
|
|
74
|
-
&.ap-tooltip-bottom {
|
|
75
|
-
.ap-tooltip-arrow {
|
|
76
|
-
margin: auto;
|
|
77
|
-
right: 0;
|
|
78
|
-
left: 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.ap-tooltip-top,
|
|
83
|
-
&.ap-tooltip-bottom,
|
|
84
|
-
&.ap-tooltip-top-left,
|
|
85
|
-
&.ap-tooltip-top-right,
|
|
86
|
-
&.ap-tooltip-bottom-left,
|
|
87
|
-
&.ap-tooltip-bottom-right {
|
|
88
|
-
.ap-tooltip-arrow {
|
|
89
|
-
transform: translateY(7px) rotate(180deg);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&.ap-tooltip-top-left,
|
|
94
|
-
&.ap-tooltip-bottom-left {
|
|
95
|
-
.ap-tooltip-arrow {
|
|
96
|
-
left: var(--ap-arrow-offset);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&.ap-tooltip-top-right,
|
|
101
|
-
&.ap-tooltip-bottom-right {
|
|
102
|
-
.ap-tooltip-arrow {
|
|
103
|
-
right: var(--ap-arrow-offset);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&.ap-tooltip-bottom,
|
|
108
|
-
&.ap-tooltip-bottom-right,
|
|
109
|
-
&.ap-tooltip-bottom-left {
|
|
110
|
-
.ap-tooltip-arrow {
|
|
111
|
-
top: 0;
|
|
112
|
-
rotate: 180deg;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.ap-tooltip-top,
|
|
117
|
-
&.ap-tooltip-top-right,
|
|
118
|
-
&.ap-tooltip-top-left {
|
|
119
|
-
.ap-tooltip-arrow {
|
|
120
|
-
bottom: 0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.ap-tooltip-right {
|
|
125
|
-
.ap-tooltip-arrow {
|
|
126
|
-
top: 0;
|
|
127
|
-
left: 0;
|
|
128
|
-
transform: scale(-1) translateY(-11px) translateX(calc((var(--ap-tooltip-height) / 2 - 4px) * -1));
|
|
129
|
-
rotate: 90deg;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&.ap-tooltip-left {
|
|
134
|
-
.ap-tooltip-arrow {
|
|
135
|
-
top: 0;
|
|
136
|
-
right: 0;
|
|
137
|
-
rotate: 90deg;
|
|
138
|
-
transform: translateY(-11px) translateX(calc((var(--ap-tooltip-height) / 2 - 4px)));
|
|
139
|
-
}
|
|
140
47
|
}
|
|
141
48
|
|
|
142
49
|
&.ap-tooltip-custom-template {
|
|
143
50
|
background-color: var(--ref-color-white);
|
|
51
|
+
|
|
52
|
+
// No-arrow case only: with an arrow, `.ap-tooltip-pane.custom-template` below takes the shadow over.
|
|
144
53
|
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.08));
|
|
145
54
|
|
|
146
55
|
.ap-tooltip-text {
|
|
147
56
|
color: var(--ref-color-grey-100);
|
|
148
57
|
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
149
60
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
z-index: 10000;
|
|
154
|
-
width: var(--ap-arrow-width);
|
|
155
|
-
height: var(--ap-arrow-height);
|
|
156
|
-
display: block;
|
|
61
|
+
// The pane carries the shadow, one per surface: `drop-shadow` has to wrap panel and tip as one shape.
|
|
62
|
+
.ap-tooltip-pane {
|
|
63
|
+
--ap-arrow-filter: none;
|
|
157
64
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
65
|
+
&.custom-template {
|
|
66
|
+
--ap-arrow-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.08));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.predefined {
|
|
70
|
+
--ap-arrow-filter: var(--sys-elevation-floating-filter);
|
|
162
71
|
}
|
|
163
72
|
}
|
package/package.json
CHANGED
|
Binary file
|