igniteui-astro-components 0.0.18 → 0.0.19
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 +1 -1
- package/src/assets/icons/{chatGPT,.svg → chatgpt.svg} +0 -1
- package/src/assets/ig-logo.svg +1 -1
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +1 -3
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +12 -3
- package/src/components/DocsSidebar/DocsSidebar.astro +26 -7
- package/src/components/DocsSidebar/DocsSidebar.scss +35 -28
- package/src/components/DocsSidebar/SidebarFilterInput.astro +2 -2
- package/src/components/DocsSidebar/SidebarFilterInput.scss +76 -51
- package/src/components/DocsSidebar/sidebar-filter.ts +3 -18
- package/src/components/DocsSubHeader/DocsSubHeader.astro +93 -114
- package/src/components/DocsSubHeader/DocsSubHeader.scss +69 -121
- package/src/components/DocsToc/DocsToc.astro +14 -10
- package/src/components/DocsToc/DocsToc.scss +7 -5
- package/src/components/DocsTree/docs-tree.scss +125 -54
- package/src/components/GlobalFooter/GlobalFooter.module.scss +1 -1
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +1 -3
- package/src/components/Search/Search.astro +57 -23
- package/src/components/Search/Search.scss +15 -21
- package/src/components/SearchAdvanced/SearchAdvanced.astro +64 -49
- package/src/components/SearchAdvanced/SearchAdvanced.scss +22 -30
- package/src/components/mdx/DocsAside/DocsAside.scss +10 -14
- package/src/layouts/DocsLayout/DocsLayout.astro +5 -5
- package/src/layouts/DocsLayout/DocsLayout.scss +58 -97
- package/src/scripts/icon-manifest.ts +73 -0
- package/src/scripts/icon-registry.ts +4 -35
- package/src/styles/global/_breakpoints.scss +0 -1
- package/src/styles/global/_code-blocks.scss +1 -0
- package/src/styles/global/_component-themes.scss +133 -125
- package/src/styles/global/_icon-gallery.scss +108 -0
- package/src/styles/global/_index.scss +1 -0
- package/src/styles/global/_markdown.scss +127 -16
- package/src/styles/global/_palette.scss +101 -101
- package/src/styles/global/_search-shared.scss +302 -315
- package/src/styles/global/_type-scale.scss +17 -17
- package/src/styles/global/_variables.scss +15 -6
- package/src/styles/theme.scss +7 -61
- package/src/assets/icons/classes.svg +0 -3
- package/src/assets/icons/enumerations.svg +0 -3
- package/src/assets/icons/functions.svg +0 -5
- package/src/assets/icons/interfaces.svg +0 -3
- package/src/assets/icons/type-alias.svg +0 -3
- package/src/assets/icons/variables.svg +0 -3
- /package/src/assets/icons/{palette,.svg → palette.svg} +0 -0
|
@@ -1,137 +1,102 @@
|
|
|
1
1
|
@use 'igniteui-theming' as *;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
igc-select
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
igc-select-item {
|
|
71
|
-
margin-block: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
igc-select::part(container) {
|
|
75
|
-
@include type-style('body-2') {
|
|
76
|
-
margin: 0;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
igc-select::part(base) {
|
|
81
|
-
border: var(--igd-app-outline);
|
|
82
|
-
box-shadow: none;
|
|
83
|
-
padding: rem(16px);
|
|
84
|
-
min-width: fit-content;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
igc-icon-button[variant='outlined'] {
|
|
88
|
-
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-700));
|
|
89
|
-
--hover-foreground: var(--igd-accent);
|
|
90
|
-
--focus-foreground: var(--igd-accent);
|
|
91
|
-
--active-foreground: var(--igd-accent);
|
|
92
|
-
--focus-hover-foreground: var(--igd-accent);
|
|
93
|
-
|
|
94
|
-
--hover-background: transparent;
|
|
95
|
-
--focus-background: transparent;
|
|
96
|
-
--active-background: transparent;
|
|
97
|
-
--focus-hover-background: transparent;
|
|
98
|
-
--focus-visible-background: transparent;
|
|
99
|
-
|
|
100
|
-
--border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
101
|
-
--focus-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
102
|
-
--hover-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
103
|
-
--border-radius: #{rem(4px)};
|
|
104
|
-
|
|
105
|
-
&::part(base) {
|
|
106
|
-
&::after {
|
|
107
|
-
display: none;
|
|
4
|
+
@layer components {
|
|
5
|
+
/* Custom drop-down theme for igc-select (Web Components) */
|
|
6
|
+
igc-select {
|
|
7
|
+
// TODO as а user i want to be able to add border on the entier dropdown
|
|
8
|
+
// TODO the distance attr on the igc-select is highly unreliable caning it as a css variable will be far more flexible
|
|
9
|
+
|
|
10
|
+
// TODO --ig-drop-down-border-width not working
|
|
11
|
+
//--ig-drop-down-elevation: var(--ig-elevation-0);
|
|
12
|
+
|
|
13
|
+
--ig-drop-down-background-color: var(--igd-app-bg);
|
|
14
|
+
--ig-drop-down-item-text-color: var(--ig-gray-600);
|
|
15
|
+
--ig-drop-down-hover-item-background: var(--ig-gray-50);
|
|
16
|
+
--ig-drop-down-hover-item-text-color: var(--ig-gray-900);
|
|
17
|
+
|
|
18
|
+
--ig-drop-down-focused-item-text-color: var(--ig-gray-600);
|
|
19
|
+
--ig-drop-down-focused-item-background: var(--ig-gray-50);
|
|
20
|
+
--ig-drop-down-focused-item-border-color: transparent;
|
|
21
|
+
|
|
22
|
+
// TODO this affects items not the dropdown itself, log an issue in the library
|
|
23
|
+
--ig-drop-down-border-color: transparent;
|
|
24
|
+
|
|
25
|
+
// TODO --ig-drop-down-border-width not working
|
|
26
|
+
//--ig-drop-down-border-width: 10px;
|
|
27
|
+
|
|
28
|
+
--ig-drop-down-border-radius: #{rem(16px)};
|
|
29
|
+
--ig-drop-down-item-border-radius: 0;
|
|
30
|
+
|
|
31
|
+
--ig-drop-down-selected-item-text-color: var(--igd-accent);
|
|
32
|
+
--ig-drop-down-selected-hover-item-text-color: var(--igd-accent);
|
|
33
|
+
--ig-drop-down-selected-focus-item-text-color: var(--igd-accent);
|
|
34
|
+
|
|
35
|
+
--ig-drop-down-selected-item-background: transparent;
|
|
36
|
+
--ig-drop-down-selected-hover-item-background: var(--ig-gray-50);
|
|
37
|
+
--ig-drop-down-selected-focus-item-background: transparent;
|
|
38
|
+
|
|
39
|
+
// TODO this controls the item size which is very confusing
|
|
40
|
+
--ig-drop-down-size: #{rem(40px)};
|
|
41
|
+
|
|
42
|
+
--ig-input-group-input-prefix-background: transparent;
|
|
43
|
+
--ig-input-group-input-prefix-background--filled: transparent;
|
|
44
|
+
--ig-input-group-input-prefix-color--filled: var(--ig-gray-900);
|
|
45
|
+
--ig-input-group-input-prefix-background--focused: transparent;
|
|
46
|
+
--ig-input-group-input-prefix-color--focused: var(--ig-gray-900);
|
|
47
|
+
--ig-input-group-input-suffix-background: transparent;
|
|
48
|
+
--ig-input-group-input-suffix-background--filled: transparent;
|
|
49
|
+
--ig-input-group-input-suffix-color--filled: var(--ig-gray-900);
|
|
50
|
+
--ig-input-group-input-suffix-background--focused: transparent;
|
|
51
|
+
--ig-input-group-input-suffix-color--focused: var(--ig-gray-900);
|
|
52
|
+
--ig-input-group-idle-text-color: var(--ig-gray-900);
|
|
53
|
+
--ig-input-group-disabled-border-color: transparent;
|
|
54
|
+
--ig-input-group-border-color: var(--ig-gray-300);
|
|
55
|
+
//--ig-input-group-focused-border-color: var(--ig-gray-400);
|
|
56
|
+
--ig-input-group-hover-border-color: var(--ig-gray-400);
|
|
57
|
+
--ig-input-group-border-disabled-background: transparent;
|
|
58
|
+
--ig-select-toggle-button-background: transparent;
|
|
59
|
+
--ig-select-toggle-button-background-focus: transparent;
|
|
60
|
+
--ig-select-toggle-button-foreground: var(--ig-gray-900);
|
|
61
|
+
--ig-select-toggle-button-foreground-focus: var(--igd-accent);
|
|
62
|
+
--ig-select-toggle-button-foreground-filled: var(--ig-gray-900);
|
|
63
|
+
--ig-select-toggle-button-background-disabled: transparent;
|
|
64
|
+
--ig-select-toggle-button-foreground-disabled: var(--ig-gray-400);
|
|
65
|
+
--ig-input-group-border-border-radius: var(--igd-border-radius-xl);
|
|
66
|
+
|
|
67
|
+
&::part(base) {
|
|
68
|
+
padding-block: rem(12px);
|
|
108
69
|
}
|
|
109
70
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
&:focus {
|
|
113
|
-
--foreground: var(--igd-accent);
|
|
71
|
+
igc-icon {
|
|
72
|
+
padding-inline-end: 0;
|
|
114
73
|
}
|
|
115
74
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
75
|
+
|
|
76
|
+
igc-select-item {
|
|
77
|
+
margin-block: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
igc-select::part(container) {
|
|
81
|
+
@include type-style('body-2') {
|
|
82
|
+
margin: 0;
|
|
83
|
+
}
|
|
84
|
+
;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// THIS IS BASICALLY THE DROPDOWN
|
|
88
|
+
igc-select::part(base) {
|
|
89
|
+
border: var(--igd-app-outline);
|
|
90
|
+
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
|
|
91
|
+
0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
igc-icon-button[variant='outlined'] {
|
|
126
95
|
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-700));
|
|
127
96
|
--hover-foreground: var(--igd-accent);
|
|
128
97
|
--focus-foreground: var(--igd-accent);
|
|
129
98
|
--active-foreground: var(--igd-accent);
|
|
130
99
|
--focus-hover-foreground: var(--igd-accent);
|
|
131
|
-
--focus-visible-foreground: var(--igd-accent);
|
|
132
|
-
|
|
133
|
-
--icon-color: light-dark(var(--ig-gray-900), var(--ig-gray-200));
|
|
134
|
-
--icon-color-hover: var(--igd-accent);
|
|
135
100
|
|
|
136
101
|
--hover-background: transparent;
|
|
137
102
|
--focus-background: transparent;
|
|
@@ -139,10 +104,53 @@ igc-button[variant='outlined'] {
|
|
|
139
104
|
--focus-hover-background: transparent;
|
|
140
105
|
--focus-visible-background: transparent;
|
|
141
106
|
|
|
142
|
-
--border-
|
|
107
|
+
--border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
108
|
+
--focus-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
109
|
+
--hover-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
110
|
+
--border-radius: var(--igd-border-radius-xl);
|
|
143
111
|
|
|
144
|
-
&::
|
|
145
|
-
|
|
112
|
+
&::part(base) {
|
|
113
|
+
&::after {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// TODO the icon color is not changing on hover, focus, active states, log an issue in the library
|
|
118
|
+
&:hover,
|
|
119
|
+
&:focus {
|
|
120
|
+
--foreground: var(--igd-accent);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
igc-button[variant='outlined'] {
|
|
126
|
+
&::part(base) {
|
|
127
|
+
--border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
128
|
+
--hover-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
129
|
+
--focus-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-200));
|
|
130
|
+
--focus-visible-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-700));
|
|
131
|
+
--active-border-color: light-dark(var(--ig-gray-400), var(--ig-gray-700));
|
|
132
|
+
|
|
133
|
+
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-700));
|
|
134
|
+
--hover-foreground: var(--igd-accent);
|
|
135
|
+
--focus-foreground: var(--igd-accent);
|
|
136
|
+
--active-foreground: var(--igd-accent);
|
|
137
|
+
--focus-hover-foreground: var(--igd-accent);
|
|
138
|
+
--focus-visible-foreground: var(--igd-accent);
|
|
139
|
+
|
|
140
|
+
--icon-color: light-dark(var(--ig-gray-900), var(--ig-gray-200));
|
|
141
|
+
--icon-color-hover: var(--igd-accent);
|
|
142
|
+
|
|
143
|
+
--hover-background: transparent;
|
|
144
|
+
--focus-background: transparent;
|
|
145
|
+
--active-background: transparent;
|
|
146
|
+
--focus-hover-background: transparent;
|
|
147
|
+
--focus-visible-background: transparent;
|
|
148
|
+
|
|
149
|
+
--border-radius: var(--igd-border-radius-xl);
|
|
150
|
+
|
|
151
|
+
&::after {
|
|
152
|
+
display: none;
|
|
153
|
+
}
|
|
146
154
|
}
|
|
147
155
|
}
|
|
148
156
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@use 'igniteui-theming' as *;
|
|
2
|
+
|
|
3
|
+
.icon-gallery {
|
|
4
|
+
container-type: inline-size;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
igc-tabs.icon-gallery-tabs {
|
|
8
|
+
--tabs-wrapper-padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.icon-gallery__grid {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
|
|
14
|
+
gap: rem(16px);
|
|
15
|
+
padding-block: rem(16px);
|
|
16
|
+
|
|
17
|
+
&--illustrations {
|
|
18
|
+
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.icon-card {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.5rem;
|
|
27
|
+
padding: 1rem 0.75rem 0.75rem;
|
|
28
|
+
border: 1px solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
|
|
29
|
+
border-radius: 0.625rem;
|
|
30
|
+
background: light-dark(var(--ig-surface-500), var(--ig-surface-400));
|
|
31
|
+
transition: border-color 0.15s, box-shadow 0.15s;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
border-color: var(--ig-primary-300);
|
|
35
|
+
box-shadow: 0 2px 8px light-dark(rgba(0, 0, 0, .06), rgba(0, 0, 0, .3));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.icon-card__preview {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
margin-block: rem(16px);
|
|
44
|
+
|
|
45
|
+
igc-icon {
|
|
46
|
+
--size: 28px;
|
|
47
|
+
color: inherit;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--illustration {
|
|
51
|
+
height: rem(32px);
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
svg {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
object-fit: contain;
|
|
58
|
+
fill: currentColor;
|
|
59
|
+
|
|
60
|
+
path,
|
|
61
|
+
rect,
|
|
62
|
+
circle,
|
|
63
|
+
polygon,
|
|
64
|
+
polyline,
|
|
65
|
+
ellipse {
|
|
66
|
+
fill: currentColor;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.icon-card__name {
|
|
73
|
+
@include type-style('caption') {
|
|
74
|
+
margin-block-end: rem(24px);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
text-align: center;
|
|
78
|
+
word-break: break-all;
|
|
79
|
+
color: light-dark(var(--ig-gray-700), var(--ig-gray-800));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.icon-card__actions {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
gap: rem(8px);
|
|
86
|
+
width: 100%;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
igc-button {
|
|
90
|
+
flex: 1;
|
|
91
|
+
|
|
92
|
+
&::part(base) {
|
|
93
|
+
@include type-style('caption') {
|
|
94
|
+
margin: 0;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.icon-card__btn--copied::part(base) {
|
|
99
|
+
background: light-dark(var(--ig-success-100), var(--ig-success-200));
|
|
100
|
+
border-color: var(--ig-success-400);
|
|
101
|
+
color: var(--ig-success-700);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
dialog::backdrop {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
@@ -5,6 +5,11 @@
|
|
|
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
|
+
.igniteui-page-logo {
|
|
9
|
+
display: none;
|
|
10
|
+
height: rem(40px);
|
|
11
|
+
margin-block-end: rem(24px);
|
|
12
|
+
}
|
|
8
13
|
|
|
9
14
|
igc-divider:not([variant="vertical"]) {
|
|
10
15
|
margin-block: rem(24px);
|
|
@@ -66,6 +71,12 @@
|
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
|
|
74
|
+
p + p {
|
|
75
|
+
// Make use of margin collapse the bigger value wins, since normal P have 16px on the bottom when
|
|
76
|
+
// we have p after p we have 24 in between them
|
|
77
|
+
margin-block-start: rem(24px);
|
|
78
|
+
}
|
|
79
|
+
|
|
69
80
|
color: light-dark(var(--ig-gray-800), var(--ig-gray-500));
|
|
70
81
|
|
|
71
82
|
padding: var(--igd-page-padding);
|
|
@@ -164,7 +175,7 @@
|
|
|
164
175
|
}
|
|
165
176
|
}
|
|
166
177
|
|
|
167
|
-
iframe {
|
|
178
|
+
iframe:not(.igd-code-view iframe) {
|
|
168
179
|
border: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
|
|
169
180
|
margin-block-end: rem(26px);
|
|
170
181
|
border-radius: rem(8px);
|
|
@@ -176,7 +187,7 @@
|
|
|
176
187
|
ol:not(li ol),
|
|
177
188
|
dl:not(dd dl)
|
|
178
189
|
{
|
|
179
|
-
margin-bottom: rem(26px)
|
|
190
|
+
margin-bottom: rem(26px);
|
|
180
191
|
}
|
|
181
192
|
|
|
182
193
|
dl {
|
|
@@ -294,10 +305,6 @@
|
|
|
294
305
|
display: flex;
|
|
295
306
|
align-items: center;
|
|
296
307
|
gap: rem(8px);
|
|
297
|
-
// CSS baseline: ensure in-page anchor links scroll the heading clear of
|
|
298
|
-
// the sticky subheader. The JS-driven scroll-padding-top set by DocsToc
|
|
299
|
-
// (using the measured subheader bottom) takes precedence when available.
|
|
300
|
-
scroll-margin-top: rem(18px);
|
|
301
308
|
|
|
302
309
|
&:hover .igd-anchor-link {
|
|
303
310
|
opacity: 1;
|
|
@@ -315,18 +322,18 @@
|
|
|
315
322
|
|
|
316
323
|
// igc-icon-button internal sizing
|
|
317
324
|
--ig-size: 1;
|
|
318
|
-
--foreground: var(--ig-
|
|
319
|
-
--background:
|
|
320
|
-
--border-color:
|
|
325
|
+
--foreground: var(--ig-primary-600);
|
|
326
|
+
--background: var(--ig-primary-50);
|
|
327
|
+
--border-color: var(--ig-primary-100);
|
|
321
328
|
|
|
322
|
-
--hover-foreground: var(--ig-
|
|
323
|
-
--hover-background:
|
|
329
|
+
--hover-foreground: var(--ig-primary-600);
|
|
330
|
+
--hover-background: var(--ig-primary-50);
|
|
324
331
|
|
|
325
|
-
--focus-foreground: var(--ig-
|
|
326
|
-
--focus-background:
|
|
332
|
+
--focus-foreground: var(--ig-primary-600);
|
|
333
|
+
--focus-background: var(--ig-primary-50);
|
|
327
334
|
|
|
328
|
-
--active-foreground: var(--ig-
|
|
329
|
-
--active-background:
|
|
335
|
+
--active-foreground: var(--ig-primary-600);
|
|
336
|
+
--active-background: var(--ig-primary-50);
|
|
330
337
|
|
|
331
338
|
&::part(focused) {
|
|
332
339
|
&:after {
|
|
@@ -341,7 +348,7 @@
|
|
|
341
348
|
}
|
|
342
349
|
|
|
343
350
|
igc-icon {
|
|
344
|
-
--size: rem(
|
|
351
|
+
--ig-icon-size: rem(32px);
|
|
345
352
|
}
|
|
346
353
|
}
|
|
347
354
|
|
|
@@ -448,6 +455,8 @@
|
|
|
448
455
|
video {
|
|
449
456
|
display: block;
|
|
450
457
|
max-width: 100%;
|
|
458
|
+
width: 100%;
|
|
459
|
+
aspect-ratio: 16 / 9;
|
|
451
460
|
height: auto;
|
|
452
461
|
border-radius: var(--igd-border-radius);
|
|
453
462
|
margin-block-end: rem(26px);
|
|
@@ -675,6 +684,108 @@
|
|
|
675
684
|
z-index: 3;
|
|
676
685
|
}
|
|
677
686
|
}
|
|
687
|
+
|
|
688
|
+
// Expandable-row variant — add class="igd-table-expandable" to the <table>.
|
|
689
|
+
// Each expandable record is a pair of rows: a summary <tr.igd-row-summary>
|
|
690
|
+
// whose first cell holds the toggle, immediately followed by a hidden
|
|
691
|
+
// <tr.igd-row-detail>. The toggle is a label wrapping a visually-hidden but
|
|
692
|
+
// still keyboard-operable checkbox; a :has() selector reveals the detail
|
|
693
|
+
// row when it is checked — no JavaScript required.
|
|
694
|
+
table.igd-table-expandable {
|
|
695
|
+
// Narrow gutter column that only holds the chevron toggle.
|
|
696
|
+
thead th:first-child,
|
|
697
|
+
.igd-row-summary td:first-child {
|
|
698
|
+
width: rem(48px);
|
|
699
|
+
text-align: center;
|
|
700
|
+
padding-inline: rem(12px);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.igd-row-summary td:first-child {
|
|
704
|
+
vertical-align: middle;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.igd-row-toggle {
|
|
708
|
+
display: inline-flex;
|
|
709
|
+
align-items: center;
|
|
710
|
+
justify-content: center;
|
|
711
|
+
cursor: pointer;
|
|
712
|
+
color: var(--igd-table-header-fg);
|
|
713
|
+
|
|
714
|
+
// Hide the checkbox visually but keep it focusable and operable —
|
|
715
|
+
// not display/visibility:none, which would remove it from the tab
|
|
716
|
+
// order and the accessibility tree.
|
|
717
|
+
input {
|
|
718
|
+
position: absolute;
|
|
719
|
+
width: rem(1px);
|
|
720
|
+
height: rem(1px);
|
|
721
|
+
margin: rem(-1px);
|
|
722
|
+
padding: 0;
|
|
723
|
+
border: 0;
|
|
724
|
+
overflow: hidden;
|
|
725
|
+
clip: rect(0 0 0 0);
|
|
726
|
+
clip-path: inset(50%);
|
|
727
|
+
white-space: nowrap;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
input:focus-visible + .igd-row-chevron {
|
|
731
|
+
outline: rem(2px) solid var(--igd-accent);
|
|
732
|
+
outline-offset: rem(2px);
|
|
733
|
+
border-radius: rem(2px);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.igd-row-chevron {
|
|
738
|
+
--size: #{rem(18px)};
|
|
739
|
+
|
|
740
|
+
flex-shrink: 0;
|
|
741
|
+
transform: rotate(-90deg);
|
|
742
|
+
transition: transform 0.2s ease;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
// Detail rows stay collapsed until their summary's checkbox is checked.
|
|
746
|
+
.igd-row-detail {
|
|
747
|
+
display: none;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.igd-row-summary:has(.igd-row-toggle input:checked) {
|
|
751
|
+
.igd-row-chevron {
|
|
752
|
+
transform: rotate(0deg);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// Drop the divider between an open summary row and its detail panel
|
|
756
|
+
// so the two read as one unit.
|
|
757
|
+
td {
|
|
758
|
+
border-block-end: none;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
+ .igd-row-detail {
|
|
762
|
+
display: table-row;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
// The detail cell spans every column — undo the sticky first-column
|
|
767
|
+
// treatment so it reads as a full-width panel rather than a data cell.
|
|
768
|
+
.igd-row-detail > td {
|
|
769
|
+
position: static;
|
|
770
|
+
vertical-align: top;
|
|
771
|
+
border-block-start: none;
|
|
772
|
+
padding-block-start: 0;
|
|
773
|
+
|
|
774
|
+
&::after {
|
|
775
|
+
display: none;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.igd-row-detail-inner {
|
|
780
|
+
@include type-style('detail-1', false) {
|
|
781
|
+
margin: 0;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
color: var(--igd-table-fg);
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
}
|
|
788
|
+
}
|
|
678
789
|
}
|
|
679
790
|
}
|
|
680
791
|
|