igniteui-astro-components 0.0.13 → 0.0.15
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/package.json +3 -1
- package/src/components/DocsSidebar/DocsSidebar.scss +16 -78
- package/src/components/DocsSidebar/SidebarFilterInput.scss +1 -2
- package/src/components/DocsSidebar/SidebarLabel.astro +3 -2
- package/src/components/DocsSubHeader/DocsSubHeader.astro +57 -4
- package/src/components/DocsSubHeader/DocsSubHeader.scss +42 -1
- package/src/components/DocsToc/DocsToc.scss +1 -1
- package/src/components/DocsTree/docs-tree.scss +139 -32
- package/src/components/LicenseIndicator/LicenseIndicator.astro +4 -3
- package/src/components/LicenseIndicator/LicenseIndicator.scss +4 -2
- package/src/components/Search/Search.scss +8 -0
- package/src/components/SearchAdvanced/SearchAdvanced.astro +48 -1
- package/src/components/SearchAdvanced/SearchAdvanced.scss +51 -6
- package/src/components/mdx/ApiLink/ApiLink.astro +57 -6
- package/src/components/mdx/ApiLink/ApiLink.scss +13 -0
- package/src/components/mdx/ApiLink/README.md +47 -2
- package/src/components/mdx/Badge/Badge.astro +30 -0
- package/src/components/mdx/Badge/Badge.scss +73 -0
- package/src/components/mdx/Badge/README.md +63 -0
- package/src/components/mdx/DocsAside/DocsAside.scss +4 -2
- package/src/components/mdx/Sample/Sample.scss +4 -3
- package/src/layouts/DocsLayout/DocsLayout.astro +2 -2
- package/src/layouts/DocsLayout/DocsLayout.scss +4 -8
- package/src/scripts/sample-widget.ts +3 -1
- package/src/styles/global/_code-blocks.scss +6 -20
- package/src/styles/global/_markdown.scss +98 -41
- package/src/styles/global/_search-shared.scss +2 -9
- package/src/styles/global/_type-scale.scss +17 -19
- package/src/styles/global/_variables.scss +7 -7
- package/src/styles/theme.scss +30 -2
- package/src/virtual-modules.d.ts +4 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
============================================================ */
|
|
9
9
|
|
|
10
10
|
.shiki {
|
|
11
|
-
border: 1px solid
|
|
11
|
+
border: 1px solid var(--ig-gray-200);
|
|
12
12
|
margin-bottom: rem(26px);
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -26,25 +26,11 @@ pre.shiki code {
|
|
|
26
26
|
word-break: break-word;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
/* ──
|
|
30
|
-
Shiki
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
background-color:
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* ── Dark mode ──────────────────────────────────────────────
|
|
37
|
-
Override Shiki's inline light-colour styles with dark vars. */
|
|
38
|
-
[data-theme='dark'] pre.shiki {
|
|
39
|
-
background-color: var(--shiki-dark-bg) !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[data-theme='dark'] pre.shiki code span {
|
|
43
|
-
color: var(--shiki-dark) !important;
|
|
44
|
-
background-color: var(--shiki-dark-bg, transparent) !important;
|
|
45
|
-
font-style: var(--shiki-dark-font-style) !important;
|
|
46
|
-
font-weight: var(--shiki-dark-font-weight) !important;
|
|
47
|
-
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
29
|
+
/* ── Always use the dark theme ──────────────────────────────
|
|
30
|
+
Single dark theme — Shiki outputs colors directly, no CSS
|
|
31
|
+
variable switching required. */
|
|
32
|
+
pre.shiki {
|
|
33
|
+
background-color: var(--shiki-color-background) !important;
|
|
48
34
|
}
|
|
49
35
|
|
|
50
36
|
/* Copy button */
|
|
@@ -5,40 +5,53 @@
|
|
|
5
5
|
// generated by typography() but type-style() only accepts standard names.
|
|
6
6
|
// Read the generated --ig-* vars directly to avoid the warning.
|
|
7
7
|
.igd-main-content__markdown {
|
|
8
|
-
.
|
|
8
|
+
.license-indicator-badge {
|
|
9
9
|
margin-block-end: rem(26px);
|
|
10
|
-
|
|
11
|
-
// TODO, This has to be fixed inside the component
|
|
12
|
-
span {
|
|
13
|
-
top:1px
|
|
14
|
-
}
|
|
15
10
|
}
|
|
16
|
-
|
|
17
|
-
p
|
|
11
|
+
|
|
12
|
+
p,
|
|
13
|
+
.igd-p {
|
|
18
14
|
@include type-style('body-1');
|
|
15
|
+
|
|
16
|
+
//text-wrap: balance;
|
|
17
|
+
|
|
18
|
+
code {
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
/* Optional: allows the user to scroll horizontally if the code is too long */
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
overflow-x: auto;
|
|
23
|
+
display: inline-block;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
}
|
|
19
26
|
}
|
|
20
27
|
|
|
21
|
-
h1
|
|
28
|
+
h1,
|
|
29
|
+
.igd-h1 {
|
|
22
30
|
@include type-style('h1');
|
|
23
31
|
}
|
|
24
32
|
|
|
25
|
-
h2
|
|
33
|
+
h2,
|
|
34
|
+
.igd-h2 {
|
|
26
35
|
@include type-style('h2');
|
|
27
36
|
}
|
|
28
37
|
|
|
29
|
-
h3
|
|
38
|
+
h3,
|
|
39
|
+
.igd-h3 {
|
|
30
40
|
@include type-style('h3');
|
|
31
41
|
}
|
|
32
42
|
|
|
33
|
-
h4
|
|
43
|
+
h4,
|
|
44
|
+
.igd-h4 {
|
|
34
45
|
@include type-style('h4');
|
|
35
46
|
}
|
|
36
47
|
|
|
37
|
-
h5
|
|
48
|
+
h5,
|
|
49
|
+
.igd-h5 {
|
|
38
50
|
@include type-style('h5');
|
|
39
51
|
}
|
|
40
52
|
|
|
41
|
-
h6
|
|
53
|
+
h6,
|
|
54
|
+
.igd-h6 {
|
|
42
55
|
@include type-style('h6');
|
|
43
56
|
}
|
|
44
57
|
|
|
@@ -53,26 +66,20 @@
|
|
|
53
66
|
padding: var(--igd-page-padding);
|
|
54
67
|
min-width: 0;
|
|
55
68
|
|
|
56
|
-
pre {
|
|
69
|
+
pre:not(.astro-code) {
|
|
57
70
|
@include type-style('code', false) {
|
|
58
|
-
margin: 0;
|
|
71
|
+
margin-block: 0;
|
|
59
72
|
};
|
|
60
73
|
|
|
61
|
-
|
|
62
|
-
background-color: light-dark(var(--ig-gray-50), var(--ig-gray-50)) !important;
|
|
63
|
-
color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
|
|
74
|
+
margin-block-end: rem(26px);
|
|
64
75
|
}
|
|
65
76
|
|
|
66
77
|
pre,
|
|
67
78
|
code {
|
|
79
|
+
font-family: var(--font-mono) !important;
|
|
68
80
|
margin-block-end: rem(26px);
|
|
69
81
|
}
|
|
70
82
|
|
|
71
|
-
code {
|
|
72
|
-
--shiki-dark-bg: transparent;
|
|
73
|
-
--shiki-light-bg: transparent;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
83
|
kbd {
|
|
77
84
|
@include type-style('code', false) {
|
|
78
85
|
margin: 0;
|
|
@@ -88,14 +95,13 @@
|
|
|
88
95
|
code:not(pre code) {
|
|
89
96
|
@include type-style('code', false) {
|
|
90
97
|
margin: 0;
|
|
98
|
+
line-height: normal;
|
|
91
99
|
};
|
|
92
100
|
|
|
93
|
-
background: light-dark(var(--ig-primary-50), #112031);
|
|
94
|
-
color: light-dark(var(--ig-gray-600), var(--ig-gray-400));
|
|
95
|
-
border: rem(1px) solid light-dark(var(--ig-gray-300), #1A314A);
|
|
96
|
-
|
|
97
|
-
padding: rem(4px) rem(8px);
|
|
98
101
|
border-radius: rem(4px);
|
|
102
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
|
|
103
|
+
background: light-dark(var(--ig-gray-100), #112031);
|
|
104
|
+
border: rem(1px) solid light-dark(var(--ig-gray-200), #1A314A);
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
ul,
|
|
@@ -109,6 +115,10 @@
|
|
|
109
115
|
padding-block: 0;
|
|
110
116
|
color: inherit;
|
|
111
117
|
|
|
118
|
+
::marker {
|
|
119
|
+
color: var(--ig-primary-500);
|
|
120
|
+
}
|
|
121
|
+
|
|
112
122
|
li {
|
|
113
123
|
> strong {
|
|
114
124
|
@include type-style('subtitle-2') {
|
|
@@ -120,14 +130,14 @@
|
|
|
120
130
|
position: relative;
|
|
121
131
|
color: inherit;
|
|
122
132
|
padding-inline: 0 rem(8px);
|
|
123
|
-
padding-block: rem(
|
|
133
|
+
padding-block: rem(4px);
|
|
124
134
|
|
|
125
|
-
|
|
126
|
-
|
|
135
|
+
::marker {
|
|
136
|
+
color: var(--ig-primary-500);
|
|
127
137
|
}
|
|
128
138
|
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
> .shiki {
|
|
140
|
+
margin-top: rem(8px);
|
|
131
141
|
}
|
|
132
142
|
|
|
133
143
|
&:has(> ul) {
|
|
@@ -154,6 +164,10 @@
|
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
dl {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
gap: 8px;
|
|
170
|
+
|
|
157
171
|
padding-inline-start: 0;
|
|
158
172
|
|
|
159
173
|
dt {
|
|
@@ -176,27 +190,63 @@
|
|
|
176
190
|
}
|
|
177
191
|
|
|
178
192
|
a {
|
|
179
|
-
color: inherit;
|
|
180
193
|
text-decoration: underline;
|
|
181
194
|
}
|
|
182
195
|
|
|
183
196
|
margin-block-end: rem(26px);
|
|
184
197
|
}
|
|
185
198
|
|
|
186
|
-
|
|
199
|
+
a {
|
|
187
200
|
font-size: inherit;
|
|
188
|
-
color:
|
|
201
|
+
color: light-dark(var(--ig-primary-500), var(--ig-primary-200));
|
|
189
202
|
text-decoration: underline;
|
|
190
203
|
|
|
191
204
|
&:hover,
|
|
192
205
|
&:focus {
|
|
193
206
|
color: light-dark(var(--ig-primary-600), var(--ig-primary-100));
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&:focus,
|
|
210
|
+
&:focus-visible {
|
|
211
|
+
outline: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
code {
|
|
215
|
+
color: inherit ;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
a:has(code) {
|
|
220
|
+
&:hover,
|
|
221
|
+
&:focus {
|
|
222
|
+
code {
|
|
223
|
+
color: var(--igd-accent);
|
|
224
|
+
border-color: var(--ig-primary-100);
|
|
225
|
+
}
|
|
197
226
|
}
|
|
198
227
|
}
|
|
199
228
|
|
|
229
|
+
label {
|
|
230
|
+
@include type-style('body-2') {
|
|
231
|
+
margin-block: 0;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
a[target="_blank"]::after {
|
|
236
|
+
content: "";
|
|
237
|
+
display: inline-block;
|
|
238
|
+
width: 1em;
|
|
239
|
+
height: 1em;
|
|
240
|
+
margin-inline-start: 0.2em;
|
|
241
|
+
vertical-align: middle;
|
|
242
|
+
background-color: currentColor;
|
|
243
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.21162 15C3.86637 15 3.57812 14.8844 3.34688 14.6531C3.11563 14.4219 3 14.1336 3 13.7884V4.21162C3 3.86637 3.11563 3.57812 3.34688 3.34688C3.57812 3.11563 3.86637 3 4.21162 3H8.42306V3.75H4.21162C4.09613 3.75 3.99031 3.79806 3.89419 3.89419C3.79806 3.99031 3.75 4.09613 3.75 4.21162V13.7884C3.75 13.9039 3.79806 14.0097 3.89419 14.1058C3.99031 14.2019 4.09613 14.25 4.21162 14.25H13.7884C13.9039 14.25 14.0097 14.2019 14.1058 14.1058C14.2019 14.0097 14.25 13.9039 14.25 13.7884V9.57694H15V13.7884C15 14.1336 14.8844 14.4219 14.6531 14.6531C14.4219 14.8844 14.1336 15 13.7884 15H4.21162ZM7.30388 11.2269L6.77306 10.6961L13.7192 3.75H10.5V3H15V7.5H14.25V4.28081L7.30388 11.2269Z'/%3E%3C/svg%3E");
|
|
244
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.21162 15C3.86637 15 3.57812 14.8844 3.34688 14.6531C3.11563 14.4219 3 14.1336 3 13.7884V4.21162C3 3.86637 3.11563 3.57812 3.34688 3.34688C3.57812 3.11563 3.86637 3 4.21162 3H8.42306V3.75H4.21162C4.09613 3.75 3.99031 3.79806 3.89419 3.89419C3.79806 3.99031 3.75 4.09613 3.75 4.21162V13.7884C3.75 13.9039 3.79806 14.0097 3.89419 14.1058C3.99031 14.2019 4.09613 14.25 4.21162 14.25H13.7884C13.9039 14.25 14.0097 14.2019 14.1058 14.1058C14.2019 14.0097 14.25 13.9039 14.25 13.7884V9.57694H15V13.7884C15 14.1336 14.8844 14.4219 14.6531 14.6531C14.4219 14.8844 14.1336 15 13.7884 15H4.21162ZM7.30388 11.2269L6.77306 10.6961L13.7192 3.75H10.5V3H15V7.5H14.25V4.28081L7.30388 11.2269Z'/%3E%3C/svg%3E");
|
|
245
|
+
mask-size: contain;
|
|
246
|
+
mask-repeat: no-repeat;
|
|
247
|
+
mask-position: center;
|
|
248
|
+
}
|
|
249
|
+
|
|
200
250
|
.igd-defined-in {
|
|
201
251
|
> span {
|
|
202
252
|
white-space: nowrap;
|
|
@@ -327,7 +377,7 @@
|
|
|
327
377
|
blockquote {
|
|
328
378
|
padding: rem(16px);
|
|
329
379
|
border-inline-start-width: rem(1px);
|
|
330
|
-
border-inline-start-color: var(--ig-gray-
|
|
380
|
+
border-inline-start-color: var(--ig-gray-600);
|
|
331
381
|
margin-block-end: rem(26px);
|
|
332
382
|
|
|
333
383
|
p:only-child {
|
|
@@ -340,6 +390,13 @@
|
|
|
340
390
|
}
|
|
341
391
|
}
|
|
342
392
|
|
|
393
|
+
q {
|
|
394
|
+
@include type-style('detail-1', false) {
|
|
395
|
+
margin: 0;
|
|
396
|
+
font-style: italic;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
343
400
|
blockquote .small,
|
|
344
401
|
blockquote footer,
|
|
345
402
|
blockquote small {
|
|
@@ -303,16 +303,8 @@
|
|
|
303
303
|
igc-input::part(container) {
|
|
304
304
|
border: 0;
|
|
305
305
|
height: 100%;
|
|
306
|
-
padding: 0
|
|
306
|
+
padding: 0 !important;
|
|
307
307
|
border-block-end: none !important;
|
|
308
|
-
|
|
309
|
-
&:focus-within {
|
|
310
|
-
box-shadow:
|
|
311
|
-
0 0 0 1px var(--igd-accent),
|
|
312
|
-
inset 0 1px 0 var(--igd-accent),
|
|
313
|
-
inset 0 -1px 0 var(--igd-accent),
|
|
314
|
-
inset -1px 0 0 var(--igd-accent);
|
|
315
|
-
}
|
|
316
308
|
}
|
|
317
309
|
}
|
|
318
310
|
|
|
@@ -371,6 +363,7 @@
|
|
|
371
363
|
|
|
372
364
|
.igd-search-icon {
|
|
373
365
|
color: light-dark(var(--ig-gray-900), var(--ig-gray-500));
|
|
366
|
+
margin-inline-start: rem(8px);
|
|
374
367
|
}
|
|
375
368
|
|
|
376
369
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
@use 'igniteui-theming' as *;
|
|
2
2
|
|
|
3
|
-
$typeface: 'Instrument Sans Variable', 'Segoe UI', system-ui, sans-serif;
|
|
4
|
-
|
|
5
3
|
$h1: type-style(
|
|
6
|
-
$font-size: rem(
|
|
7
|
-
$font-weight:
|
|
4
|
+
$font-size: rem(32px),
|
|
5
|
+
$font-weight: 800,
|
|
8
6
|
$letter-spacing: normal,
|
|
9
7
|
$line-height: rem(40px),
|
|
10
8
|
$text-transform: none,
|
|
@@ -13,50 +11,50 @@ $h1: type-style(
|
|
|
13
11
|
);
|
|
14
12
|
|
|
15
13
|
$h2: type-style(
|
|
16
|
-
$font-size: rem(
|
|
17
|
-
$font-weight:
|
|
14
|
+
$font-size: rem(24px),
|
|
15
|
+
$font-weight: 700,
|
|
18
16
|
$letter-spacing: normal,
|
|
19
|
-
$line-height: rem(
|
|
17
|
+
$line-height: rem(32px),
|
|
20
18
|
$text-transform: none,
|
|
21
19
|
$margin-top: 0,
|
|
22
20
|
$margin-bottom: rem(26px),
|
|
23
21
|
);
|
|
24
22
|
|
|
25
23
|
$h3: type-style(
|
|
26
|
-
$font-size: rem(
|
|
27
|
-
$font-weight:
|
|
24
|
+
$font-size: rem(20px),
|
|
25
|
+
$font-weight: 500,
|
|
28
26
|
$letter-spacing: normal,
|
|
29
|
-
$line-height: rem(
|
|
27
|
+
$line-height: rem(28px),
|
|
30
28
|
$text-transform: none,
|
|
31
29
|
$margin-top: 0,
|
|
32
30
|
$margin-bottom: rem(26px),
|
|
33
31
|
);
|
|
34
32
|
|
|
35
33
|
$h4: type-style(
|
|
36
|
-
$font-size: rem(
|
|
37
|
-
$font-weight:
|
|
34
|
+
$font-size: rem(16px),
|
|
35
|
+
$font-weight: 700,
|
|
38
36
|
$letter-spacing: normal,
|
|
39
|
-
$line-height: rem(
|
|
37
|
+
$line-height: rem(24px),
|
|
40
38
|
$text-transform: none,
|
|
41
39
|
$margin-top: 0,
|
|
42
40
|
$margin-bottom: rem(26px),
|
|
43
41
|
);
|
|
44
42
|
|
|
45
43
|
$h5: type-style(
|
|
46
|
-
$font-size: rem(
|
|
47
|
-
$font-weight:
|
|
44
|
+
$font-size: rem(14px),
|
|
45
|
+
$font-weight: 700,
|
|
48
46
|
$letter-spacing: normal,
|
|
49
|
-
$line-height: rem(
|
|
47
|
+
$line-height: rem(20px),
|
|
50
48
|
$text-transform: none,
|
|
51
49
|
$margin-top: 0,
|
|
52
50
|
$margin-bottom: rem(26px),
|
|
53
51
|
);
|
|
54
52
|
|
|
55
53
|
$h6: type-style(
|
|
56
|
-
$font-size: rem(
|
|
57
|
-
$font-weight:
|
|
54
|
+
$font-size: rem(14px),
|
|
55
|
+
$font-weight: 500,
|
|
58
56
|
$letter-spacing: normal,
|
|
59
|
-
$line-height: rem(
|
|
57
|
+
$line-height: rem(20px),
|
|
60
58
|
$text-transform: none,
|
|
61
59
|
$margin-top: 0,
|
|
62
60
|
$margin-bottom: rem(26px),
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
--igd-accent: var(--ig-primary-500);
|
|
18
18
|
--igd-illustration: var(--igd-accent);
|
|
19
|
-
--igd-on-accent: var(--ig-primary-
|
|
19
|
+
--igd-on-accent: var(--ig-primary-600-contrast);
|
|
20
20
|
--igd-border-radius: #{rem(4px)};
|
|
21
21
|
|
|
22
22
|
--igd-app-bg: light-dark(var(--ig-surface-50), #0A0B10);
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
// ASIDE MDX
|
|
73
73
|
--igd-aside-padding: #{rem(16px)};
|
|
74
|
-
--igd-aside-row-gap: #{rem(
|
|
74
|
+
--igd-aside-row-gap: #{rem(4px)};
|
|
75
75
|
--igd-aside-column-gap: #{rem(16px)};
|
|
76
76
|
--igd-aside-border-width: #{rem(2px)};
|
|
77
77
|
--igd-aside-border-radius: 0;
|
|
@@ -81,21 +81,21 @@
|
|
|
81
81
|
--igd-aside-info-title: light-dark(var(--ig-primary-700), var(--ig-primary-400));
|
|
82
82
|
--igd-aside-info-content: light-dark(var(--ig-primary-800), var(--ig-primary-200));
|
|
83
83
|
--igd-aside-info-icon: light-dark(var(--ig-primary-700), var(--ig-primary-400));
|
|
84
|
-
--igd-aside-info-bg:
|
|
84
|
+
--igd-aside-info-bg: light-dark(var(--ig-primary-50), var(--ig-primary-900));
|
|
85
85
|
--igd-aside-info-border: light-dark(var(--ig-primary-700), var(--ig-primary-400));
|
|
86
86
|
--igd-aside-info-code-background: light-dark(var(--ig-primary-100), var(--ig-primary-900));
|
|
87
87
|
|
|
88
88
|
--igd-aside-warning-title: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
|
|
89
89
|
--igd-aside-warning-content: light-dark(var(--ig-secondary-700), var(--ig-secondary-300));
|
|
90
90
|
--igd-aside-warning-icon: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
|
|
91
|
-
--igd-aside-warning-bg:
|
|
91
|
+
--igd-aside-warning-bg: light-dark(var(--ig-secondary-50), var(--ig-secondary-900));
|
|
92
92
|
--igd-aside-warning-border: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
|
|
93
93
|
--igd-aside-warning-code-background: light-dark(var(--ig-secondary-100), var(--ig-secondary-900));
|
|
94
94
|
|
|
95
|
-
--igd-aside-note-title: light-dark(var(--ig-gray-700), var(--ig-gray-
|
|
96
|
-
--igd-aside-note-content: light-dark(var(--ig-gray-800), var(--ig-gray-
|
|
95
|
+
--igd-aside-note-title: light-dark(var(--ig-gray-700), var(--ig-gray-500));
|
|
96
|
+
--igd-aside-note-content: light-dark(var(--ig-gray-800), var(--ig-gray-400));
|
|
97
97
|
--igd-aside-note-icon: light-dark(var(--ig-gray-700), var(--ig-gray-400));
|
|
98
|
-
--igd-aside-note-bg:
|
|
98
|
+
--igd-aside-note-bg: light-dark(var(--ig-gray-100), var(--ig-gray-50));
|
|
99
99
|
--igd-aside-note-border: light-dark(var(--ig-gray-700), var(--ig-gray-400));
|
|
100
100
|
--igd-aside-note-code-background: light-dark(var(--ig-sgray-100), var(--ig-secondary-900));
|
|
101
101
|
|
package/src/styles/theme.scss
CHANGED
|
@@ -33,7 +33,7 @@ body {
|
|
|
33
33
|
// The actual @font-face rules come from @fontsource-variable (imported in DocsLayout.astro).
|
|
34
34
|
:root {
|
|
35
35
|
--ig-theme: fluent;
|
|
36
|
-
--font-
|
|
36
|
+
--font-heading: 'aktiv-grotesk';
|
|
37
37
|
--font-mono: 'JetBrains Mono Variable'; // fallback should be 'Cascadia Code', 'Fira Code', monospace
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -42,7 +42,7 @@ body {
|
|
|
42
42
|
@include elevations($material-elevations);
|
|
43
43
|
|
|
44
44
|
@include typography(
|
|
45
|
-
$font-family: '"
|
|
45
|
+
$font-family: '"Inter Variable", "Segoe UI", system-ui, sans-serif',
|
|
46
46
|
$type-scale: $igd-type-scale
|
|
47
47
|
);
|
|
48
48
|
|
|
@@ -57,6 +57,21 @@ body {
|
|
|
57
57
|
font-family: var(--font-sans), 'Segoe UI', system-ui, sans-serif;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
h1,
|
|
61
|
+
.igd-h1,
|
|
62
|
+
h2,
|
|
63
|
+
.igd-h2,
|
|
64
|
+
h3,
|
|
65
|
+
.igd-h3,
|
|
66
|
+
h4,
|
|
67
|
+
.igd-h4,
|
|
68
|
+
h5,
|
|
69
|
+
.igd-h5,
|
|
70
|
+
h6,
|
|
71
|
+
.igd-h6 {
|
|
72
|
+
font-family: var(--font-heading), 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
|
|
73
|
+
}
|
|
74
|
+
|
|
60
75
|
.visually-hidden {
|
|
61
76
|
visibility: hidden;
|
|
62
77
|
opacity: 0;
|
|
@@ -87,6 +102,19 @@ body {
|
|
|
87
102
|
}
|
|
88
103
|
igc-dialog:not(:defined) { display: none; }
|
|
89
104
|
|
|
105
|
+
// Disable Astro view-transition animation for the sidebar and subheader so they
|
|
106
|
+
// switch instantly — only the main content and TOC cross-fade between pages.
|
|
107
|
+
::view-transition-old(docs-sidebar),
|
|
108
|
+
::view-transition-old(docs-subheader) {
|
|
109
|
+
animation: none;
|
|
110
|
+
opacity: 0;
|
|
111
|
+
}
|
|
112
|
+
::view-transition-new(docs-sidebar),
|
|
113
|
+
::view-transition-new(docs-subheader) {
|
|
114
|
+
animation: none;
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
90
118
|
igc-icon {
|
|
91
119
|
padding: 0;
|
|
92
120
|
}
|
package/src/virtual-modules.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ declare module 'virtual:docs-template/site-meta' {
|
|
|
27
27
|
}>;
|
|
28
28
|
/** Astro trailingSlash config value: 'always' | 'never' | 'ignore'. */
|
|
29
29
|
export const trailingSlash: 'always' | 'never' | 'ignore';
|
|
30
|
+
/** Optional package switcher entries. */
|
|
31
|
+
export const packages: Array<string | { label: string; value?: string; href?: string }> | undefined;
|
|
32
|
+
/** Currently selected package. */
|
|
33
|
+
export const selectedPackage: string | undefined;
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
declare module 'virtual:docs-template/nav-html' {
|