@primer/brand-css 0.0.0-20260212181732 → 0.0.0-20260212201751
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/components/SubNav/SubNav.css +151 -97
- package/package.json +1 -1
- package/components/Tiles/Tiles.css +0 -165
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
position: absolute;
|
|
3
3
|
width: 100%;
|
|
4
4
|
z-index: 2;
|
|
5
|
+
border-block: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
.SubNav__container--with-anchor-nav {
|
|
@@ -9,11 +10,15 @@
|
|
|
9
10
|
position: relative;
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
.SubNav__container--with-anchor-nav .SubNav {
|
|
14
|
+
border-block: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
.SubNav {
|
|
13
18
|
width: 100%;
|
|
14
19
|
display: flex;
|
|
15
|
-
padding: var(--base-size-16);
|
|
16
20
|
z-index: 1;
|
|
21
|
+
background-color: var(--brand-SubNav-bgColor);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
[data-color-mode='dark'] .SubNav {
|
|
@@ -21,15 +26,19 @@
|
|
|
21
26
|
-moz-osx-font-smoothing: grayscale;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
|
-
.SubNav__heading
|
|
29
|
+
.SubNav__heading,
|
|
30
|
+
.SubNav__subHeading {
|
|
25
31
|
display: block;
|
|
26
|
-
font-
|
|
32
|
+
font-size: calc(var(--base-size-16) - 1px);
|
|
33
|
+
line-height: calc(var(--base-size-16) - 1px);
|
|
34
|
+
font-weight: var(--brand-text-subhead-weight-medium);
|
|
27
35
|
color: var(--brand-color-text-default);
|
|
28
36
|
font-family: var(--brand-heading-fontFamily);
|
|
29
37
|
text-decoration: none;
|
|
30
38
|
}
|
|
31
39
|
|
|
32
|
-
.SubNav__heading:hover
|
|
40
|
+
.SubNav__heading:hover,
|
|
41
|
+
.SubNav__subHeading:hover {
|
|
33
42
|
color: var(--brand-color-text-muted);
|
|
34
43
|
text-decoration: none !important; /* dotcom override */
|
|
35
44
|
}
|
|
@@ -39,10 +48,17 @@
|
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
.SubNav__heading-container {
|
|
51
|
+
min-height: 60px;
|
|
42
52
|
position: relative;
|
|
43
53
|
z-index: 9998;
|
|
44
|
-
display:
|
|
45
|
-
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
padding: var(--base-size-16);
|
|
57
|
+
border-inline-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.SubNav__heading-container + .SubNav__heading-container {
|
|
61
|
+
padding-inline-start: var(--base-size-24);
|
|
46
62
|
}
|
|
47
63
|
|
|
48
64
|
.SubNav--has-shadow {
|
|
@@ -80,16 +96,6 @@
|
|
|
80
96
|
display: none;
|
|
81
97
|
}
|
|
82
98
|
|
|
83
|
-
.SubNav__heading-separator {
|
|
84
|
-
position: relative;
|
|
85
|
-
top: 0;
|
|
86
|
-
color: var(--brand-color-text-muted);
|
|
87
|
-
min-width: var(--base-size-8);
|
|
88
|
-
min-height: var(--base-size-16);
|
|
89
|
-
display: inline-flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
99
|
/*
|
|
94
100
|
* Anchor Nav Submenu
|
|
95
101
|
*/
|
|
@@ -142,8 +148,8 @@
|
|
|
142
148
|
|
|
143
149
|
.SubNav__sub-menu--anchor {
|
|
144
150
|
display: flex;
|
|
145
|
-
padding-block
|
|
146
|
-
|
|
151
|
+
padding-block: var(--base-size-12);
|
|
152
|
+
border-block: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
147
153
|
}
|
|
148
154
|
|
|
149
155
|
.SubNav__sub-menu--anchor .SubNav__sub-menu-list {
|
|
@@ -154,10 +160,23 @@
|
|
|
154
160
|
gap: var(--base-size-20);
|
|
155
161
|
}
|
|
156
162
|
|
|
163
|
+
.SubNav__link-label {
|
|
164
|
+
font-weight: 450; /* FIXME: unsupported font weight */
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.SubNav__sub-menu--anchor .SubNav__link-label {
|
|
168
|
+
padding: var(--base-size-6) var(--base-size-12);
|
|
169
|
+
background-color: transparent;
|
|
170
|
+
border-radius: var(--brand-borderRadius-full);
|
|
171
|
+
transition: background-color var(--brand-animation-duration-default) var(--brand-animation-easing-default),
|
|
172
|
+
color var(--brand-animation-duration-default) var(--brand-animation-easing-default);
|
|
173
|
+
}
|
|
174
|
+
|
|
157
175
|
.SubNav__sub-menu--anchor .SubNav__link--is-in-view .SubNav__link-label {
|
|
158
176
|
color: var(--brand-color-text-default);
|
|
177
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
159
178
|
}
|
|
160
|
-
|
|
179
|
+
/*
|
|
161
180
|
.SubNav__sub-menu--anchor .SubNav__link--is-in-view .SubNav__link-label::after,
|
|
162
181
|
.SubNav__link:hover .SubNav__link-label::after,
|
|
163
182
|
.SubNav__link:focus-visible .SubNav__link-label::after,
|
|
@@ -176,7 +195,7 @@
|
|
|
176
195
|
.SubNav__sub-menu--anchor .SubNav__link--is-in-view .SubNav__link-label::after {
|
|
177
196
|
border-color: var(--brand-color-text-default);
|
|
178
197
|
opacity: 1;
|
|
179
|
-
}
|
|
198
|
+
} */
|
|
180
199
|
|
|
181
200
|
.SubNav__link:focus-visible .SubNav__link-label::after,
|
|
182
201
|
.SubNav__sub-menu--anchor .SubNav__link--is-in-view:focus-visible .SubNav__link-label::after {
|
|
@@ -188,7 +207,7 @@
|
|
|
188
207
|
color: var(--brand-SubNav-color-link-active);
|
|
189
208
|
text-decoration: none !important; /* dotcom override */
|
|
190
209
|
}
|
|
191
|
-
|
|
210
|
+
/*
|
|
192
211
|
.SubNav__link-label::after,
|
|
193
212
|
.SubNav__subHeading::after {
|
|
194
213
|
content: '';
|
|
@@ -204,11 +223,11 @@
|
|
|
204
223
|
opacity: 1;
|
|
205
224
|
transform: scale(0);
|
|
206
225
|
transform-origin: center;
|
|
207
|
-
}
|
|
226
|
+
} */
|
|
208
227
|
|
|
209
|
-
.SubNav__link[aria-current]:not([aria-current='false']) .SubNav__link-label::after {
|
|
228
|
+
/* .SubNav__link[aria-current]:not([aria-current='false']) .SubNav__link-label::after {
|
|
210
229
|
border-color: var(--brand-color-text-default);
|
|
211
|
-
}
|
|
230
|
+
} */
|
|
212
231
|
|
|
213
232
|
.SubNav__link:hover .SubNav__link-label {
|
|
214
233
|
transition: color var(--brand-animation-duration-fast) var(--brand-animation-easing-default);
|
|
@@ -289,8 +308,14 @@
|
|
|
289
308
|
display: flex;
|
|
290
309
|
width: 100%;
|
|
291
310
|
white-space: pre;
|
|
311
|
+
position: relative;
|
|
312
|
+
z-index: 9998;
|
|
292
313
|
}
|
|
293
314
|
|
|
315
|
+
/* .SubNav--open .SubNav__header-container {
|
|
316
|
+
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
317
|
+
} */
|
|
318
|
+
|
|
294
319
|
.SubNav__heading-separator {
|
|
295
320
|
margin-inline-end: var(--base-size-16);
|
|
296
321
|
z-index: 9998;
|
|
@@ -304,49 +329,54 @@
|
|
|
304
329
|
justify-content: center;
|
|
305
330
|
z-index: 9998;
|
|
306
331
|
display: none;
|
|
332
|
+
padding-inline: var(--base-size-8);
|
|
307
333
|
}
|
|
308
334
|
|
|
309
335
|
.SubNav__links-overlay--open {
|
|
310
336
|
display: flex;
|
|
311
337
|
flex-direction: column;
|
|
312
338
|
gap: var(--base-size-8);
|
|
339
|
+
padding-block: var(--base-size-8);
|
|
313
340
|
padding-block-start: var(--base-size-16);
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.SubNav--has-sub-heading .SubNav__links-overlay--open {
|
|
318
|
-
border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
|
|
319
|
-
margin-block-start: var(--base-size-16);
|
|
341
|
+
border-block-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
320
342
|
}
|
|
321
343
|
|
|
322
344
|
.SubNav__links-overlay--open .SubNav__link:hover .SubNav__link-label {
|
|
323
345
|
color: var(--brand-color-text-default);
|
|
324
346
|
}
|
|
325
347
|
|
|
326
|
-
.SubNav__links-overlay--open .SubNav__link--has-sub-menu:hover .SubNav__link-label {
|
|
327
|
-
color: var(--brand-color-text-muted);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
348
|
.SubNav__overlay-toggle {
|
|
331
|
-
background-color: transparent;
|
|
332
|
-
border: none;
|
|
333
|
-
cursor: pointer;
|
|
334
349
|
display: flex;
|
|
335
350
|
position: relative;
|
|
336
351
|
width: 100%;
|
|
337
352
|
order: 1;
|
|
338
353
|
z-index: 9999;
|
|
339
|
-
padding: 0;
|
|
340
354
|
justify-content: flex-end;
|
|
355
|
+
padding-inline-end: var(--base-size-16);
|
|
341
356
|
}
|
|
342
357
|
|
|
343
358
|
.SubNav--has-sub-heading:not(.SubNav--subHeadingActive) .SubNav__overlay-toggle {
|
|
344
|
-
|
|
359
|
+
border-block-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
360
|
+
display: block;
|
|
361
|
+
padding-block: var(--base-size-12);
|
|
362
|
+
margin-block: 0;
|
|
345
363
|
}
|
|
346
364
|
|
|
347
365
|
.SubNav__overlay-toggle-content {
|
|
348
|
-
justify-content: space-between;
|
|
349
366
|
width: 100%;
|
|
367
|
+
padding-inline-start: var(--base-size-16);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.SubNav__overlay-toggle-label {
|
|
371
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
372
|
+
border: none;
|
|
373
|
+
border-radius: var(--brand-borderRadius-full);
|
|
374
|
+
padding: var(--base-size-8) var(--base-size-12);
|
|
375
|
+
gap: var(--base-size-6);
|
|
376
|
+
display: flex;
|
|
377
|
+
align-items: center;
|
|
378
|
+
cursor: pointer;
|
|
379
|
+
font: inherit;
|
|
350
380
|
}
|
|
351
381
|
|
|
352
382
|
.SubNav--full-width .SubNav__overlay-toggle {
|
|
@@ -367,10 +397,27 @@
|
|
|
367
397
|
color: var(--brand-SubNav-color-link-active);
|
|
368
398
|
}
|
|
369
399
|
|
|
400
|
+
.SubNav__links-overlay--open .SubNav__link {
|
|
401
|
+
padding: var(--base-size-8);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.SubNav__links-overlay--open .SubNav__link[aria-current]:not([aria-current='false']) {
|
|
405
|
+
display: inline-block;
|
|
406
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
407
|
+
border-radius: var(--brand-borderRadius-full);
|
|
408
|
+
outline: var(--base-size-4) solid var(--brand-SubNav-color-link-bgColor);
|
|
409
|
+
padding-block: var(--base-size-2);
|
|
410
|
+
margin-inline-start: var(--base-size-8);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.SubNav__links-overlay--open .SubNav__link:hover {
|
|
414
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
415
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
416
|
+
}
|
|
417
|
+
|
|
370
418
|
.SubNav__links-overlay--open .SubNav__link,
|
|
371
419
|
.SubNav__links-overlay--open .SubNav__action-container {
|
|
372
420
|
display: block;
|
|
373
|
-
padding: var(--base-size-8) 0;
|
|
374
421
|
animation: fade-in 0.3s var(--brand-animation-easing-glide) forwards;
|
|
375
422
|
}
|
|
376
423
|
|
|
@@ -391,6 +438,7 @@
|
|
|
391
438
|
padding: 0;
|
|
392
439
|
margin: 0;
|
|
393
440
|
padding-inline-start: var(--base-size-16);
|
|
441
|
+
padding-block-start: var(--base-size-8);
|
|
394
442
|
}
|
|
395
443
|
|
|
396
444
|
.SubNav__sub-menu--dropdown .SubNav__link:hover .SubNav__link-label {
|
|
@@ -422,8 +470,6 @@
|
|
|
422
470
|
}
|
|
423
471
|
|
|
424
472
|
.SubNav__link-label {
|
|
425
|
-
font-size: var(--brand-text-size-200);
|
|
426
|
-
font-weight: var(--base-text-weight-medium);
|
|
427
473
|
padding-block-end: var(--base-size-6);
|
|
428
474
|
}
|
|
429
475
|
|
|
@@ -447,8 +493,9 @@
|
|
|
447
493
|
display: block;
|
|
448
494
|
white-space: pre;
|
|
449
495
|
position: relative;
|
|
496
|
+
top: var(--base-size-2);
|
|
450
497
|
}
|
|
451
|
-
|
|
498
|
+
/*
|
|
452
499
|
.SubNav .SubNav__link-label::after {
|
|
453
500
|
opacity: 0;
|
|
454
501
|
transform: scale(0);
|
|
@@ -460,7 +507,7 @@
|
|
|
460
507
|
.SubNav__link[aria-current]:not([aria-current='false']) .SubNav__link-label::after {
|
|
461
508
|
opacity: 1;
|
|
462
509
|
transform: scale(1);
|
|
463
|
-
}
|
|
510
|
+
} */
|
|
464
511
|
}
|
|
465
512
|
|
|
466
513
|
.SubNav__overlay-toggle-icon {
|
|
@@ -481,7 +528,7 @@
|
|
|
481
528
|
.SubNav__heading:focus-visible,
|
|
482
529
|
.SubNav__subHeading:focus-visible,
|
|
483
530
|
.SubNav__sub-menu-toggle:focus-visible,
|
|
484
|
-
.SubNav__overlay-toggle:focus-visible {
|
|
531
|
+
.SubNav__overlay-toggle-label:focus-visible {
|
|
485
532
|
outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
|
|
486
533
|
outline-offset: var(--base-size-2);
|
|
487
534
|
}
|
|
@@ -492,20 +539,24 @@
|
|
|
492
539
|
white-space: nowrap;
|
|
493
540
|
}
|
|
494
541
|
|
|
495
|
-
.SubNav__subHeading[aria-current]:not([aria-current='false'])
|
|
496
|
-
|
|
497
|
-
border
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.SubNav__subHeading:focus-visible::after {
|
|
503
|
-
opacity: 0;
|
|
542
|
+
.SubNav__subHeading[aria-current]:not([aria-current='false']) {
|
|
543
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
544
|
+
border: none;
|
|
545
|
+
border-radius: var(--brand-borderRadius-full);
|
|
546
|
+
padding: var(--base-size-6) var(--base-size-12);
|
|
504
547
|
}
|
|
505
548
|
|
|
506
549
|
@media screen and (min-width: 48rem) {
|
|
507
|
-
.
|
|
508
|
-
padding: var(--base-size-
|
|
550
|
+
.SubNav__heading-container {
|
|
551
|
+
padding-inline: var(--base-size-24);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.SubNav__overlay-toggle-content {
|
|
555
|
+
padding-inline-start: var(--base-size-24);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.SubNav__links-overlay--open {
|
|
559
|
+
padding: var(--base-size-24);
|
|
509
560
|
}
|
|
510
561
|
|
|
511
562
|
.SubNav--full-width {
|
|
@@ -527,16 +578,24 @@
|
|
|
527
578
|
|
|
528
579
|
@media screen and (min-width: 63.25rem) {
|
|
529
580
|
.SubNav {
|
|
530
|
-
padding: var(--base-size-16) var(--base-size-32);
|
|
531
581
|
align-items: center;
|
|
532
582
|
display: flex;
|
|
533
583
|
z-index: 92;
|
|
584
|
+
padding-inline: var(--base-size-32);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.SubNav__links-overlay--open {
|
|
588
|
+
padding: 0;
|
|
534
589
|
}
|
|
535
590
|
|
|
536
591
|
.SubNav:has(+ .SubNav__anchor-menu-container) {
|
|
537
592
|
padding-block-end: 0;
|
|
538
593
|
}
|
|
539
594
|
|
|
595
|
+
.SubNav__heading-container {
|
|
596
|
+
padding-inline-start: 0;
|
|
597
|
+
}
|
|
598
|
+
|
|
540
599
|
.SubNav--full-width {
|
|
541
600
|
padding-inline: 0;
|
|
542
601
|
}
|
|
@@ -549,11 +608,6 @@
|
|
|
549
608
|
padding-block-end: 1px;
|
|
550
609
|
}
|
|
551
610
|
|
|
552
|
-
.SubNav__heading {
|
|
553
|
-
font-size: calc(var(--base-size-20) - 2px);
|
|
554
|
-
line-height: var(--base-size-24);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
611
|
.SubNav__heading-separator {
|
|
558
612
|
margin-inline-end: var(--base-size-20);
|
|
559
613
|
display: inline-flex;
|
|
@@ -569,26 +623,18 @@
|
|
|
569
623
|
align-items: center;
|
|
570
624
|
}
|
|
571
625
|
|
|
572
|
-
.SubNav__heading-container {
|
|
573
|
-
margin-inline-end: var(--base-size-20);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
626
|
.SubNav__header-container {
|
|
577
627
|
display: flex;
|
|
578
628
|
align-items: center;
|
|
579
629
|
}
|
|
580
630
|
|
|
581
|
-
.SubNav__subHeading {
|
|
582
|
-
font-size: var(--brand-text-size-100);
|
|
583
|
-
line-height: var(--brand-text-lineHeight-100);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
631
|
.SubNav__links-overlay {
|
|
587
632
|
align-items: center;
|
|
588
633
|
display: flex;
|
|
589
634
|
gap: var(--base-size-20);
|
|
590
635
|
z-index: 92;
|
|
591
636
|
flex-grow: 1;
|
|
637
|
+
padding-inline-start: var(--base-size-24);
|
|
592
638
|
}
|
|
593
639
|
|
|
594
640
|
.SubNav__link {
|
|
@@ -596,6 +642,8 @@
|
|
|
596
642
|
transition: color 0.2s var(--brand-animation-easing-glide);
|
|
597
643
|
position: relative;
|
|
598
644
|
padding: var(--base-size-4) 0;
|
|
645
|
+
/* Optical alignment */
|
|
646
|
+
top: 1px;
|
|
599
647
|
}
|
|
600
648
|
|
|
601
649
|
.SubNav__link-label {
|
|
@@ -620,22 +668,20 @@
|
|
|
620
668
|
|
|
621
669
|
.SubNav__sub-menu.SubNav__sub-menu--dropdown {
|
|
622
670
|
background-clip: padding-box;
|
|
623
|
-
background-color: var(--brand-
|
|
624
|
-
border: var(--
|
|
625
|
-
border-radius: var(--brand-borderRadius-
|
|
626
|
-
box-shadow: var(--shadow-floating-legacy, var(--color-shadow-large));
|
|
671
|
+
background-color: var(--brand-color-canvas-default);
|
|
672
|
+
border: var(--brand-color-border-muted) solid var(--brand-borderWidth-thin);
|
|
673
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
627
674
|
left: 0;
|
|
628
675
|
list-style: none;
|
|
629
676
|
margin-block-start: var(--base-size-8);
|
|
630
|
-
padding: var(--base-size-
|
|
631
|
-
padding-inline-end: var(--base-size-24);
|
|
677
|
+
padding: var(--base-size-8);
|
|
632
678
|
position: absolute;
|
|
633
|
-
top:
|
|
679
|
+
top: 90%;
|
|
634
680
|
z-index: 9998;
|
|
635
681
|
transition-timing-function: var(--brand-animation-easing-glide);
|
|
636
682
|
transition-duration: var(--brand-animation-duration-fast);
|
|
637
683
|
transition-property: opacity, transform;
|
|
638
|
-
left:
|
|
684
|
+
left: var(--base-size-4);
|
|
639
685
|
visibility: hidden;
|
|
640
686
|
opacity: 0;
|
|
641
687
|
transform: scale(0.99) translateY(-0.7em) translateX(-8px);
|
|
@@ -650,7 +696,6 @@
|
|
|
650
696
|
visibility: visible;
|
|
651
697
|
opacity: 1;
|
|
652
698
|
transform: scale(1) translateY(0) translateX(-8px);
|
|
653
|
-
box-shadow: var(--brand-SubNav-shadow);
|
|
654
699
|
}
|
|
655
700
|
|
|
656
701
|
.SubNav__sub-menu-toggle {
|
|
@@ -672,10 +717,6 @@
|
|
|
672
717
|
display: block;
|
|
673
718
|
}
|
|
674
719
|
|
|
675
|
-
.SubNav__sub-menu--dropdown .SubNav__link:hover .SubNav__link-label {
|
|
676
|
-
color: var(--brand-color-text-default) !important;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
720
|
.SubNav__sub-menu--dropdown .SubNav__link-label::after {
|
|
680
721
|
opacity: 1;
|
|
681
722
|
transform: scale(0);
|
|
@@ -694,18 +735,31 @@
|
|
|
694
735
|
padding: var(--base-size-4) 0;
|
|
695
736
|
}
|
|
696
737
|
|
|
697
|
-
/* Show
|
|
698
|
-
.SubNav__link--has-sub-menu
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
transform: scale(0.8, 1);
|
|
738
|
+
/* Show pill on submenu parent */
|
|
739
|
+
.SubNav__link--has-active-sub-menu {
|
|
740
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
741
|
+
border-radius: var(--brand-borderRadius-full);
|
|
742
|
+
padding: 0 var(--base-size-12);
|
|
703
743
|
}
|
|
704
744
|
|
|
705
|
-
.SubNav__link--has-sub-menu .SubNav__link
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
745
|
+
.SubNav__link--has-active-sub-menu > .SubNav__link {
|
|
746
|
+
padding-block: 0;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.SubNav__sub-menu.SubNav__sub-menu--dropdown .SubNav__link {
|
|
750
|
+
padding: var(--base-size-12);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.SubNav__links-overlay .SubNav__link[aria-current]:not([aria-current='false']) {
|
|
754
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
755
|
+
border-radius: var(--brand-borderRadius-full);
|
|
756
|
+
padding: var(--base-size-8);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.SubNav__sub-menu.SubNav__sub-menu--dropdown .SubNav__link[aria-current]:not([aria-current='false']),
|
|
760
|
+
.SubNav__sub-menu.SubNav__sub-menu--dropdown .SubNav__link:hover {
|
|
761
|
+
background-color: var(--brand-SubNav-color-link-bgColor);
|
|
762
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
709
763
|
}
|
|
710
764
|
|
|
711
765
|
.SubNav__sub-menu-icon {
|
|
@@ -714,9 +768,9 @@
|
|
|
714
768
|
transition: transform var(--brand-animation-duration-fast);
|
|
715
769
|
}
|
|
716
770
|
|
|
717
|
-
.SubNav__link--has-sub-menu:hover .SubNav__sub-menu-icon {
|
|
771
|
+
/* .SubNav__link--has-sub-menu:hover .SubNav__sub-menu-icon {
|
|
718
772
|
transform: translateY(2px);
|
|
719
|
-
}
|
|
773
|
+
} */
|
|
720
774
|
|
|
721
775
|
.SubNav__sub-menu--anchor {
|
|
722
776
|
padding-inline: var(--base-size-32);
|
package/package.json
CHANGED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
.Tiles {
|
|
2
|
-
container-type: inline-size;
|
|
3
|
-
width: 100%;
|
|
4
|
-
color: var(--brand-color-text-default);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.Tiles-grid {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: repeat(2, 1fr);
|
|
10
|
-
list-style: none;
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media screen and (min-width: 48rem) {
|
|
16
|
-
.Tiles--layout-default .Tiles-grid {
|
|
17
|
-
grid-template-columns: repeat(4, 1fr);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@media screen and (min-width: 63.25rem) {
|
|
22
|
-
.Tiles--layout-default .Tiles-grid {
|
|
23
|
-
grid-template-columns: repeat(6, 1fr);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@media screen and (min-width: 48rem) {
|
|
28
|
-
.Tiles--layout-compact .Tiles-grid {
|
|
29
|
-
grid-template-columns: repeat(4, 1fr);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media screen and (min-width: 63.25rem) {
|
|
34
|
-
.Tiles--layout-compact .Tiles-grid {
|
|
35
|
-
grid-template-columns: repeat(8, 1fr);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.Tiles--variant-gridlines {
|
|
40
|
-
position: relative;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.Tiles--variant-gridlines::before,
|
|
44
|
-
.Tiles--variant-gridlines::after {
|
|
45
|
-
content: '';
|
|
46
|
-
position: absolute;
|
|
47
|
-
left: 50%;
|
|
48
|
-
transform: translateX(-50%);
|
|
49
|
-
width: 100vw;
|
|
50
|
-
height: 0;
|
|
51
|
-
border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.Tiles--variant-gridlines::before {
|
|
55
|
-
top: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.Tiles--variant-gridlines::after {
|
|
59
|
-
bottom: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.Tiles--variant-gridlines .Tiles-grid {
|
|
63
|
-
border-inline-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.Tiles--variant-gridlines .Tiles-item {
|
|
67
|
-
border-inline-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
68
|
-
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.Tiles-item {
|
|
72
|
-
position: relative;
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.Tiles-item-link {
|
|
78
|
-
display: flex;
|
|
79
|
-
width: 100%;
|
|
80
|
-
flex: 1;
|
|
81
|
-
text-decoration: none;
|
|
82
|
-
color: inherit;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.Tiles-item-link:focus-visible {
|
|
86
|
-
outline: var(--base-size-4) solid var(--brand-color-focus);
|
|
87
|
-
outline-offset: calc(-1 * var(--base-size-4));
|
|
88
|
-
border-radius: var(--brand-borderRadius-small);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.Tiles-item-content {
|
|
92
|
-
position: relative;
|
|
93
|
-
display: flex;
|
|
94
|
-
align-items: center;
|
|
95
|
-
justify-content: center;
|
|
96
|
-
width: 100%;
|
|
97
|
-
height: var(--brand-Tiles-default-size);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.Tiles--layout-compact .Tiles-item-content {
|
|
101
|
-
height: var(--brand-Tiles-compact-size);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.Tiles-item-media {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.Tiles-item-media svg,
|
|
111
|
-
.Tiles-item-media img {
|
|
112
|
-
width: auto;
|
|
113
|
-
height: var(--base-size-40);
|
|
114
|
-
max-width: 100%;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.Tiles--layout-compact .Tiles-item-media svg,
|
|
118
|
-
.Tiles--layout-compact .Tiles-item-media img {
|
|
119
|
-
height: var(--base-size-32);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.Tiles-item-label {
|
|
123
|
-
position: absolute;
|
|
124
|
-
bottom: 0;
|
|
125
|
-
left: 0;
|
|
126
|
-
right: 0;
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
|
-
justify-content: space-between;
|
|
130
|
-
gap: var(--base-size-4);
|
|
131
|
-
padding: var(--base-size-12) var(--base-size-16);
|
|
132
|
-
opacity: 0;
|
|
133
|
-
transform: translateY(var(--base-size-4));
|
|
134
|
-
transition: opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-default),
|
|
135
|
-
transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default);
|
|
136
|
-
pointer-events: none;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.Tiles-item-link:hover .Tiles-item-label,
|
|
140
|
-
.Tiles-item-link:focus-visible .Tiles-item-label {
|
|
141
|
-
opacity: 1;
|
|
142
|
-
transform: translateY(0);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.Tiles-item-name {
|
|
146
|
-
white-space: nowrap;
|
|
147
|
-
overflow: hidden;
|
|
148
|
-
text-overflow: ellipsis;
|
|
149
|
-
min-width: 0;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.Tiles-item-icon {
|
|
153
|
-
flex-shrink: 0;
|
|
154
|
-
color: var(--brand-color-text-default);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.Tiles-item:not(:has(.Tiles-item-link)) .Tiles-item-label {
|
|
158
|
-
display: none;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
@media (prefers-reduced-motion: reduce) {
|
|
162
|
-
.Tiles-item-label {
|
|
163
|
-
transition: none;
|
|
164
|
-
}
|
|
165
|
-
}
|