@primer/brand-css 0.0.0-20250212132611

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.
Files changed (75) hide show
  1. package/components/Accordion/Accordion.css +305 -0
  2. package/components/ActionMenu/ActionMenu.css +187 -0
  3. package/components/AnchorNav/AnchorNav.css +427 -0
  4. package/components/Avatar/Avatar.css +115 -0
  5. package/components/Bento/Bento.css +2157 -0
  6. package/components/Box/Box.css +2795 -0
  7. package/components/Box/Box.features.css +48 -0
  8. package/components/Breadcrumbs/Breadcrumbs.css +81 -0
  9. package/components/BreakoutBanner/BreakoutBanner.css +109 -0
  10. package/components/Button/Button.css +207 -0
  11. package/components/ButtonGroup/ButtonGroup.css +10 -0
  12. package/components/CTABanner/CTABanner.css +104 -0
  13. package/components/CTAForm/CTAForm.css +48 -0
  14. package/components/Card/Card.css +183 -0
  15. package/components/ComparisonTable/ComparisonTable.css +290 -0
  16. package/components/ExpandableArrow/ExpandableArrow.css +26 -0
  17. package/components/EyebrowBanner/EyebrowBanner.css +320 -0
  18. package/components/FAQ/FAQ.css +51 -0
  19. package/components/FAQ/FAQGroup.css +51 -0
  20. package/components/Footnotes/Footnotes.css +35 -0
  21. package/components/FrostedGlassVFX/FrostedGlassVFX.css +50 -0
  22. package/components/Grid/Grid.css +741 -0
  23. package/components/Heading/Heading.css +284 -0
  24. package/components/Hero/Hero.css +87 -0
  25. package/components/IDE/IDE.css +392 -0
  26. package/components/Icon/Icon.css +121 -0
  27. package/components/Image/Image.css +54 -0
  28. package/components/InlineLink/InlineLink.css +30 -0
  29. package/components/Label/Label.css +167 -0
  30. package/components/Link/Link.css +84 -0
  31. package/components/LogoSuite/LogoSuite.css +165 -0
  32. package/components/MinimalFooter/MinimalFooter.css +116 -0
  33. package/components/MonaSans/MonaSans.css +4 -0
  34. package/components/Pagination/Pagination.css +117 -0
  35. package/components/Pillar/Pillar.css +106 -0
  36. package/components/PricingOptions/PricingOptions.css +357 -0
  37. package/components/Prose/Prose.css +332 -0
  38. package/components/Section/Section.css +156 -0
  39. package/components/Section/Section.features.css +33 -0
  40. package/components/SectionIntro/SectionIntro.css +48 -0
  41. package/components/Stack/Stack.css +793 -0
  42. package/components/Statistic/Statistic.css +91 -0
  43. package/components/SubNav/SubNav.css +678 -0
  44. package/components/SubdomainNavBar/SubdomainNavBar.css +728 -0
  45. package/components/Testimonial/Testimonial.css +228 -0
  46. package/components/Text/Text.css +195 -0
  47. package/components/Timeline/Timeline.css +79 -0
  48. package/components/Tooltip/Tooltip.css +170 -0
  49. package/components/VideoPlayer/VideoPlayer.css +348 -0
  50. package/components/VideoPlayer/components/Captions/Captions.css +17 -0
  51. package/components/VideoPlayer/components/VolumeControl/VolumeControl.css +3 -0
  52. package/components/animation/Animation.css +192 -0
  53. package/components/animation/TextRevealAnimation/TextRevealAnimation.css +38 -0
  54. package/components/forms/Checkbox/Checkbox.css +88 -0
  55. package/components/forms/ControlGroup/ControlGroup.css +59 -0
  56. package/components/forms/FormControl/FormControl.css +113 -0
  57. package/components/forms/Radio/Radio.css +111 -0
  58. package/components/forms/Select/Select.css +143 -0
  59. package/components/forms/TextInput/TextInput.css +266 -0
  60. package/components/forms/Textarea/Textarea.css +129 -0
  61. package/components/list/ListItem/ListItem.css +29 -0
  62. package/components/list/OrderedList/OrderedList.css +3 -0
  63. package/components/list/list-shared.css +10 -0
  64. package/components/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.css +204 -0
  65. package/components/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.css +57 -0
  66. package/components/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.css +3 -0
  67. package/components/recipes/SolutionTemplates/CategoryPage/CategoryPage.css +83 -0
  68. package/components/recipes/SolutionTemplates/SolutionPage/SolutionPage.css +119 -0
  69. package/components/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.css +35 -0
  70. package/components/recipes/SolutionTemplates/parallax.css +165 -0
  71. package/components/recipes/seo/Article/Article.css +289 -0
  72. package/components/recipes/seo/Category/CategoryPage.css +43 -0
  73. package/components/river/RiverStoryScroll/RiverStoryScroll.css +470 -0
  74. package/components/river/river-shared.css +205 -0
  75. package/package.json +42 -0
@@ -0,0 +1,228 @@
1
+ .Testimonial {
2
+ display: grid;
3
+ color: var(--brand-color-text-default);
4
+ font-family: var(--brand-fontStack-sansSerif);
5
+ }
6
+
7
+ .Testimonial--variant-subtle,
8
+ .Testimonial--variant-default {
9
+ position: relative;
10
+ border-radius: var(--brand-borderRadius-xlarge);
11
+ padding: var(--base-size-48) var(--base-size-32);
12
+ }
13
+
14
+ @media screen and (min-width: 48rem) {
15
+ .Testimonial--variant-subtle,
16
+ .Testimonial--variant-default {
17
+ padding: var(--base-size-48);
18
+ }
19
+ }
20
+
21
+ @media screen and (min-width: 63.25rem) {
22
+ .Testimonial--variant-subtle.Testimonial--size-large,
23
+ .Testimonial--variant-default.Testimonial--size-large {
24
+ padding: var(--base-size-96) var(--base-size-128);
25
+ }
26
+ }
27
+
28
+ .Testimonial--variant-subtle {
29
+ background-color: var(--brand-color-canvas-subtle);
30
+ }
31
+
32
+ .Testimonial--variant-default {
33
+ background-color: var(--brand-color-canvas-default);
34
+ }
35
+
36
+ .Testimonial--variant-subtle::before,
37
+ .Testimonial--variant-default::before {
38
+ position: absolute;
39
+ top: 0;
40
+ right: 0;
41
+ bottom: 0;
42
+ left: 0;
43
+ pointer-events: none;
44
+ content: '';
45
+ border-radius: inherit;
46
+ }
47
+
48
+ .Testimonial--variant-subtle::before {
49
+ -webkit-mask-image: var(--brand-Testimonial-borderMask-subtle);
50
+ mask-image: var(--brand-Testimonial-borderMask-subtle);
51
+ border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
52
+ }
53
+
54
+ .Testimonial--variant-default::before {
55
+ -webkit-mask-image: var(--brand-Testimonial-borderMask-default);
56
+ mask-image: var(--brand-Testimonial-borderMask-default);
57
+ border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
58
+ }
59
+
60
+ .Testimonial__quoteMark {
61
+ --brand-Testimonial-quoteMarkColor-gradient: radial-gradient(
62
+ circle at top left,
63
+ var(--brand-Testimonial-quoteMarkColor-start),
64
+ var(--brand-Testimonial-quoteMarkColor-end)
65
+ );
66
+ --brand-Testimonial-quoteMarkColor-background: var(
67
+ --brand-Testimonial-quoteMarkColor-gradient,
68
+ var(--brand-Testimonial-quoteMarkColor, currentColor)
69
+ );
70
+ color: var(--brand-Testimonial-quoteMarkColor-start, var(--brand-Testimonial-quoteMarkColor, currentColor));
71
+ font-size: var(--base-size-48);
72
+ line-height: var(--base-size-48);
73
+ font-weight: var(--base-text-weight-extrabold);
74
+ position: relative;
75
+ }
76
+
77
+ .Testimonial__quoteMark::before {
78
+ content: '';
79
+ position: absolute;
80
+ inset: 0;
81
+ background: var(--brand-Testimonial-quoteMarkColor-background);
82
+ -webkit-mask: linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default)) content-box,
83
+ linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default));
84
+ mask: linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default)) content-box,
85
+ linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default));
86
+ -webkit-mask-composite: xor;
87
+ mask-composite: exclude;
88
+ }
89
+
90
+ .Testimonial--size-large .Testimonial__quoteMark {
91
+ font-size: 7.5rem; /* 120px */
92
+ line-height: 1;
93
+ }
94
+
95
+ .Testimonial-quote {
96
+ font-family: var(--brand-fontStack-sansSerif);
97
+ font-size: var(--brand-Testimonial-quote-fontSize-default);
98
+ font-weight: var(--brand-Testimonial-quote-fontWeight-default);
99
+ letter-spacing: var(--brand-Testimonial-quote-letterSpacing-default);
100
+ line-height: 1.2; /* requires custom line-height */
101
+ display: block;
102
+ }
103
+
104
+ .Testimonial--size-large .Testimonial-quote {
105
+ font-size: var(--brand-Testimonial-quote-fontSize-large);
106
+ font-weight: var(--brand-Testimonial-quote-fontWeight-large);
107
+ letter-spacing: var(--brand-Testimonial-quote-letterSpacing-large);
108
+ }
109
+
110
+ .Testimonial-quote--muted {
111
+ color: var(--brand-color-text-muted);
112
+ }
113
+
114
+ .Testimonial-quote em,
115
+ .Testimonial-quote b {
116
+ color: var(--brand-color-text-default);
117
+ font-style: normal;
118
+ font-weight: inherit;
119
+ }
120
+
121
+ .Testimonial__media {
122
+ display: flex;
123
+ gap: var(--base-size-16);
124
+ align-items: center;
125
+ margin-top: var(--base-size-24);
126
+ }
127
+
128
+ .Testimonial--size-large .Testimonial__media {
129
+ margin-top: var(--base-size-64);
130
+ }
131
+
132
+ .Testimonial-caption {
133
+ display: flex;
134
+ flex-direction: column;
135
+ }
136
+
137
+ .Testimonial-avatar {
138
+ flex: none;
139
+ }
140
+
141
+ .Testimonial-from {
142
+ font-weight: var(--base-text-weight-semibold);
143
+ }
144
+
145
+ .Testimonial-position {
146
+ font-family: var(--brand-fontStack-monospace);
147
+ }
148
+
149
+ .Testimonial__quoteMark--default {
150
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-default);
151
+ }
152
+
153
+ .Testimonial__quoteMark--blue {
154
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-blue);
155
+ }
156
+
157
+ .Testimonial__quoteMark--blue-purple {
158
+ --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-blue-purple-start);
159
+ --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-blue-purple-end);
160
+ }
161
+
162
+ .Testimonial__quoteMark--coral {
163
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-coral);
164
+ }
165
+
166
+ .Testimonial__quoteMark--green {
167
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-green);
168
+ }
169
+
170
+ .Testimonial__quoteMark--green-blue {
171
+ --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-green-blue-start);
172
+ --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-green-blue-end);
173
+ }
174
+
175
+ .Testimonial__quoteMark--gray {
176
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-gray);
177
+ }
178
+
179
+ .Testimonial__quoteMark--indigo {
180
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-indigo);
181
+ }
182
+
183
+ .Testimonial__quoteMark--lemon {
184
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-lemon);
185
+ }
186
+
187
+ .Testimonial__quoteMark--lime {
188
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-lime);
189
+ }
190
+
191
+ .Testimonial__quoteMark--orange {
192
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-orange);
193
+ }
194
+
195
+ .Testimonial__quoteMark--pink {
196
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-pink);
197
+ }
198
+
199
+ .Testimonial__quoteMark--pink-blue {
200
+ --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-pink-blue-start);
201
+ --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-pink-blue-end);
202
+ }
203
+
204
+ .Testimonial__quoteMark--purple {
205
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-purple);
206
+ }
207
+
208
+ .Testimonial__quoteMark--purple-red {
209
+ --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-purple-red-start);
210
+ --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-purple-red-end);
211
+ }
212
+
213
+ .Testimonial__quoteMark--red {
214
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-red);
215
+ }
216
+
217
+ .Testimonial__quoteMark--red-orange {
218
+ --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-red-orange-start);
219
+ --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-red-orange-end);
220
+ }
221
+
222
+ .Testimonial__quoteMark--teal {
223
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-teal);
224
+ }
225
+
226
+ .Testimonial__quoteMark--yellow {
227
+ --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-yellow);
228
+ }
@@ -0,0 +1,195 @@
1
+ .Text {
2
+ font-family: var(--brand-body-fontFamily);
3
+ }
4
+
5
+ [data-color-mode='dark'] .Text--antialiased {
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: auto;
8
+ }
9
+
10
+ .Text--default {
11
+ color: var(--brand-color-text-default);
12
+ }
13
+
14
+ .Text--muted {
15
+ color: var(--brand-color-text-muted);
16
+ }
17
+
18
+ .Text-font--mona-sans {
19
+ font-family: var(--brand-body-fontFamily);
20
+ }
21
+
22
+ .Text-font--hubot-sans {
23
+ font-family: var(--brand-body-fontFamilyAlt);
24
+ }
25
+
26
+ .Text-font--monospace {
27
+ font-family: var(--brand-fontStack-monospace);
28
+ }
29
+
30
+ .Text--700 {
31
+ font-weight: var(--brand-text-weight-700);
32
+ font-size: var(--brand-text-size-700);
33
+ line-height: var(--brand-text-lineHeight-700);
34
+ letter-spacing: var(--brand-text-letterSpacing-700);
35
+ }
36
+
37
+ .Text--600 {
38
+ font-weight: var(--brand-text-weight-600);
39
+ font-size: var(--brand-text-size-600);
40
+ line-height: var(--brand-text-lineHeight-600);
41
+ }
42
+
43
+ .Text--500 {
44
+ font-weight: var(--brand-text-weight-500);
45
+ font-size: var(--brand-text-size-500);
46
+ line-height: var(--brand-text-lineHeight-500);
47
+ }
48
+
49
+ .Text--400 {
50
+ font-weight: var(--brand-text-weight-400);
51
+ font-size: var(--brand-text-size-400);
52
+ line-height: var(--brand-text-lineHeight-400);
53
+ letter-spacing: var(--brand-text-letterSpacing-400);
54
+ }
55
+
56
+ .Text--300 {
57
+ font-weight: var(--brand-text-weight-300);
58
+ font-size: var(--brand-text-size-300);
59
+ line-height: var(--brand-text-lineHeight-300);
60
+ letter-spacing: var(--brand-text-letterSpacing-300);
61
+ }
62
+
63
+ .Text--200 {
64
+ font-weight: var(--brand-text-weight-200);
65
+ font-size: var(--brand-text-size-200);
66
+ line-height: var(--brand-text-lineHeight-200);
67
+ letter-spacing: var(--brand-text-letterSpacing-200);
68
+ }
69
+
70
+ .Text--100 {
71
+ font-weight: var(--brand-text-weight-100);
72
+ font-size: var(--brand-text-size-100);
73
+ line-height: var(--brand-text-lineHeight-100);
74
+ letter-spacing: var(--brand-text-letterSpacing-100);
75
+ }
76
+
77
+ .Text--weight-heavy,
78
+ .Text-narrow--weight-heavy {
79
+ font-weight: var(--base-text-weight-heavy);
80
+ }
81
+
82
+ .Text--weight-extrabold,
83
+ .Text-narrow--weight-extrabold {
84
+ font-weight: var(--base-text-weight-extrabold);
85
+ }
86
+
87
+ .Text--weight-bold,
88
+ .Text-narrow--weight-bold {
89
+ font-weight: var(--base-text-weight-bold);
90
+ }
91
+
92
+ .Text--weight-semibold,
93
+ .Text-narrow--weight-semibold {
94
+ font-weight: var(--base-text-weight-semibold);
95
+ }
96
+
97
+ .Text--weight-medium,
98
+ .Text-narrow--weight-medium {
99
+ font-weight: var(--base-text-weight-medium);
100
+ }
101
+
102
+ .Text--weight-normal,
103
+ .Text-narrow--weight-normal {
104
+ font-weight: var(--base-text-weight-normal);
105
+ }
106
+
107
+ .Text--weight-light,
108
+ .Text-narrow--weight-light {
109
+ font-weight: var(--base-text-weight-light);
110
+ }
111
+
112
+ .Text--weight-extralight,
113
+ .Text-narrow--weight-extralight {
114
+ font-weight: var(--base-text-weight-extralight);
115
+ }
116
+
117
+ @media screen and (min-width: 48rem) {
118
+ .Text-regular--weight-heavy {
119
+ font-weight: var(--base-text-weight-heavy);
120
+ }
121
+
122
+ .Text-regular--weight-extrabold {
123
+ font-weight: var(--base-text-weight-extrabold);
124
+ }
125
+
126
+ .Text-regular--weight-bold {
127
+ font-weight: var(--base-text-weight-bold);
128
+ }
129
+
130
+ .Text-regular--weight-semibold {
131
+ font-weight: var(--base-text-weight-semibold);
132
+ }
133
+
134
+ .Text-regular--weight-medium {
135
+ font-weight: var(--base-text-weight-medium);
136
+ }
137
+
138
+ .Text-regular--weight-normal {
139
+ font-weight: var(--base-text-weight-normal);
140
+ }
141
+
142
+ .Text-regular--weight-light {
143
+ font-weight: var(--base-text-weight-light);
144
+ }
145
+
146
+ .Text-regular--weight-extralight {
147
+ font-weight: var(--base-text-weight-extralight);
148
+ }
149
+ }
150
+
151
+ @media screen and (min-width: 80rem) {
152
+ .Text-wide--weight-heavy {
153
+ font-weight: var(--base-text-weight-heavy);
154
+ }
155
+
156
+ .Text-wide--weight-extrabold {
157
+ font-weight: var(--base-text-weight-extrabold);
158
+ }
159
+
160
+ .Text-wide--weight-bold {
161
+ font-weight: var(--base-text-weight-bold);
162
+ }
163
+
164
+ .Text-wide--weight-semibold {
165
+ font-weight: var(--base-text-weight-semibold);
166
+ }
167
+
168
+ .Text-wide--weight-medium {
169
+ font-weight: var(--base-text-weight-medium);
170
+ }
171
+
172
+ .Text-wide--weight-normal {
173
+ font-weight: var(--base-text-weight-normal);
174
+ }
175
+
176
+ .Text-wide--weight-light {
177
+ font-weight: var(--base-text-weight-light);
178
+ }
179
+
180
+ .Text-wide--weight-extralight {
181
+ font-weight: var(--base-text-weight-extralight);
182
+ }
183
+ }
184
+
185
+ .Text-align--start {
186
+ text-align: start;
187
+ }
188
+
189
+ .Text-align--end {
190
+ text-align: end;
191
+ }
192
+
193
+ .Text-align--center {
194
+ text-align: center;
195
+ }
@@ -0,0 +1,79 @@
1
+ .Timeline {
2
+ --bulletY: calc(var(--base-size-8) / 2 - var(--brand-Timeline-bullet-size) / 2 + var(--base-size-8));
3
+
4
+ margin: 0;
5
+ padding: 0;
6
+ list-style: none;
7
+ }
8
+
9
+ .Timeline__item {
10
+ position: relative;
11
+ max-width: var(--brand-Timeline-lineLength);
12
+ padding-inline-start: calc(var(--brand-Timeline-bullet-size) + var(--brand-Timeline-spacing));
13
+ color: var(--brand-color-text-default);
14
+ line-height: var(--brand-Timeline-lineHeight);
15
+ }
16
+
17
+ .Timeline--full-width .Timeline__item {
18
+ max-width: none;
19
+ }
20
+
21
+ .Timeline__item:not(:last-child) {
22
+ padding-bottom: var(--base-size-32);
23
+ }
24
+
25
+ .Timeline__item::before,
26
+ .Timeline__item::after {
27
+ content: '';
28
+ position: absolute;
29
+ }
30
+
31
+ .Timeline__item::before {
32
+ width: var(--brand-Timeline-bullet-size);
33
+ height: var(--brand-Timeline-bullet-size);
34
+ top: var(--bulletY);
35
+ left: 0;
36
+ border-style: solid;
37
+ border-width: var(--brand-Timeline-strokeWidth);
38
+ border-color: var(--brand-Timeline-line-color);
39
+ border-radius: var(--brand-borderRadius-full);
40
+ }
41
+
42
+ .Timeline__item:not(:last-child)::after {
43
+ top: calc(var(--bulletY) + var(--brand-Timeline-bullet-size) + var(--brand-Timeline-bullet-spacing));
44
+ left: calc(var(--brand-Timeline-bullet-size) / 2 - var(--brand-Timeline-strokeWidth) / 2);
45
+ width: var(--brand-Timeline-strokeWidth);
46
+ height: calc(100% - var(--brand-Timeline-bullet-size) - var(--brand-Timeline-bullet-spacing) * 2);
47
+ background-color: var(--brand-Timeline-line-color);
48
+ border-radius: var(--brand-borderRadius-full);
49
+ }
50
+
51
+ .Timeline__item-text em,
52
+ .Timeline__item-text b {
53
+ color: var(--brand-color-text-default);
54
+ font-style: normal;
55
+ font-weight: var(--base-text-weight-medium);
56
+ }
57
+
58
+ .Timeline__item a {
59
+ color: var(--brand-InlineLink-color-rest);
60
+ position: relative;
61
+ text-decoration: underline;
62
+ text-decoration-color: var(--brand-InlineLink-color-rest);
63
+ text-decoration-thickness: var(--brand-borderWidth-thin);
64
+ text-underline-position: under;
65
+ transition: var(--brand-InlineLink-transition-timing) text-decoration;
66
+ }
67
+
68
+ .Timeline__item a:hover {
69
+ text-decoration-thickness: var(--brand-borderWidth-thick);
70
+ }
71
+
72
+ .Timeline__item a {
73
+ font-weight: inherit;
74
+ color: var(--brand-InlineLink-color-rest);
75
+ }
76
+
77
+ .Timeline__item a:active {
78
+ color: var(--brand-InlineLink-color-pressed);
79
+ }
@@ -0,0 +1,170 @@
1
+ .Tooltip {
2
+ display: none;
3
+ }
4
+
5
+ @media (forced-colors: active) {
6
+ .Tooltip {
7
+ outline: var(--brand-borderWidth-thin) solid transparent;
8
+ }
9
+ }
10
+
11
+ /* Overriding the default popover styles */
12
+ .Tooltip[popover] {
13
+ --offset: var(
14
+ --base-size-8,
15
+ --base-size-8
16
+ ); /* This is a "magic number". Just gives some room to make sure the tooltip stay open when mouse leaves the trigger to hover tooltip */
17
+ /* these vars are for the triangle, via https://www.smashingmagazine.com/2024/03/modern-css-tooltips-speech-bubbles-part1/ */
18
+ --b: 1em; /* triangle base width */
19
+ --h: 0.5em; /* triangle height */
20
+ --p: 50%; /* center triangle position (0%:left 100%:right) */
21
+ --r: var(--brand-borderRadius-medium); /* border radius */
22
+ --c: var(--brand-color-neutral-emphasisPlus); /* bg color */
23
+
24
+ position: absolute;
25
+ padding: 0.5em 0.75em;
26
+ width: -moz-max-content;
27
+ width: max-content;
28
+ margin: auto;
29
+ clip: auto;
30
+ white-space: normal;
31
+ font: normal normal var(--brand-text-size-100) / var(--brand-text-lineHeight-100) var(--brand-fontStack-sansSerif);
32
+ -webkit-font-smoothing: subpixel-antialiased;
33
+ color: var(--brand-Tooltip-color-default);
34
+ text-align: center;
35
+ word-wrap: break-word;
36
+ background: var(--c);
37
+ border-radius: var(--r);
38
+ border: 0;
39
+ opacity: 0;
40
+ max-width: 250px;
41
+ inset: auto;
42
+ /* for scrollbar */
43
+ overflow: visible;
44
+ }
45
+
46
+ .Tooltip[popover]:popover-open, /* selector in chrome is :popover-open */
47
+ .Tooltip[popover].\:popover-open {
48
+ /* selector in firefox and safari is \:popover-open */
49
+ display: block;
50
+ animation-name: tooltip-appear;
51
+ animation-duration: var(--brand-animation-duration-faster, 0.2s);
52
+ animation-fill-mode: forwards;
53
+ animation-timing-function: ease-in;
54
+ animation-delay: 0s;
55
+ }
56
+
57
+ /* This is needed to keep the tooltip open when the user leaves the trigger element to hover tooltip */
58
+ .Tooltip::after {
59
+ position: absolute;
60
+ display: block;
61
+ right: 0;
62
+ left: 0;
63
+ height: var(--offset);
64
+ content: '';
65
+ }
66
+
67
+ /* Directional styles */
68
+ .Tooltip[data-direction='n'] {
69
+ -o-border-image: conic-gradient(var(--c) 0 0) 0 / var(--r) calc(100% - var(--p) - var(--b) / 2) 0
70
+ calc(var(--p) - var(--b) / 2) / 0 0 var(--h) 0;
71
+ border-image: conic-gradient(var(--c) 0 0) fill 0 / var(--r) calc(100% - var(--p) - var(--b) / 2) 0
72
+ calc(var(--p) - var(--b) / 2) / 0 0 var(--h) 0;
73
+ clip-path: polygon(
74
+ 0 100%,
75
+ 0 0,
76
+ 100% 0,
77
+ 100% 100%,
78
+ min(100%, var(--p) + var(--b) / 2) 100%,
79
+ var(--p) calc(100% + var(--h)),
80
+ max(0%, var(--p) - var(--b) / 2) 100%
81
+ );
82
+ }
83
+
84
+ .Tooltip[data-direction='s'] {
85
+ -o-border-image: conic-gradient(var(--c) 0 0) 0/ 0 calc(100% - var(--p) - var(--b) / 2) var(--r) calc(
86
+ var(--p) - var(--b) / 2
87
+ ) / var(--h) 0 0 0;
88
+ border-image: conic-gradient(var(--c) 0 0) fill 0/ 0 calc(100% - var(--p) - var(--b) / 2) var(--r) calc(
89
+ var(--p) - var(--b) / 2
90
+ ) / var(--h) 0 0 0;
91
+ clip-path: polygon(
92
+ 0 0,
93
+ 0 100%,
94
+ 100% 100%,
95
+ 100% 0,
96
+ min(100%, var(--p) + var(--b) / 2) 0,
97
+ var(--p) calc(-1 * var(--h)),
98
+ max(0%, var(--p) - var(--b) / 2) 0
99
+ );
100
+ }
101
+
102
+ .Tooltip[data-direction='w'] {
103
+ -o-border-image: conic-gradient(var(--c) 0 0) 0 / calc(var(--p) - var(--b) / 2) 0
104
+ calc(100% - var(--p) - var(--b) / 2) var(--r) / 0 var(--h) 0 0;
105
+ border-image: conic-gradient(var(--c) 0 0) fill 0 / calc(var(--p) - var(--b) / 2) 0
106
+ calc(100% - var(--p) - var(--b) / 2) var(--r) / 0 var(--h) 0 0;
107
+ clip-path: polygon(
108
+ 100% 100%,
109
+ 0 100%,
110
+ 0 0,
111
+ 100% 0,
112
+ 100% max(0%, var(--p) - var(--b) / 2),
113
+ calc(100% + var(--h)) var(--p),
114
+ 100% min(100%, var(--p) + var(--b) / 2)
115
+ );
116
+ }
117
+
118
+ .Tooltip[data-direction='e'] {
119
+ -o-border-image: conic-gradient(var(--c) 0 0) 0 / calc(var(--p) - var(--b) / 2) var(--r)
120
+ calc(100% - var(--p) - var(--b) / 2) 0/ 0 0 0 var(--h);
121
+ border-image: conic-gradient(var(--c) 0 0) fill 0 / calc(var(--p) - var(--b) / 2) var(--r)
122
+ calc(100% - var(--p) - var(--b) / 2) 0/ 0 0 0 var(--h);
123
+ clip-path: polygon(
124
+ 0 100%,
125
+ 100% 100%,
126
+ 100% 0,
127
+ 0 0,
128
+ 0 max(0%, var(--p) - var(--b) / 2),
129
+ calc(-1 * var(--h)) var(--p),
130
+ 0 min(100%, var(--p) + var(--b) / 2)
131
+ );
132
+ }
133
+
134
+ .Tooltip[data-direction='n']::after {
135
+ top: 100%;
136
+ }
137
+
138
+ .Tooltip[data-direction='s']::after {
139
+ bottom: 100%;
140
+ }
141
+
142
+ .Tooltip[data-direction='w']::after {
143
+ position: absolute;
144
+ display: block;
145
+ height: 100%;
146
+ width: var(--offset);
147
+ content: '';
148
+ bottom: 0;
149
+ left: 100%;
150
+ }
151
+
152
+ .Tooltip[data-direction='e']::after {
153
+ position: absolute;
154
+ display: block;
155
+ height: 100%;
156
+ width: var(--offset);
157
+ content: '';
158
+ bottom: 0;
159
+ right: 100%;
160
+ margin-left: calc(var(--offset) * -1px);
161
+ }
162
+
163
+ @keyframes tooltip-appear {
164
+ from {
165
+ opacity: 0;
166
+ }
167
+ to {
168
+ opacity: 1;
169
+ }
170
+ }