igniteui-astro-components 0.0.27 → 0.0.28
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/README.md +82 -74
- package/package.json +15 -2
- package/src/components/CopyCode/CopyCode.astro +21 -7
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
- package/src/components/DocsBreadcrumb/README.md +10 -14
- package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
- package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
- package/src/components/DocsSidebar/README.md +25 -21
- package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
- package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
- package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
- package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
- package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -195
- package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -178
- package/src/components/DocsSubHeader/README.md +18 -16
- package/src/components/DocsToc/DocsToc.astro +301 -280
- package/src/components/DocsToc/DocsToc.scss +20 -21
- package/src/components/DocsToc/README.md +11 -9
- package/src/components/DocsToc/toTreeNodes.ts +3 -8
- package/src/components/DocsTree/DocsTree.astro +32 -20
- package/src/components/DocsTree/DocsTreeItem.astro +35 -30
- package/src/components/DocsTree/README.md +16 -15
- package/src/components/DocsTree/docs-tree.scss +267 -268
- package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
- package/src/components/GlobalFooter/README.md +3 -2
- package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
- package/src/components/GlobalNavBar/README.md +3 -2
- package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
- package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
- package/src/components/MobileSidebarToggle/README.md +3 -2
- package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
- package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
- package/src/components/Search/README.md +1 -0
- package/src/components/Search/Search.astro +137 -109
- package/src/components/Search/Search.scss +20 -20
- package/src/components/SearchAdvanced/README.md +21 -15
- package/src/components/SearchAdvanced/SearchAdvanced.astro +205 -133
- package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
- package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
- package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
- package/src/components/mdx/ApiLink/README.md +26 -22
- package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
- package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
- package/src/components/mdx/ApiRef/README.md +20 -15
- package/src/components/mdx/Badge/Badge.astro +14 -14
- package/src/components/mdx/Badge/Badge.scss +61 -56
- package/src/components/mdx/Badge/README.md +24 -19
- package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
- package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
- package/src/components/mdx/DocsAside/README.md +22 -22
- package/src/components/mdx/Faq/Faq.astro +86 -0
- package/src/components/mdx/Faq/Faq.scss +105 -0
- package/src/components/mdx/Faq/FaqItem.astro +117 -0
- package/src/components/mdx/Faq/README.md +223 -0
- package/src/components/mdx/Faq/types.ts +34 -0
- package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
- package/src/components/mdx/PlatformBlock/README.md +6 -8
- package/src/components/mdx/Sample/README.md +21 -16
- package/src/components/mdx/Sample/Sample.astro +97 -74
- package/src/components/mdx/Sample/Sample.scss +132 -132
- package/src/content-helper.ts +71 -72
- package/src/content.config.ts +1 -6
- package/src/integration.ts +566 -512
- package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
- package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
- package/src/layouts/DocsLayout/README.md +24 -35
- package/src/lib/nav-helpers.ts +88 -82
- package/src/lib/types.ts +76 -76
- package/src/llms.ts +205 -166
- package/src/platform.ts +312 -162
- package/src/plugins/rehype-heading-anchors.ts +45 -45
- package/src/plugins/rehype-pagefind-ignore.ts +19 -19
- package/src/plugins/rehype-table-wrapper.ts +30 -30
- package/src/plugins/remark-docfx.ts +12 -0
- package/src/plugins/remark-env-vars.ts +12 -4
- package/src/plugins/remark-md-links.ts +10 -4
- package/src/scripts/icon-manifest.ts +13 -5
- package/src/scripts/sample-widget.ts +557 -501
- package/src/sidebar.ts +103 -97
- package/src/styles/global/_code-blocks.scss +43 -44
- package/src/styles/global/_component-themes.scss +151 -153
- package/src/styles/global/_icon-gallery.scss +81 -81
- package/src/styles/global/_index.scss +0 -1
- package/src/styles/global/_markdown.scss +816 -787
- package/src/styles/global/_palette.scss +456 -110
- package/src/styles/global/_search-shared.scss +402 -398
- package/src/styles/global/_type-scale.scss +127 -127
- package/src/styles/global/_variables.scss +138 -111
- package/src/styles/theme.scss +41 -41
- package/src/virtual-modules.d.ts +11 -2
|
@@ -1,408 +1,412 @@
|
|
|
1
1
|
@use 'igniteui-theming' as *;
|
|
2
2
|
|
|
3
|
-
@property --rot{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
@property --rot {
|
|
4
|
+
syntax: '<angle>';
|
|
5
|
+
inherits: false;
|
|
6
|
+
initial-value: 0deg;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// @layer components block (mixin definitions stay un-nested)
|
|
10
10
|
@layer components {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
&::part(base) {
|
|
195
|
-
@include type-style('detail-2', false) {
|
|
196
|
-
margin: 0;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&:hover,
|
|
200
|
-
&:focus-visible {
|
|
201
|
-
text-decoration: underline;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
display: flex;
|
|
206
|
-
justify-self: start;
|
|
207
|
-
padding: rem(16px);
|
|
208
|
-
border-top: rem(1px) solid var(--ig-gray-100);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.igd-search-meta {
|
|
212
|
-
color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// Dialog chrome — shared by both Search and SearchAdvanced
|
|
216
|
-
.igd-search-dialog {
|
|
217
|
-
--background: var(--igd-layout-sections-bg);
|
|
218
|
-
--backdrop: #{color($color: gray, $variant: 800, $opacity: .6)};
|
|
219
|
-
--_mh: min(calc(100vh - #{rem(100px)} - #{rem(64px)}), #{rem(768px)});
|
|
220
|
-
|
|
221
|
-
&::part(base) {
|
|
222
|
-
margin: rem(100px) auto rem(64px);
|
|
223
|
-
padding: 0;
|
|
224
|
-
width: 90%;
|
|
225
|
-
max-width: rem(672px);
|
|
226
|
-
max-height: var(--_mh);
|
|
227
|
-
border-radius: rem(8px);
|
|
228
|
-
|
|
229
|
-
overflow: hidden;
|
|
230
|
-
|
|
231
|
-
&:focus-visible {
|
|
232
|
-
outline: none;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&::part(content) {
|
|
237
|
-
padding: 0;
|
|
238
|
-
display: flex;
|
|
239
|
-
flex-direction: column;
|
|
240
|
-
height: 100%;
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
igc-input::part(container) {
|
|
245
|
-
--border-color: var(--ig-gray-200);
|
|
246
|
-
--border-color-hover: var(--ig-gray-300);
|
|
247
|
-
--border-border-radius: #{rem(8px)};
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
// Search dialog header bar (input + optional scope)
|
|
252
|
-
.igd-search-footer,
|
|
253
|
-
.igd-search-header {
|
|
254
|
-
--ig-size: var(--ig-size-large);
|
|
255
|
-
padding: rem(16px);
|
|
256
|
-
gap: rem(8px);
|
|
257
|
-
height: var(--search-header-footer-height);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// Visible only on mobile devices
|
|
261
|
-
.igd-search-footer {
|
|
262
|
-
display: none;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.igd-search-header {
|
|
266
|
-
display: flex;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.igd-search-scope {
|
|
270
|
-
flex-shrink: 0;
|
|
271
|
-
align-self: center;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.igd-search-input {
|
|
275
|
-
--input-prefix-background: transparent;
|
|
276
|
-
--input-prefix-background--focused: transparent;
|
|
277
|
-
--input-prefix-background--filled: transparent;
|
|
278
|
-
|
|
279
|
-
--input-suffix-background: transparent;
|
|
280
|
-
--input-suffix-background--focused: transparent;
|
|
281
|
-
--input-suffix-background--filled: transparent;
|
|
282
|
-
|
|
283
|
-
width: 100%;
|
|
284
|
-
min-width: 0;
|
|
285
|
-
flex: 1 1 auto;
|
|
286
|
-
|
|
287
|
-
&::part(input) {
|
|
288
|
-
@include type-style('body-2') {
|
|
289
|
-
margin: 0;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.igd-search-clear {
|
|
295
|
-
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
296
|
-
--hover-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
297
|
-
--focus-hover-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
298
|
-
--focus-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
299
|
-
--active-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
300
|
-
--shadow-color: transparent;
|
|
301
|
-
--background: transparent;
|
|
302
|
-
--hover-background: transparent;
|
|
303
|
-
--focus-background: transparent;
|
|
304
|
-
--focus-hover-background: transparent;
|
|
305
|
-
--active-background: transparent;
|
|
306
|
-
//--border-color: transparent;
|
|
307
|
-
--border-radius: 0;
|
|
308
|
-
|
|
309
|
-
&::part(base) {
|
|
310
|
-
--size: 18px;
|
|
311
|
-
|
|
312
|
-
padding: 0;
|
|
313
|
-
|
|
314
|
-
&::after {
|
|
315
|
-
border-radius: 4px;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.igd-search-icon {
|
|
321
|
-
color: light-dark(var(--ig-gray-900), var(--ig-gray-500));
|
|
322
|
-
padding-inline: rem(12px) rem(0);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.search-decoration {
|
|
326
|
-
--search-decoration-background: conic-gradient(from var(--rot) at 50% 50%, var(--igd-accent) -56.25deg, var(--igd-accent) 43.12deg, var(--ig-secondary-500) 180deg, var(--igd-accent) 303.75deg, var(--igd-accent) 403.12deg);
|
|
327
|
-
|
|
328
|
-
position: relative;
|
|
329
|
-
isolation: isolate;
|
|
330
|
-
padding: 1px;
|
|
331
|
-
border-radius: rem(11px);
|
|
332
|
-
background: transparent;
|
|
333
|
-
box-sizing: border-box;
|
|
334
|
-
|
|
335
|
-
&::before {
|
|
336
|
-
content: '';
|
|
337
|
-
position: absolute;
|
|
338
|
-
inset: 0;
|
|
339
|
-
z-index: 0;
|
|
340
|
-
border-radius: inherit;
|
|
341
|
-
background: var(--search-decoration-background);
|
|
342
|
-
opacity: 0;
|
|
343
|
-
transition: opacity 150ms ease;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
> * {
|
|
347
|
-
position: relative;
|
|
348
|
-
z-index: 1;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
igc-input {
|
|
352
|
-
--border-color: transparent;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.search-trigger {
|
|
357
|
-
cursor: pointer;
|
|
358
|
-
|
|
359
|
-
&::part(input) {
|
|
360
|
-
cursor: pointer;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.search-trigger__hint {
|
|
365
|
-
display: flex;
|
|
366
|
-
gap: rem(4px);
|
|
367
|
-
align-items: center;
|
|
368
|
-
background: transparent;
|
|
369
|
-
color: var(--ig-gray-400);
|
|
370
|
-
font-size: inherit;
|
|
371
|
-
padding-inline: rem(16px);
|
|
372
|
-
box-shadow: none;
|
|
373
|
-
|
|
374
|
-
> kbd {
|
|
375
|
-
background: transparent;
|
|
376
|
-
color: inherit;
|
|
377
|
-
font-size: inherit;
|
|
378
|
-
font-weight: normal;
|
|
379
|
-
box-shadow: none;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
kbd:first-child {
|
|
383
|
-
display: flex;
|
|
384
|
-
align-items: center;
|
|
385
|
-
line-height: 1;
|
|
386
|
-
font-size: 19px;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
.search-trigger-mobile {
|
|
390
|
-
display: none;
|
|
391
|
-
--background: var(--igd-layout-sections-bg);
|
|
392
|
-
--hover-background: var(--igd-layout-sections-bg);
|
|
393
|
-
--focus-background: var(--igd-layout-sections-bg);
|
|
394
|
-
--focus-hover-background: var(--igd-layout-sections-bg);
|
|
395
|
-
--active-background: var(--igd-layout-sections-bg);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
11
|
+
// Shared dialog chrome
|
|
12
|
+
[data-search-modal-open] {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.igd-search-shell {
|
|
17
|
+
--search-header-footer-height: #{rem(80px)};
|
|
18
|
+
|
|
19
|
+
display: grid;
|
|
20
|
+
min-height: 0;
|
|
21
|
+
flex: 1 1 auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.igd-search-content {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
|
|
29
|
+
// Constrain the content area so only the list scrolls, not the whole dialog.
|
|
30
|
+
// --_mh is set on .igd-search-dialog; --search-header-footer-height on .igd-search-shell.
|
|
31
|
+
max-height: calc(var(--_mh) - var(--search-header-footer-height));
|
|
32
|
+
|
|
33
|
+
// min-width: 0 is necessary to allow the content to shrink below its min-content width
|
|
34
|
+
// otherwise igc-tabs won't show the scroll buttons
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Status
|
|
39
|
+
.igd-search-status {
|
|
40
|
+
@include type-style('body-2') {
|
|
41
|
+
margin: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
display: grid;
|
|
45
|
+
place-items: center;
|
|
46
|
+
padding: 0 rem(16px) rem(16px) rem(16px);
|
|
47
|
+
border-bottom: rem(1px) solid var(--ig-gray-200);
|
|
48
|
+
text-align: center;
|
|
49
|
+
color: light-dark(var(--ig-gray-500), var(--ig-gray-300));
|
|
50
|
+
|
|
51
|
+
&:empty {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.igd-showing-results {
|
|
57
|
+
align-self: end;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.igd-search-query {
|
|
61
|
+
display: block;
|
|
62
|
+
color: var(--igd-accent);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Results
|
|
66
|
+
.igd-search-results {
|
|
67
|
+
--background: transparent;
|
|
68
|
+
|
|
69
|
+
position: relative;
|
|
70
|
+
|
|
71
|
+
gap: rem(8px);
|
|
72
|
+
|
|
73
|
+
igc-list-item {
|
|
74
|
+
--item-border-radius: 0;
|
|
75
|
+
--item-background: transparent;
|
|
76
|
+
--item-background-hover: var(--ig-gray-50);
|
|
77
|
+
--item-background-focus: transparent;
|
|
78
|
+
--item-background-active: transparent;
|
|
79
|
+
--border-color: transparent;
|
|
80
|
+
|
|
81
|
+
padding: 0;
|
|
82
|
+
gap: 0;
|
|
83
|
+
|
|
84
|
+
&:focus-within {
|
|
85
|
+
--item-background-hover: transparent;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:last-of-type {
|
|
90
|
+
padding-block-end: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
padding-inline: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.igd-search-results,
|
|
97
|
+
.igd-search-results--flat {
|
|
98
|
+
overflow-y: auto;
|
|
99
|
+
flex: 1 1 auto;
|
|
100
|
+
min-height: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.igd-search-results--flat {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
padding-bottom: 1rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.igd-search-link {
|
|
110
|
+
display: grid;
|
|
111
|
+
align-items: center;
|
|
112
|
+
padding: rem(8px) rem(16px);
|
|
113
|
+
gap: rem(4px);
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
color: inherit;
|
|
116
|
+
|
|
117
|
+
&:focus-visible {
|
|
118
|
+
outline: transparent;
|
|
119
|
+
box-shadow: inset 0 0 0 rem(1px) var(--igd-accent);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.igd-search-result-title {
|
|
124
|
+
@include type-style('body-1') {
|
|
125
|
+
margin: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-600));
|
|
129
|
+
|
|
130
|
+
mark {
|
|
131
|
+
background: transparent;
|
|
132
|
+
color: var(--igd-accent);
|
|
133
|
+
padding: 0 1px;
|
|
134
|
+
border-radius: 2px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Breadcrumb location line under the result title.
|
|
139
|
+
.igd-search-result-path {
|
|
140
|
+
@include type-style('caption') {
|
|
141
|
+
margin: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
color: light-dark(var(--ig-gray-500), var(--ig-gray-400));
|
|
145
|
+
|
|
146
|
+
mark {
|
|
147
|
+
background: transparent;
|
|
148
|
+
color: var(--igd-accent);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.igd-search-kind {
|
|
153
|
+
@include type-style('caption') {
|
|
154
|
+
margin-block: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
margin-inline-end: rem(8px);
|
|
158
|
+
padding: rem(4px);
|
|
159
|
+
border-radius: rem(2px);
|
|
160
|
+
color: light-dark(var(--ig-gray-700), var(--ig-gray-500));
|
|
161
|
+
background: light-dark(var(--ig-gray-100), #112031);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Category header (above each result list in the All tab)
|
|
165
|
+
.igd-search-category-header {
|
|
166
|
+
@include type-style('body-2') {
|
|
167
|
+
margin: 0;
|
|
168
|
+
font-weight: 700;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
display: inline-block;
|
|
172
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
|
|
173
|
+
padding-inline: rem(16px);
|
|
174
|
+
margin-block-end: rem(8px);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.igd-search-more-btn {
|
|
178
|
+
--focus-visible-border-color: transparent;
|
|
179
|
+
--border-radius: #{rem(4px)};
|
|
180
|
+
--foreground: var(--igd-accent);
|
|
181
|
+
--icon-color: var(--igd-accent);
|
|
182
|
+
--icon-color-hover: var(--igd-accent);
|
|
183
|
+
--hover-background: transparent;
|
|
184
|
+
--hover-foreground: var(--igd-accent);
|
|
185
|
+
--focus-background: transparent;
|
|
186
|
+
--focus-foreground: var(--igd-accent);
|
|
187
|
+
--active-foreground: var(--igd-accent);
|
|
188
|
+
--active-background: transparent;
|
|
189
|
+
--focus-hover-background: var(--igd-accent);
|
|
190
|
+
--focus-hover-foreground: transparent;
|
|
191
|
+
--focus-visible-foreground: var(--igd-accent);
|
|
192
|
+
--focus-visible-background: transparent;
|
|
398
193
|
|
|
194
|
+
&::part(base) {
|
|
195
|
+
@include type-style('detail-2', false) {
|
|
196
|
+
margin: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&:hover,
|
|
200
|
+
&:focus-visible {
|
|
201
|
+
text-decoration: underline;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
display: flex;
|
|
206
|
+
justify-self: start;
|
|
207
|
+
padding: rem(16px);
|
|
208
|
+
border-top: rem(1px) solid var(--ig-gray-100);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.igd-search-meta {
|
|
212
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Dialog chrome — shared by both Search and SearchAdvanced
|
|
216
|
+
.igd-search-dialog {
|
|
217
|
+
--background: var(--igd-layout-sections-bg);
|
|
218
|
+
--backdrop: #{color($color: gray, $variant: 800, $opacity: 0.6)};
|
|
219
|
+
--_mh: min(calc(100vh - #{rem(100px)} - #{rem(64px)}), #{rem(768px)});
|
|
220
|
+
|
|
221
|
+
&::part(base) {
|
|
222
|
+
margin: rem(100px) auto rem(64px);
|
|
223
|
+
padding: 0;
|
|
224
|
+
width: 90%;
|
|
225
|
+
max-width: rem(672px);
|
|
226
|
+
max-height: var(--_mh);
|
|
227
|
+
border-radius: rem(8px);
|
|
228
|
+
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
|
|
231
|
+
&:focus-visible {
|
|
232
|
+
outline: none;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&::part(content) {
|
|
237
|
+
padding: 0;
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-direction: column;
|
|
240
|
+
height: 100%;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
igc-input::part(container) {
|
|
244
|
+
--border-color: var(--ig-gray-200);
|
|
245
|
+
--border-color-hover: var(--ig-gray-300);
|
|
246
|
+
--border-border-radius: #{rem(8px)};
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Search dialog header bar (input + optional scope)
|
|
251
|
+
.igd-search-footer,
|
|
252
|
+
.igd-search-header {
|
|
253
|
+
--ig-size: var(--ig-size-large);
|
|
254
|
+
padding: rem(16px);
|
|
255
|
+
gap: rem(8px);
|
|
256
|
+
height: var(--search-header-footer-height);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// Visible only on mobile devices
|
|
260
|
+
.igd-search-footer {
|
|
261
|
+
display: none;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.igd-search-header {
|
|
265
|
+
display: flex;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.igd-search-scope {
|
|
269
|
+
flex-shrink: 0;
|
|
270
|
+
align-self: center;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.igd-search-input {
|
|
274
|
+
--input-prefix-background: transparent;
|
|
275
|
+
--input-prefix-background--focused: transparent;
|
|
276
|
+
--input-prefix-background--filled: transparent;
|
|
277
|
+
|
|
278
|
+
--input-suffix-background: transparent;
|
|
279
|
+
--input-suffix-background--focused: transparent;
|
|
280
|
+
--input-suffix-background--filled: transparent;
|
|
281
|
+
|
|
282
|
+
width: 100%;
|
|
283
|
+
min-width: 0;
|
|
284
|
+
flex: 1 1 auto;
|
|
285
|
+
|
|
286
|
+
&::part(input) {
|
|
287
|
+
@include type-style('body-2') {
|
|
288
|
+
margin: 0;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.igd-search-clear {
|
|
294
|
+
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
295
|
+
--hover-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
296
|
+
--focus-hover-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
297
|
+
--focus-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
298
|
+
--active-foreground: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
299
|
+
--shadow-color: transparent;
|
|
300
|
+
--background: transparent;
|
|
301
|
+
--hover-background: transparent;
|
|
302
|
+
--focus-background: transparent;
|
|
303
|
+
--focus-hover-background: transparent;
|
|
304
|
+
--active-background: transparent;
|
|
305
|
+
//--border-color: transparent;
|
|
306
|
+
--border-radius: 0;
|
|
307
|
+
|
|
308
|
+
&::part(base) {
|
|
309
|
+
--size: 18px;
|
|
310
|
+
|
|
311
|
+
padding: 0;
|
|
312
|
+
|
|
313
|
+
&::after {
|
|
314
|
+
border-radius: 4px;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.igd-search-icon {
|
|
320
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-500));
|
|
321
|
+
padding-inline: rem(12px) rem(0);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.search-decoration {
|
|
325
|
+
--search-decoration-background: conic-gradient(
|
|
326
|
+
from var(--rot) at 50% 50%,
|
|
327
|
+
var(--igd-accent) -56.25deg,
|
|
328
|
+
var(--igd-accent) 43.12deg,
|
|
329
|
+
var(--ig-secondary-500) 180deg,
|
|
330
|
+
var(--igd-accent) 303.75deg,
|
|
331
|
+
var(--igd-accent) 403.12deg
|
|
332
|
+
);
|
|
333
|
+
|
|
334
|
+
position: relative;
|
|
335
|
+
isolation: isolate;
|
|
336
|
+
padding: 1px;
|
|
337
|
+
border-radius: rem(11px);
|
|
338
|
+
background: transparent;
|
|
339
|
+
box-sizing: border-box;
|
|
340
|
+
|
|
341
|
+
&::before {
|
|
342
|
+
content: '';
|
|
343
|
+
position: absolute;
|
|
344
|
+
inset: 0;
|
|
345
|
+
z-index: 0;
|
|
346
|
+
border-radius: inherit;
|
|
347
|
+
background: var(--search-decoration-background);
|
|
348
|
+
opacity: 0;
|
|
349
|
+
transition: opacity 150ms ease;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
> * {
|
|
353
|
+
position: relative;
|
|
354
|
+
z-index: 1;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
igc-input {
|
|
358
|
+
--border-color: transparent;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.search-trigger {
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
|
|
365
|
+
&::part(input) {
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.search-trigger__hint {
|
|
371
|
+
display: flex;
|
|
372
|
+
gap: rem(4px);
|
|
373
|
+
align-items: center;
|
|
374
|
+
background: transparent;
|
|
375
|
+
color: var(--ig-gray-400);
|
|
376
|
+
font-size: inherit;
|
|
377
|
+
padding-inline: rem(16px);
|
|
378
|
+
box-shadow: none;
|
|
379
|
+
|
|
380
|
+
> kbd {
|
|
381
|
+
background: transparent;
|
|
382
|
+
color: inherit;
|
|
383
|
+
font-size: inherit;
|
|
384
|
+
font-weight: normal;
|
|
385
|
+
box-shadow: none;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
kbd:first-child {
|
|
389
|
+
display: flex;
|
|
390
|
+
align-items: center;
|
|
391
|
+
line-height: 1;
|
|
392
|
+
font-size: 19px;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
.search-trigger-mobile {
|
|
396
|
+
display: none;
|
|
397
|
+
--background: var(--igd-layout-sections-bg);
|
|
398
|
+
--hover-background: var(--igd-layout-sections-bg);
|
|
399
|
+
--focus-background: var(--igd-layout-sections-bg);
|
|
400
|
+
--focus-hover-background: var(--igd-layout-sections-bg);
|
|
401
|
+
--active-background: var(--igd-layout-sections-bg);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
399
404
|
|
|
400
405
|
@keyframes rotation {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
406
|
+
from {
|
|
407
|
+
--rot: 0deg;
|
|
408
|
+
}
|
|
409
|
+
to {
|
|
410
|
+
--rot: 360deg;
|
|
411
|
+
}
|
|
408
412
|
}
|