igniteui-astro-components 0.0.14 → 0.0.16
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 +2 -1
- package/src/components/CopyCode/CopyCode.astro +73 -0
- package/src/components/DocsSidebar/DocsSidebar.scss +19 -18
- package/src/components/DocsSidebar/SidebarFilterInput.scss +2 -3
- package/src/components/DocsSidebar/SidebarLabel.astro +1 -1
- package/src/components/DocsSidebar/sidebar-filter.ts +54 -13
- package/src/components/DocsSubHeader/DocsSubHeader.astro +35 -2
- package/src/components/DocsSubHeader/DocsSubHeader.scss +3 -1
- package/src/components/DocsToc/DocsToc.scss +1 -1
- package/src/components/DocsTree/docs-tree.scss +138 -32
- package/src/components/Search/Search.scss +8 -0
- package/src/components/SearchAdvanced/SearchAdvanced.astro +48 -1
- package/src/components/SearchAdvanced/SearchAdvanced.scss +44 -2
- package/src/components/mdx/ApiLink/ApiLink.astro +1 -0
- package/src/components/mdx/ApiLink/ApiLink.scss +13 -0
- package/src/components/mdx/Sample/Sample.scss +4 -3
- package/src/layouts/DocsLayout/DocsLayout.astro +5 -2
- package/src/styles/global/_code-blocks.scss +41 -42
- package/src/styles/global/_markdown.scss +83 -34
- 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
|
@@ -114,13 +114,14 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
|
|
|
114
114
|
<igc-dialog aria-label={placeholder} class="igd-search-dialog" hide-default-action close-on-outside-click>
|
|
115
115
|
<div class="igd-search-shell">
|
|
116
116
|
<header class="igd-search-header">
|
|
117
|
-
<igc-select placement="bottom-start" distance="17" slot="prefix" class="igd-search-scope" outlined aria-label="Search scope" value="current">
|
|
117
|
+
<igc-select placement="bottom-start" distance="17" id="search-scope-select" slot="prefix" class="igd-search-scope" outlined aria-label="Search scope" value="current">
|
|
118
118
|
{platformIcon && <igc-icon id="search-scope-trigger-icon" name={platformIcon} collection="docs" slot="prefix" aria-hidden="true"></igc-icon>}
|
|
119
119
|
<igc-select-item value="current">
|
|
120
120
|
<span data-scope-label>Current package</span>
|
|
121
121
|
</igc-select-item>
|
|
122
122
|
<igc-select-item value="all">All packages</igc-select-item>
|
|
123
123
|
</igc-select>
|
|
124
|
+
<igc-tooltip anchor="search-scope-select" class="igd-search-scope-tooltip" placement="bottom" with-arrow></igc-tooltip>
|
|
124
125
|
|
|
125
126
|
<igc-divider vertical></igc-divider>
|
|
126
127
|
|
|
@@ -170,6 +171,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
|
|
|
170
171
|
IgcListComponent,
|
|
171
172
|
IgcListItemComponent,
|
|
172
173
|
IgcDividerComponent,
|
|
174
|
+
IgcTooltipComponent,
|
|
173
175
|
} from 'igniteui-webcomponents';
|
|
174
176
|
import '../../scripts/icon-registry';
|
|
175
177
|
|
|
@@ -185,6 +187,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
|
|
|
185
187
|
IgcListComponent,
|
|
186
188
|
IgcListItemComponent,
|
|
187
189
|
IgcDividerComponent,
|
|
190
|
+
IgcTooltipComponent,
|
|
188
191
|
);
|
|
189
192
|
|
|
190
193
|
type IndexedPage = {
|
|
@@ -246,6 +249,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
|
|
|
246
249
|
private input!: IgcInputComponent;
|
|
247
250
|
private clearBtn!: IgcIconButtonComponent;
|
|
248
251
|
private scopeSelect: IgcSelectComponent | null = null;
|
|
252
|
+
private scopeTooltip: HTMLElement | null = null;
|
|
249
253
|
private scopeTriggerIcon: HTMLElement | null = null;
|
|
250
254
|
private platformIconName: string = '';
|
|
251
255
|
private tabsEl!: IgcTabsComponent;
|
|
@@ -296,6 +300,7 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
|
|
|
296
300
|
this.input = this.querySelector<IgcInputComponent>('igc-input.igd-search-input')!;
|
|
297
301
|
this.clearBtn = this.querySelector<IgcIconButtonComponent>('.igd-search-clear')!;
|
|
298
302
|
this.scopeSelect = this.querySelector<IgcSelectComponent>('igc-select.igd-search-scope');
|
|
303
|
+
this.scopeTooltip = this.querySelector<HTMLElement>('.igd-search-scope-tooltip');
|
|
299
304
|
this.scopeTriggerIcon = this.querySelector('#search-scope-trigger-icon');
|
|
300
305
|
this.platformIconName = this.dataset.platformIcon || '';
|
|
301
306
|
this.tabsEl = this.querySelector<IgcTabsComponent>('igc-tabs.igd-search-tabs')!;
|
|
@@ -391,6 +396,30 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
|
|
|
391
396
|
this.scopeSelect.addEventListener('igcChange', () => {
|
|
392
397
|
this.scope = this.scopeSelect!.value === 'all' ? 'all' : 'current';
|
|
393
398
|
if (this.currentQuery) this.runSearch();
|
|
399
|
+
this.syncScopeTooltip();
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
// igcInput re-renders with full text after the dropdown closes; re-apply truncation.
|
|
403
|
+
this.scopeSelect.addEventListener('igcClosed', () =>
|
|
404
|
+
requestAnimationFrame(() => this.applyScopeTruncation())
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Apply truncation once the dialog is fully open and the select has real dimensions.
|
|
409
|
+
this.dialog.addEventListener('igcOpened', () =>
|
|
410
|
+
requestAnimationFrame(() => requestAnimationFrame(() => this.applyScopeTruncation()))
|
|
411
|
+
);
|
|
412
|
+
|
|
413
|
+
// Only show the scope tooltip when the label is visually truncated
|
|
414
|
+
if (this.scopeTooltip && this.scopeSelect) {
|
|
415
|
+
this.scopeTooltip.addEventListener('igcOpening', (e: Event) => {
|
|
416
|
+
const igcInput = (this.scopeSelect as any).shadowRoot?.querySelector('igc-input');
|
|
417
|
+
const nativeInput = igcInput?.shadowRoot?.querySelector('input');
|
|
418
|
+
const truncated = nativeInput?.value?.endsWith('\u2026');
|
|
419
|
+
const overflows = nativeInput && nativeInput.scrollWidth > nativeInput.clientWidth;
|
|
420
|
+
if (!truncated && !overflows) {
|
|
421
|
+
e.preventDefault();
|
|
422
|
+
}
|
|
394
423
|
});
|
|
395
424
|
}
|
|
396
425
|
}
|
|
@@ -422,6 +451,24 @@ const resolvedIndexUrl = indexUrl ?? `${basePath}api-search-index/manifest.json`
|
|
|
422
451
|
this.scopeSelect.value = 'all';
|
|
423
452
|
this.scope = 'all';
|
|
424
453
|
}
|
|
454
|
+
this.syncScopeTooltip();
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
private syncScopeTooltip() {
|
|
458
|
+
if (!this.scopeTooltip || !this.scopeSelect) return;
|
|
459
|
+
const val = this.scopeSelect.value;
|
|
460
|
+
const item = this.scopeSelect.querySelector<HTMLElement>(`igc-select-item[value="${val}"]`);
|
|
461
|
+
this.scopeTooltip.textContent = item?.textContent?.trim() ?? val ?? '';
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
private applyScopeTruncation() {
|
|
465
|
+
if (!this.scopeSelect) return;
|
|
466
|
+
const igcInput = (this.scopeSelect as any).shadowRoot?.querySelector('igc-input');
|
|
467
|
+
const nativeInput = igcInput?.shadowRoot?.querySelector('input') as HTMLInputElement | null;
|
|
468
|
+
if (!nativeInput || !nativeInput.value) return;
|
|
469
|
+
nativeInput.style.overflow = 'hidden';
|
|
470
|
+
nativeInput.style.textOverflow = 'ellipsis';
|
|
471
|
+
nativeInput.style.whiteSpace = 'nowrap';
|
|
425
472
|
}
|
|
426
473
|
|
|
427
474
|
private closeModal() {
|
|
@@ -6,9 +6,21 @@
|
|
|
6
6
|
display: contents;
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
// Advanced header has a scope selector before the input, needs start padding
|
|
10
9
|
.igd-search-header {
|
|
11
|
-
|
|
10
|
+
igc-input::part(container) {
|
|
11
|
+
&:focus-within {
|
|
12
|
+
box-shadow:
|
|
13
|
+
0 0 0 1px var(--igd-accent),
|
|
14
|
+
inset 0 1px 0 var(--igd-accent),
|
|
15
|
+
inset 0 -1px 0 var(--igd-accent),
|
|
16
|
+
inset -1px 0 0 var(--igd-accent);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#search-scope-trigger-icon {
|
|
23
|
+
margin-inline-start: rem(16px);
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
26
|
|
|
@@ -100,5 +112,35 @@
|
|
|
100
112
|
igc-divider {
|
|
101
113
|
--color: light-dark(var(--ig-gray-400), var(--ig-gray-300));
|
|
102
114
|
}
|
|
115
|
+
|
|
116
|
+
.igd-search-scope {
|
|
117
|
+
max-width: rem(250px);
|
|
118
|
+
|
|
119
|
+
&::part(input) {
|
|
120
|
+
min-width: 0;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&::part(native-input) {
|
|
125
|
+
min-width: 0;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
text-overflow: ellipsis;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.igd-search-scope-tooltip {
|
|
133
|
+
--ig-tooltip-background: #D2DBE8;
|
|
134
|
+
--ig-tooltip-text-color: #112031;
|
|
135
|
+
--ig-tooltip-border-radius: #{rem(4px)};
|
|
136
|
+
|
|
137
|
+
&::part(base) {
|
|
138
|
+
font-family: var(--igd-font-sans);
|
|
139
|
+
font-size: #{rem(12px)};
|
|
140
|
+
font-weight: 500;
|
|
141
|
+
line-height: #{rem(18px)};
|
|
142
|
+
letter-spacing: 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
103
145
|
}
|
|
104
146
|
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
* → <a href="…/enums/igniteui-react.igrcalendarselection.html">…</a>
|
|
40
40
|
*/
|
|
41
41
|
import type { PlatformContext } from '../../../lib/types.ts';
|
|
42
|
+
import './ApiLink.scss';
|
|
42
43
|
|
|
43
44
|
type ApiKind = 'class' | 'interface' | 'enum' | 'type' | 'variable' | 'function' | 'sass';
|
|
44
45
|
|
|
@@ -80,13 +80,14 @@ igc-tab {
|
|
|
80
80
|
|
|
81
81
|
// TODO Log issue in the component this is not suppose to be affected by the ig-typography
|
|
82
82
|
igc-tab::part(content) {
|
|
83
|
-
@include type-style('
|
|
83
|
+
@include type-style('detail-1', false) {
|
|
84
84
|
margin: 0;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
igc-tab::part(tab-header) {
|
|
89
|
-
min-height: rem(
|
|
89
|
+
min-height: rem(30px);
|
|
90
|
+
padding: rem(4px) rem(16px)
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.igd-code-view {
|
|
@@ -145,7 +146,7 @@ igc-tab::part(tab-header) {
|
|
|
145
146
|
align-items: center;
|
|
146
147
|
justify-content: flex-end;
|
|
147
148
|
position: relative;
|
|
148
|
-
padding: rem(16px)
|
|
149
|
+
padding: rem(16px);
|
|
149
150
|
gap: rem(16px);
|
|
150
151
|
}
|
|
151
152
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { ClientRouter } from 'astro:transitions';
|
|
3
|
-
import '@fontsource-variable/
|
|
4
|
-
import '@fontsource-variable/
|
|
3
|
+
import '@fontsource-variable/inter/wght.css';
|
|
4
|
+
import '@fontsource-variable/inter/wght-italic.css';
|
|
5
5
|
import '@fontsource-variable/jetbrains-mono/wght.css';
|
|
6
6
|
import '@fontsource-variable/jetbrains-mono/wght-italic.css';
|
|
7
7
|
import GlobalNavBar from '../../components/GlobalNavBar/GlobalNavBar.astro';
|
|
@@ -10,6 +10,7 @@ import DocsSubHeader from '../../components/DocsSubHeader/DocsSubHeader.astro';
|
|
|
10
10
|
import DocsBreadcrumb from '../../components/DocsBreadcrumb/DocsBreadcrumb.astro';
|
|
11
11
|
import LicenseIndicator from '../../components/LicenseIndicator/LicenseIndicator.astro';
|
|
12
12
|
import MobileSidebarToggle from '../../components/MobileSidebarToggle/MobileSidebarToggle.astro';
|
|
13
|
+
import CopyCode from '../../components/CopyCode/CopyCode.astro';
|
|
13
14
|
import { widgetScriptSrc, platform as virtualPlatform } from 'virtual:docs-template/nav-html';
|
|
14
15
|
import { title as siteTitle, headEntries, navLang } from 'virtual:docs-template/site-meta';
|
|
15
16
|
import '../../styles/theme.scss';
|
|
@@ -270,6 +271,8 @@ type HeadEntry = { tag: string; attrs?: Record<string, string | boolean | undefi
|
|
|
270
271
|
</div>
|
|
271
272
|
</div>
|
|
272
273
|
|
|
274
|
+
<CopyCode />
|
|
275
|
+
|
|
273
276
|
<!-- Footer is inside the grid so the sidebar's sticky containing block extends through it.
|
|
274
277
|
The JS initSidebarHeights() clamps sidebar max-height to prevent visual overlap. -->
|
|
275
278
|
<GlobalFooter lang={navLang}/>
|
|
@@ -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,52 +26,51 @@ pre.shiki code {
|
|
|
26
26
|
word-break: break-word;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
/* ──
|
|
30
|
-
Shiki
|
|
31
|
-
|
|
32
|
-
:root:not([data-theme='dark']) pre.shiki code span {
|
|
33
|
-
background-color: transparent !important;
|
|
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;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* Copy button */
|
|
29
|
+
/* ── Always use the dark theme ──────────────────────────────
|
|
30
|
+
Single dark theme — Shiki outputs colors directly, no CSS
|
|
31
|
+
variable switching required. */
|
|
51
32
|
pre.shiki {
|
|
52
|
-
|
|
33
|
+
background-color: var(--shiki-color-background) !important;
|
|
53
34
|
}
|
|
54
35
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
top: 0.5rem;
|
|
58
|
-
right: 0.5rem;
|
|
59
|
-
opacity: 0;
|
|
60
|
-
transition: opacity 0.15s ease;
|
|
61
|
-
|
|
62
|
-
--ig-icon-button-foreground: var(--ig-gray-600);
|
|
63
|
-
--ig-icon-button-foreground-hover: var(--igd-accent);
|
|
64
|
-
--ig-icon-button-background: transparent;
|
|
65
|
-
--ig-icon-button-background-hover: transparent;
|
|
66
|
-
--ig-icon-button-background-focus: transparent;
|
|
67
|
-
--ig-icon-button-border-color: transparent;
|
|
68
|
-
--ig-icon-button-border-color-hover: transparent;
|
|
36
|
+
.copy-code-wrapper {
|
|
37
|
+
position: relative;
|
|
69
38
|
}
|
|
70
39
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
40
|
+
.copy-code-wrapper > .copy-btn {
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset-block-start: rem(8px);
|
|
43
|
+
inset-inline-end: rem(8px);
|
|
44
|
+
opacity: 0;
|
|
45
|
+
z-index: 1;
|
|
46
|
+
|
|
47
|
+
--foreground: var(--ig-primary-600-contrast);
|
|
48
|
+
--hover-foreground: var(--ig-primary-600-contrast);
|
|
49
|
+
--focus-foreground: var(--ig-primary-600-contrast);
|
|
50
|
+
--active-foreground: var(--ig-primary-600-contrast);
|
|
51
|
+
--background: var(--ig-primary-500);
|
|
52
|
+
--hover-background: var(--ig-primary-500);
|
|
53
|
+
--focus-background: var(--ig-primary-500);
|
|
54
|
+
--active-background: var(--ig-primary-500);
|
|
55
|
+
--border-color: transparent;
|
|
56
|
+
--border-color-hover: transparent;
|
|
57
|
+
--border-color-focus: transparent;
|
|
58
|
+
|
|
59
|
+
&:has([name="check"]) {
|
|
60
|
+
--foreground: var(--ig-success-300-contrast);
|
|
61
|
+
--hover-foreground: var(--ig-success-300-contrast);
|
|
62
|
+
--focus-foreground: var(--ig-success-300-contrast);
|
|
63
|
+
--active-foreground: var(--ig-success-300-contrast);
|
|
64
|
+
|
|
65
|
+
--background: var(--ig-success-300);
|
|
66
|
+
--hover-background: var(--ig-success-300);
|
|
67
|
+
--focus-background: var(--ig-success-300);
|
|
68
|
+
--active-background: var(--ig-success-300);
|
|
69
|
+
}
|
|
75
70
|
}
|
|
76
71
|
|
|
72
|
+
.copy-code-wrapper:hover > .copy-btn,
|
|
73
|
+
.copy-code-wrapper:focus-within > .copy-btn {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
77
76
|
|
|
@@ -5,19 +5,21 @@
|
|
|
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
|
+
|
|
9
|
+
igc-divider:not([variant="vertical"]) {
|
|
10
|
+
margin-block: rem(24px);
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
.license-indicator-badge {
|
|
9
14
|
margin-block-end: rem(26px);
|
|
10
|
-
|
|
11
|
-
// TODO, This has to be fixed inside the component
|
|
12
|
-
span {
|
|
13
|
-
top: rem(1px);
|
|
14
|
-
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
p,
|
|
18
18
|
.igd-p {
|
|
19
19
|
@include type-style('body-1');
|
|
20
20
|
|
|
21
|
+
//text-wrap: balance;
|
|
22
|
+
|
|
21
23
|
code {
|
|
22
24
|
white-space: nowrap;
|
|
23
25
|
/* Optional: allows the user to scroll horizontally if the code is too long */
|
|
@@ -69,26 +71,23 @@
|
|
|
69
71
|
padding: var(--igd-page-padding);
|
|
70
72
|
min-width: 0;
|
|
71
73
|
|
|
72
|
-
pre {
|
|
74
|
+
pre:not(.astro-code) {
|
|
73
75
|
@include type-style('code', false) {
|
|
74
|
-
margin: 0;
|
|
76
|
+
margin-block: 0;
|
|
75
77
|
};
|
|
76
78
|
|
|
77
|
-
|
|
78
|
-
border-radius: rem(4px);
|
|
79
|
-
background-color: light-dark(var(--ig-gray-50), var(--ig-gray-50)) !important;
|
|
80
|
-
color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
|
|
81
|
-
padding: rem(32px);
|
|
79
|
+
margin-block-end: rem(26px);
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
pre,
|
|
85
83
|
code {
|
|
84
|
+
font-family: var(--font-mono) !important;
|
|
86
85
|
margin-block-end: rem(26px);
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
code {
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
pre.astro-code {
|
|
89
|
+
padding: rem(24px);
|
|
90
|
+
border-radius: rem(8px);
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
kbd {
|
|
@@ -106,14 +105,13 @@
|
|
|
106
105
|
code:not(pre code) {
|
|
107
106
|
@include type-style('code', false) {
|
|
108
107
|
margin: 0;
|
|
108
|
+
line-height: normal;
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
background: light-dark(var(--ig-primary-50), #112031);
|
|
112
|
-
color: light-dark(var(--ig-gray-600), var(--ig-gray-400));
|
|
113
|
-
border: rem(1px) solid light-dark(var(--ig-gray-300), #1A314A);
|
|
114
|
-
|
|
115
|
-
padding: 0 rem(4px);
|
|
116
111
|
border-radius: rem(4px);
|
|
112
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
|
|
113
|
+
background: light-dark(var(--ig-gray-100), #112031);
|
|
114
|
+
border: rem(1px) solid light-dark(var(--ig-gray-200), #1A314A);
|
|
117
115
|
}
|
|
118
116
|
|
|
119
117
|
ul,
|
|
@@ -127,6 +125,10 @@
|
|
|
127
125
|
padding-block: 0;
|
|
128
126
|
color: inherit;
|
|
129
127
|
|
|
128
|
+
::marker {
|
|
129
|
+
color: var(--ig-primary-500);
|
|
130
|
+
}
|
|
131
|
+
|
|
130
132
|
li {
|
|
131
133
|
> strong {
|
|
132
134
|
@include type-style('subtitle-2') {
|
|
@@ -138,14 +140,14 @@
|
|
|
138
140
|
position: relative;
|
|
139
141
|
color: inherit;
|
|
140
142
|
padding-inline: 0 rem(8px);
|
|
141
|
-
padding-block: rem(
|
|
143
|
+
padding-block: rem(4px);
|
|
142
144
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
::marker {
|
|
146
|
+
color: var(--ig-primary-500);
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
> .shiki {
|
|
150
|
+
margin-top: rem(8px);
|
|
149
151
|
}
|
|
150
152
|
|
|
151
153
|
&:has(> ul) {
|
|
@@ -162,6 +164,12 @@
|
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
|
|
167
|
+
iframe {
|
|
168
|
+
border: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
|
|
169
|
+
margin-block-end: rem(26px);
|
|
170
|
+
border-radius: rem(8px);
|
|
171
|
+
}
|
|
172
|
+
|
|
165
173
|
// <ul> that is not inside <li>
|
|
166
174
|
// <ol> that is not inside <li>
|
|
167
175
|
ul:not(li ul),
|
|
@@ -198,27 +206,63 @@
|
|
|
198
206
|
}
|
|
199
207
|
|
|
200
208
|
a {
|
|
201
|
-
color: inherit;
|
|
202
209
|
text-decoration: underline;
|
|
203
210
|
}
|
|
204
211
|
|
|
205
212
|
margin-block-end: rem(26px);
|
|
206
213
|
}
|
|
207
214
|
|
|
208
|
-
|
|
215
|
+
a {
|
|
209
216
|
font-size: inherit;
|
|
210
|
-
color:
|
|
217
|
+
color: light-dark(var(--ig-primary-500), var(--ig-primary-200));
|
|
211
218
|
text-decoration: underline;
|
|
212
219
|
|
|
213
220
|
&:hover,
|
|
214
221
|
&:focus {
|
|
215
222
|
color: light-dark(var(--ig-primary-600), var(--ig-primary-100));
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&:focus,
|
|
226
|
+
&:focus-visible {
|
|
227
|
+
outline: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
code {
|
|
231
|
+
color: inherit ;
|
|
219
232
|
}
|
|
220
233
|
}
|
|
221
234
|
|
|
235
|
+
a:has(code) {
|
|
236
|
+
&:hover,
|
|
237
|
+
&:focus {
|
|
238
|
+
code {
|
|
239
|
+
color: var(--igd-accent);
|
|
240
|
+
border-color: var(--ig-primary-100);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
label {
|
|
246
|
+
@include type-style('body-2') {
|
|
247
|
+
margin-block: 0;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
a[target="_blank"]::after {
|
|
252
|
+
content: "";
|
|
253
|
+
display: inline-block;
|
|
254
|
+
width: 1em;
|
|
255
|
+
height: 1em;
|
|
256
|
+
margin-inline-start: 0.2em;
|
|
257
|
+
vertical-align: middle;
|
|
258
|
+
background-color: currentColor;
|
|
259
|
+
-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");
|
|
260
|
+
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");
|
|
261
|
+
mask-size: contain;
|
|
262
|
+
mask-repeat: no-repeat;
|
|
263
|
+
mask-position: center;
|
|
264
|
+
}
|
|
265
|
+
|
|
222
266
|
.igd-defined-in {
|
|
223
267
|
> span {
|
|
224
268
|
white-space: nowrap;
|
|
@@ -308,12 +352,10 @@
|
|
|
308
352
|
img {
|
|
309
353
|
display: block;
|
|
310
354
|
max-width: 100%;
|
|
311
|
-
width: 100%;
|
|
312
355
|
height: auto;
|
|
313
356
|
margin-block-end: rem(26px);
|
|
314
357
|
border-radius: var(--igd-border-radius);
|
|
315
358
|
content-visibility: auto;
|
|
316
|
-
object-fit: cover;
|
|
317
359
|
}
|
|
318
360
|
|
|
319
361
|
// Image wrapped in a link — no underline, contain the block margin
|
|
@@ -351,7 +393,7 @@
|
|
|
351
393
|
blockquote {
|
|
352
394
|
padding: rem(16px);
|
|
353
395
|
border-inline-start-width: rem(1px);
|
|
354
|
-
border-inline-start-color: var(--ig-gray-
|
|
396
|
+
border-inline-start-color: var(--ig-gray-600);
|
|
355
397
|
margin-block-end: rem(26px);
|
|
356
398
|
|
|
357
399
|
p:only-child {
|
|
@@ -364,6 +406,13 @@
|
|
|
364
406
|
}
|
|
365
407
|
}
|
|
366
408
|
|
|
409
|
+
q {
|
|
410
|
+
@include type-style('detail-1', false) {
|
|
411
|
+
margin: 0;
|
|
412
|
+
font-style: italic;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
367
416
|
blockquote .small,
|
|
368
417
|
blockquote footer,
|
|
369
418
|
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),
|