igniteui-astro-components 0.0.2 → 0.0.4
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 +21 -0
- package/package.json +3 -1
- package/src/assets/icons/angular-logo.svg +38 -0
- package/src/assets/icons/arrow-down.svg +3 -0
- package/src/assets/icons/arrow.svg +3 -0
- package/src/assets/icons/blazor-logo.svg +10 -0
- package/src/assets/icons/bullet-poiont.svg +3 -0
- package/src/assets/icons/chatGPT,.svg +4 -0
- package/src/assets/icons/check-circle.svg +3 -0
- package/src/assets/icons/check.svg +3 -0
- package/src/assets/icons/cheked.svg +3 -0
- package/src/assets/icons/chevron.svg +3 -0
- package/src/assets/icons/classes.svg +3 -0
- package/src/assets/icons/claude.svg +3 -0
- package/src/assets/icons/clear.svg +3 -0
- package/src/assets/icons/close.svg +3 -0
- package/src/assets/icons/code.svg +3 -0
- package/src/assets/icons/collapse.svg +5 -0
- package/src/assets/icons/command.svg +3 -0
- package/src/assets/icons/copy-clipboard.svg +3 -0
- package/src/assets/icons/copy.svg +3 -0
- package/src/assets/icons/crown.svg +3 -0
- package/src/assets/icons/dot.svg +3 -0
- package/src/assets/icons/download.svg +3 -0
- package/src/assets/icons/dropdown-indicator-bold.svg +3 -0
- package/src/assets/icons/dropdown-indicator.svg +3 -0
- package/src/assets/icons/enter-fullscreen.svg +3 -0
- package/src/assets/icons/enumerations.svg +3 -0
- package/src/assets/icons/exit-fullscreen.svg +3 -0
- package/src/assets/icons/expand-all.svg +5 -0
- package/src/assets/icons/expand-icon.svg +3 -0
- package/src/assets/icons/eye.svg +3 -0
- package/src/assets/icons/filter-clear.svg +1 -0
- package/src/assets/icons/filter.svg +3 -0
- package/src/assets/icons/functions.svg +5 -0
- package/src/assets/icons/github-logo.svg +3 -0
- package/src/assets/icons/hamburger-menu.svg +3 -0
- package/src/assets/icons/info.svg +3 -0
- package/src/assets/icons/interfaces.svg +3 -0
- package/src/assets/icons/link-blank.svg +3 -0
- package/src/assets/icons/link.svg +3 -0
- package/src/assets/icons/moon.svg +3 -0
- package/src/assets/icons/note.svg +3 -0
- package/src/assets/icons/open-link-blank.svg +3 -0
- package/src/assets/icons/page.svg +3 -0
- package/src/assets/icons/palette,.svg +3 -0
- package/src/assets/icons/pen.svg +3 -0
- package/src/assets/icons/play-circle.svg +10 -0
- package/src/assets/icons/premium.svg +3 -0
- package/src/assets/icons/react.svg +4 -0
- package/src/assets/icons/refresh.svg +3 -0
- package/src/assets/icons/rocket.svg +10 -0
- package/src/assets/icons/search.svg +10 -0
- package/src/assets/icons/shine.svg +3 -0
- package/src/assets/icons/show-more.svg +3 -0
- package/src/assets/icons/source-code.svg +3 -0
- package/src/assets/icons/start.svg +3 -0
- package/src/assets/icons/sub-directory-indicator.svg +3 -0
- package/src/assets/icons/sun.svg +3 -0
- package/src/assets/icons/system-theme.svg +3 -0
- package/src/assets/icons/system.svg +3 -0
- package/src/assets/icons/type-alias.svg +3 -0
- package/src/assets/icons/variables.svg +3 -0
- package/src/assets/icons/warning.svg +3 -0
- package/src/assets/icons/web-component-logo.svg +23 -0
- package/src/assets/icons/wrap-text.svg +3 -0
- package/src/assets/ig-logo.svg +33 -0
- package/src/assets/illustrations/classes.svg +3 -0
- package/src/assets/illustrations/enumerations.svg +3 -0
- package/src/assets/illustrations/functions.svg +5 -0
- package/src/assets/illustrations/interfaces.svg +3 -0
- package/src/assets/illustrations/type-alias.svg +3 -0
- package/src/assets/illustrations/variables.svg +3 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +57 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +51 -0
- package/src/components/DocsBreadcrumb/README.md +66 -0
- package/src/components/DocsSidebar/DocsSidebar.astro +38 -61
- package/src/components/DocsSidebar/DocsSidebar.scss +18 -0
- package/src/components/DocsSidebar/SidebarFilterInput.astro +22 -57
- package/src/components/DocsSidebar/SidebarFilterInput.scss +69 -0
- package/src/components/DocsSidebar/SidebarLabel.astro +2 -7
- package/src/components/DocsSidebar/toTreeNodes.ts +17 -5
- package/src/components/DocsSubHeader/DocsSubHeader.astro +60 -248
- package/src/components/DocsSubHeader/DocsSubHeader.scss +69 -0
- package/src/components/DocsSubHeader/README.md +6 -37
- package/src/components/DocsToc/DocsToc.astro +38 -83
- package/src/components/DocsToc/DocsToc.scss +33 -0
- package/src/components/DocsTree/DocsTree.astro +16 -2
- package/src/components/DocsTree/DocsTreeItem.astro +16 -13
- package/src/components/DocsTree/docs-tree.scss +185 -0
- package/src/components/GlobalFooter/GlobalFooter.astro +1 -1
- package/src/components/GlobalFooter/GlobalFooter.module.scss +1 -0
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +217 -196
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +2 -47
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.scss +0 -0
- package/src/components/Search/Search.astro +14 -103
- package/src/components/Search/Search.scss +50 -0
- package/src/components/ThemingWidget/ThemingWidget.astro +1 -5
- package/src/components/ThemingWidget/ThemingWidget.scss +3 -0
- package/src/components/mdx/DocsAside/DocsAside.astro +15 -47
- package/src/components/mdx/DocsAside/DocsAside.scss +36 -0
- package/src/components/mdx/DocsAside/README.md +6 -6
- package/src/components/mdx/Sample/Sample.astro +1 -32
- package/src/components/mdx/Sample/Sample.scss +32 -0
- package/src/integration.ts +20 -8
- package/src/layouts/DocsLayout/DocsLayout.astro +88 -244
- package/src/layouts/DocsLayout/DocsLayout.scss +125 -0
- package/src/scripts/icon-registry.ts +57 -0
- package/src/styles/custom.scss +17 -251
- package/src/styles/global/_breakpoints.scss +48 -0
- package/src/styles/global/_code-blocks.scss +77 -0
- package/src/styles/global/_component-themes.scss +68 -0
- package/src/styles/global/_index.scss +9 -0
- package/src/styles/global/_markdown.scss +120 -0
- package/src/styles/global/_members.scss +85 -0
- package/src/styles/global/_palette.scss +131 -0
- package/src/styles/global/_type-scale.scss +182 -0
- package/src/styles/global/_variables.scss +71 -0
- package/src/styles/theme.scss +58 -0
- package/src/virtual-modules.d.ts +2 -0
- package/src/components/DocsTree/docs-tree.css +0 -226
- package/src/styles/ig-theme.scss +0 -43
package/src/styles/custom.scss
CHANGED
|
@@ -1,254 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
// Establish the CSS cascade layer order.
|
|
2
|
+
//
|
|
3
|
+
// Bootstrap (v3 / v4) is injected into the page by platform.ts as an @import
|
|
4
|
+
// wrapped in layer(bootstrap). Without this declaration the browser would
|
|
5
|
+
// still create the layer on first encounter, but the ORDER would be undefined
|
|
6
|
+
// relative to our own unlayered rules — meaning Bootstrap could win.
|
|
7
|
+
//
|
|
8
|
+
// By declaring the layer order here (before any Bootstrap stylesheet loads)
|
|
9
|
+
// we guarantee that ANY unlayered rule — all of our ig-theme.scss /
|
|
10
|
+
// DocsLayout.scss styles — wins over everything inside the bootstrap layer,
|
|
11
|
+
// regardless of selector specificity.
|
|
12
|
+
//
|
|
13
|
+
// Rule: lower layers lose to higher layers, and unlayered rules beat all layers.
|
|
8
14
|
@layer bootstrap;
|
|
9
15
|
|
|
10
|
-
:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* Height of the GlobalNavBar (shadow-DOM fixed bar at top: 0).
|
|
15
|
-
Design-derived value; JS ResizeObserver overrides it with the measured px. */
|
|
16
|
-
--docs-global-nav-height: #{rem(75.2px)};
|
|
17
|
-
/* Height of the DocsSubHeader utility bar below the GlobalNavBar. */
|
|
18
|
-
--docs-subheader-height: #{rem(40px)};
|
|
19
|
-
/* Combined total — drives sidebar inset-block-start and main-frame padding-top. */
|
|
20
|
-
--sl-nav-height: calc(var(--docs-global-nav-height) + var(--docs-subheader-height));
|
|
21
|
-
/* Height of the MobileSidebarToggle bar (hidden at ≥ 50rem). Used only
|
|
22
|
-
in the two consumers that sit below it on mobile. */
|
|
23
|
-
--docs-mobile-toggle-height: #{rem(36px)};
|
|
24
|
-
font-size: 16px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* ── Bootstrap kbd reset ── */
|
|
28
|
-
|
|
29
|
-
kbd {
|
|
30
|
-
background-color: var(--sl-color-gray-6);
|
|
31
|
-
color: var(--sl-color-text);
|
|
32
|
-
box-shadow: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.sidebar-content .group-label {
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: space-between;
|
|
39
|
-
flex-grow: 1;
|
|
40
|
-
gap: rem(8px);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Star shape shared between the premium-only badge and the combined case. */
|
|
44
|
-
.sidebar-content .sl-badge.tip::before,
|
|
45
|
-
.sidebar-content a[data-premium]:has(.sl-badge:not(.tip))::after {
|
|
46
|
-
content: '';
|
|
47
|
-
display: block;
|
|
48
|
-
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0ibTYgMTYgNC0zLjA1TDE0IDE2bC0xLjUtNC45NSA0LTIuODVoLTQuOUwxMCAzIDguNCA4LjJIMy41bDQgMi44NUw2IDE2Wm00IDRhOS43MzggOS43MzggMCAwIDEtMy45LS43ODggMTAuMDk5IDEwLjA5OSAwIDAgMS0zLjE3NS0yLjEzN2MtLjktLjktMS42MTItMS45NTgtMi4xMzctMy4xNzVBOS43MzggOS43MzggMCAwIDEgMCAxMGMwLTEuMzgzLjI2My0yLjY4My43ODctMy45YTEwLjA5OSAxMC4wOTkgMCAwIDEgMi4xMzgtMy4xNzVjLjkuOSAxLjYxMyAxLjk1OCAyLjEzNyAzLjE3NUE5LjczOCA5LjczOCAwIDAgMSAyMCAxMGE5LjczOCA5LjczOCAwIDAgMS0uNzg4IDMuOSAxMC4wOTggMTAuMDk4IDAgMCAxLTIuMTM3IDMuMTc1Yy0uOS45LTEuOTU4IDEuNjEzLTMuMTc1IDIuMTM3QTkuNzM4IDkuNzM4IDAgMCAxIDEwIDIwWiIvPjwvc3ZnPg==");
|
|
49
|
-
mask-size: contain;
|
|
50
|
-
mask-repeat: no-repeat;
|
|
51
|
-
background-color: #f63;
|
|
52
|
-
width: rem(16px);
|
|
53
|
-
height: rem(16px);
|
|
54
|
-
aspect-ratio: 1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.sidebar-content .sl-badge.tip {
|
|
58
|
-
border: none;
|
|
59
|
-
background: transparent;
|
|
60
|
-
padding: 0;
|
|
61
|
-
font-size: 0;
|
|
62
|
-
line-height: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* When a status badge is present alongside premium, the badge slot is taken,
|
|
66
|
-
so the star is appended via ::after on the [data-premium] anchor instead. */
|
|
67
|
-
.sidebar-content a[data-premium]:has(.sl-badge:not(.tip))::after {
|
|
68
|
-
display: inline-block;
|
|
69
|
-
flex-shrink: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* ── Code-view widget ─────────────────────────────────────────────────────────
|
|
73
|
-
Ported from igniteui-docfx-template/src/styles/shared/components/_code-view.scss
|
|
74
|
-
─────────────────────────────────────────────────────────────────────────── */
|
|
75
|
-
|
|
76
|
-
.ig-code-view,
|
|
77
|
-
.code-view {
|
|
78
|
-
display: block;
|
|
79
|
-
outline: 1px solid var(--sl-color-gray-5);
|
|
80
|
-
line-height: rem(24px);
|
|
81
|
-
margin: rem(24px) 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.code-view ::-webkit-scrollbar { width: rem(4px); height: rem(4px); }
|
|
85
|
-
.code-view ::-webkit-scrollbar-button { width: 0; height: 0; }
|
|
86
|
-
.code-view ::-webkit-scrollbar-thumb {
|
|
87
|
-
background: var(--sl-color-gray-4);
|
|
88
|
-
border-radius: rem(50px);
|
|
89
|
-
}
|
|
90
|
-
.code-view ::-webkit-scrollbar-thumb:hover { background: var(--sl-color-gray-3); }
|
|
91
|
-
.code-view ::-webkit-scrollbar-track {
|
|
92
|
-
background: var(--sl-color-gray-6);
|
|
93
|
-
border-radius: rem(44px);
|
|
94
|
-
}
|
|
95
|
-
.code-view ::-webkit-scrollbar-corner { background: transparent; }
|
|
96
|
-
|
|
97
|
-
.code-view .code-views-container { background-color: transparent; }
|
|
98
|
-
|
|
99
|
-
.code-view .sample-container { padding: 0.1rem; }
|
|
100
|
-
|
|
101
|
-
/* Code-tab panes (2nd child onward = source-file tabs) */
|
|
102
|
-
.code-view .code-view-tab-content:nth-child(n + 2) {
|
|
103
|
-
overflow: auto;
|
|
104
|
-
background: var(--sl-color-bg-sidebar);
|
|
105
|
-
min-height: rem(100px);
|
|
106
|
-
max-height: rem(600px);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/* Code blocks inside the widget */
|
|
110
|
-
.code-view pre.code-wrapper {
|
|
111
|
-
position: relative;
|
|
112
|
-
padding: 0;
|
|
113
|
-
margin: 0;
|
|
114
|
-
}
|
|
115
|
-
.code-view pre.code-wrapper:hover { box-shadow: none; }
|
|
116
|
-
.code-view pre.code-wrapper code { border-radius: 0; padding: 0.5em; }
|
|
117
|
-
|
|
118
|
-
.code-view .cv-hljs-code-copy {
|
|
119
|
-
position: absolute;
|
|
120
|
-
display: flex;
|
|
121
|
-
align-items: center;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
padding: rem(8px);
|
|
124
|
-
top: 0;
|
|
125
|
-
right: 0;
|
|
126
|
-
width: rem(100px);
|
|
127
|
-
height: rem(40px);
|
|
128
|
-
background: var(--sl-color-bg-sidebar);
|
|
129
|
-
color: var(--sl-color-text-accent);
|
|
130
|
-
border: 1px solid var(--sl-color-gray-5);
|
|
131
|
-
font-size: rem(12px);
|
|
132
|
-
font-weight: bold;
|
|
133
|
-
cursor: pointer;
|
|
134
|
-
transition: color 0.25s ease-in-out;
|
|
135
|
-
}
|
|
136
|
-
.code-view .cv-hljs-code-copy.hidden { display: none; }
|
|
137
|
-
.code-view .cv-hljs-code-copy:hover { border-color: var(--sl-color-accent); color: var(--sl-color-accent); }
|
|
138
|
-
|
|
139
|
-
/* ── Navbar ──────────────────────────────────────────────────────────────── */
|
|
140
|
-
|
|
141
|
-
.code-view-navbar {
|
|
142
|
-
overflow-x: auto;
|
|
143
|
-
background-color: var(--sl-color-bg-nav);
|
|
144
|
-
display: flex;
|
|
145
|
-
align-items: stretch;
|
|
146
|
-
}
|
|
147
|
-
.code-view-navbar::-webkit-scrollbar { width: rem(2px); }
|
|
148
|
-
.code-view-navbar::-webkit-scrollbar-track { background: var(--sl-color-gray-6); }
|
|
149
|
-
.code-view-navbar::-webkit-scrollbar-thumb { background: var(--sl-color-gray-4); }
|
|
150
|
-
|
|
151
|
-
.code-view-tab,
|
|
152
|
-
.code-view-tab--active {
|
|
153
|
-
position: relative;
|
|
154
|
-
background-color: transparent;
|
|
155
|
-
border: none;
|
|
156
|
-
min-width: rem(88px);
|
|
157
|
-
height: rem(48px);
|
|
158
|
-
padding: 0.7rem;
|
|
159
|
-
text-align: center;
|
|
160
|
-
font-size: 0.8rem;
|
|
161
|
-
font-weight: 600;
|
|
162
|
-
cursor: pointer;
|
|
163
|
-
color: var(--sl-color-text);
|
|
164
|
-
white-space: nowrap;
|
|
165
|
-
}
|
|
166
|
-
.code-view-tab:hover { color: var(--sl-color-accent); }
|
|
167
|
-
|
|
168
|
-
.code-view-tab--active {
|
|
169
|
-
background-color: var(--sl-color-bg);
|
|
170
|
-
color: var(--sl-color-accent);
|
|
171
|
-
}
|
|
172
|
-
.code-view-tab--active::after {
|
|
173
|
-
content: '';
|
|
174
|
-
height: 2.5px;
|
|
175
|
-
background: var(--sl-color-accent);
|
|
176
|
-
position: absolute;
|
|
177
|
-
left: 0;
|
|
178
|
-
right: 0;
|
|
179
|
-
top: 0;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/* Fullscreen button (last child of navbar) */
|
|
183
|
-
.fs-button-container {
|
|
184
|
-
margin-left: auto;
|
|
185
|
-
display: flex;
|
|
186
|
-
align-items: center;
|
|
187
|
-
padding: 0 rem(12px);
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
font-size: 1.1rem;
|
|
190
|
-
color: var(--sl-color-text-accent);
|
|
191
|
-
flex-shrink: 0;
|
|
192
|
-
}
|
|
193
|
-
.fs-button-container::before {
|
|
194
|
-
/* Material Icons "open_in_full" via unicode — fallback to ⛶ */
|
|
195
|
-
font-family: 'Material Icons', sans-serif;
|
|
196
|
-
content: 'open_in_full';
|
|
197
|
-
}
|
|
198
|
-
.fs-button-container:hover { color: var(--sl-color-accent); }
|
|
199
|
-
|
|
200
|
-
/* ── Loading state ───────────────────────────────────────────────────────── */
|
|
201
|
-
|
|
202
|
-
.sample-container.loading::before {
|
|
203
|
-
content: '';
|
|
204
|
-
position: absolute;
|
|
205
|
-
top: 0; bottom: 0; left: 0; right: 0;
|
|
206
|
-
background-color: var(--sl-color-bg);
|
|
207
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23999' stroke-width='4' stroke-dasharray='31.4 31.4' transform='rotate(-90 25 25)'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
|
|
208
|
-
background-repeat: no-repeat;
|
|
209
|
-
background-position: center center;
|
|
210
|
-
z-index: 9999;
|
|
211
|
-
backface-visibility: hidden;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/* ── Live-editing footer ─────────────────────────────────────────────────── */
|
|
215
|
-
|
|
216
|
-
.editing-buttons-container {
|
|
217
|
-
padding: rem(8px);
|
|
218
|
-
border-top: 2px solid var(--sl-color-gray-5);
|
|
219
|
-
font-size: 0.8rem;
|
|
220
|
-
display: flex;
|
|
221
|
-
align-items: center;
|
|
222
|
-
}
|
|
223
|
-
.editing-buttons-container::before {
|
|
224
|
-
font-family: 'Material Icons', sans-serif;
|
|
225
|
-
content: 'open_in_new';
|
|
226
|
-
margin-right: rem(4px);
|
|
227
|
-
font-size: 1rem;
|
|
228
|
-
overflow: hidden;
|
|
229
|
-
}
|
|
230
|
-
.editing-label { margin-right: 0.4rem; }
|
|
231
|
-
|
|
232
|
-
.stackblitz-btn,
|
|
233
|
-
.codesandbox-btn {
|
|
234
|
-
display: inline-flex;
|
|
235
|
-
align-items: center;
|
|
236
|
-
padding: 0.2rem 0.4rem;
|
|
237
|
-
margin: 0 0 0 0.2rem;
|
|
238
|
-
min-width: rem(100px);
|
|
239
|
-
font-size: 0.7rem;
|
|
240
|
-
font-weight: 500;
|
|
241
|
-
cursor: pointer;
|
|
242
|
-
border: 1px solid var(--sl-color-gray-5);
|
|
243
|
-
background: var(--sl-color-bg);
|
|
244
|
-
color: var(--sl-color-text);
|
|
245
|
-
border-radius: rem(3px);
|
|
246
|
-
transition: border-color 0.15s;
|
|
247
|
-
}
|
|
248
|
-
.stackblitz-btn:hover,
|
|
249
|
-
.codesandbox-btn:hover { border-color: var(--sl-color-accent); color: var(--sl-color-accent); }
|
|
250
|
-
.codesandbox-btn { min-width: rem(120px); }
|
|
251
|
-
|
|
252
|
-
.sample-container {
|
|
253
|
-
position: relative;
|
|
16
|
+
// Restore browser default (16px). Bootstrap 3 sets html { font-size: 10px }
|
|
17
|
+
// inside @layer(bootstrap) which would break all rem-based sizing without this.
|
|
18
|
+
html {
|
|
19
|
+
font-size: 16px;
|
|
254
20
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use 'igniteui-theming/sass/typography/functions' as *;
|
|
2
|
+
|
|
3
|
+
// Breakpoints
|
|
4
|
+
|
|
5
|
+
// Single source of truth for all responsive breakpoints.
|
|
6
|
+
|
|
7
|
+
// Viewport ranges:
|
|
8
|
+
// mobile < 480px (≤ 29.999rem)
|
|
9
|
+
// mobile-horizontal 480–767px (30rem – 47.999rem)
|
|
10
|
+
// tablet 768–1023px (48rem – 63.999rem)
|
|
11
|
+
// desktop 1024–1439px (64rem – 89.999rem)
|
|
12
|
+
// large-desktop ≥ 1440px (≥ 90rem)
|
|
13
|
+
|
|
14
|
+
// Usage: @media (max-width: #{$bp-mobile-max}) { … }
|
|
15
|
+
// Never use var() inside @media — CSS custom properties don't work there.
|
|
16
|
+
|
|
17
|
+
/// Upper bounds (max-width)
|
|
18
|
+
/// Top of mobile range (< 480px)
|
|
19
|
+
$bp-mobile-max: #{rem(479px)};
|
|
20
|
+
|
|
21
|
+
/// Top of mobile-horizontal range (< 768px)
|
|
22
|
+
$bp-mobile-horizontal-max: #{rem(767px)};
|
|
23
|
+
|
|
24
|
+
/// Top of tablet range (< 1024px)
|
|
25
|
+
$bp-tablet-max: #{rem(1023px)};
|
|
26
|
+
|
|
27
|
+
/// Top of desktop range (< 1440px)
|
|
28
|
+
$bp-desktop-max: #{rem(1439px)};
|
|
29
|
+
|
|
30
|
+
/// Lower bounds (min-width)
|
|
31
|
+
/// Start of mobile-horizontal (≥ 480px)
|
|
32
|
+
$bp-mobile-horizontal-min: #{rem(480px)};
|
|
33
|
+
|
|
34
|
+
/// Start of tablet (≥ 768px)
|
|
35
|
+
$bp-tablet-min: #{rem(768px)};
|
|
36
|
+
|
|
37
|
+
/// Start of desktop (≥ 1024px)
|
|
38
|
+
$bp-desktop-min: #{rem(1024px)};
|
|
39
|
+
|
|
40
|
+
/// Start of large-desktop (≥ 1440px)
|
|
41
|
+
$bp-large-desktop-min: #{rem(1440px)};
|
|
42
|
+
|
|
43
|
+
/// Layout-specific
|
|
44
|
+
/// Below this the sidebar becomes a slide-in overlay (< 1300px)
|
|
45
|
+
$bp-sidebar-max: #{rem(1299px)};
|
|
46
|
+
|
|
47
|
+
/// At this and above the sidebar is always visible (≥ 1300px)
|
|
48
|
+
$bp-sidebar-min: #{rem(1300px)};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
|
|
3
|
+
/* ============================================================
|
|
4
|
+
Code Blocks (Shiki dual-theme)
|
|
5
|
+
Shiki emits CSS variables per span:
|
|
6
|
+
--shiki-light / --shiki-light-bg (default, inline style)
|
|
7
|
+
--shiki-dark / --shiki-dark-bg (need CSS to activate)
|
|
8
|
+
============================================================ */
|
|
9
|
+
|
|
10
|
+
.shiki {
|
|
11
|
+
border: 1px solid light-dark(var(--ig-gray-200), var(--ig-primary-900));
|
|
12
|
+
margin-bottom: rem(26px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
pre.shiki {
|
|
16
|
+
overflow-x: auto;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
word-wrap: break-word;
|
|
19
|
+
white-space: pre-wrap;
|
|
20
|
+
border-radius: var(--igd-border-radius);
|
|
21
|
+
padding: 1rem 1.25rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
pre.shiki code {
|
|
25
|
+
white-space: pre-wrap;
|
|
26
|
+
word-break: break-word;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ── Light mode (default) ───────────────────────────────────
|
|
30
|
+
Shiki's inline style already sets color:var(--shiki-light).
|
|
31
|
+
Only strip the per-span background so the pre bg shows. */
|
|
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 */
|
|
51
|
+
pre.shiki {
|
|
52
|
+
position: relative; /* ensure anchor for absolute button */
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
pre.shiki igc-icon-button.copy-btn {
|
|
56
|
+
position: absolute;
|
|
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;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
pre.shiki:hover igc-icon-button.copy-btn,
|
|
72
|
+
pre.shiki:focus-within igc-icon-button.copy-btn,
|
|
73
|
+
pre.shiki igc-icon-button.copy-btn:focus {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
|
|
3
|
+
/* Generated by Ignite UI Theming MCP Server */
|
|
4
|
+
/* Custom drop-down theme for igc-select (Web Components) */
|
|
5
|
+
igc-select {
|
|
6
|
+
// TODO as а user i want to be able to add border on the entier dropdown
|
|
7
|
+
// TODO the distance attr on the igc-select is highly unreliable caning it as a css variable will be far more flexible
|
|
8
|
+
|
|
9
|
+
// TODO --ig-drop-down-border-width not working
|
|
10
|
+
//--ig-drop-down-elevation: var(--ig-elevation-0);
|
|
11
|
+
|
|
12
|
+
--ig-drop-down-background-color: var(--igd-app-bg);
|
|
13
|
+
--ig-drop-down-item-text-color: var(--ig-gray-600);
|
|
14
|
+
--ig-drop-down-hover-item-background: transparent;
|
|
15
|
+
--ig-drop-down-hover-item-text-color: var(--ig-gray-900);
|
|
16
|
+
|
|
17
|
+
--ig-drop-down-focused-item-text-color: var(--ig-gray-600);
|
|
18
|
+
--ig-drop-down-focused-item-background: transparent;
|
|
19
|
+
--ig-drop-down-focused-item-border-color: transparent;
|
|
20
|
+
|
|
21
|
+
--ig-drop-down-border-color: transparent;
|
|
22
|
+
|
|
23
|
+
// TODO --ig-drop-down-border-width not working
|
|
24
|
+
//--ig-drop-down-border-width: 10px;
|
|
25
|
+
|
|
26
|
+
--ig-drop-down-border-radius: 0;
|
|
27
|
+
--ig-drop-down-item-border-radius: 0;
|
|
28
|
+
|
|
29
|
+
--ig-drop-down-selected-item-text-color: var(--igd-accent);
|
|
30
|
+
--ig-drop-down-selected-hover-item-text-color: var(--igd-accent);
|
|
31
|
+
--ig-drop-down-selected-focus-item-text-color: var(--igd-accent);
|
|
32
|
+
|
|
33
|
+
--ig-drop-down-selected-item-background: transparent;
|
|
34
|
+
--ig-drop-down-selected-hover-item-background: transparent;
|
|
35
|
+
--ig-drop-down-selected-focus-item-background: transparent;
|
|
36
|
+
|
|
37
|
+
// TODO this controls the item size which is very confusing
|
|
38
|
+
--ig-drop-down-size: #{rem(40px)}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
igc-select::part(base) {
|
|
42
|
+
border: var(--igd-app-outline);
|
|
43
|
+
box-shadow: none;
|
|
44
|
+
padding: rem(16px);
|
|
45
|
+
min-width: fit-content;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
igc-select::part(base) {
|
|
49
|
+
@include type-style('body-2') {
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
igc-icon-button {
|
|
56
|
+
igc-icon {
|
|
57
|
+
--size: #{rem(14px)};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
--ig-flat-icon-button-foreground: var(--ig-gray-900);
|
|
61
|
+
--ig-flat-icon-button-hover-foreground: var(--ig-gray-900);
|
|
62
|
+
--ig-flat-icon-button-focus-foreground: var(--ig-gray-900);
|
|
63
|
+
--ig-flat-icon-button-active-foreground: var(--ig-gray-900);
|
|
64
|
+
|
|
65
|
+
--ig-flat-icon-button-hover-background: transparent;
|
|
66
|
+
--ig-flat-icon-button-focus-background: transparent;
|
|
67
|
+
--ig-flat-icon-button-active-background: transparent;
|
|
68
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@use 'igniteui-theming/sass/typography' as *;
|
|
2
|
+
|
|
3
|
+
// 'code' and 'small' are custom type-scale entries — their CSS vars are
|
|
4
|
+
// generated by typography() but type-style() only accepts standard names.
|
|
5
|
+
// Read the generated --ig-* vars directly to avoid the warning.
|
|
6
|
+
.igd-main-content__markdown {
|
|
7
|
+
padding: var(--igd-page-padding);
|
|
8
|
+
|
|
9
|
+
pre,
|
|
10
|
+
code {
|
|
11
|
+
@include type-style('code', false) {
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
ul {
|
|
17
|
+
@include type-style('body-2') {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
list-style-type: none;
|
|
22
|
+
padding: 0;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
li > code {
|
|
26
|
+
background: var(--ig-primary-50);
|
|
27
|
+
color: var(--ig-primary-800);
|
|
28
|
+
border: rem(1px) solid var(--ig-primary-100);
|
|
29
|
+
|
|
30
|
+
padding: rem(2px) rem(4px);
|
|
31
|
+
border-radius: rem(4px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
li {
|
|
35
|
+
@include type-style('body-1') {
|
|
36
|
+
margin: 0;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
> strong {
|
|
40
|
+
@include type-style('subtitle-2') {
|
|
41
|
+
margin: 0;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
color: var(--ig-gray-700);
|
|
46
|
+
padding: rem(4px) 0;
|
|
47
|
+
|
|
48
|
+
> .shiki {
|
|
49
|
+
margin-top: rem(8px);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
p,h1,h2,h3,h4,h5,h6:only-child {
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
margin-bottom: rem(26px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
a {
|
|
61
|
+
color: light-dark(var(--ig-primary-500), var(--ig-primary-200));
|
|
62
|
+
|
|
63
|
+
&:hover,
|
|
64
|
+
&:focus {
|
|
65
|
+
color: light-dark(var(--ig-primary-600), var(--ig-primary-100));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.igd-defined-in {
|
|
70
|
+
> span {
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
border: 1px solid light-dark(var(--ig-primary-500), var(--ig-primary-800));
|
|
75
|
+
padding: rem(8px) rem(16px);
|
|
76
|
+
border-radius: var(--igd-border-radius);
|
|
77
|
+
|
|
78
|
+
@include type-style('body-1');
|
|
79
|
+
|
|
80
|
+
display: grid;
|
|
81
|
+
align-items: start;
|
|
82
|
+
grid-template-columns: auto 1fr;
|
|
83
|
+
gap: rem(8px);
|
|
84
|
+
color: var(--ig-secondary-500);
|
|
85
|
+
margin-block-end: rem(26px);
|
|
86
|
+
|
|
87
|
+
a {
|
|
88
|
+
min-width: 0;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.igd-anchor-link {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
display: grid;
|
|
98
|
+
place-items: center;
|
|
99
|
+
min-width: rem(24px);
|
|
100
|
+
aspect-ratio: 1;
|
|
101
|
+
background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
|
|
102
|
+
border: rem(1px) solid light-dark(var(--ig-gray-100), var(--ig-secondary-700));
|
|
103
|
+
border-radius: var(--igd-border-radius);
|
|
104
|
+
|
|
105
|
+
&:focus-visible {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
outline: none;
|
|
108
|
+
outline-offset: 2px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
igc-icon {
|
|
112
|
+
--size: rem(18px);
|
|
113
|
+
--color: var(--ig-secondary-500);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.lead {
|
|
118
|
+
margin-bottom: rem(26px)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
|
|
3
|
+
/* ============================================================
|
|
4
|
+
API Members
|
|
5
|
+
Styles for member articles (properties, methods, accessors,
|
|
6
|
+
events), headings, badges, inheritance tree, and metadata.
|
|
7
|
+
|
|
8
|
+
WHY GLOBAL: These styles target `section > article`,
|
|
9
|
+
`.member-badge`, `.inheritance-tree`, and `.inherited-from`
|
|
10
|
+
which are rendered across all 5 detail page templates
|
|
11
|
+
(classes, interfaces, functions, types, variables). While
|
|
12
|
+
AnchoredName.astro renders `.member-badge`, the surrounding
|
|
13
|
+
article/section structure lives directly in each page
|
|
14
|
+
template, so no single component fully owns these styles.
|
|
15
|
+
Once a shared detail page layout component exists, this file
|
|
16
|
+
should be moved there.
|
|
17
|
+
============================================================ */
|
|
18
|
+
|
|
19
|
+
/* Inheritance tree */
|
|
20
|
+
.inheritance-tree {
|
|
21
|
+
margin-top: 0.5em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.inheritance-tree-item {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
font-family: var(--sl-font-mono, monospace), sans-serif;
|
|
28
|
+
font-size: 1em;
|
|
29
|
+
line-height: 1.7;
|
|
30
|
+
white-space: pre;
|
|
31
|
+
margin-top: 0.1em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.inheritance-tree-item .inheritance-arrow {
|
|
35
|
+
margin-right: 0.5em;
|
|
36
|
+
margin-top: 0.1em;
|
|
37
|
+
color: #888;
|
|
38
|
+
font-size: 1.1em;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.inheritance-tree-item.last strong {
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* "Inherited from" metadata line shown under member headings */
|
|
46
|
+
.inherited-from {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: rem(8px);
|
|
50
|
+
padding: rem(8px) rem(16px);
|
|
51
|
+
color: var(--igd-accent);
|
|
52
|
+
border: rem(1px) solid light-dark(var(--ig-primary-500), var(--ig-primary-800));
|
|
53
|
+
border-radius: rem(4px);
|
|
54
|
+
|
|
55
|
+
strong {
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
a {
|
|
60
|
+
|
|
61
|
+
text-decoration: underline;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Visual separation between member articles */
|
|
66
|
+
section > article {
|
|
67
|
+
margin-block: var(--igd-page-padding);
|
|
68
|
+
|
|
69
|
+
> * {
|
|
70
|
+
margin-block-end: rem(26px);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.member-badge {
|
|
75
|
+
@include type-style('body-1') {
|
|
76
|
+
margin: 0;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
display: inline-block;
|
|
80
|
+
color: light-dark(var(--ig-secondary-800), var(--ig-secondary-200));
|
|
81
|
+
background: light-dark(var(--ig-secondary-100), var(--ig-secondary-900));
|
|
82
|
+
border: rem(1px) solid light-dark(var(--ig-secondary-300),var(--ig-secondary-700));
|
|
83
|
+
padding: var(--igd-members-spacing);
|
|
84
|
+
border-radius: rem(4px);
|
|
85
|
+
}
|