@primer/react-brand 0.7.2 → 0.8.0-rc.302d683
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/lib/AnchorNav/AnchorNav.d.ts +65 -0
- package/lib/AnchorNav/AnchorNav.visual.spec.d.ts +1 -0
- package/lib/AnchorNav/index.d.ts +1 -0
- package/lib/AnchorNav/useExpandedMenu.d.ts +2 -0
- package/lib/CTABanner/CTABanner.d.ts +51 -0
- package/lib/CTABanner/CTABanner.visual.spec.d.ts +1 -0
- package/lib/CTABanner/index.d.ts +1 -0
- package/lib/Heading/Heading.d.ts +1 -2
- package/lib/component-helpers.d.ts +7 -1
- package/lib/css/main.css +499 -20
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +15 -0
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +15 -0
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/hooks/useWindowSize.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/test-utils/mocks/match-media-mock.d.ts +0 -0
- package/package.json +1 -1
package/lib/css/main.css
CHANGED
|
@@ -89,7 +89,7 @@ select {
|
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Do not edit directly
|
|
92
|
-
* Generated on Thu,
|
|
92
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
95
|
:root,
|
|
@@ -629,7 +629,7 @@ select {
|
|
|
629
629
|
|
|
630
630
|
/**
|
|
631
631
|
* Do not edit directly
|
|
632
|
-
* Generated on Thu,
|
|
632
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
633
633
|
*/
|
|
634
634
|
|
|
635
635
|
:root {
|
|
@@ -654,7 +654,7 @@ select {
|
|
|
654
654
|
|
|
655
655
|
/**
|
|
656
656
|
* Do not edit directly
|
|
657
|
-
* Generated on Thu,
|
|
657
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
658
658
|
*/
|
|
659
659
|
|
|
660
660
|
:root {
|
|
@@ -669,7 +669,7 @@ select {
|
|
|
669
669
|
|
|
670
670
|
/**
|
|
671
671
|
* Do not edit directly
|
|
672
|
-
* Generated on Thu,
|
|
672
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
673
673
|
*/
|
|
674
674
|
|
|
675
675
|
:root {
|
|
@@ -848,7 +848,7 @@ select {
|
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
850
|
* Do not edit directly
|
|
851
|
-
* Generated on Thu,
|
|
851
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
852
852
|
*/
|
|
853
853
|
|
|
854
854
|
:root {
|
|
@@ -862,7 +862,7 @@ select {
|
|
|
862
862
|
|
|
863
863
|
/**
|
|
864
864
|
* Do not edit directly
|
|
865
|
-
* Generated on Thu,
|
|
865
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
866
866
|
*/
|
|
867
867
|
|
|
868
868
|
:root {
|
|
@@ -880,7 +880,7 @@ select {
|
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Do not edit directly
|
|
883
|
-
* Generated on Thu,
|
|
883
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
884
884
|
*/
|
|
885
885
|
|
|
886
886
|
:root,
|
|
@@ -1076,7 +1076,7 @@ select {
|
|
|
1076
1076
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Do not edit directly
|
|
1079
|
-
* Generated on Thu,
|
|
1079
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
1080
1080
|
*/
|
|
1081
1081
|
|
|
1082
1082
|
:root,
|
|
@@ -1266,7 +1266,7 @@ select {
|
|
|
1266
1266
|
|
|
1267
1267
|
/**
|
|
1268
1268
|
* Do not edit directly
|
|
1269
|
-
* Generated on Thu,
|
|
1269
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
1270
1270
|
*/
|
|
1271
1271
|
|
|
1272
1272
|
:root {
|
|
@@ -1287,7 +1287,7 @@ select {
|
|
|
1287
1287
|
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Do not edit directly
|
|
1290
|
-
* Generated on Thu,
|
|
1290
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
1291
1291
|
*/
|
|
1292
1292
|
|
|
1293
1293
|
:root {
|
|
@@ -1628,7 +1628,7 @@ select {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
1630
|
@media screen and (max-width: 767px) {
|
|
1631
|
-
.Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-link___XmtPc:first-
|
|
1631
|
+
.Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-link___XmtPc:first-of-type {
|
|
1632
1632
|
padding-top: var(--base-size-24);
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
@@ -2073,7 +2073,7 @@ select {
|
|
|
2073
2073
|
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Do not edit directly
|
|
2076
|
-
* Generated on Thu,
|
|
2076
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
2077
2077
|
*/
|
|
2078
2078
|
|
|
2079
2079
|
:root,
|
|
@@ -2101,7 +2101,7 @@ select {
|
|
|
2101
2101
|
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Do not edit directly
|
|
2104
|
-
* Generated on Thu,
|
|
2104
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
2105
2105
|
*/
|
|
2106
2106
|
|
|
2107
2107
|
:root,
|
|
@@ -2206,7 +2206,7 @@ select {
|
|
|
2206
2206
|
|
|
2207
2207
|
/**
|
|
2208
2208
|
* Do not edit directly
|
|
2209
|
-
* Generated on Thu,
|
|
2209
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
2210
2210
|
*/
|
|
2211
2211
|
|
|
2212
2212
|
:root,
|
|
@@ -2348,7 +2348,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2348
2348
|
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Do not edit directly
|
|
2351
|
-
* Generated on Thu,
|
|
2351
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
2352
2352
|
*/
|
|
2353
2353
|
|
|
2354
2354
|
:root {
|
|
@@ -2358,7 +2358,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2358
2358
|
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Do not edit directly
|
|
2361
|
-
* Generated on Thu,
|
|
2361
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
2362
2362
|
*/
|
|
2363
2363
|
|
|
2364
2364
|
:root,
|
|
@@ -2428,7 +2428,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2428
2428
|
|
|
2429
2429
|
/**
|
|
2430
2430
|
* Do not edit directly
|
|
2431
|
-
* Generated on Thu,
|
|
2431
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
2432
2432
|
*/
|
|
2433
2433
|
|
|
2434
2434
|
:root {
|
|
@@ -2447,7 +2447,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2447
2447
|
|
|
2448
2448
|
/**
|
|
2449
2449
|
* Do not edit directly
|
|
2450
|
-
* Generated on Thu,
|
|
2450
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
2451
2451
|
*/
|
|
2452
2452
|
|
|
2453
2453
|
:root,
|
|
@@ -3390,7 +3390,7 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
3390
3390
|
|
|
3391
3391
|
/**
|
|
3392
3392
|
* Do not edit directly
|
|
3393
|
-
* Generated on Thu,
|
|
3393
|
+
* Generated on Thu, 08 Dec 2022 22:40:32 GMT
|
|
3394
3394
|
*/
|
|
3395
3395
|
|
|
3396
3396
|
:root {
|
|
@@ -3707,7 +3707,7 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
3707
3707
|
|
|
3708
3708
|
/**
|
|
3709
3709
|
* Do not edit directly
|
|
3710
|
-
* Generated on Thu,
|
|
3710
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
3711
3711
|
*/
|
|
3712
3712
|
|
|
3713
3713
|
:root,
|
|
@@ -4009,3 +4009,482 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
4011
|
|
|
4012
|
+
/**
|
|
4013
|
+
* Do not edit directly
|
|
4014
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
4015
|
+
*/
|
|
4016
|
+
|
|
4017
|
+
:root,
|
|
4018
|
+
[data-color-mode="light"] {
|
|
4019
|
+
--brand-AnchorNav-link-underline-default: var(--base-color-scale-gray-4);
|
|
4020
|
+
--brand-AnchorNav-link-underline-pressed: var(--base-color-scale-black-0);
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
[data-color-mode="dark"] {
|
|
4024
|
+
--brand-AnchorNav-link-underline-default: var(--base-color-scale-gray-3);
|
|
4025
|
+
--brand-AnchorNav-link-underline-pressed: var(--base-color-scale-white-0);
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
/*
|
|
4029
|
+
* AnchorNav
|
|
4030
|
+
*
|
|
4031
|
+
* 1. Globals
|
|
4032
|
+
* 2. AnchorNav root and inner bounding containers
|
|
4033
|
+
* 3. AnchorNav links
|
|
4034
|
+
* 4. AnchorNav link labels
|
|
4035
|
+
* 5. AnchorNav menu toggle button (narrow)
|
|
4036
|
+
* 6. AnchorNav action
|
|
4037
|
+
* 7. Custom animations
|
|
4038
|
+
*/
|
|
4039
|
+
|
|
4040
|
+
/*
|
|
4041
|
+
* 1. Globals
|
|
4042
|
+
* TODO: Move into global reset
|
|
4043
|
+
*/
|
|
4044
|
+
html {
|
|
4045
|
+
scroll-behavior: smooth;
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
4049
|
+
html {
|
|
4050
|
+
scroll-behavior: auto;
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4053
|
+
|
|
4054
|
+
/*
|
|
4055
|
+
* 2. AnchorNav root and inner bounding containers
|
|
4056
|
+
*/
|
|
4057
|
+
.Primer_Brand__AnchorNav-module__AnchorNav___bwgAJ {
|
|
4058
|
+
display: flex;
|
|
4059
|
+
position: sticky;
|
|
4060
|
+
top: 0;
|
|
4061
|
+
left: 0;
|
|
4062
|
+
right: 0;
|
|
4063
|
+
padding: var(--base-size-12) var(--base-size-16);
|
|
4064
|
+
z-index: 91; /* must be higher than subdomain nav bar */
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--with-default-background-color___aFdXc {
|
|
4068
|
+
background-color: var(--brand-color-canvas-default);
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--stuck___AtvLO {
|
|
4072
|
+
box-shadow: 0 3px 6px rgba(140, 149, 159, 0.15), 0 1px 1px rgba(0, 0, 0, 0.1); /* TODO: replace with a global token */
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk {
|
|
4076
|
+
transform-style: preserve-3d;
|
|
4077
|
+
z-index: 91;
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link-container___VpHV2 {
|
|
4081
|
+
display: flex;
|
|
4082
|
+
width: 100%;
|
|
4083
|
+
position: relative;
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-inner-container___lshlZ {
|
|
4087
|
+
max-width: 1280px;
|
|
4088
|
+
width: 100%;
|
|
4089
|
+
position: relative;
|
|
4090
|
+
z-index: 91; /* must be higher than subdomain nav bar */
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--with-default-background-color___aFdXc .Primer_Brand__AnchorNav-module__AnchorNav-inner-container___lshlZ {
|
|
4094
|
+
background-color: var(--brand-color-canvas-default);
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
/* Up to large breakpoint */
|
|
4098
|
+
@media screen and (max-width: 63.25rem) {
|
|
4099
|
+
.Primer_Brand__AnchorNav-module__AnchorNav___bwgAJ {
|
|
4100
|
+
background-color: var(--brand-color-canvas-default);
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-inner-container--expanded____aoje {
|
|
4104
|
+
height: auto;
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link-container___VpHV2 {
|
|
4108
|
+
display: none;
|
|
4109
|
+
padding-left: var(--base-size-16);
|
|
4110
|
+
}
|
|
4111
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk .Primer_Brand__AnchorNav-module__AnchorNav-link-container___VpHV2 {
|
|
4112
|
+
display: flex;
|
|
4113
|
+
flex-direction: column;
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
|
|
4117
|
+
/* Large breakpoint and up */
|
|
4118
|
+
@media screen and (min-width: 63.25rem) {
|
|
4119
|
+
.Primer_Brand__AnchorNav-module__AnchorNav___bwgAJ {
|
|
4120
|
+
padding: var(--base-size-12) var(--base-size-40);
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--with-default-background-color___aFdXc {
|
|
4124
|
+
background-color: var(--brand-color-canvas-default);
|
|
4125
|
+
}
|
|
4126
|
+
|
|
4127
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--stuck___AtvLO {
|
|
4128
|
+
background-color: var(--brand-color-canvas-default);
|
|
4129
|
+
}
|
|
4130
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-inner-container___lshlZ {
|
|
4131
|
+
margin: 0 auto;
|
|
4132
|
+
display: flex;
|
|
4133
|
+
}
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
/*
|
|
4137
|
+
* 3. AnchorNav links
|
|
4138
|
+
*/
|
|
4139
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2 {
|
|
4140
|
+
display: flex;
|
|
4141
|
+
width: calc(100% - 80px);
|
|
4142
|
+
text-decoration: none;
|
|
4143
|
+
height: 48px;
|
|
4144
|
+
align-items: center;
|
|
4145
|
+
justify-items: flex-start;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk .Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2 {
|
|
4149
|
+
margin: 0 0 2px; /* allow space for focus border */
|
|
4150
|
+
animation: Primer_Brand__AnchorNav-module__fade-in___KfA_2 1s;
|
|
4151
|
+
animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); /* TODO: replace with global token for animation timings */
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
/* Up to large breakpoint */
|
|
4155
|
+
@media screen and (max-width: 63.25rem) {
|
|
4156
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2 {
|
|
4157
|
+
position: absolute;
|
|
4158
|
+
left: 0;
|
|
4159
|
+
padding: 0 0 0 var(--base-size-16);
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2::before {
|
|
4163
|
+
content: '';
|
|
4164
|
+
position: absolute;
|
|
4165
|
+
left: 0;
|
|
4166
|
+
width: 2px;
|
|
4167
|
+
height: 50%;
|
|
4168
|
+
background-color: var(--brand-AnchorNav-link-underline-default);
|
|
4169
|
+
transition: opacity 300ms, transform 300ms;
|
|
4170
|
+
opacity: 1;
|
|
4171
|
+
transform: scale(0);
|
|
4172
|
+
transform-origin: left;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk .Primer_Brand__AnchorNav-module__AnchorNav-link--is-active___xbYDS::before {
|
|
4176
|
+
transform: scale(1);
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
/* Large breakpoint and up */
|
|
4181
|
+
@media screen and (min-width: 63.25rem) {
|
|
4182
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2 {
|
|
4183
|
+
position: relative;
|
|
4184
|
+
margin: 0 1px; /* to provide space for focus border */
|
|
4185
|
+
}
|
|
4186
|
+
|
|
4187
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link--center___aryYq {
|
|
4188
|
+
justify-content: center;
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link--start___COZM3 {
|
|
4192
|
+
justify-content: flex-start;
|
|
4193
|
+
width: auto;
|
|
4194
|
+
margin-right: var(--base-size-48);
|
|
4195
|
+
}
|
|
4196
|
+
}
|
|
4197
|
+
|
|
4198
|
+
/*
|
|
4199
|
+
* 4. AnchorNav link labels
|
|
4200
|
+
*/
|
|
4201
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK {
|
|
4202
|
+
font-weight: var(--brand-heading-weight-400);
|
|
4203
|
+
font-size: var(--brand-text-size-300);
|
|
4204
|
+
line-height: var(--brand-text-lineHeight-300);
|
|
4205
|
+
font-family: var(--brand-heading-fontFamily);
|
|
4206
|
+
letter-spacing: var(--brand-heading-letterSpacing-400);
|
|
4207
|
+
color: var(--brand-color-text-default);
|
|
4208
|
+
transition: color cubic-bezier(0.33, 1, 0.68, 1) 0.2s; /* TODO: replace with global token for animation timings */
|
|
4209
|
+
white-space: nowrap;
|
|
4210
|
+
position: relative;
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--with-default-background-color___aFdXc .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK {
|
|
4214
|
+
background-color: var(--brand-color-canvas-default);
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
/* Up to large breakpoint */
|
|
4218
|
+
@media screen and (max-width: 63.25rem) {
|
|
4219
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK {
|
|
4220
|
+
background-color: var(--brand-color-canvas-default);
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk .Primer_Brand__AnchorNav-module__AnchorNav-link-label--is-active___DyUFY {
|
|
4224
|
+
color: var(--brand-color-focus);
|
|
4225
|
+
}
|
|
4226
|
+
|
|
4227
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2:not(.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2[data-active='true']) {
|
|
4228
|
+
visibility: hidden;
|
|
4229
|
+
}
|
|
4230
|
+
|
|
4231
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--stuck___AtvLO .Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2[data-active='false'][data-first='true'] {
|
|
4232
|
+
visibility: visible;
|
|
4233
|
+
}
|
|
4234
|
+
|
|
4235
|
+
.Primer_Brand__AnchorNav-module__AnchorNav___bwgAJ .Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2[data-active='false'][data-first='true'] {
|
|
4236
|
+
visibility: visible;
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-inner-container--expanded____aoje .Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2 {
|
|
4240
|
+
visibility: visible !important;
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-inner-container--expanded____aoje .Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2 {
|
|
4244
|
+
display: flex;
|
|
4245
|
+
position: relative;
|
|
4246
|
+
left: auto;
|
|
4247
|
+
right: auto;
|
|
4248
|
+
top: auto;
|
|
4249
|
+
flex-direction: column;
|
|
4250
|
+
text-align: left;
|
|
4251
|
+
justify-content: center;
|
|
4252
|
+
align-items: flex-start;
|
|
4253
|
+
}
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4256
|
+
/* Large breakpoint and up */
|
|
4257
|
+
@media screen and (min-width: 63.25rem) {
|
|
4258
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after {
|
|
4259
|
+
content: '';
|
|
4260
|
+
position: absolute;
|
|
4261
|
+
bottom: -6px;
|
|
4262
|
+
left: 0;
|
|
4263
|
+
width: 100%;
|
|
4264
|
+
height: 2px;
|
|
4265
|
+
background-color: var(--brand-AnchorNav-link-underline-default);
|
|
4266
|
+
transition: opacity 300ms, transform 300ms, background-color 300ms;
|
|
4267
|
+
opacity: 1;
|
|
4268
|
+
transform: scale(0);
|
|
4269
|
+
transform-origin: center;
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4272
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2:hover .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after,
|
|
4273
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2:focus .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after,
|
|
4274
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2[data-active='true'] .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after {
|
|
4275
|
+
opacity: 1;
|
|
4276
|
+
transform: translate3d(0, 0.2em, 0);
|
|
4277
|
+
transform: scale(0.8, 1);
|
|
4278
|
+
}
|
|
4279
|
+
|
|
4280
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2:active .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after {
|
|
4281
|
+
background-color: var(--brand-AnchorNav-link-underline-pressed);
|
|
4282
|
+
transform: scale(0.9, 1);
|
|
4283
|
+
}
|
|
4284
|
+
|
|
4285
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2[data-active='true'] .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after {
|
|
4286
|
+
background-color: var(--brand-AnchorNav-link-underline-pressed);
|
|
4287
|
+
opacity: 1;
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2.Primer_Brand__AnchorNav-module__focus-visible___dsg4c .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after {
|
|
4291
|
+
opacity: 0;
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4294
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-link___f5YJ2:focus-visible .Primer_Brand__AnchorNav-module__AnchorNav-link-label___x3JtK::after {
|
|
4295
|
+
opacity: 0;
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
|
|
4299
|
+
/*
|
|
4300
|
+
* 5. AnchorNav menu toggle button (narrow)
|
|
4301
|
+
*/
|
|
4302
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-menu-button___tputP {
|
|
4303
|
+
display: none;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
/* Up to large breakpoint */
|
|
4307
|
+
@media screen and (max-width: 63.25rem) {
|
|
4308
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-menu-button___tputP {
|
|
4309
|
+
all: unset;
|
|
4310
|
+
display: inline-flex;
|
|
4311
|
+
cursor: pointer;
|
|
4312
|
+
padding: var(--base-size-8) var(--base-size-16);
|
|
4313
|
+
padding-left: 0; /* space for focus */
|
|
4314
|
+
align-items: center;
|
|
4315
|
+
height: var(--base-size-32);
|
|
4316
|
+
z-index: 2;
|
|
4317
|
+
border-radius: var(--brand-borderRadius-small);
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-menu-button-arrow___v5tcA {
|
|
4321
|
+
padding: 0 calc(var(--base-size-12) / 2);
|
|
4322
|
+
width: 32px;
|
|
4323
|
+
height: 32px;
|
|
4324
|
+
color: var(--brand-color-text-default);
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-menu-button___tputP.Primer_Brand__AnchorNav-module__focus-visible___dsg4c {
|
|
4328
|
+
border-color: var(--brand-color-focus);
|
|
4329
|
+
outline: none;
|
|
4330
|
+
box-shadow: 0 0 0 2px var(--brand-color-focus);
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-menu-button___tputP:focus-visible {
|
|
4334
|
+
border-color: var(--brand-color-focus);
|
|
4335
|
+
outline: none;
|
|
4336
|
+
box-shadow: 0 0 0 2px var(--brand-color-focus);
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-overlay--expanded___xXv6O {
|
|
4340
|
+
position: absolute;
|
|
4341
|
+
top: 0;
|
|
4342
|
+
left: 0;
|
|
4343
|
+
right: 0;
|
|
4344
|
+
z-index: -3;
|
|
4345
|
+
width: 100%;
|
|
4346
|
+
height: 100vh; /* Keep as fallback */
|
|
4347
|
+
height: 100dvh;
|
|
4348
|
+
background: hsla(var(--base-color-scale-black-0-hsl) / 0.5);
|
|
4349
|
+
transform: translateZ(-1px);
|
|
4350
|
+
animation: Primer_Brand__AnchorNav-module__fade-in___KfA_2 0.5s;
|
|
4351
|
+
animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
|
|
4352
|
+
cursor: pointer;
|
|
4353
|
+
}
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4356
|
+
/*
|
|
4357
|
+
* 6. AnchorNav action
|
|
4358
|
+
*/
|
|
4359
|
+
|
|
4360
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-action___DWzcE {
|
|
4361
|
+
z-index: 1;
|
|
4362
|
+
display: flex;
|
|
4363
|
+
margin-left: auto;
|
|
4364
|
+
white-space: nowrap;
|
|
4365
|
+
padding: var(--base-size-12) var(--base-size-24);
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk .Primer_Brand__AnchorNav-module__AnchorNav-action___DWzcE {
|
|
4369
|
+
align-self: flex-start;
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
@media screen and (max-width: 34rem) {
|
|
4373
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-action___DWzcE {
|
|
4374
|
+
display: none;
|
|
4375
|
+
}
|
|
4376
|
+
.Primer_Brand__AnchorNav-module__AnchorNav--expanded___wVGbk .Primer_Brand__AnchorNav-module__AnchorNav-action___DWzcE {
|
|
4377
|
+
display: flex;
|
|
4378
|
+
margin-top: var(--base-size-8);
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
@media screen and (min-width: 34rem) and (max-width: 63.25rem) {
|
|
4383
|
+
.Primer_Brand__AnchorNav-module__AnchorNav-action___DWzcE {
|
|
4384
|
+
display: flex;
|
|
4385
|
+
position: absolute;
|
|
4386
|
+
top: 0;
|
|
4387
|
+
right: 0;
|
|
4388
|
+
}
|
|
4389
|
+
}
|
|
4390
|
+
|
|
4391
|
+
/*
|
|
4392
|
+
* 7. Custom animations
|
|
4393
|
+
*/
|
|
4394
|
+
@keyframes Primer_Brand__AnchorNav-module__fade-in___KfA_2 {
|
|
4395
|
+
0% {
|
|
4396
|
+
opacity: 0;
|
|
4397
|
+
}
|
|
4398
|
+
100% {
|
|
4399
|
+
opacity: 1;
|
|
4400
|
+
}
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4403
|
+
/**
|
|
4404
|
+
* Do not edit directly
|
|
4405
|
+
* Generated on Thu, 08 Dec 2022 22:40:33 GMT
|
|
4406
|
+
*/
|
|
4407
|
+
|
|
4408
|
+
:root,
|
|
4409
|
+
[data-color-mode="light"] {
|
|
4410
|
+
--brand-CTABanner-shadow-color-start: var(--base-color-scale-green-5-hsl);
|
|
4411
|
+
--brand-CTABanner-shadow-color-end: var(--base-color-scale-blue-5-hsl);
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4414
|
+
[data-color-mode="dark"] {
|
|
4415
|
+
--brand-CTABanner-shadow-color-start: var(--base-color-scale-green-2-hsl);
|
|
4416
|
+
--brand-CTABanner-shadow-color-end: var(--base-color-scale-blue-3-hsl);
|
|
4417
|
+
}
|
|
4418
|
+
|
|
4419
|
+
.Primer_Brand__CTABanner-module__CTABanner___m0t8s {
|
|
4420
|
+
position: relative;
|
|
4421
|
+
margin: 0 auto;
|
|
4422
|
+
display: flex;
|
|
4423
|
+
max-width: var(--brand-breakpoint-xlarge);
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
.Primer_Brand__CTABanner-module__CTABanner--shadow___BA030::before {
|
|
4427
|
+
content: '';
|
|
4428
|
+
position: absolute;
|
|
4429
|
+
top: var(--base-size-16);
|
|
4430
|
+
right: var(--base-size-16);
|
|
4431
|
+
bottom: var(--base-size-16);
|
|
4432
|
+
left: var(--base-size-16);
|
|
4433
|
+
filter: blur(var(--base-size-96));
|
|
4434
|
+
transform: translateZ(0);
|
|
4435
|
+
background: linear-gradient(
|
|
4436
|
+
to right,
|
|
4437
|
+
hsl(var(--brand-CTABanner-shadow-color-start)),
|
|
4438
|
+
hsl(var(--brand-CTABanner-shadow-color-end))
|
|
4439
|
+
);
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
.Primer_Brand__CTABanner-module__CTABanner-container___iRzd1 {
|
|
4443
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
4444
|
+
padding: var(--base-size-40) var(--base-size-32);
|
|
4445
|
+
z-index: 1;
|
|
4446
|
+
width: 100%;
|
|
4447
|
+
box-sizing: border-box;
|
|
4448
|
+
}
|
|
4449
|
+
|
|
4450
|
+
.Primer_Brand__CTABanner-module__CTABanner-content___sZo6_ {
|
|
4451
|
+
display: flex;
|
|
4452
|
+
flex-direction: column;
|
|
4453
|
+
gap: var(--base-size-16);
|
|
4454
|
+
align-items: flex-start;
|
|
4455
|
+
max-width: 800px;
|
|
4456
|
+
margin: 0 auto;
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
.Primer_Brand__CTABanner-module__CTABanner-container--background___v1yTH {
|
|
4460
|
+
background: var(--brand-color-canvas-default);
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4463
|
+
.Primer_Brand__CTABanner-module__CTABanner-container--border___FbAer {
|
|
4464
|
+
border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
|
|
4465
|
+
}
|
|
4466
|
+
|
|
4467
|
+
.Primer_Brand__CTABanner-module__CTABanner-content--center___S0ChQ {
|
|
4468
|
+
align-items: center;
|
|
4469
|
+
text-align: center;
|
|
4470
|
+
}
|
|
4471
|
+
|
|
4472
|
+
.Primer_Brand__CTABanner-module__CTABanner-description___I7md6 {
|
|
4473
|
+
color: var(--brand-color-text-muted);
|
|
4474
|
+
margin-bottom: var(--base-size-16);
|
|
4475
|
+
}
|
|
4476
|
+
|
|
4477
|
+
/* Medium breakpoint and up */
|
|
4478
|
+
@media screen and (min-width: 48rem) {
|
|
4479
|
+
.Primer_Brand__CTABanner-module__CTABanner-container___iRzd1 {
|
|
4480
|
+
padding: var(--base-size-80) var(--base-size-64);
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
/* Large breakpoint and up */
|
|
4485
|
+
@media screen and (min-width: 63.25rem) {
|
|
4486
|
+
.Primer_Brand__CTABanner-module__CTABanner-container___iRzd1 {
|
|
4487
|
+
padding: var(--base-size-128) var(--base-size-64);
|
|
4488
|
+
}
|
|
4489
|
+
}
|
|
4490
|
+
|