@salesforcedevs/dx-components 1.2.18-canary.0 → 1.2.18-lightdom
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.
- package/lwc.config.json +0 -2
- package/package.json +3 -11
- package/src/modules/dx/banner/banner.css +1 -33
- package/src/modules/dx/banner/banner.html +5 -2
- package/src/modules/dx/banner/banner.scoped.css +28 -0
- package/src/modules/dx/banner/banner.ts +3 -1
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.html +2 -1
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +9 -6
- package/src/modules/dx/button/button.css +14 -1
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +1 -1
- package/src/modules/dx/cardPodcastEpisode/{cardPodcastEpisode.css → cardPodcastEpisode.scoped.css} +0 -4
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +2 -0
- package/src/modules/dx/cardTitle/cardTitle.css +2 -24
- package/src/modules/dx/cardTitle/cardTitle.html +4 -4
- package/src/modules/dx/cardTitle/cardTitle.scoped.css +25 -0
- package/src/modules/dx/cardTitle/cardTitle.ts +1 -0
- package/src/modules/dx/dropdown/dropdown.css +8 -1
- package/src/modules/dx/dropdown/dropdown.html +4 -2
- package/src/modules/dx/dropdown/dropdown.ts +4 -2
- package/src/modules/dx/header/header.css +7 -95
- package/src/modules/dx/header/header.html +1 -4
- package/src/modules/dx/header/header.scoped.css +92 -0
- package/src/modules/dx/header/header.ts +2 -4
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +2 -147
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.html +6 -5
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.scoped.css +142 -0
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +5 -3
- package/src/modules/dx/headerNav/headerNav.html +2 -2
- package/src/modules/dx/headerNav/{headerNav.css → headerNav.scoped.css} +1 -3
- package/src/modules/dx/headerNav/headerNav.ts +2 -0
- package/src/modules/dx/headerSearch/headerSearch.css +2 -61
- package/src/modules/dx/headerSearch/headerSearch.html +3 -3
- package/src/modules/dx/headerSearch/headerSearch.scoped.css +56 -0
- package/src/modules/dx/headerSearch/headerSearch.ts +2 -0
- package/src/modules/dx/icon/icon.css +1 -4
- package/src/modules/dx/icon/icon.html +1 -1
- package/src/modules/dx/icon/icon.ts +2 -0
- package/src/modules/dx/logo/logo.html +1 -1
- package/src/modules/dx/logo/{logo.css → logo.scoped.css} +0 -3
- package/src/modules/dx/logo/logo.ts +3 -1
- package/src/modules/dx/popover/popover.css +0 -19
- package/src/modules/dx/popover/popover.html +0 -1
- package/src/modules/dx/popover/popover.ts +30 -76
- package/src/modules/dx/relativeDateTime/relativeDateTime.html +1 -1
- package/src/modules/dx/relativeDateTime/relativeDateTime.scoped.css +3 -0
- package/src/modules/dx/relativeDateTime/relativeDateTime.ts +1 -0
- package/src/modules/dx/skipNavLink/skipNavLink.html +1 -1
- package/src/modules/dx/skipNavLink/{skipNavLink.css → skipNavLink.scoped.css} +0 -2
- package/src/modules/dx/skipNavLink/skipNavLink.ts +4 -1
- package/src/modules/dx/tooltip/microtip.css +101 -105
- package/src/modules/dxHelpers/card/card.css +11 -1
- package/src/modules/dxHelpers/commonHeader/commonHeader.css +2 -4
- package/src/modules/dxHelpers/commonSidebar/commonSidebar.css +2 -2
- package/src/modules/dxHelpers/reset/reset.css +0 -1
- package/src/assets/svg/login-widget-bg.png +0 -0
- package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.css +0 -33
- package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.html +0 -31
- package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.ts +0 -438
- package/src/modules/dxUtils/async/async.ts +0 -41
- package/yarn-error.log +0 -18466
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
PopperPlacement
|
|
6
6
|
} from "typings/custom";
|
|
7
7
|
|
|
8
|
-
import { computePosition, flip, size, shift
|
|
8
|
+
import { computePosition, flip, size, shift } from "@floating-ui/dom";
|
|
9
9
|
import cx from "classnames";
|
|
10
10
|
import debounce from "debounce";
|
|
11
11
|
import { isPrerender } from "dxUtils/seo";
|
|
@@ -31,7 +31,6 @@ export default class Popover extends LightningElement {
|
|
|
31
31
|
@api openOnHover?: boolean = false; // dropdown opens/closes with hover
|
|
32
32
|
@api width?: string | null = null;
|
|
33
33
|
@api fullWidth?: boolean | null;
|
|
34
|
-
@api showArrow?: boolean | null;
|
|
35
34
|
|
|
36
35
|
@api
|
|
37
36
|
get open() {
|
|
@@ -104,11 +103,9 @@ export default class Popover extends LightningElement {
|
|
|
104
103
|
private _open: boolean = false;
|
|
105
104
|
private _rendered: boolean = isPrerender();
|
|
106
105
|
private _role: string | null = null;
|
|
107
|
-
private arrow: HTMLElement | null = null;
|
|
108
106
|
private control: (HTMLElement & { disabled?: boolean }) | null = null;
|
|
109
107
|
private focusedValue: string | null = null;
|
|
110
108
|
private popover: HTMLElement | null = null;
|
|
111
|
-
private popoverContent: HTMLElement | null = null;
|
|
112
109
|
|
|
113
110
|
// LIFECYCLE METHODS
|
|
114
111
|
|
|
@@ -123,12 +120,6 @@ export default class Popover extends LightningElement {
|
|
|
123
120
|
if (!this.popover) {
|
|
124
121
|
this.popover = this.template.querySelector(".popover-container");
|
|
125
122
|
}
|
|
126
|
-
if (!this.popoverContent) {
|
|
127
|
-
this.popoverContent = this.template.querySelector(".popover");
|
|
128
|
-
}
|
|
129
|
-
if (!this.arrow && this.showArrow) {
|
|
130
|
-
this.arrow = this.template.querySelector(".popover-arrow");
|
|
131
|
-
}
|
|
132
123
|
}
|
|
133
124
|
|
|
134
125
|
// GETTERS
|
|
@@ -241,27 +232,23 @@ export default class Popover extends LightningElement {
|
|
|
241
232
|
this.openPopover();
|
|
242
233
|
};
|
|
243
234
|
|
|
244
|
-
private onSlotChange(e:
|
|
245
|
-
const slot = e.target
|
|
235
|
+
private onSlotChange(e: LightningSlotElement) {
|
|
236
|
+
const slot = e.target;
|
|
246
237
|
const elements = slot.assignedElements();
|
|
247
238
|
const slotted = elements.length === 0 ? null : elements[0];
|
|
248
239
|
// allows dropdown/select to compose popover
|
|
249
|
-
const
|
|
250
|
-
? slotted.firstChild
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
240
|
+
const control =
|
|
241
|
+
slotted.tagName === "SLOT" ? slotted.firstChild : slotted;
|
|
242
|
+
const onboardControl =
|
|
243
|
+
(!this.control || (control && !control.isSameNode(this.control))) &&
|
|
244
|
+
control;
|
|
245
|
+
if (onboardControl) {
|
|
246
|
+
control.setAttribute("aria-haspopup", "true");
|
|
247
|
+
control.style.cursor = this.openOnHover ? "default" : "cursor";
|
|
248
|
+
this.control = control;
|
|
249
|
+
this.addControlListeners();
|
|
250
|
+
this.setPosition();
|
|
258
251
|
}
|
|
259
|
-
|
|
260
|
-
slotElement.setAttribute("aria-haspopup", "true");
|
|
261
|
-
slotElement.style.cursor = this.openOnHover ? "default" : "cursor";
|
|
262
|
-
this.control = slotElement;
|
|
263
|
-
this.addControlListeners();
|
|
264
|
-
this.setPosition();
|
|
265
252
|
}
|
|
266
253
|
|
|
267
254
|
private onKeyDown(e: KeyboardEvent): void {
|
|
@@ -290,62 +277,29 @@ export default class Popover extends LightningElement {
|
|
|
290
277
|
if (this.popover && this.control) {
|
|
291
278
|
await Promise.resolve();
|
|
292
279
|
const popoverEl = this.popover;
|
|
293
|
-
const middleware = [flip(), shift({ padding: this.pagePadding })];
|
|
294
|
-
|
|
295
|
-
if (this.fullWidth) {
|
|
296
|
-
middleware.unshift(
|
|
297
|
-
size({
|
|
298
|
-
apply({ rects }) {
|
|
299
|
-
Object.assign(popoverEl.style, {
|
|
300
|
-
width: `${rects.reference.width}px`
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
})
|
|
304
|
-
);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
if (this.arrow) {
|
|
308
|
-
middleware.push(arrow({ element: this.arrow, padding: 24 }));
|
|
309
|
-
}
|
|
310
280
|
|
|
311
281
|
computePosition(this.control, popoverEl, {
|
|
312
282
|
placement: this.placement,
|
|
313
|
-
middleware
|
|
314
|
-
|
|
283
|
+
middleware: [
|
|
284
|
+
...(this.fullWidth
|
|
285
|
+
? [
|
|
286
|
+
size({
|
|
287
|
+
apply({ rects }) {
|
|
288
|
+
Object.assign(popoverEl.style, {
|
|
289
|
+
width: `${rects.reference.width}px`
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
})
|
|
293
|
+
]
|
|
294
|
+
: []),
|
|
295
|
+
flip(),
|
|
296
|
+
shift({ padding: this.pagePadding })
|
|
297
|
+
]
|
|
298
|
+
}).then(({ x, y }) => {
|
|
315
299
|
Object.assign(popoverEl.style, {
|
|
316
300
|
left: `${x}px`,
|
|
317
301
|
top: `${y}px`
|
|
318
302
|
});
|
|
319
|
-
|
|
320
|
-
if (this.arrow && middlewareData.arrow) {
|
|
321
|
-
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
322
|
-
const popoverPlacementSide = placement.split("-")[0] as
|
|
323
|
-
| "top"
|
|
324
|
-
| "bottom"
|
|
325
|
-
| "left"
|
|
326
|
-
| "right";
|
|
327
|
-
const staticSide = {
|
|
328
|
-
top: "bottom",
|
|
329
|
-
right: "left",
|
|
330
|
-
bottom: "top",
|
|
331
|
-
left: "right"
|
|
332
|
-
}[popoverPlacementSide];
|
|
333
|
-
const arrowStyles = {
|
|
334
|
-
left: arrowX != null ? `${arrowX}px` : "",
|
|
335
|
-
top: arrowY != null ? `${arrowY}px` : "",
|
|
336
|
-
right: "",
|
|
337
|
-
bottom: "",
|
|
338
|
-
[staticSide]: "-4px"
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
if (this.offset && this.popoverContent) {
|
|
342
|
-
arrowStyles.marginTop = getComputedStyle(
|
|
343
|
-
this.popoverContent
|
|
344
|
-
).marginTop;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
Object.assign(this.arrow.style, arrowStyles);
|
|
348
|
-
}
|
|
349
303
|
});
|
|
350
304
|
}
|
|
351
305
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
|
|
3
3
|
export default class RelativeDateTime extends LightningElement {
|
|
4
|
+
static renderMode = 'light';
|
|
4
5
|
@api messageWhenHoursPast: String = "";
|
|
5
6
|
@api messageWhenDaysPast: String = "";
|
|
6
7
|
@api messageWhenWeeksPast: String = "";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* Code generated by scripts/postinstall.js DO NOT EDIT*/
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
/* -------------------------------------------------------------------
|
|
5
4
|
Microtip
|
|
6
5
|
|
|
@@ -16,254 +15,251 @@
|
|
|
16
15
|
3. Position Modifiers
|
|
17
16
|
--------------------------------------------------------------------*/
|
|
18
17
|
|
|
19
|
-
|
|
20
18
|
/* ------------------------------------------------
|
|
21
19
|
[1] Base Styles
|
|
22
20
|
-------------------------------------------------*/
|
|
23
21
|
|
|
24
22
|
[aria-label][role~="tooltip"] {
|
|
25
|
-
|
|
23
|
+
position: relative;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
[aria-label][role~="tooltip"]::before,
|
|
29
27
|
[aria-label][role~="tooltip"]::after {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
transform: translate3d(0, 0, 0);
|
|
29
|
+
-webkit-backface-visibility: hidden;
|
|
30
|
+
backface-visibility: hidden;
|
|
31
|
+
will-change: transform;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
transition: all var(--microtip-transition-duration, 0.18s)
|
|
35
|
+
var(--microtip-transition-easing, ease-in-out)
|
|
36
|
+
var(--microtip-transition-delay, 0s);
|
|
37
|
+
position: absolute;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
z-index: 10;
|
|
40
|
+
transform-origin: top;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
[aria-label][role~="tooltip"]::before {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
background-size: 100% auto !important;
|
|
45
|
+
content: "";
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
[aria-label][role~="tooltip"]::after {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
background: rgba(17, 17, 17, 0.9);
|
|
50
|
+
border-radius: 4px;
|
|
51
|
+
color: #ffffff;
|
|
52
|
+
content: attr(aria-label);
|
|
53
|
+
font-size: var(--microtip-font-size, 13px);
|
|
54
|
+
font-weight: var(--microtip-font-weight, normal);
|
|
55
|
+
text-transform: var(--microtip-text-transform, none);
|
|
56
|
+
padding: 0.5em 1em;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
box-sizing: content-box;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
[aria-label][role~="tooltip"]:hover::before,
|
|
62
62
|
[aria-label][role~="tooltip"]:hover::after,
|
|
63
63
|
[aria-label][role~="tooltip"]:focus::before,
|
|
64
64
|
[aria-label][role~="tooltip"]:focus::after {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
opacity: 1;
|
|
66
|
+
pointer-events: auto;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
69
|
/* ------------------------------------------------
|
|
72
70
|
[2] Position Modifiers
|
|
73
71
|
-------------------------------------------------*/
|
|
74
72
|
|
|
75
73
|
[role~="tooltip"][data-microtip-position|="top"]::before {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
75
|
+
no-repeat;
|
|
76
|
+
height: 6px;
|
|
77
|
+
width: 18px;
|
|
78
|
+
margin-bottom: 5px;
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
[role~="tooltip"][data-microtip-position|="top"]::after {
|
|
83
|
-
|
|
82
|
+
margin-bottom: 11px;
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
[role~="tooltip"][data-microtip-position|="top"]::before {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
transform: translate3d(-50%, 0, 0);
|
|
87
|
+
bottom: 100%;
|
|
88
|
+
left: 50%;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
[role~="tooltip"][data-microtip-position|="top"]:hover::before {
|
|
93
|
-
|
|
92
|
+
transform: translate3d(-50%, -5px, 0);
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
[role~="tooltip"][data-microtip-position|="top"]::after {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
transform: translate3d(-50%, 0, 0);
|
|
97
|
+
bottom: 100%;
|
|
98
|
+
left: 50%;
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
[role~="tooltip"][data-microtip-position="top"]:hover::after {
|
|
103
|
-
|
|
102
|
+
transform: translate3d(-50%, -5px, 0);
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
/* ------------------------------------------------
|
|
107
106
|
[2.1] Top Left
|
|
108
107
|
-------------------------------------------------*/
|
|
109
108
|
[role~="tooltip"][data-microtip-position="top-left"]::after {
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
transform: translate3d(calc(-100% + 16px), 0, 0);
|
|
110
|
+
bottom: 100%;
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
[role~="tooltip"][data-microtip-position="top-left"]:hover::after {
|
|
115
|
-
|
|
114
|
+
transform: translate3d(calc(-100% + 16px), -5px, 0);
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
|
|
119
117
|
/* ------------------------------------------------
|
|
120
118
|
[2.2] Top Right
|
|
121
119
|
-------------------------------------------------*/
|
|
122
120
|
[role~="tooltip"][data-microtip-position="top-right"]::after {
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
transform: translate3d(calc(0% + -16px), 0, 0);
|
|
122
|
+
bottom: 100%;
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
[role~="tooltip"][data-microtip-position="top-right"]:hover::after {
|
|
128
|
-
|
|
126
|
+
transform: translate3d(calc(0% + -16px), -5px, 0);
|
|
129
127
|
}
|
|
130
128
|
|
|
131
|
-
|
|
132
129
|
/* ------------------------------------------------
|
|
133
130
|
[2.3] Bottom
|
|
134
131
|
-------------------------------------------------*/
|
|
135
132
|
[role~="tooltip"][data-microtip-position|="bottom"]::before {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
134
|
+
no-repeat;
|
|
135
|
+
height: 6px;
|
|
136
|
+
width: 18px;
|
|
137
|
+
margin-top: 5px;
|
|
138
|
+
margin-bottom: 0;
|
|
141
139
|
}
|
|
142
140
|
|
|
143
141
|
[role~="tooltip"][data-microtip-position|="bottom"]::after {
|
|
144
|
-
|
|
142
|
+
margin-top: 11px;
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
[role~="tooltip"][data-microtip-position|="bottom"]::before {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
transform: translate3d(-50%, -10px, 0);
|
|
147
|
+
bottom: auto;
|
|
148
|
+
left: 50%;
|
|
149
|
+
top: 100%;
|
|
152
150
|
}
|
|
153
151
|
|
|
154
152
|
[role~="tooltip"][data-microtip-position|="bottom"]:hover::before {
|
|
155
|
-
|
|
153
|
+
transform: translate3d(-50%, 0, 0);
|
|
156
154
|
}
|
|
157
155
|
|
|
158
156
|
[role~="tooltip"][data-microtip-position|="bottom"]::after {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
transform: translate3d(-50%, -10px, 0);
|
|
158
|
+
top: 100%;
|
|
159
|
+
left: 50%;
|
|
162
160
|
}
|
|
163
161
|
|
|
164
162
|
[role~="tooltip"][data-microtip-position="bottom"]:hover::after {
|
|
165
|
-
|
|
163
|
+
transform: translate3d(-50%, 0, 0);
|
|
166
164
|
}
|
|
167
165
|
|
|
168
|
-
|
|
169
166
|
/* ------------------------------------------------
|
|
170
167
|
[2.4] Bottom Left
|
|
171
168
|
-------------------------------------------------*/
|
|
172
169
|
[role~="tooltip"][data-microtip-position="bottom-left"]::after {
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
transform: translate3d(calc(-100% + 16px), -10px, 0);
|
|
171
|
+
top: 100%;
|
|
175
172
|
}
|
|
176
173
|
|
|
177
174
|
[role~="tooltip"][data-microtip-position="bottom-left"]:hover::after {
|
|
178
|
-
|
|
175
|
+
transform: translate3d(calc(-100% + 16px), 0, 0);
|
|
179
176
|
}
|
|
180
177
|
|
|
181
|
-
|
|
182
178
|
/* ------------------------------------------------
|
|
183
179
|
[2.5] Bottom Right
|
|
184
180
|
-------------------------------------------------*/
|
|
185
181
|
[role~="tooltip"][data-microtip-position="bottom-right"]::after {
|
|
186
|
-
|
|
187
|
-
|
|
182
|
+
transform: translate3d(calc(0% + -16px), -10px, 0);
|
|
183
|
+
top: 100%;
|
|
188
184
|
}
|
|
189
185
|
|
|
190
186
|
[role~="tooltip"][data-microtip-position="bottom-right"]:hover::after {
|
|
191
|
-
|
|
187
|
+
transform: translate3d(calc(0% + -16px), 0, 0);
|
|
192
188
|
}
|
|
193
189
|
|
|
194
|
-
|
|
195
190
|
/* ------------------------------------------------
|
|
196
191
|
[2.6] Left
|
|
197
192
|
-------------------------------------------------*/
|
|
198
193
|
[role~="tooltip"][data-microtip-position="left"]::before,
|
|
199
194
|
[role~="tooltip"][data-microtip-position="left"]::after {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
195
|
+
bottom: auto;
|
|
196
|
+
left: auto;
|
|
197
|
+
right: 100%;
|
|
198
|
+
top: 50%;
|
|
199
|
+
transform: translate3d(10px, -50%, 0);
|
|
205
200
|
}
|
|
206
201
|
|
|
207
202
|
[role~="tooltip"][data-microtip-position="left"]::before {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
203
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
204
|
+
no-repeat;
|
|
205
|
+
height: 18px;
|
|
206
|
+
width: 6px;
|
|
207
|
+
margin-right: 5px;
|
|
208
|
+
margin-bottom: 0;
|
|
213
209
|
}
|
|
214
210
|
|
|
215
211
|
[role~="tooltip"][data-microtip-position="left"]::after {
|
|
216
|
-
|
|
212
|
+
margin-right: 11px;
|
|
217
213
|
}
|
|
218
214
|
|
|
219
215
|
[role~="tooltip"][data-microtip-position="left"]:hover::before,
|
|
220
216
|
[role~="tooltip"][data-microtip-position="left"]:hover::after {
|
|
221
|
-
|
|
217
|
+
transform: translate3d(0, -50%, 0);
|
|
222
218
|
}
|
|
223
219
|
|
|
224
|
-
|
|
225
220
|
/* ------------------------------------------------
|
|
226
221
|
[2.7] Right
|
|
227
222
|
-------------------------------------------------*/
|
|
228
223
|
[role~="tooltip"][data-microtip-position="right"]::before,
|
|
229
224
|
[role~="tooltip"][data-microtip-position="right"]::after {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
225
|
+
bottom: auto;
|
|
226
|
+
left: 100%;
|
|
227
|
+
top: 50%;
|
|
228
|
+
transform: translate3d(-10px, -50%, 0);
|
|
234
229
|
}
|
|
235
230
|
|
|
236
231
|
[role~="tooltip"][data-microtip-position="right"]::before {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
232
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
233
|
+
no-repeat;
|
|
234
|
+
height: 18px;
|
|
235
|
+
width: 6px;
|
|
236
|
+
margin-bottom: 0;
|
|
237
|
+
margin-left: 5px;
|
|
242
238
|
}
|
|
243
239
|
|
|
244
240
|
[role~="tooltip"][data-microtip-position="right"]::after {
|
|
245
|
-
|
|
241
|
+
margin-left: 11px;
|
|
246
242
|
}
|
|
247
243
|
|
|
248
244
|
[role~="tooltip"][data-microtip-position="right"]:hover::before,
|
|
249
245
|
[role~="tooltip"][data-microtip-position="right"]:hover::after {
|
|
250
|
-
|
|
246
|
+
transform: translate3d(0, -50%, 0);
|
|
251
247
|
}
|
|
252
248
|
|
|
253
249
|
/* ------------------------------------------------
|
|
254
250
|
[3] Size
|
|
255
251
|
-------------------------------------------------*/
|
|
256
252
|
[role~="tooltip"][data-microtip-size="small"]::after {
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
white-space: initial;
|
|
254
|
+
width: 80px;
|
|
259
255
|
}
|
|
260
256
|
|
|
261
257
|
[role~="tooltip"][data-microtip-size="medium"]::after {
|
|
262
|
-
|
|
263
|
-
|
|
258
|
+
white-space: initial;
|
|
259
|
+
width: 150px;
|
|
264
260
|
}
|
|
265
261
|
|
|
266
262
|
[role~="tooltip"][data-microtip-size="large"]::after {
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
white-space: initial;
|
|
264
|
+
width: 260px;
|
|
269
265
|
}
|
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
/* main card base */
|
|
4
4
|
|
|
5
|
-
:host {
|
|
5
|
+
:host { /* TODO: remove this after it has been completely supplanted by .base-card */
|
|
6
|
+
display: block;
|
|
7
|
+
|
|
8
|
+
--dx-g-card-border: 1px solid var(--dx-g-gray-90);
|
|
9
|
+
--dx-g-card-border-radius: 16px;
|
|
10
|
+
--dx-g-card-item-spacing: 12px;
|
|
11
|
+
--dx-g-card-img-spacing: 20px;
|
|
12
|
+
--dx-c-body-max-lines: 6;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.base-card {
|
|
6
16
|
display: block;
|
|
7
17
|
|
|
8
18
|
--dx-g-card-border: 1px solid var(--dx-g-gray-90);
|
|
@@ -108,14 +108,12 @@ header.state-show-mobile-nav .header_l2_group-nav_overflow {
|
|
|
108
108
|
margin-left: var(--dx-g-spacing-sm);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
.header-login-signup
|
|
112
|
-
.header-tbid-login {
|
|
111
|
+
.header-login-signup {
|
|
113
112
|
display: flex;
|
|
114
113
|
align-items: center;
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
.header-login-signup dx-button
|
|
118
|
-
.header-tbid-login dw-tbid-login-menu {
|
|
116
|
+
.header-login-signup dx-button {
|
|
119
117
|
margin-left: var(--dx-g-spacing-smd);
|
|
120
118
|
}
|
|
121
119
|
|
|
@@ -53,7 +53,7 @@ dx-tree:not(:last-child) {
|
|
|
53
53
|
color: var(--dx-g-blue-vibrant-30);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.header-toggle-icon dx-icon {
|
|
56
|
+
.header-toggle-icon dx-icon svg {
|
|
57
57
|
transition: var(--dx-g-transition-transform-2x);
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -122,7 +122,7 @@ dx-tree:not(:last-child) {
|
|
|
122
122
|
margin-bottom: 0;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.container.container-mobile.collapsed .header-toggle-icon dx-icon {
|
|
125
|
+
.container.container-mobile.collapsed .header-toggle-icon dx-icon svg {
|
|
126
126
|
transform: rotateZ(-90deg);
|
|
127
127
|
}
|
|
128
128
|
|
|
Binary file
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
@import "dxHelpers/reset";
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
--dx-c-button-custom-color: var(--dx-g-blue-vibrant-50);
|
|
5
|
-
--dx-c-button-custom-background: transparent;
|
|
6
|
-
--dx-c-button-custom-border: 1px solid transparent;
|
|
7
|
-
--dx-c-button-custom-color-hover: var(--dx-g-blue-vibrant-50);
|
|
8
|
-
--dx-c-button-custom-background-hover: var(--dx-g-cloud-blue-vibrant-90);
|
|
9
|
-
--dx-c-button-custom-border-hover: var(--dx-g-cloud-blue-vibrant-90);
|
|
10
|
-
--dx-c-slot-empty-width: max-content;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.avatar-control {
|
|
14
|
-
height: var(--dx-g-spacing-xl);
|
|
15
|
-
width: calc(var(--dx-g-spacing-lg) + 4px);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.avatar-small-container {
|
|
19
|
-
align-items: center;
|
|
20
|
-
display: flex;
|
|
21
|
-
padding: 2px 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.avatar {
|
|
25
|
-
border-radius: 100%;
|
|
26
|
-
border: 2px solid #0d9dda;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.avatar.avatar-small {
|
|
30
|
-
display: block;
|
|
31
|
-
height: calc(var(--dx-g-spacing-lg) + 4px);
|
|
32
|
-
width: calc(var(--dx-g-spacing-lg) + 4px);
|
|
33
|
-
}
|