@salesforcedevs/dx-components 1.22.0-responsive-2 → 1.22.0-responsive-3

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/dx-components",
3
- "version": "1.22.0-responsive-2",
3
+ "version": "1.22.0-responsive-3",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -30,8 +30,7 @@ footer.signup-variant-no-signup {
30
30
  .footer-group {
31
31
  display: flex;
32
32
  flex-direction: column;
33
- flex: 1 1 160px;
34
- min-width: 160px;
33
+ flex: 0 1 content;
35
34
  }
36
35
 
37
36
  .footer-group > *:not(:last-child) {
@@ -195,7 +194,7 @@ footer.signup-variant-no-signup {
195
194
  gap: var(--dx-g-spacing-4xl);
196
195
  height: 218px;
197
196
  overflow: hidden;
198
- align-content: flex-start;
197
+ justify-content: flex-end;
199
198
  }
200
199
 
201
200
  .locales {
@@ -1,457 +0,0 @@
1
- @import "dxHelpers/reset";
2
- @import "dxHelpers/text";
3
-
4
- .content-container {
5
- padding: 0 var(--dx-g-global-header-padding-horizontal);
6
- }
7
-
8
- a {
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- transition: var(--dx-g-transition-hue-1x);
13
- }
14
-
15
- footer {
16
- padding-top: var(--dx-c-footer-padding-top, var(--dx-g-spacing-5xl));
17
- }
18
-
19
- footer.signup-variant-large-signup {
20
- padding-top: 160px;
21
- }
22
-
23
- footer.signup-variant-terms-only,
24
- footer.signup-variant-no-signup {
25
- padding-top: 0;
26
- }
27
-
28
- /* COMMON UI PIECES */
29
-
30
- .footer-group {
31
- display: flex;
32
- flex-direction: column;
33
- }
34
-
35
- .footer-group > *:not(:last-child) {
36
- margin-bottom: 4px;
37
- }
38
-
39
- .subheading {
40
- font-family: var(--dx-g-font-display);
41
- font-size: var(--dx-g-text-sm);
42
- letter-spacing: 1px;
43
- text-transform: uppercase;
44
- color: var(--dx-footer-themed-header-color);
45
- }
46
-
47
- .large-signup-heading {
48
- color: var(--dx-footer-themed-header-color);
49
- }
50
-
51
- .term-icon {
52
- width: 35px;
53
- margin: 0 var(--dx-g-spacing-xs);
54
- }
55
-
56
- /* TOP */
57
-
58
- .content-container_top {
59
- display: flex;
60
- flex-direction: row;
61
- justify-content: center;
62
- align-items: center;
63
- position: relative;
64
- background: var(--dx-footer-themed-top-background-color);
65
- height: 78px;
66
- border-bottom: 2px solid var(--dx-footer-themed-top-border-color);
67
- }
68
-
69
- .content-container_top > .subheading {
70
- margin-right: var(--dx-g-spacing-lg);
71
- text-align: right;
72
- transform: translateY(2px);
73
- }
74
-
75
- .content-container_top_large {
76
- position: relative;
77
- padding: 0 var(--dx-g-page-padding-horizontal);
78
- height: 504px;
79
- background: var(--dx-footer-themed-top-large-background-color);
80
- }
81
-
82
- .content-container_top_large_no_signup {
83
- height: 33vw;
84
- }
85
-
86
- .subscription {
87
- position: relative;
88
- z-index: 1;
89
- grid-area: subscription;
90
- display: flex;
91
- flex-direction: column;
92
- text-align: left;
93
- }
94
-
95
- .subscription > *:not(:last-child) {
96
- margin-bottom: var(--dx-g-spacing-lg);
97
- }
98
-
99
- .subscription p {
100
- max-width: 536px;
101
- }
102
-
103
- .graphic {
104
- user-select: none;
105
- -webkit-user-drag: none;
106
- background-repeat: no-repeat;
107
- background-position: right 0 bottom 0;
108
- background-size: 100%;
109
- }
110
-
111
- .content-container_top > .graphic {
112
- align-self: flex-end;
113
- transform: translateY(2px);
114
- flex-shrink: 0;
115
- }
116
-
117
- .graphic-trees {
118
- height: 112px;
119
- width: 110px;
120
- margin-right: var(--dx-g-spacing-lg);
121
- background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-trees.svg");
122
- filter: var(--dx-g-svg-filter);
123
- }
124
-
125
- .graphic-mountains {
126
- height: 96px;
127
- width: 220px;
128
- margin-right: var(--dx-g-spacing-lg);
129
- background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-mountains-2.svg");
130
- filter: var(--dx-g-svg-filter);
131
- }
132
-
133
- .graphic-mountains-mobile {
134
- display: none;
135
- position: absolute;
136
- left: 0;
137
- bottom: 0;
138
- height: 56px;
139
- width: 100px;
140
- background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-mountains-small-2.svg");
141
- filter: var(--dx-g-svg-filter);
142
- }
143
-
144
- .graphic-trees-small {
145
- height: 66px;
146
- width: 52px;
147
- margin-left: var(--dx-g-spacing-lg);
148
- background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-trees-small.svg");
149
- filter: var(--dx-g-svg-filter);
150
- }
151
-
152
- .graphic-large {
153
- z-index: 0;
154
- position: absolute;
155
- left: 0;
156
- bottom: -2px;
157
- width: 100%;
158
- height: 100%;
159
- background-image: var(--dx-footer-themed-large-graphic);
160
- background-size: 101%;
161
- }
162
-
163
- /* MIDDLE */
164
-
165
- .content-container_middle {
166
- display: grid;
167
- grid-gap: var(--dx-g-spacing-xl);
168
- grid-template:
169
- "logo general" auto
170
- "socials general" max-content
171
- "locales general" max-content / auto max-content;
172
- background: var(--dx-footer-themed-background-color);
173
- padding-top: var(--dx-g-spacing-4xl);
174
- padding-bottom: var(--dx-g-spacing-3xl);
175
- container-type: inline-size;
176
- container-name: footer-middle;
177
- }
178
-
179
- .logo {
180
- grid-area: logo;
181
- width: max-content;
182
- height: var(--dx-g-spacing-4xl);
183
- }
184
-
185
- .logo > img {
186
- height: 100%;
187
- user-select: none;
188
- -webkit-user-drag: none;
189
- }
190
-
191
- .general {
192
- grid-area: general;
193
- display: grid;
194
- grid-template-columns: repeat(3, max-content);
195
- grid-gap: var(--dx-g-spacing-4xl);
196
- }
197
-
198
- .locales {
199
- grid-area: locales;
200
- }
201
-
202
- .socials {
203
- grid-area: socials;
204
- display: grid;
205
- grid-template-columns: repeat(3, max-content);
206
- grid-auto-rows: min-content;
207
- grid-gap: var(--dx-g-spacing-sm);
208
- }
209
-
210
- .socials > a {
211
- border-radius: 50%;
212
- height: var(--dx-g-spacing-xl);
213
- width: var(--dx-g-spacing-xl);
214
- flex-shrink: 0;
215
- display: flex;
216
- justify-content: center;
217
- align-items: center;
218
- color: var(--dx-g-cloud-blue-vibrant-95);
219
- }
220
-
221
- .terms a {
222
- color: var(--dx-g-blue-vibrant-70);
223
- text-decoration: underline;
224
- }
225
-
226
- .terms > span,
227
- .terms_links > a {
228
- margin: var(--dx-g-spacing-sm) 0;
229
- }
230
-
231
- .terms > span > a {
232
- display: inline;
233
- }
234
-
235
- .terms a:hover {
236
- color: var(--dx-g-blue-vibrant-80);
237
- }
238
-
239
- .socials > a:hover {
240
- background: var(--dx-g-blue-vibrant-80);
241
- }
242
-
243
- .socials > a > svg {
244
- fill: var(--dx-footer-themed-svg-icon-color);
245
- height: 100%;
246
- }
247
-
248
- /* BOTTOM */
249
- .content-container_bottom {
250
- display: flex;
251
- background: var(--dx-footer-themed-terms-and-conditions-background-color);
252
- }
253
-
254
- .content-container_bottom a {
255
- text-decoration: underline;
256
- }
257
-
258
- .terms {
259
- width: 100%;
260
- display: flex;
261
- justify-content: center;
262
- flex-wrap: wrap;
263
- font-family: var(--dx-g-font-sans);
264
- font-size: var(--dx-g-text-xs);
265
- margin: var(--dx-g-spacing-md) 0;
266
- }
267
-
268
- .terms > span {
269
- padding-right: var(--dx-g-spacing-lg);
270
- color: white;
271
- }
272
-
273
- .terms > span > img {
274
- margin-right: var(--dx-g-spacing-xs);
275
- }
276
-
277
- .terms_links {
278
- display: flex;
279
- flex-wrap: wrap;
280
- }
281
-
282
- .terms_links > *:not(:last-child) {
283
- margin-right: var(--dx-g-spacing-lg);
284
- }
285
-
286
- @media screen and (min-width: 1400px) {
287
- .content-container_top_large:not(.content-container_top_large_no_signup) {
288
- /* takes into account the background assets' h:w ratio */
289
- height: 38vw;
290
- }
291
- }
292
-
293
- @media screen and (max-width: 1160px) {
294
- .graphic-trees {
295
- display: none;
296
- }
297
- }
298
-
299
- /* TABLET */
300
- @media screen and (max-width: 1024px) {
301
- /* TOP */
302
- .graphic-trees-small {
303
- display: none;
304
- }
305
-
306
- .graphic-large {
307
- background-size: 122.92%;
308
- }
309
-
310
- .content-container_top_large_no_signup .graphic-large {
311
- background-size: 101%;
312
- }
313
-
314
- .content-container_top_large {
315
- height: 464px;
316
- padding-top: var(--dx-g-spacing-2xl);
317
- }
318
-
319
- .content-container_top_large_no_signup {
320
- height: 38vw;
321
- padding-top: 0;
322
- }
323
-
324
- .subscription h3 {
325
- font-size: 24px;
326
- line-height: 28px;
327
- }
328
-
329
- .subscription p {
330
- max-width: 456px;
331
- }
332
-
333
- dx-input {
334
- width: 320px;
335
- }
336
-
337
- /* MIDDLE */
338
- .content-container_middle {
339
- grid-gap: var(--dx-g-spacing-lg);
340
- padding-top: var(--dx-g-spacing-2xl);
341
- padding-bottom: var(--dx-g-spacing-2xl);
342
- }
343
-
344
- .logo {
345
- height: var(--dx-g-spacing-2xl);
346
- }
347
-
348
- .socials > a {
349
- height: var(--dx-g-spacing-lg);
350
- width: var(--dx-g-spacing-lg);
351
- }
352
-
353
- .socials > a > dx-icon {
354
- --dx-c-icon-size: var(--dx-g-icon-size-xs);
355
- }
356
-
357
- .socials > a.github > dx-icon {
358
- --dx-c-icon-size: var(--dx-g-spacing-lg);
359
- }
360
-
361
- .general {
362
- grid-gap: var(--dx-g-spacing-xl);
363
- }
364
- }
365
-
366
- /* Container Queries - based on actual footer width, not viewport! */
367
- @container footer-middle (max-width: 700px) {
368
- .footer-group:nth-child(3) {
369
- display: none !important;
370
- }
371
- }
372
-
373
- @container footer-middle (max-width: 500px) {
374
- .footer-group:nth-child(2) {
375
- display: none !important;
376
- }
377
- }
378
-
379
- /* MOBILE - LARGE */
380
- @media screen and (max-width: 768px) {
381
- footer.signup-variant-large-signup {
382
- padding-top: var(--dx-g-spacing-4xl);
383
- }
384
-
385
- /* TOP */
386
- .content-container_top {
387
- flex-direction: column;
388
- padding: var(--dx-g-spacing-lg) var(--dx-g-spacing-md)
389
- var(--dx-g-spacing-2xl) var(--dx-g-spacing-md);
390
- height: unset;
391
- }
392
-
393
- .content-container_top > .subheading {
394
- text-align: center;
395
- margin-right: unset;
396
- margin-bottom: var(--dx-g-spacing-lg);
397
- }
398
-
399
- .content-container_top > dx-input {
400
- margin-top: var(--dx-g-spacing-md);
401
- }
402
-
403
- .content-container_top > .graphic-mountains-mobile {
404
- display: unset;
405
- }
406
-
407
- .content-container_top_large {
408
- height: unset;
409
- padding-bottom: 140px;
410
- }
411
-
412
- .content-container_top_large_no_signup {
413
- height: 44vw;
414
- }
415
-
416
- .graphic-mountains {
417
- display: none;
418
- }
419
-
420
- .content-container_top_large_no_signup .graphic-large,
421
- .graphic-large {
422
- background-size: 160%;
423
- background-position: right 50% bottom 0;
424
- }
425
-
426
- .subscription h3 {
427
- width: 240px;
428
- max-width: 100%;
429
- }
430
-
431
- .subscription p {
432
- width: 100%;
433
- }
434
-
435
- .footer-group:nth-child(2),
436
- .footer-group:nth-child(3) {
437
- display: flex;
438
- }
439
- }
440
-
441
- /* MOBILE - SMALL */
442
- @media screen and (max-width: 640px) {
443
- /* TOP */
444
- .subscription dx-input {
445
- width: 100%;
446
- }
447
-
448
- .term-icon {
449
- margin-left: 0;
450
- }
451
- }
452
-
453
- @media screen and (max-width: 380px) {
454
- .content-container_middle {
455
- display: none;
456
- }
457
- }