igniteui-astro-components 0.0.6 → 0.0.8
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 +9 -8
- package/package.json +7 -5
- package/src/assets/icons/open-link-blank.svg +1 -1
- package/src/assets/logos/code-sandbox.svg +14 -0
- package/src/assets/logos/stackblitz.svg +13 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +1 -1
- package/src/components/DocsSidebar/DocsSidebar.astro +15 -8
- package/src/components/DocsSidebar/DocsSidebar.scss +152 -2
- package/src/components/DocsSidebar/SidebarFilterInput.scss +7 -3
- package/src/components/DocsSidebar/SidebarLabel.astro +25 -4
- package/src/components/DocsSidebar/toTreeNodes.ts +1 -1
- package/src/components/DocsSubHeader/DocsSubHeader.astro +119 -302
- package/src/components/DocsSubHeader/DocsSubHeader.scss +111 -11
- package/src/components/DocsToc/DocsToc.astro +5 -2
- package/src/components/DocsToc/toTreeNodes.ts +1 -1
- package/src/components/DocsTree/DocsTree.astro +9 -0
- package/src/components/DocsTree/docs-tree.scss +139 -118
- package/src/components/GlobalFooter/GlobalFooter.astro +12 -62
- package/src/components/GlobalFooter/README.md +7 -10
- package/src/components/GlobalNavBar/GlobalNavBar.astro +8 -193
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +16 -6
- package/src/components/GlobalNavBar/README.md +8 -15
- package/src/components/LicenseIndicator/LicenseIndicator.astro +19 -0
- package/src/components/LicenseIndicator/LicenseIndicator.scss +5 -0
- package/src/components/Search/Search.astro +34 -15
- package/src/components/Search/Search.scss +10 -42
- package/src/components/SearchAdvanced/SearchAdvanced.astro +202 -366
- package/src/components/SearchAdvanced/SearchAdvanced.scss +177 -0
- package/src/components/ThemingWidget/ThemingWidget.astro +5 -10
- package/src/components/mdx/ApiRef/README.md +1 -1
- package/src/components/mdx/DocsAside/DocsAside.astro +37 -32
- package/src/components/mdx/DocsAside/DocsAside.scss +123 -35
- package/src/components/mdx/Sample/Sample.astro +55 -45
- package/src/components/mdx/Sample/Sample.scss +173 -30
- package/src/content.config.ts +1 -1
- package/src/integration.ts +25 -141
- package/src/layouts/DocsLayout/DocsLayout.astro +61 -20
- package/src/layouts/DocsLayout/DocsLayout.scss +51 -6
- package/src/lib/nav-helpers.ts +11 -4
- package/src/lib/sidebar/helpers.ts +14 -1
- package/src/lib/sidebar/types.ts +5 -7
- package/src/platform.ts +9 -16
- package/src/plugins/rehype-heading-anchors.ts +74 -0
- package/src/plugins/rehype-table-wrapper.ts +49 -0
- package/src/plugins/remark-docfx.ts +0 -368
- package/src/plugins/remark-env-vars.ts +110 -0
- package/src/plugins/remark-html-transforms.ts +32 -0
- package/src/plugins/remark-md-links.ts +75 -0
- package/src/scripts/sample-widget.ts +107 -116
- package/src/sidebar.ts +6 -7
- package/src/styles/global/_breakpoints.scss +4 -4
- package/src/styles/global/_code-blocks.scss +1 -1
- package/src/styles/global/_component-themes.scss +118 -18
- package/src/styles/global/_index.scss +2 -2
- package/src/styles/global/_markdown.scss +444 -32
- package/src/styles/global/_palette.scss +7 -0
- package/src/styles/global/_search-shared.scss +273 -0
- package/src/styles/global/_variables.scss +58 -3
- package/src/styles/theme.scss +80 -11
- package/src/virtual-modules.d.ts +1 -13
- package/src/assets/icons/copy-clipboard.svg +0 -3
- package/src/assets/icons/filter-clear.svg +0 -1
- package/src/styles/custom.scss +0 -20
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '../../styles/global/breakpoints' as *;
|
|
1
2
|
@use 'igniteui-theming/sass/typography' as *;
|
|
2
3
|
|
|
3
4
|
// 'code' and 'small' are custom type-scale entries — their CSS vars are
|
|
@@ -5,60 +6,135 @@
|
|
|
5
6
|
// Read the generated --ig-* vars directly to avoid the warning.
|
|
6
7
|
.igd-main-content__markdown {
|
|
7
8
|
padding: var(--igd-page-padding);
|
|
9
|
+
min-width: 0;
|
|
8
10
|
|
|
9
|
-
pre
|
|
10
|
-
code {
|
|
11
|
+
> pre {
|
|
11
12
|
@include type-style('code', false) {
|
|
12
13
|
margin: 0;
|
|
13
|
-
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
border: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-primary-900));
|
|
17
|
+
background-color: light-dark(var(--ig-gray-50), var(--ig-gray-50)) !important;
|
|
18
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
|
|
14
19
|
}
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
> pre,
|
|
22
|
+
> code {
|
|
23
|
+
margin-block-end: rem(26px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
kbd {
|
|
27
|
+
@include type-style('code', false) {
|
|
18
28
|
margin: 0;
|
|
19
|
-
}
|
|
29
|
+
};
|
|
20
30
|
|
|
21
|
-
|
|
22
|
-
|
|
31
|
+
background-color: var(--ig-gray-100);
|
|
32
|
+
color: var(--ig-gray-100-contrast);
|
|
33
|
+
box-shadow: none;
|
|
34
|
+
border: rem(1px) solid var(--ig-gray-300);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// <code> that is not inside a <pre> tag
|
|
38
|
+
code:not(pre code) {
|
|
39
|
+
@include type-style('code', false) {
|
|
40
|
+
margin: 0;
|
|
41
|
+
};
|
|
23
42
|
|
|
43
|
+
background: light-dark(var(--ig-primary-50), var(--ig-gray-50));
|
|
44
|
+
color: light-dark(var(--ig-primary-600), var(--ig-gray-500));
|
|
45
|
+
border: rem(1px) solid light-dark(var(--ig-gray-300), var(--ig-gray-200));
|
|
24
46
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
47
|
+
padding: rem(4px) rem(8px);
|
|
48
|
+
border-radius: rem(4px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
> ul,
|
|
52
|
+
> ol,
|
|
53
|
+
> dl {
|
|
54
|
+
@include type-style('body-2') {
|
|
55
|
+
margin: 0;
|
|
32
56
|
}
|
|
33
57
|
|
|
58
|
+
padding-inline-start: rem(18px);
|
|
59
|
+
padding-block: 0;
|
|
60
|
+
|
|
34
61
|
li {
|
|
35
|
-
@include type-style('
|
|
62
|
+
@include type-style('secondary-text', false) {
|
|
36
63
|
margin: 0;
|
|
37
64
|
};
|
|
38
65
|
|
|
39
66
|
> strong {
|
|
40
67
|
@include type-style('subtitle-2') {
|
|
41
68
|
margin: 0;
|
|
42
|
-
}
|
|
69
|
+
}
|
|
70
|
+
;
|
|
43
71
|
}
|
|
44
72
|
|
|
73
|
+
position: relative;
|
|
45
74
|
color: var(--ig-gray-700);
|
|
46
|
-
padding: rem(
|
|
75
|
+
padding-inline: 0 rem(8px);
|
|
76
|
+
padding-block: rem(8px);
|
|
47
77
|
|
|
48
78
|
> .shiki {
|
|
49
79
|
margin-top: rem(8px);
|
|
50
80
|
}
|
|
81
|
+
|
|
82
|
+
::marker {
|
|
83
|
+
color: var(--ig-gray-700);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:has(> ul) {
|
|
87
|
+
padding-block-end: 0;
|
|
88
|
+
}
|
|
51
89
|
}
|
|
52
90
|
|
|
53
|
-
p,h1,h2,h3,h4,h5,h6:only-child {
|
|
91
|
+
p, h1, h2, h3, h4, h5, h6:only-child {
|
|
54
92
|
margin: 0;
|
|
55
93
|
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// <ul> that is not inside <li>
|
|
97
|
+
// <ol> that is not inside <li>
|
|
98
|
+
> ul:not(li ul),
|
|
99
|
+
> ol:not(li ol),
|
|
100
|
+
> dl:not(dd dl)
|
|
101
|
+
{
|
|
102
|
+
margin-bottom: rem(26px) !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
dl {
|
|
106
|
+
padding-inline-start: 0;
|
|
107
|
+
|
|
108
|
+
dt {
|
|
109
|
+
color: var(--ig-gray-900);
|
|
110
|
+
}
|
|
56
111
|
|
|
57
|
-
|
|
112
|
+
dd {
|
|
113
|
+
margin-block-end: rem(16px);
|
|
114
|
+
color: var(--ig-gray-700);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
> address {
|
|
119
|
+
line-height: rem(32px);
|
|
120
|
+
|
|
121
|
+
p {
|
|
122
|
+
@include type-style('body-2') {
|
|
123
|
+
line-height: rem(32px);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
a {
|
|
128
|
+
color: inherit;
|
|
129
|
+
text-decoration: underline;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
margin-block-end: rem(26px);
|
|
58
133
|
}
|
|
59
134
|
|
|
60
135
|
a {
|
|
61
|
-
color:
|
|
136
|
+
color: inherit;
|
|
137
|
+
text-decoration: underline;
|
|
62
138
|
|
|
63
139
|
&:hover,
|
|
64
140
|
&:focus {
|
|
@@ -92,29 +168,365 @@
|
|
|
92
168
|
}
|
|
93
169
|
}
|
|
94
170
|
|
|
171
|
+
// Headings injected with anchor link button by rehype-heading-anchors
|
|
172
|
+
h2, h3, h4, h5, h6 {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
gap: rem(8px);
|
|
176
|
+
// CSS baseline: ensure in-page anchor links scroll the heading clear of
|
|
177
|
+
// the sticky subheader. The JS-driven scroll-padding-top set by DocsToc
|
|
178
|
+
// (using the measured subheader bottom) takes precedence when available.
|
|
179
|
+
scroll-margin-top: rem(18px);
|
|
180
|
+
|
|
181
|
+
&:hover .igd-anchor-link {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
95
186
|
.igd-anchor-link {
|
|
96
187
|
opacity: 0;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
188
|
+
flex-shrink: 0;
|
|
189
|
+
transition: opacity 0.15s ease;
|
|
190
|
+
|
|
191
|
+
// igc-icon-button internal sizing
|
|
192
|
+
--ig-size: 1;
|
|
193
|
+
--foreground: var(--ig-secondary-500);
|
|
194
|
+
--background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
|
|
195
|
+
--border-color: light-dark(var(--ig-gray-100), var(--ig-secondary-500));
|
|
196
|
+
|
|
197
|
+
--hover-foreground: var(--ig-secondary-500);
|
|
198
|
+
--hover-background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
|
|
199
|
+
|
|
200
|
+
--focus-foreground: var(--ig-secondary-500);
|
|
201
|
+
--focus-background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
|
|
104
202
|
|
|
203
|
+
--active-foreground: var(--ig-secondary-500);
|
|
204
|
+
--active-background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
|
|
205
|
+
|
|
206
|
+
&::part(focused) {
|
|
207
|
+
&:after {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&:focus-within,
|
|
105
213
|
&:focus-visible {
|
|
106
214
|
opacity: 1;
|
|
107
215
|
outline: none;
|
|
108
|
-
outline-offset: 2px;
|
|
109
216
|
}
|
|
110
|
-
|
|
217
|
+
|
|
111
218
|
igc-icon {
|
|
112
|
-
--size: rem(
|
|
113
|
-
--color: var(--ig-secondary-500);
|
|
219
|
+
--size: rem(24px);
|
|
114
220
|
}
|
|
115
221
|
}
|
|
116
222
|
|
|
117
223
|
.lead {
|
|
118
224
|
margin-bottom: rem(26px)
|
|
119
225
|
}
|
|
226
|
+
|
|
227
|
+
img {
|
|
228
|
+
display: block;
|
|
229
|
+
max-width: 100%;
|
|
230
|
+
height: auto;
|
|
231
|
+
margin-block-end: rem(26px);
|
|
232
|
+
border-radius: var(--igd-border-radius);
|
|
233
|
+
content-visibility: auto;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// Image wrapped in a link — no underline, contain the block margin
|
|
237
|
+
a:has(> img) {
|
|
238
|
+
text-decoration: none;
|
|
239
|
+
display: inline-block;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Figure / figcaption
|
|
243
|
+
figure {
|
|
244
|
+
margin-inline: 0;
|
|
245
|
+
margin-block-end: rem(26px);
|
|
246
|
+
|
|
247
|
+
// Nested img should not double-margin
|
|
248
|
+
img,
|
|
249
|
+
video,
|
|
250
|
+
p, h1, h2, h3, h4, h5, h6 {
|
|
251
|
+
margin-block-end: 0;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
figcaption {
|
|
256
|
+
@include type-style('caption') { margin: 0; }
|
|
257
|
+
|
|
258
|
+
> p {
|
|
259
|
+
@include type-style('caption') { margin: 0; }
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
padding-block-start: rem(8px);
|
|
263
|
+
margin-block-end: rem(26px);
|
|
264
|
+
color: var(--ig-gray-600);
|
|
265
|
+
text-align: center;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
blockquote {
|
|
269
|
+
padding: rem(16px);
|
|
270
|
+
border-inline-start-width: rem(1px);
|
|
271
|
+
border-inline-start-color: var(--ig-gray-500);
|
|
272
|
+
margin-block-end: rem(26px);
|
|
273
|
+
|
|
274
|
+
p:only-child {
|
|
275
|
+
@include type-style('detail-1', false) {
|
|
276
|
+
margin: 0;
|
|
277
|
+
font-style: italic;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
margin: 0;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
blockquote .small,
|
|
285
|
+
blockquote footer,
|
|
286
|
+
blockquote small {
|
|
287
|
+
@include type-style('detail-1', false) { margin: 0; }
|
|
288
|
+
|
|
289
|
+
color: var(--ig-gray-600);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// Responsive video / iframe embeds
|
|
293
|
+
// Wrap a YouTube (or any 16:9) <iframe> in:
|
|
294
|
+
// <div class="igd-video"> … </div>
|
|
295
|
+
// or <figure class="igd-video"> for a caption.
|
|
296
|
+
.igd-video {
|
|
297
|
+
position: relative;
|
|
298
|
+
width: 100%;
|
|
299
|
+
aspect-ratio: 16 / 9;
|
|
300
|
+
margin-block-end: rem(26px);
|
|
301
|
+
border-radius: var(--igd-border-radius);
|
|
302
|
+
overflow: hidden;
|
|
303
|
+
outline: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-700));
|
|
304
|
+
|
|
305
|
+
iframe,
|
|
306
|
+
video {
|
|
307
|
+
position: absolute;
|
|
308
|
+
inset: 0;
|
|
309
|
+
width: 100%;
|
|
310
|
+
height: 100%;
|
|
311
|
+
border: 0;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Native <video> standalone
|
|
316
|
+
video {
|
|
317
|
+
display: block;
|
|
318
|
+
max-width: 100%;
|
|
319
|
+
height: auto;
|
|
320
|
+
border-radius: var(--igd-border-radius);
|
|
321
|
+
margin-block-end: rem(26px);
|
|
322
|
+
font-family: inherit;
|
|
323
|
+
outline: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-700));
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// Native <audio> standalone
|
|
327
|
+
audio {
|
|
328
|
+
display: block;
|
|
329
|
+
width: 100%;
|
|
330
|
+
margin-block-end: rem(26px);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
p, ul, ol, table {
|
|
334
|
+
code {
|
|
335
|
+
@include type-style('code', false) {
|
|
336
|
+
margin: 0;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
padding: rem(2px) rem(4px);
|
|
340
|
+
font-size: 90%;
|
|
341
|
+
color: var(--ig-primary-800);
|
|
342
|
+
background-color: var(--ig-primary-50);
|
|
343
|
+
border-radius: rem(4px);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
a:has(code) {
|
|
347
|
+
text-decoration: none;
|
|
348
|
+
|
|
349
|
+
&:hover {
|
|
350
|
+
text-decoration: underline;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
> hr {
|
|
356
|
+
border: none;
|
|
357
|
+
border-block-start: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
|
|
358
|
+
margin-block: rem(26px);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
@media (max-width: #{$bp-mobile-horizontal-max}) {
|
|
362
|
+
padding-inline: rem(32px);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// Theme property map tab switcher (used in component theming sections)
|
|
367
|
+
.theme-switcher-wrapper {
|
|
368
|
+
input[type='radio'][name='theme'] {
|
|
369
|
+
display: none;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.switch-label {
|
|
373
|
+
display: inline-block;
|
|
374
|
+
cursor: pointer;
|
|
375
|
+
padding: rem(6px) rem(16px);
|
|
376
|
+
border-bottom: rem(2px) solid transparent;
|
|
377
|
+
margin-inline-end: rem(4px);
|
|
378
|
+
color: var(--ig-gray-600);
|
|
379
|
+
|
|
380
|
+
&:hover {
|
|
381
|
+
color: var(--ig-gray-900);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.tables .theme-table {
|
|
386
|
+
display: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
#material:checked ~ .tables .theme-table.material,
|
|
390
|
+
#fluent:checked ~ .tables .theme-table.fluent,
|
|
391
|
+
#bootstrap:checked ~ .tables .theme-table.bootstrap,
|
|
392
|
+
#indigo:checked ~ .tables .theme-table.indigo {
|
|
393
|
+
display: block;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
#material:checked ~ label[for='material'],
|
|
397
|
+
#fluent:checked ~ label[for='fluent'],
|
|
398
|
+
#bootstrap:checked ~ label[for='bootstrap'],
|
|
399
|
+
#indigo:checked ~ label[for='indigo'] {
|
|
400
|
+
color: var(--igd-accent);
|
|
401
|
+
border-bottom-color: var(--igd-accent);
|
|
402
|
+
font-weight: 600;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// Scroll container — wraps every <table> (injected by rehypeTableWrapper).
|
|
407
|
+
// Technique from https://piccalil.li/blog/styling-tables-the-modern-css-way/
|
|
408
|
+
.igd-table-wrapper {
|
|
409
|
+
overflow: auto;
|
|
410
|
+
max-height: var(--igd-table-max-height);
|
|
411
|
+
border: rem(1px) solid var(--igd-table-border-color);
|
|
412
|
+
margin-block-end: rem(26px);
|
|
413
|
+
width: 100%;
|
|
414
|
+
position: relative;
|
|
415
|
+
z-index: 0;
|
|
416
|
+
|
|
417
|
+
table {
|
|
418
|
+
font-family: inherit;
|
|
419
|
+
border-collapse: collapse;
|
|
420
|
+
|
|
421
|
+
// Ensure the table is at least as wide as its container but can grow
|
|
422
|
+
// wider for many columns — enabling horizontal scroll in the wrapper.
|
|
423
|
+
min-width: 100%;
|
|
424
|
+
color: var(--igd-table-fg);
|
|
425
|
+
|
|
426
|
+
th {
|
|
427
|
+
white-space: nowrap;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
td, th {
|
|
431
|
+
// Only row borders — no column dividers.
|
|
432
|
+
border-block: rem(1px) solid var(--igd-table-border-color);
|
|
433
|
+
border-inline: none;
|
|
434
|
+
padding-block: rem(16px);
|
|
435
|
+
padding-inline: rem(24px);
|
|
436
|
+
vertical-align: baseline;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// First row: no top border — the wrapper provides it.
|
|
440
|
+
thead tr:first-child th,
|
|
441
|
+
tbody tr:first-child td,
|
|
442
|
+
tbody tr:first-child th {
|
|
443
|
+
border-block-start: none;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// Last row: no bottom border — the wrapper provides it.
|
|
447
|
+
tbody tr:last-child td,
|
|
448
|
+
tbody tr:last-child th,
|
|
449
|
+
tfoot tr:last-child td,
|
|
450
|
+
tfoot tr:last-child th {
|
|
451
|
+
border-block-end: none;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
thead th {
|
|
455
|
+
vertical-align: bottom;
|
|
456
|
+
|
|
457
|
+
// Remove the cell's own bottom border — the ::after pseudo-element
|
|
458
|
+
// on the sticky rule below provides the single 2px line.
|
|
459
|
+
border-block-end: none;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// Zebra effect — disabled by default.
|
|
463
|
+
tr {
|
|
464
|
+
background-color: var(--igd-table-bg);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
tr:nth-child(even) {
|
|
468
|
+
background-color: var(--igd-tabe-row-even-bg);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
tr:hover {
|
|
472
|
+
background-color: var(--igd-tabe-row-hover-bg);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
th {
|
|
476
|
+
text-align: left;
|
|
477
|
+
background-color: var(--igd-table-header-bg);
|
|
478
|
+
color: var(--igd-table-header-fg);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
// Sticky header row
|
|
482
|
+
thead th {
|
|
483
|
+
position: sticky;
|
|
484
|
+
top: 0;
|
|
485
|
+
z-index: 2;
|
|
486
|
+
|
|
487
|
+
// ::before for the bottom border so it doesn't conflict with the
|
|
488
|
+
// ::after column separator on th:first-child (both are the same element).
|
|
489
|
+
&::before {
|
|
490
|
+
content: '';
|
|
491
|
+
position: absolute;
|
|
492
|
+
inset-block-end: 0;
|
|
493
|
+
inset-inline-start: 0;
|
|
494
|
+
width: 100%;
|
|
495
|
+
height: var(--igd-table-pinned-border-size);
|
|
496
|
+
background: var(--igd-table-border-color);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
// Sticky first column — each cell needs its own background so content doesn't bleed through.
|
|
501
|
+
th:first-child {
|
|
502
|
+
background-color: var(--igd-table-header-bg);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
td:first-child {
|
|
506
|
+
background-color: var(--igd-table-bg);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
th:first-child,
|
|
510
|
+
td:first-child {
|
|
511
|
+
position: sticky;
|
|
512
|
+
inset-inline-start: 0;
|
|
513
|
+
|
|
514
|
+
&::after {
|
|
515
|
+
content: '';
|
|
516
|
+
position: absolute;
|
|
517
|
+
inset-block-start: 0;
|
|
518
|
+
inset-inline-end: 0;
|
|
519
|
+
width: var(--igd-table-pinned-border-size);
|
|
520
|
+
height: 100%;
|
|
521
|
+
background: var(--igd-table-border-color);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// Sticky first header cell sits above both axes — needs header background.
|
|
526
|
+
thead th:first-child,
|
|
527
|
+
tfoot th:first-child {
|
|
528
|
+
background-color: var(--igd-table-header-bg);
|
|
529
|
+
z-index: 3;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
120
532
|
}
|
|
@@ -123,9 +123,16 @@ $dark-palette: (
|
|
|
123
123
|
);
|
|
124
124
|
|
|
125
125
|
[data-theme='light'] {
|
|
126
|
+
color-scheme: light;
|
|
127
|
+
--igd-scrollbar-thumb: var(--ig-gray-300);
|
|
128
|
+
--igd-scrollbar-track: transparent;
|
|
126
129
|
@include palette($light-palette);
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
[data-theme='dark'] {
|
|
133
|
+
color-scheme: dark;
|
|
134
|
+
--igd-scrollbar-thumb: rgba(255, 255, 255, 0.25);
|
|
135
|
+
--igd-scrollbar-track: rgba(255, 255, 255, 0.05);
|
|
136
|
+
|
|
130
137
|
@include palette($dark-palette);
|
|
131
138
|
}
|