@salesforcedevs/dx-components 1.2.18-lightdom2 → 1.2.18-lightdom3
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/package.json +1 -1
- package/src/modules/dx/cardCallout/cardCallout.css +5 -43
- package/src/modules/dx/cardCallout/cardCallout.html +1 -1
- package/src/modules/dx/cardCallout/cardCallout.scoped.css +45 -0
- package/src/modules/dx/cardCallout/cardCallout.ts +2 -0
- package/src/modules/dx/cardTitle/cardTitle.css +1 -1
- package/src/modules/dx/icon/icon.css +1 -1
- package/src/modules/dxHelpers/card/card.css +1 -1
package/package.json
CHANGED
|
@@ -1,57 +1,19 @@
|
|
|
1
|
-
@import "dxHelpers/reset";
|
|
2
|
-
@import "dxHelpers/text";
|
|
3
|
-
@import "dxHelpers/card";
|
|
4
1
|
|
|
5
|
-
.card-callout {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* in the callout card's case it needs to be subservient to the other items in the grid */
|
|
12
|
-
.dx-card-base_override-width {
|
|
13
|
-
height: 100% !important;
|
|
14
|
-
min-height: unset !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* title */
|
|
18
|
-
|
|
19
|
-
.dx-text-heading-3 {
|
|
20
|
-
color: inherit;
|
|
21
|
-
margin-bottom: var(--dx-g-spacing-3xl);
|
|
22
|
-
overflow-wrap: hyphenate-word;
|
|
23
|
-
hyphens: overflow;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* label */
|
|
27
2
|
|
|
28
|
-
|
|
29
|
-
color: inherit;
|
|
30
|
-
margin-top: auto;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* callout arrow */
|
|
34
|
-
|
|
35
|
-
dx-icon {
|
|
3
|
+
dx-card-callout dx-icon {
|
|
36
4
|
display: inline;
|
|
37
5
|
color: inherit;
|
|
38
6
|
margin-left: var(--dx-g-spacing-sm);
|
|
39
7
|
}
|
|
40
8
|
|
|
41
|
-
dx-icon
|
|
9
|
+
dx-card-callout dx-icon svg {
|
|
42
10
|
transition: var(--dx-g-transition-transform-2x);
|
|
43
11
|
}
|
|
44
12
|
|
|
45
|
-
.card-callout:hover dx-icon
|
|
13
|
+
.card-callout:hover dx-icon svg {
|
|
46
14
|
transform: translate(var(--dx-g-spacing-xs));
|
|
47
15
|
}
|
|
48
16
|
|
|
49
|
-
.card-callout:active dx-icon
|
|
17
|
+
.card-callout:active dx-icon svg {
|
|
50
18
|
transform: translate(var(--dx-g-spacing-2xs));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@media screen and (max-width: 1024px) {
|
|
54
|
-
.dx-text-heading-3 {
|
|
55
|
-
margin-bottom: var(--dx-g-spacing-xl);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
|
|
4
|
+
--dx-g-card-border: 1px solid var(--dx-g-gray-90);
|
|
5
|
+
--dx-g-card-border-radius: 16px;
|
|
6
|
+
--dx-g-card-item-spacing: 12px;
|
|
7
|
+
--dx-g-card-img-spacing: 20px;
|
|
8
|
+
--dx-c-body-max-lines: 6;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.card-callout {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* in the callout card's case it needs to be subservient to the other items in the grid */
|
|
18
|
+
.dx-card-base_override-width {
|
|
19
|
+
height: 100% !important;
|
|
20
|
+
min-height: unset !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* title */
|
|
24
|
+
|
|
25
|
+
.dx-text-heading-3 {
|
|
26
|
+
color: inherit;
|
|
27
|
+
margin-bottom: var(--dx-g-spacing-3xl);
|
|
28
|
+
overflow-wrap: hyphenate-word;
|
|
29
|
+
hyphens: overflow;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* label */
|
|
33
|
+
|
|
34
|
+
.dx-text-button-light {
|
|
35
|
+
color: inherit;
|
|
36
|
+
margin-top: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* callout arrow */
|
|
40
|
+
|
|
41
|
+
@media screen and (max-width: 1024px) {
|
|
42
|
+
.dx-text-heading-3 {
|
|
43
|
+
margin-bottom: var(--dx-g-spacing-xl);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -6,6 +6,8 @@ import { track } from "dxUtils/analytics";
|
|
|
6
6
|
export const ANALYTICS_EVENT_NAME = "custEv_ctaLinkClick";
|
|
7
7
|
|
|
8
8
|
export default class CardCallout extends LightningElement {
|
|
9
|
+
static renderMode = 'light';
|
|
10
|
+
|
|
9
11
|
@api backgroundColor: string = "indigo-vibrant-40";
|
|
10
12
|
@api color: string = "white";
|
|
11
13
|
@api href!: string;
|