@primer/brand-css 0.82.0 → 0.83.0-rc.4ec10de1
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.
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* AnchorNav
|
|
3
3
|
*
|
|
4
|
-
* 1.
|
|
5
|
-
* 2.
|
|
6
|
-
* 3.
|
|
7
|
-
* 4.
|
|
8
|
-
* 5.
|
|
9
|
-
* 6.
|
|
4
|
+
* 1. Root and inner container
|
|
5
|
+
* 2. Narrow menu button
|
|
6
|
+
* 3. Links
|
|
7
|
+
* 4. Overflow menu (wide)
|
|
8
|
+
* 5. Action
|
|
9
|
+
* 6. Overlay (narrow)
|
|
10
|
+
* 7. Animations
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
/*
|
|
13
|
-
* 1.
|
|
14
|
+
* 1. Root and inner container
|
|
14
15
|
*/
|
|
15
16
|
.AnchorNav {
|
|
16
|
-
display: flex;
|
|
17
17
|
position: sticky;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
right: 0;
|
|
21
|
-
padding: var(--base-size-12) var(--base-size-16);
|
|
18
|
+
inset-block-start: 0;
|
|
19
|
+
inset-inline: 0;
|
|
22
20
|
z-index: 91; /* must be higher than subdomain nav bar */
|
|
21
|
+
background-color: var(--brand-color-canvas-default);
|
|
22
|
+
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-subtle);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.AnchorNav--no-bg-scroll {
|
|
26
26
|
overflow: hidden;
|
|
27
|
-
|
|
27
|
+
block-size: 100vh;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.AnchorNav--hide-until-sticky:not(.AnchorNav--stuck) {
|
|
@@ -39,368 +39,372 @@
|
|
|
39
39
|
visibility: visible;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.AnchorNav--with-default-background-color {
|
|
43
|
-
background-color: var(--brand-color-canvas-default);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
42
|
.AnchorNav--stuck {
|
|
47
|
-
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 */
|
|
48
43
|
position: fixed;
|
|
49
44
|
}
|
|
50
45
|
|
|
51
46
|
.AnchorNav--expanded {
|
|
52
47
|
transform-style: preserve-3d;
|
|
53
|
-
z-index: 91;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.AnchorNav-link-container {
|
|
57
|
-
display: flex;
|
|
58
|
-
width: 100%;
|
|
59
|
-
position: relative;
|
|
60
48
|
}
|
|
61
49
|
|
|
62
50
|
.AnchorNav-inner-container {
|
|
63
|
-
max-width: 1280px;
|
|
64
|
-
width: 100%;
|
|
65
51
|
position: relative;
|
|
66
52
|
z-index: 91; /* must be higher than subdomain nav bar */
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
53
|
+
display: grid;
|
|
54
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
55
|
+
grid-template-areas: 'button action';
|
|
56
|
+
align-items: center;
|
|
57
|
+
-moz-column-gap: var(--base-size-16);
|
|
58
|
+
column-gap: var(--base-size-16);
|
|
59
|
+
min-block-size: calc(var(--brand-AnchorNav-height) - 1px); /* subtract for border */
|
|
60
|
+
padding-inline: var(--base-size-16);
|
|
71
61
|
background-color: var(--brand-color-canvas-default);
|
|
72
62
|
}
|
|
73
63
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
background-color: var(--brand-color-canvas-default);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.AnchorNav-inner-container--expanded {
|
|
87
|
-
height: auto;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.AnchorNav-link-container {
|
|
91
|
-
display: none;
|
|
92
|
-
padding-left: var(--base-size-16);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.AnchorNav--expanded .AnchorNav-link-container {
|
|
96
|
-
display: flex;
|
|
97
|
-
flex-direction: column;
|
|
98
|
-
}
|
|
64
|
+
.AnchorNav-inner-container--expanded {
|
|
65
|
+
grid-template-rows: calc(var(--brand-AnchorNav-height) - 1px) auto; /* subtract for border */
|
|
66
|
+
grid-template-areas:
|
|
67
|
+
'button action'
|
|
68
|
+
'links links';
|
|
69
|
+
align-content: start;
|
|
70
|
+
max-block-size: 100vh; /* Keep as fallback */
|
|
71
|
+
max-block-size: 100dvh;
|
|
72
|
+
overflow-y: auto;
|
|
99
73
|
}
|
|
100
74
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
75
|
+
/* Only a folded action moves into the open menu. Otherwise it stays in the bar. */
|
|
76
|
+
.AnchorNav-inner-container--folded-action {
|
|
77
|
+
grid-template-columns: minmax(0, 1fr);
|
|
78
|
+
grid-template-rows: calc(var(--brand-AnchorNav-height) - 1px) auto auto; /* subtract for border */
|
|
79
|
+
grid-template-areas:
|
|
80
|
+
'button'
|
|
81
|
+
'links'
|
|
82
|
+
'action';
|
|
107
83
|
}
|
|
108
84
|
|
|
109
|
-
/*
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
85
|
+
/*
|
|
86
|
+
* 2. Narrow menu button
|
|
87
|
+
*/
|
|
88
|
+
.AnchorNav-menu-button {
|
|
89
|
+
grid-area: button;
|
|
90
|
+
justify-self: start;
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: var(--base-size-6);
|
|
94
|
+
max-inline-size: 100%;
|
|
95
|
+
margin: 0;
|
|
96
|
+
padding-block: var(--base-size-8);
|
|
97
|
+
padding-inline: 0;
|
|
98
|
+
font-family: var(--brand-body-fontFamily);
|
|
99
|
+
font-size: var(--brand-text-size-100);
|
|
100
|
+
font-weight: 450; /* TODO: Reuse a brand text weight token if one is added for 450. */
|
|
101
|
+
line-height: 1.2; /* TODO: Reuse a brand text line-height token if one is added for 1.2 at size 100. */
|
|
102
|
+
color: var(--brand-color-text-default);
|
|
103
|
+
text-align: start;
|
|
104
|
+
background: none;
|
|
105
|
+
border: 0;
|
|
106
|
+
border-radius: var(--brand-borderRadius-small);
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
115
109
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
.AnchorNav-menu-button .AnchorNav-link-label {
|
|
111
|
+
position: relative;
|
|
112
|
+
min-inline-size: 0;
|
|
113
|
+
padding-block: var(--base-size-4) var(--base-size-6);
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
text-overflow: ellipsis;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
}
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
.AnchorNav-inner-container {
|
|
124
|
-
margin: 0 auto;
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
}
|
|
119
|
+
.AnchorNav-menu-button-arrow {
|
|
120
|
+
flex-shrink: 0;
|
|
128
121
|
}
|
|
129
122
|
|
|
130
123
|
/*
|
|
131
|
-
*
|
|
124
|
+
* 3. Links
|
|
132
125
|
*/
|
|
133
|
-
.AnchorNav-link {
|
|
126
|
+
.AnchorNav-link-container {
|
|
127
|
+
grid-area: links;
|
|
128
|
+
display: none;
|
|
129
|
+
margin: 0;
|
|
130
|
+
padding: 0;
|
|
131
|
+
list-style: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.AnchorNav-inner-container--expanded .AnchorNav-link-container {
|
|
134
135
|
display: flex;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
align-items: flex-start;
|
|
138
|
+
gap: var(--base-size-16);
|
|
139
|
+
margin-inline: calc(var(--base-size-16) * -1);
|
|
140
|
+
padding: var(--base-size-24) var(--base-size-16) var(--base-size-16);
|
|
141
|
+
border-block-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-subtle);
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
.AnchorNav-link
|
|
144
|
+
.AnchorNav-link {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
padding-block: var(--base-size-4) var(--base-size-6);
|
|
148
|
+
padding-inline: 0;
|
|
149
|
+
font-family: var(--brand-body-fontFamily);
|
|
150
|
+
font-size: var(--brand-text-size-100);
|
|
151
|
+
font-weight: 450; /* TODO: Replace with a global token eventually. */
|
|
152
|
+
line-height: 1.2; /* TODO: Replace with a global token eventually. */
|
|
153
|
+
color: var(--brand-color-text-muted);
|
|
143
154
|
text-decoration: none;
|
|
155
|
+
border-radius: var(--brand-borderRadius-small);
|
|
156
|
+
transition: color var(--brand-animation-duration-faster) var(--brand-animation-easing-glide);
|
|
144
157
|
}
|
|
145
158
|
|
|
146
|
-
.AnchorNav--
|
|
147
|
-
|
|
159
|
+
.AnchorNav-link--is-active {
|
|
160
|
+
color: var(--brand-color-text-default);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.AnchorNav-inner-container--expanded .AnchorNav-link {
|
|
164
|
+
position: relative;
|
|
165
|
+
color: var(--brand-color-text-default);
|
|
148
166
|
animation: fade-in 1s;
|
|
149
167
|
animation-timing-function: var(--brand-animation-easing-glide);
|
|
150
168
|
}
|
|
151
169
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.AnchorNav-link::before {
|
|
161
|
-
content: '';
|
|
162
|
-
position: absolute;
|
|
163
|
-
left: 0;
|
|
164
|
-
width: 2px;
|
|
165
|
-
height: 50%;
|
|
166
|
-
background-color: var(--brand-AnchorNav-link-underline-default);
|
|
167
|
-
transition: opacity var(--brand-animation-duration-fast), transform var(--brand-animation-duration-fast);
|
|
168
|
-
opacity: 1;
|
|
169
|
-
transform: scale(0);
|
|
170
|
-
transform-origin: left;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.AnchorNav--expanded .AnchorNav-link--is-active::before {
|
|
174
|
-
transform: scale(1);
|
|
175
|
-
}
|
|
170
|
+
.AnchorNav-menu-button .AnchorNav-link-label::after,
|
|
171
|
+
.AnchorNav-inner-container--expanded .AnchorNav-link--is-active::after {
|
|
172
|
+
content: '';
|
|
173
|
+
position: absolute;
|
|
174
|
+
inset-inline: 0;
|
|
175
|
+
inset-block-end: 0;
|
|
176
|
+
block-size: var(--brand-borderWidth-thick);
|
|
177
|
+
background-color: var(--brand-AnchorNav-link-underline-default);
|
|
176
178
|
}
|
|
177
179
|
|
|
178
|
-
/*
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.AnchorNav-link--center {
|
|
186
|
-
justify-content: center;
|
|
187
|
-
}
|
|
180
|
+
/* Declared after the expanded and active rules so hover always applies. */
|
|
181
|
+
.AnchorNav-link:hover {
|
|
182
|
+
color: var(--brand-color-text-muted);
|
|
183
|
+
text-decoration: none;
|
|
184
|
+
}
|
|
188
185
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
186
|
+
.AnchorNav-link:focus-visible,
|
|
187
|
+
.AnchorNav-menu-button:focus-visible {
|
|
188
|
+
outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
|
|
189
|
+
outline-offset: var(--base-size-2);
|
|
194
190
|
}
|
|
195
191
|
|
|
196
192
|
/*
|
|
197
|
-
*
|
|
193
|
+
* 4. Overflow menu (wide)
|
|
198
194
|
*/
|
|
199
|
-
.AnchorNav-
|
|
200
|
-
|
|
201
|
-
font-size: var(--brand-text-size-200);
|
|
202
|
-
line-height: var(--brand-text-lineHeight-200);
|
|
203
|
-
font-family: var(--brand-heading-fontFamily);
|
|
204
|
-
letter-spacing: var(--brand-heading-letterSpacing-200);
|
|
205
|
-
color: var(--brand-color-text-default);
|
|
206
|
-
transition: color var(--brand-animation-easing-glide) var(--brand-animation-duration-faster);
|
|
207
|
-
position: relative;
|
|
195
|
+
.AnchorNav-overflow {
|
|
196
|
+
display: none;
|
|
208
197
|
}
|
|
209
198
|
|
|
210
|
-
.AnchorNav
|
|
199
|
+
.AnchorNav-overflow-menu {
|
|
200
|
+
position: absolute;
|
|
201
|
+
inset: auto;
|
|
202
|
+
z-index: 10;
|
|
203
|
+
inline-size: -moz-max-content;
|
|
204
|
+
inline-size: max-content;
|
|
205
|
+
min-inline-size: 160px; /* TODO: Reuse a shared menu minimum width; prevents overly narrow popovers. */
|
|
206
|
+
max-inline-size: calc(100vw - var(--base-size-32));
|
|
207
|
+
max-block-size: calc(100dvh - var(--base-size-128));
|
|
208
|
+
margin: 0;
|
|
209
|
+
padding: 0;
|
|
210
|
+
overflow-x: hidden;
|
|
211
|
+
overflow-y: auto;
|
|
211
212
|
background-color: var(--brand-color-canvas-default);
|
|
213
|
+
border: var(--brand-borderWidth-thin) solid var(--brand-color-border-subtle);
|
|
214
|
+
border-start-start-radius: 0;
|
|
215
|
+
border-start-end-radius: 0;
|
|
216
|
+
border-end-start-radius: var(--brand-borderRadius-medium);
|
|
217
|
+
border-end-end-radius: var(--brand-borderRadius-medium);
|
|
218
|
+
box-shadow: none;
|
|
219
|
+
animation: fade-in var(--brand-animation-duration-faster) var(--brand-animation-easing-default);
|
|
212
220
|
}
|
|
213
221
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
background-color: var(--brand-color-canvas-default);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.AnchorNav--expanded .AnchorNav-link-label--is-active {
|
|
221
|
-
color: var(--brand-color-focus);
|
|
222
|
-
}
|
|
222
|
+
.AnchorNav-overflow-menu::backdrop {
|
|
223
|
+
background-color: transparent;
|
|
224
|
+
}
|
|
223
225
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
.AnchorNav-overflow-menu-list {
|
|
227
|
+
display: grid;
|
|
228
|
+
gap: var(--brand-borderWidth-thin);
|
|
229
|
+
inline-size: 100%;
|
|
230
|
+
margin: 0;
|
|
231
|
+
padding: var(--base-size-8);
|
|
232
|
+
list-style: none;
|
|
233
|
+
}
|
|
227
234
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
235
|
+
.AnchorNav-overflow-menu .AnchorNav-link {
|
|
236
|
+
display: flex;
|
|
237
|
+
inline-size: 100%;
|
|
238
|
+
min-block-size: var(--base-size-40);
|
|
239
|
+
padding: var(--base-size-8) var(--base-size-12);
|
|
240
|
+
line-height: var(--brand-text-lineHeight-100);
|
|
241
|
+
color: var(--brand-color-text-muted);
|
|
242
|
+
white-space: normal;
|
|
243
|
+
overflow-wrap: anywhere;
|
|
244
|
+
background-color: var(--brand-color-canvas-default);
|
|
245
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
246
|
+
}
|
|
231
247
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
248
|
+
.AnchorNav-overflow-menu .AnchorNav-link:hover,
|
|
249
|
+
.AnchorNav-overflow-menu .AnchorNav-link:focus-visible,
|
|
250
|
+
.AnchorNav-overflow-menu .AnchorNav-link--is-active {
|
|
251
|
+
color: var(--brand-color-text-default);
|
|
252
|
+
background-color: var(--brand-color-canvas-subtle);
|
|
253
|
+
}
|
|
235
254
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
position: relative;
|
|
240
|
-
left: auto;
|
|
241
|
-
right: auto;
|
|
242
|
-
top: auto;
|
|
243
|
-
flex-direction: column;
|
|
244
|
-
text-align: left;
|
|
245
|
-
justify-content: center;
|
|
246
|
-
align-items: flex-start;
|
|
247
|
-
}
|
|
255
|
+
.AnchorNav-overflow-menu .AnchorNav-link:focus-visible {
|
|
256
|
+
outline: none;
|
|
257
|
+
box-shadow: inset 0 0 0 var(--brand-borderWidth-thick) var(--brand-color-focus);
|
|
248
258
|
}
|
|
249
259
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
white-space: nowrap;
|
|
254
|
-
}
|
|
260
|
+
.AnchorNav-active-indicator {
|
|
261
|
+
display: none;
|
|
262
|
+
}
|
|
255
263
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
transition: opacity var(--brand-animation-duration-fast), transform var(--brand-animation-duration-fast),
|
|
265
|
-
background-color var(--brand-animation-duration-fast);
|
|
266
|
-
opacity: 1;
|
|
267
|
-
transform: scale(0);
|
|
268
|
-
transform-origin: center;
|
|
269
|
-
}
|
|
264
|
+
/*
|
|
265
|
+
* 5. Action
|
|
266
|
+
*/
|
|
267
|
+
.AnchorNav__actionsContainer {
|
|
268
|
+
grid-area: action;
|
|
269
|
+
justify-self: end;
|
|
270
|
+
display: flex;
|
|
271
|
+
}
|
|
270
272
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
273
|
+
/* Keeps the folded action measurable without showing it in the closed narrow bar. */
|
|
274
|
+
.AnchorNav__actionsContainer--hidden {
|
|
275
|
+
position: absolute;
|
|
276
|
+
inset-inline-end: var(--base-size-16);
|
|
277
|
+
visibility: hidden;
|
|
278
|
+
pointer-events: none;
|
|
279
|
+
}
|
|
278
280
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
281
|
+
.AnchorNav-action {
|
|
282
|
+
white-space: nowrap;
|
|
283
|
+
}
|
|
283
284
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
.AnchorNav-inner-container--folded-action .AnchorNav__actionsContainer {
|
|
286
|
+
justify-self: stretch;
|
|
287
|
+
padding-block-end: var(--base-size-16);
|
|
288
|
+
}
|
|
288
289
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
290
|
+
.AnchorNav-inner-container--folded-action .AnchorNav-action {
|
|
291
|
+
inline-size: 100%;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
/*
|
|
295
|
-
*
|
|
295
|
+
* 6. Overlay (narrow)
|
|
296
296
|
*/
|
|
297
|
-
.AnchorNav-
|
|
298
|
-
|
|
297
|
+
.AnchorNav-overlay--expanded {
|
|
298
|
+
position: absolute;
|
|
299
|
+
inset-block-start: 0;
|
|
300
|
+
inset-inline: 0;
|
|
301
|
+
z-index: -3;
|
|
302
|
+
inline-size: 100%;
|
|
303
|
+
block-size: 100vh; /* Keep as fallback */
|
|
304
|
+
block-size: 100dvh;
|
|
305
|
+
background: #00000080; /* TODO: replace with an overlay backdrop token */
|
|
306
|
+
transform: translateZ(-1px);
|
|
307
|
+
animation: fade-in 0.5s;
|
|
308
|
+
animation-timing-function: var(--brand-animation-easing-glide);
|
|
309
|
+
cursor: pointer;
|
|
299
310
|
}
|
|
300
311
|
|
|
301
|
-
/*
|
|
302
|
-
@media screen and (
|
|
312
|
+
/* Small breakpoint and up */
|
|
313
|
+
@media screen and (min-width: 34rem) {
|
|
314
|
+
.AnchorNav-inner-container {
|
|
315
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
316
|
+
grid-template-areas: '. links action';
|
|
317
|
+
-moz-column-gap: var(--base-size-28);
|
|
318
|
+
column-gap: var(--base-size-28);
|
|
319
|
+
min-block-size: calc(var(--brand-AnchorNav-height) + 1px);
|
|
320
|
+
}
|
|
321
|
+
|
|
303
322
|
.AnchorNav-menu-button {
|
|
304
|
-
|
|
305
|
-
display: inline-flex;
|
|
306
|
-
cursor: pointer;
|
|
307
|
-
padding: var(--base-size-8) var(--base-size-16);
|
|
308
|
-
padding-left: 0; /* space for focus */
|
|
309
|
-
align-items: center;
|
|
310
|
-
height: var(--base-size-32);
|
|
311
|
-
z-index: 2;
|
|
312
|
-
border-radius: var(--brand-borderRadius-small);
|
|
323
|
+
display: none;
|
|
313
324
|
}
|
|
314
325
|
|
|
315
|
-
.AnchorNav-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
326
|
+
.AnchorNav-link-container {
|
|
327
|
+
position: relative;
|
|
328
|
+
display: flex;
|
|
329
|
+
align-self: stretch;
|
|
330
|
+
gap: var(--base-size-28);
|
|
320
331
|
}
|
|
321
332
|
|
|
322
|
-
.AnchorNav-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
333
|
+
.AnchorNav-link-item {
|
|
334
|
+
display: flex;
|
|
335
|
+
flex-shrink: 0;
|
|
336
|
+
align-items: center;
|
|
337
|
+
white-space: nowrap;
|
|
326
338
|
}
|
|
327
339
|
|
|
328
|
-
.AnchorNav-
|
|
340
|
+
.AnchorNav-link-item--overflowed {
|
|
329
341
|
position: absolute;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
height: 100dvh;
|
|
337
|
-
/* replace with overlay-backdrop-bgColor */
|
|
338
|
-
background: #00000080;
|
|
339
|
-
transform: translateZ(-1px);
|
|
340
|
-
animation: fade-in 0.5s;
|
|
341
|
-
animation-timing-function: var(--brand-animation-easing-glide);
|
|
342
|
-
cursor: pointer;
|
|
342
|
+
inset-block-start: 0;
|
|
343
|
+
inset-inline-start: 0;
|
|
344
|
+
inline-size: -moz-max-content;
|
|
345
|
+
inline-size: max-content;
|
|
346
|
+
visibility: hidden;
|
|
347
|
+
pointer-events: none;
|
|
343
348
|
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/*
|
|
347
|
-
* 5. AnchorNav action
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
|
-
.AnchorNav__actionsContainer {
|
|
351
|
-
display: flex;
|
|
352
|
-
gap: var(--base-size-8);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.AnchorNav-action {
|
|
356
|
-
z-index: 1;
|
|
357
|
-
display: flex;
|
|
358
|
-
margin-left: auto;
|
|
359
|
-
white-space: nowrap;
|
|
360
|
-
padding-inline: var(--base-size-24);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.AnchorNav--expanded .AnchorNav-action {
|
|
364
|
-
align-self: flex-start;
|
|
365
|
-
}
|
|
366
349
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
350
|
+
.AnchorNav-overflow {
|
|
351
|
+
position: absolute;
|
|
352
|
+
display: flex;
|
|
353
|
+
align-items: center;
|
|
354
|
+
visibility: hidden;
|
|
355
|
+
pointer-events: none;
|
|
370
356
|
}
|
|
371
357
|
|
|
372
|
-
.AnchorNav-
|
|
373
|
-
|
|
358
|
+
.AnchorNav-overflow--visible {
|
|
359
|
+
position: relative;
|
|
360
|
+
visibility: visible;
|
|
361
|
+
pointer-events: auto;
|
|
374
362
|
}
|
|
375
363
|
|
|
376
|
-
.
|
|
377
|
-
|
|
364
|
+
.AnchorNav-overflow-toggle {
|
|
365
|
+
gap: var(--base-size-6);
|
|
366
|
+
margin: 0;
|
|
367
|
+
background: none;
|
|
368
|
+
border: 0;
|
|
369
|
+
cursor: pointer;
|
|
378
370
|
}
|
|
379
371
|
|
|
380
|
-
.AnchorNav--
|
|
381
|
-
|
|
382
|
-
width: 100%;
|
|
383
|
-
margin-top: var(--base-size-8);
|
|
372
|
+
.AnchorNav-overflow-toggle--open {
|
|
373
|
+
color: var(--brand-color-text-default);
|
|
384
374
|
}
|
|
385
375
|
|
|
386
|
-
.
|
|
387
|
-
|
|
388
|
-
|
|
376
|
+
/* Positioned from the active link's measurements in useAnchorNavWideMenu. */
|
|
377
|
+
.AnchorNav-active-indicator {
|
|
378
|
+
position: absolute;
|
|
379
|
+
inset-block-start: 0;
|
|
380
|
+
inset-inline-start: 0;
|
|
381
|
+
display: block;
|
|
382
|
+
inline-size: var(--anchorNav-indicator-size, 0);
|
|
383
|
+
block-size: var(--brand-borderWidth-thick);
|
|
384
|
+
background-color: var(--brand-AnchorNav-link-underline-default);
|
|
385
|
+
opacity: 0;
|
|
386
|
+
pointer-events: none;
|
|
387
|
+
transform: translate(var(--anchorNav-indicator-x, 0), var(--anchorNav-indicator-y, 0));
|
|
388
|
+
transition: opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),
|
|
389
|
+
transform var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),
|
|
390
|
+
inline-size var(--brand-animation-duration-fast) var(--brand-animation-easing-glide);
|
|
389
391
|
}
|
|
390
|
-
}
|
|
391
392
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
gap: var(--base-size-16);
|
|
393
|
+
.AnchorNav-active-indicator--visible {
|
|
394
|
+
opacity: 1;
|
|
395
395
|
}
|
|
396
|
+
}
|
|
396
397
|
|
|
397
|
-
|
|
398
|
-
|
|
398
|
+
/* Large breakpoint and up */
|
|
399
|
+
@media screen and (min-width: 63.25rem) {
|
|
400
|
+
/* Matches SubNav's inline inset so stacked actions align. */
|
|
401
|
+
.AnchorNav-inner-container {
|
|
402
|
+
padding-inline: var(--base-size-32);
|
|
399
403
|
}
|
|
400
404
|
}
|
|
401
405
|
|
|
402
406
|
/*
|
|
403
|
-
*
|
|
407
|
+
* 7. Animations
|
|
404
408
|
*/
|
|
405
409
|
@keyframes fade-in {
|
|
406
410
|
0% {
|