@salesforcedevs/mrkt-components 0.74.0-alpha04 → 0.74.0-alpha05

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/mrkt-components",
3
- "version": "0.74.0-alpha04",
3
+ "version": "0.74.0-alpha05",
4
4
  "description": "Marketing Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .cta-section.dark {
24
- background: var(--dx-g-blue-vibrant-15, #03234d);
24
+ background: var(--dx-g-indigo-vibrant-15);
25
25
  }
26
26
 
27
27
  .cta-section.has-images {
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .full-img-section.dark {
24
- background: var(--dx-g-blue-vibrant-15, #03234d);
24
+ background: var(--dx-g-indigo-vibrant-15);
25
25
  }
26
26
 
27
27
  img {
@@ -56,6 +56,7 @@
56
56
  @media screen and (max-width: 1024px) {
57
57
  .container {
58
58
  flex-direction: column;
59
+ margin-top: calc(var(--margin-top) + var(--dx-g-spacing-lg));
59
60
  }
60
61
 
61
62
  .content {
@@ -4,13 +4,18 @@
4
4
  --mrkt-c-rectangular-heading-background-color: var(
5
5
  --dx-g-indigo-vibrant-15
6
6
  );
7
+ --mrkt-c-rectangular-heading-background-color-faded: rgba(31, 9, 116, 0);
7
8
  }
8
9
 
9
10
  .fade {
10
11
  display: none;
11
12
  width: 150%;
12
13
  height: 250px;
13
- background-color: var(--mrkt-c-rectangular-heading-background-color);
14
+ background: linear-gradient(
15
+ 180deg,
16
+ var(--mrkt-c-rectangular-heading-background-color) 0%,
17
+ var(--mrkt-c-rectangular-heading-background-color-faded) 100%
18
+ );
14
19
  position: absolute;
15
20
  top: 0;
16
21
  left: -25%;
@@ -11,7 +11,7 @@
11
11
  --overlap-padding-top: calc(
12
12
  var(--image-height) - var(--image-overlap) + var(--image-inset)
13
13
  );
14
- --icon-padding: 24px;
14
+ --icon-padding: var(--dx-g-spacing-lg);
15
15
  --mrkt-c-section-header-padding-top: 76px;
16
16
  --mrkt-c-section-header-padding-bottom: var(--dx-g-spacing-5xl);
17
17
  }
@@ -23,18 +23,18 @@
23
23
  var(--mrkt-c-section-header-padding-bottom) 0;
24
24
  }
25
25
 
26
- .section-header.section-header.overlap-images {
27
- padding-top: var(--overlap-padding-top);
26
+ .section-header.has-images {
27
+ --mrkt-c-section-header-padding-top: var(--dx-g-spacing-lg);
28
28
  }
29
29
 
30
30
  .section-header.dark {
31
- background: var(--dx-g-blue-vibrant-15, #03234d);
31
+ background: var(--dx-g-indigo-vibrant-15);
32
32
  }
33
33
 
34
34
  .section-header.light-gradient {
35
35
  background: linear-gradient(
36
36
  180deg,
37
- rgba(238, 244, 255, 1) 42.08%,
37
+ rgba(234, 245, 254) 42.08%,
38
38
  rgba(234, 245, 254, 0) 100%
39
39
  );
40
40
  }
@@ -64,13 +64,6 @@
64
64
  margin-bottom: var(--image-inset);
65
65
  }
66
66
 
67
- .section-header.overlap-images .page-margin-img-container {
68
- position: absolute;
69
- bottom: calc(100% - var(--image-bottom));
70
- left: 0;
71
- z-index: 0;
72
- }
73
-
74
67
  .page-margin-img-container img {
75
68
  aspect-ratio: var(--image-aspect-ratio);
76
69
  width: 350px;
@@ -93,7 +86,7 @@
93
86
  }
94
87
 
95
88
  dx-icon-badge {
96
- --dx-c-icon-badge-icon-size: var(--dx-g-spacing-xl);
89
+ --dx-c-icon-badge-icon-size: var(--dx-g-icon-size-lg-b);
97
90
  --dx-c-icon-badge-color: white;
98
91
  --dx-c-icon-badge-background-color: var(--dx-g-blue-vibrant-20);
99
92
 
@@ -120,6 +113,19 @@ dx-icon-badge {
120
113
  }
121
114
  }
122
115
 
116
+ @media (min-width: 1024px) {
117
+ .section-header.overlap-images .page-margin-img-container {
118
+ position: absolute;
119
+ bottom: calc(100% - var(--image-bottom));
120
+ left: 0;
121
+ z-index: 0;
122
+ }
123
+
124
+ .section-header.section-header.overlap-images {
125
+ padding-top: var(--overlap-padding-top);
126
+ }
127
+ }
128
+
123
129
  @media (max-width: 768px) {
124
130
  :host {
125
131
  --image-width: 50vw;
@@ -28,7 +28,8 @@ export default class SectionHeader extends LightningElement {
28
28
  this.dark && "dark",
29
29
  this.lightGradient && "light-gradient",
30
30
  this.subtitle && "has-subtitle",
31
- this.overlapImages && "overlap-images"
31
+ this.overlapImages && "overlap-images",
32
+ this.hasPageMarginGraphics && "has-images"
32
33
  );
33
34
  }
34
35
  }
@@ -18,7 +18,7 @@
18
18
  flex-direction: row;
19
19
  align-items: center;
20
20
  justify-content: space-between;
21
- z-index: 100000;
21
+ z-index: var(--dx-g-z-index-100);
22
22
  transition: var(--dx-g-transition-box-shadow-1x);
23
23
  }
24
24
 
@@ -90,7 +90,6 @@ export default class SubNavBar extends MatchMediaElement {
90
90
  if (el && !this.stickyNavObserver) {
91
91
  this.stickyNavObserver = new IntersectionObserver(
92
92
  ([e]) => {
93
- console.log("heyyyy", e.intersectionRatio < 1);
94
93
  e.target.classList.toggle(
95
94
  "is-sticky",
96
95
  e.intersectionRatio < 1
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .three-col-list-section.dark {
15
- background: var(--dx-g-blue-vibrant-15, #03234d);
15
+ background: var(--dx-g-indigo-vibrant-15);
16
16
  }
17
17
 
18
18
  .item-grid-padding {
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  .two-col-list-section.dark {
19
- background: var(--dx-g-blue-vibrant-15, #03234d);
19
+ background: var(--dx-g-indigo-vibrant-15);
20
20
  }
21
21
 
22
22
  .item-grid {
@@ -12,7 +12,7 @@
12
12
  flex-direction: row;
13
13
  justify-content: space-between;
14
14
  align-items: center;
15
- background: var(--dx-g-blue-vibrant-15, #03234d);
15
+ background: var(--dx-g-indigo-vibrant-15);
16
16
  width: 100%;
17
17
  padding: var(--mrkt-c-two-col-list-section-padding-top)
18
18
  var(--dx-g-page-padding-horizontal)
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .two-col-section.dark {
24
- background: var(--dx-g-blue-vibrant-15, #03234d);
24
+ background: var(--dx-g-indigo-vibrant-15);
25
25
  }
26
26
 
27
27
  img {