@salesforcedevs/mrkt-components 0.74.0-alpha02 → 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-alpha02",
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
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
  .subnav {
10
10
  position: sticky;
11
- top: 0;
11
+ top: -1px; /* necessary for intersection observer ux */
12
12
  left: 0;
13
13
  width: 100%;
14
14
  height: var(--subnav-height);
@@ -18,11 +18,8 @@
18
18
  flex-direction: row;
19
19
  align-items: center;
20
20
  justify-content: space-between;
21
- z-index: 100000;
22
- }
23
-
24
- .subnav.is-sticky {
25
- background: red;
21
+ z-index: var(--dx-g-z-index-100);
22
+ transition: var(--dx-g-transition-box-shadow-1x);
26
23
  }
27
24
 
28
25
  .subnav::after {
@@ -112,6 +109,16 @@ a > span {
112
109
 
113
110
  dx-button {
114
111
  flex-shrink: 0;
112
+ visibility: hidden;
113
+ }
114
+
115
+ .subnav.is-sticky {
116
+ box-shadow: 0 0 2px rgba(24, 24, 24, 0.08),
117
+ 0 2px 4px 1px rgba(24, 24, 24, 0.16);
118
+ }
119
+
120
+ .subnav.is-sticky dx-button {
121
+ visibility: visible;
115
122
  }
116
123
 
117
124
  @media (max-width: 1024px) {
@@ -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
@@ -7,11 +7,20 @@
7
7
  }
8
8
 
9
9
  .three-col-list-section {
10
+ width: 100%;
10
11
  padding-top: var(--mrkt-c-three-col-list-section-padding-top);
11
12
  }
12
13
 
13
14
  .three-col-list-section.dark {
14
- background: var(--dx-g-blue-vibrant-15, #03234d);
15
+ background: var(--dx-g-indigo-vibrant-15);
16
+ }
17
+
18
+ .item-grid-padding {
19
+ width: 100%;
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: center;
23
+ padding: 0 var(--dx-g-page-padding-horizontal);
15
24
  }
16
25
 
17
26
  .item-grid {
@@ -19,10 +28,8 @@
19
28
  grid-template-columns: 1fr 1fr 1fr;
20
29
  grid-gap: var(--dx-g-spacing-xl) var(--dx-g-spacing-3xl);
21
30
  justify-items: center;
22
- padding: 0 var(--dx-g-page-padding-horizontal);
23
31
  width: 100%;
24
32
  max-width: 1024px;
25
- margin: auto;
26
33
  }
27
34
 
28
35
  .item {
@@ -1,19 +1,23 @@
1
1
  <template>
2
2
  <div class="three-col-list-section">
3
- <div class="item-grid">
4
- <template for:each={items} for:item="item">
5
- <div class="item" key={item.title}>
6
- <dx-icon-badge
7
- symbol={item.iconSymbol}
8
- sprite={item.iconSprite}
9
- color={item.iconColor}
10
- background-color={item.iconBackgroundColor}
11
- background-size="large"
12
- ></dx-icon-badge>
13
- <h3 class="title dx-text-heading-4b">{item.title}</h3>
14
- <span class="subtitle dx-text-body-2">{item.subtitle}</span>
15
- </div>
16
- </template>
3
+ <div class="item-grid-padding">
4
+ <div class="item-grid">
5
+ <template for:each={items} for:item="item">
6
+ <div class="item" key={item.title}>
7
+ <dx-icon-badge
8
+ symbol={item.iconSymbol}
9
+ sprite={item.iconSprite}
10
+ color={item.iconColor}
11
+ background-color={item.iconBackgroundColor}
12
+ background-size="large"
13
+ ></dx-icon-badge>
14
+ <h3 class="title dx-text-heading-4b">{item.title}</h3>
15
+ <span class="subtitle dx-text-body-2">
16
+ {item.subtitle}
17
+ </span>
18
+ </div>
19
+ </template>
20
+ </div>
17
21
  </div>
18
22
  <div class="img-container">
19
23
  <img src="/assets/svg/mrkt-cta-section-img-left.svg" alt="" />
@@ -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 {