igniteui-astro-components 0.0.7 → 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/package.json +4 -2
- 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/DocsTree/DocsTree.astro +9 -0
- package/src/components/DocsTree/docs-tree.scss +139 -118
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +16 -1
- 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 +182 -355
- package/src/components/SearchAdvanced/SearchAdvanced.scss +177 -0
- 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/integration.ts +7 -0
- package/src/layouts/DocsLayout/DocsLayout.astro +58 -16
- package/src/layouts/DocsLayout/DocsLayout.scss +51 -6
- package/src/lib/sidebar/helpers.ts +14 -1
- package/src/lib/sidebar/types.ts +5 -7
- 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 -0
- package/src/scripts/sample-widget.ts +107 -114
- 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/assets/icons/copy-clipboard.svg +0 -3
- package/src/assets/icons/filter-clear.svg +0 -1
- package/src/styles/custom.scss +0 -20
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
@use '../../styles/global/breakpoints' as *;
|
|
2
|
+
@use 'igniteui-theming/sass/typography' as *;
|
|
3
|
+
|
|
4
|
+
// ── Trigger button ─────────────────────────────────────────────────────────
|
|
5
|
+
|
|
6
|
+
.search-trigger {
|
|
7
|
+
--ig-size: 1;
|
|
8
|
+
|
|
9
|
+
width: 100%;
|
|
10
|
+
max-width: rem(330px);
|
|
11
|
+
display: flex;
|
|
12
|
+
height: 100%;
|
|
13
|
+
align-items: center;
|
|
14
|
+
border: none;
|
|
15
|
+
border-inline-end: var(--igd-app-outline);
|
|
16
|
+
padding-inline: var(--igd-padding-sm);
|
|
17
|
+
gap: rem(8px);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
|
|
20
|
+
// Override native button styles
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
|
|
24
|
+
&:focus-visible {
|
|
25
|
+
outline: none;
|
|
26
|
+
box-shadow: inset 0 0 0 1px var(--igd-accent);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (max-width: #{$bp-tablet-max}) {
|
|
30
|
+
max-width: none;
|
|
31
|
+
width: auto;
|
|
32
|
+
border-inline-end: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.search-trigger__hint {
|
|
37
|
+
background: transparent;
|
|
38
|
+
box-shadow: none;
|
|
39
|
+
border: none;
|
|
40
|
+
|
|
41
|
+
kbd {
|
|
42
|
+
@include type-style('subtitle-1') {
|
|
43
|
+
margin: 0;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
background: transparent;
|
|
47
|
+
box-shadow: none;
|
|
48
|
+
border: none;
|
|
49
|
+
color: var(--ig-gray-500);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.search-trigger__label,
|
|
54
|
+
.search-trigger__hint {
|
|
55
|
+
@media (max-width: #{$bp-tablet-max}) {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.search-trigger__hint {
|
|
61
|
+
@include type-style('subtitle-1') {
|
|
62
|
+
margin: 0;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
margin-inline-start: auto;
|
|
68
|
+
gap: rem(4px);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.search-trigger__label {
|
|
72
|
+
@include type-style('body-2') {
|
|
73
|
+
margin: 0;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
color: var(--ig-gray-600);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// ── Shared dialog mixins ───────────────────────────────────────────────────
|
|
80
|
+
|
|
81
|
+
/// Sizing/position for both igc-dialog::part(base) and native <dialog>.
|
|
82
|
+
@mixin search-dialog-base-styles {
|
|
83
|
+
margin: 0;
|
|
84
|
+
padding: 0;
|
|
85
|
+
width: 100%;
|
|
86
|
+
max-width: 100%;
|
|
87
|
+
height: 100dvh;
|
|
88
|
+
max-height: 100dvh;
|
|
89
|
+
box-shadow: none;
|
|
90
|
+
border: none;
|
|
91
|
+
|
|
92
|
+
@media (min-width: 50rem) {
|
|
93
|
+
margin: auto;
|
|
94
|
+
width: 90%;
|
|
95
|
+
max-width: 42rem;
|
|
96
|
+
height: calc(100vh - 8rem);
|
|
97
|
+
max-height: 48rem;
|
|
98
|
+
border-radius: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/// Backdrop base state (before open animation).
|
|
103
|
+
@mixin search-dialog-backdrop {
|
|
104
|
+
background-color: light-dark(var(--ig-gray-800), var(--ig-gray-800));
|
|
105
|
+
will-change: backdrop-filter, opacity;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/// Backdrop visible/open state.
|
|
109
|
+
@mixin search-dialog-backdrop-open {
|
|
110
|
+
opacity: .6;
|
|
111
|
+
-webkit-backdrop-filter: blur(10px);
|
|
112
|
+
backdrop-filter: blur(10px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ── Shared dialog chrome ───────────────────────────────────────────────────
|
|
116
|
+
|
|
117
|
+
[data-search-modal-open] { overflow: hidden; }
|
|
118
|
+
|
|
119
|
+
.igd-search-shell {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
min-height: 0;
|
|
123
|
+
flex: 1 1 auto;
|
|
124
|
+
height: 100%;
|
|
125
|
+
border-radius: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* ── Status ─────────────────────────────────────────────────────────────── */
|
|
129
|
+
.igd-search-status {
|
|
130
|
+
@include type-style('overline') {
|
|
131
|
+
margin: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
padding: rem(26px);
|
|
135
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
|
|
136
|
+
|
|
137
|
+
&:empty {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.igd-search-query {
|
|
143
|
+
color: var(--igd-accent);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* ── Results ─────────────────────────────────────────────────────────────── */
|
|
147
|
+
.igd-search-results {
|
|
148
|
+
--background: transparent;
|
|
149
|
+
|
|
150
|
+
gap: rem(16px);
|
|
151
|
+
|
|
152
|
+
igc-list-item {
|
|
153
|
+
--item-border-radius: 0;
|
|
154
|
+
--item-background: transparent;
|
|
155
|
+
--item-background-hover: light-dark(var(--ig-gray-100), var(--ig-gray-50));
|
|
156
|
+
--item-background-focus: transparent;
|
|
157
|
+
--item-background-active: transparent;
|
|
158
|
+
--border-color: transparent;
|
|
159
|
+
|
|
160
|
+
padding: 0;
|
|
161
|
+
gap: 0;
|
|
162
|
+
|
|
163
|
+
&:focus-within {
|
|
164
|
+
--item-background-hover: transparent;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&:last-of-type {
|
|
169
|
+
margin-block-end: 0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.igd-search-results {
|
|
174
|
+
margin-block-end: rem(26px);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.igd-search-results,
|
|
178
|
+
.igd-search-results--flat {
|
|
179
|
+
overflow-y: auto;
|
|
180
|
+
flex: 1 1 auto;
|
|
181
|
+
min-height: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.igd-search-results--flat {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
padding-bottom: 1rem;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.igd-search-link {
|
|
191
|
+
display: grid;
|
|
192
|
+
align-items: center;
|
|
193
|
+
padding: rem(8px) rem(16px);
|
|
194
|
+
gap: rem(4px);
|
|
195
|
+
text-decoration: none;
|
|
196
|
+
color: inherit;
|
|
197
|
+
|
|
198
|
+
&:focus-visible {
|
|
199
|
+
outline: transparent;
|
|
200
|
+
box-shadow: inset 0 0 0 rem(1px) var(--igd-accent);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.igd-search-result-title {
|
|
205
|
+
@include type-style('body-2') {
|
|
206
|
+
margin: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
|
|
210
|
+
|
|
211
|
+
mark {
|
|
212
|
+
background: transparent;
|
|
213
|
+
color: var(--igd-accent);
|
|
214
|
+
padding: 0 1px;
|
|
215
|
+
border-radius: 2px;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.igd-search-kind {
|
|
220
|
+
@include type-style('caption') {
|
|
221
|
+
margin-block: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
margin-inline-end: rem(8px);
|
|
225
|
+
padding: rem(4px);
|
|
226
|
+
border-radius: rem(2px);
|
|
227
|
+
color: light-dark(var(--ig-gray-700), var(--ig-gray-500));
|
|
228
|
+
background: light-dark(var(--ig-gray-200), #112031);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* ── Category header (above each result list in the All tab) ─────────────── */
|
|
232
|
+
.igd-search-category-header {
|
|
233
|
+
@include type-style('detail-2', false) {
|
|
234
|
+
margin: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
display: inline-block;
|
|
238
|
+
color: light-dark(var(--ig-gray-900), var(--ig-gray-300));
|
|
239
|
+
margin-block-end: rem(16px);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.igd-search-more-btn {
|
|
243
|
+
--focus-visible-border-color: transparent;
|
|
244
|
+
--border-radius: #{rem(4px)};
|
|
245
|
+
--foreground: light-dark(var(--ig-gray-700), var(--ig-gray-500));
|
|
246
|
+
--icon-color: var(--igd-accent);
|
|
247
|
+
--icon-color-hover: var(--igd-accent);
|
|
248
|
+
--hover-background: transparent;
|
|
249
|
+
--hover-foreground: var(--igd-accent);
|
|
250
|
+
--focus-background: transparent;
|
|
251
|
+
--focus-foreground: var(--igd-accent);
|
|
252
|
+
--active-foreground: transparent;
|
|
253
|
+
--focus-hover-background: var(--igd-accent);
|
|
254
|
+
--focus-hover-foreground: transparent;
|
|
255
|
+
--focus-visible-foreground: var(--igd-accent);
|
|
256
|
+
--focus-visible-background: transparent;
|
|
257
|
+
|
|
258
|
+
&::part(base) {
|
|
259
|
+
@include type-style('detail-2', false) {
|
|
260
|
+
margin: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&:hover,
|
|
264
|
+
&:focus-visible {
|
|
265
|
+
text-decoration: underline;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
display: flex;
|
|
270
|
+
justify-self: center;
|
|
271
|
+
margin-block-end: rem(36px);
|
|
272
|
+
}
|
|
273
|
+
|
|
@@ -42,15 +42,22 @@
|
|
|
42
42
|
--igd-members-spacing: var(--igd-border-radius) #{rem(16px)};
|
|
43
43
|
|
|
44
44
|
--igd-page-layout-grid: #{minmax(rem(300px), rem(400px)) 1fr};
|
|
45
|
+
|
|
46
|
+
@media (max-width: #{$bp-sidebar-max}) {
|
|
47
|
+
--igd-page-layout-grid: #{minmax(rem(180px), rem(260px)) 1fr};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (max-width: #{$bp-desktop-min}) {
|
|
51
|
+
--igd-page-padding: #{rem(36px)};
|
|
52
|
+
}
|
|
53
|
+
|
|
45
54
|
--igd-page-padding: #{rem(50px)};
|
|
46
55
|
|
|
47
56
|
// Padding
|
|
48
57
|
--igd-padding-sm: #{rem(16px)};
|
|
49
58
|
--igd-padding-md: #{rem(24px)};
|
|
50
59
|
--igd-padding-lg: #{rem(32px)};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[data-theme] {
|
|
60
|
+
|
|
54
61
|
--igd-updated-bg: light-dark(#EAF6FE, #0D1E38);
|
|
55
62
|
--igd-updated-color: light-dark(#1151C1, #6B9FE8);
|
|
56
63
|
--igd-updated-border: light-dark(#BAE2F5, #1E3D6A);
|
|
@@ -67,5 +74,53 @@
|
|
|
67
74
|
--igd-premium-bg: light-dark(#F3EEFF, #1E1030);
|
|
68
75
|
--igd-premium-border: light-dark(#D4B8FF, #5A3A99);
|
|
69
76
|
|
|
77
|
+
--igd-opensource-color: light-dark(#535353, #B5B5B5);
|
|
78
|
+
--igd-opensource-bg: light-dark(#ECECEC, #383737);
|
|
79
|
+
--igd-opensource-border: light-dark(#CACACA, #6A6A6A);
|
|
80
|
+
|
|
70
81
|
--igd-expantion-panel-color: light-dark(var(--ig-secondary-500), var(--ig-secondary-500));
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
// ASIDE MDX
|
|
85
|
+
--igd-aside-padding: #{rem(16px)};
|
|
86
|
+
--igd-aside-row-gap: #{rem(16px)};
|
|
87
|
+
--igd-aside-column-gap: #{rem(16px)};
|
|
88
|
+
--igd-aside-border-width: #{rem(2px)};
|
|
89
|
+
--igd-aside-border-radius: 0;
|
|
90
|
+
--igd-aside-margin-bottom: #{rem(26px)};
|
|
91
|
+
--igd-aside-border-style: solid;
|
|
92
|
+
|
|
93
|
+
--igd-aside-info-title: light-dark(var(--ig-primary-700), var(--ig-primary-400));
|
|
94
|
+
--igd-aside-info-content: light-dark(var(--ig-primary-800), var(--ig-primary-200));
|
|
95
|
+
--igd-aside-info-icon: light-dark(var(--ig-primary-700), var(--ig-primary-400));
|
|
96
|
+
--igd-aside-info-bg: transparent;
|
|
97
|
+
--igd-aside-info-border: light-dark(var(--ig-primary-700), var(--ig-primary-400));
|
|
98
|
+
--igd-aside-info-code-background: light-dark(var(--ig-primary-100), var(--ig-primary-900));
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
--igd-aside-warning-title: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
|
|
102
|
+
--igd-aside-warning-content: light-dark(var(--ig-secondary-700), var(--ig-secondary-300));
|
|
103
|
+
--igd-aside-warning-icon: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
|
|
104
|
+
--igd-aside-warning-bg: transparent;
|
|
105
|
+
--igd-aside-warning-border: light-dark(var(--ig-secondary-700), var(--ig-secondary-400));
|
|
106
|
+
--igd-aside-warning-code-background: light-dark(var(--ig-secondary-100), var(--ig-secondary-900));
|
|
107
|
+
|
|
108
|
+
--igd-aside-note-title: light-dark(var(--ig-gray-700), var(--ig-gray-400));
|
|
109
|
+
--igd-aside-note-content: light-dark(var(--ig-gray-800), var(--ig-gray-200));
|
|
110
|
+
--igd-aside-note-icon: light-dark(var(--ig-gray-700), var(--ig-gray-400));
|
|
111
|
+
--igd-aside-note-bg: transparent;
|
|
112
|
+
--igd-aside-note-border: light-dark(var(--ig-gray-700), var(--ig-gray-400));
|
|
113
|
+
--igd-aside-note-code-background: light-dark(var(--ig-sgray-100), var(--ig-secondary-900));
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
// TABLES
|
|
117
|
+
--igd-table-max-height: #{rem(350px)};
|
|
118
|
+
--igd-table-pinned-border-size: #{rem(1px)};
|
|
119
|
+
--igd-table-fg: light-dark(var(--ig-gray-900), var(--ig-gray-900));
|
|
120
|
+
--igd-table-bg: var(--igd-layout-sections-bg);
|
|
121
|
+
--igd-tabe-even-row-bg: var(--igd-table-bg);
|
|
122
|
+
--igd-table-border-color: light-dark(var(--ig-gray-200), var(--ig-gray-200));
|
|
123
|
+
|
|
124
|
+
--igd-table-header-bg: var(--igd-layout-sections-bg);
|
|
125
|
+
--igd-table-header-fg: light-dark(var(--ig-gray-900), var(--ig-gray-400));
|
|
71
126
|
}
|
package/src/styles/theme.scss
CHANGED
|
@@ -3,6 +3,27 @@
|
|
|
3
3
|
@use 'igniteui-theming/sass/elevations/presets' as *;
|
|
4
4
|
@use 'global' as *;
|
|
5
5
|
|
|
6
|
+
// Establish the CSS cascade layer order.
|
|
7
|
+
//
|
|
8
|
+
// Bootstrap (v3 / v4) is injected into the page by platform.ts as an @import
|
|
9
|
+
// wrapped in layer(bootstrap). Without this declaration the browser would
|
|
10
|
+
// still create the layer on first encounter, but the ORDER would be undefined
|
|
11
|
+
// relative to our own unlayered rules — meaning Bootstrap could win.
|
|
12
|
+
//
|
|
13
|
+
// By declaring the layer order here (before any Bootstrap stylesheet loads)
|
|
14
|
+
// we guarantee that ANY unlayered rule — all of our ig-theme.scss /
|
|
15
|
+
// DocsLayout.scss styles — wins over everything inside the bootstrap layer,
|
|
16
|
+
// regardless of selector specificity.
|
|
17
|
+
//
|
|
18
|
+
// Rule: lower layers lose to higher layers, and unlayered rules beat all layers.
|
|
19
|
+
@layer bootstrap;
|
|
20
|
+
|
|
21
|
+
// Restore browser default (16px). Bootstrap 3 sets html { font-size: 10px }
|
|
22
|
+
// inside @layer(bootstrap) which would break all rem-based sizing without this.
|
|
23
|
+
html {
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
}
|
|
26
|
+
|
|
6
27
|
// Define font CSS custom properties so components can reference or override them.
|
|
7
28
|
// The actual @font-face rules come from @fontsource-variable (imported in DocsLayout.astro).
|
|
8
29
|
:root {
|
|
@@ -20,11 +41,8 @@
|
|
|
20
41
|
$type-scale: $igd-type-scale
|
|
21
42
|
);
|
|
22
43
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// prefers-reduced-motion respected: browsers override this automatically.
|
|
26
|
-
scroll-behavior: smooth;
|
|
27
|
-
}
|
|
44
|
+
// scroll-behavior is applied via JS (astro:page-load) so it is not active
|
|
45
|
+
// during the browser's initial scroll-position restoration on page refresh.
|
|
28
46
|
|
|
29
47
|
// Scope our brand font to the docs content area only.
|
|
30
48
|
// The IG nav and footer have their own font-family rules in their CDN
|
|
@@ -44,15 +62,66 @@ html {
|
|
|
44
62
|
left: 0;
|
|
45
63
|
}
|
|
46
64
|
|
|
47
|
-
// PREVENT FOUC (Flash of Unstyled Content) for Ignite UI Web Components
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
igc-
|
|
65
|
+
// PREVENT FOUC (Flash of Unstyled Content) for Ignite UI Web Components.
|
|
66
|
+
// The :not(:defined) pseudo-class matches any custom element that has not yet
|
|
67
|
+
// been upgraded by the browser. Using opacity (not display/visibility) keeps
|
|
68
|
+
// the element in the layout flow so there is no shift once it becomes defined.
|
|
69
|
+
:is(
|
|
70
|
+
igc-accordion,
|
|
71
|
+
igc-badge,
|
|
72
|
+
igc-button,
|
|
73
|
+
igc-icon,
|
|
74
|
+
igc-icon-button,
|
|
75
|
+
igc-input,
|
|
76
|
+
igc-select,
|
|
77
|
+
igc-tree,
|
|
78
|
+
igc-tree-item,
|
|
79
|
+
igc-dialog
|
|
80
|
+
):not(:defined) {
|
|
53
81
|
opacity: 0;
|
|
54
82
|
}
|
|
83
|
+
igc-dialog:not(:defined) { display: none; }
|
|
55
84
|
|
|
56
85
|
igc-icon {
|
|
57
86
|
padding: 0;
|
|
58
87
|
}
|
|
88
|
+
|
|
89
|
+
// Global scrollbar styling.
|
|
90
|
+
// scrollbar-width / scrollbar-color: standards-based (Firefox, Chrome 121+).
|
|
91
|
+
// ::-webkit-scrollbar-*: legacy WebKit/Blink fallback (older Chrome/Safari/Edge).
|
|
92
|
+
//
|
|
93
|
+
// ::-webkit-scrollbar pseudo-elements don't reliably inherit CSS custom properties
|
|
94
|
+
// when applied to the document-level scrollbar. We therefore add explicit scoped
|
|
95
|
+
// overrides for dark mode below in addition to the variable-based defaults.
|
|
96
|
+
* {
|
|
97
|
+
scrollbar-width: thin;
|
|
98
|
+
scrollbar-color: var(--igd-scrollbar-thumb) var(--igd-scrollbar-track);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
::-webkit-scrollbar {
|
|
102
|
+
width: rem(5px);
|
|
103
|
+
height: rem(5px);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
::-webkit-scrollbar-track {
|
|
107
|
+
background-color: var(--igd-scrollbar-track);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
::-webkit-scrollbar-thumb {
|
|
111
|
+
background-color: var(--igd-scrollbar-thumb);
|
|
112
|
+
border-radius: rem(5px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Explicit dark-mode overrides — bypass CSS variable resolution issues in
|
|
116
|
+
// ::-webkit-scrollbar pseudo-elements.
|
|
117
|
+
// html[data-theme='dark'] targets the document scrollbar (html is the scroller).
|
|
118
|
+
// [data-theme='dark'] ::-webkit-scrollbar-* targets inner scrollable elements.
|
|
119
|
+
html[data-theme='dark']::-webkit-scrollbar-track,
|
|
120
|
+
[data-theme='dark'] ::-webkit-scrollbar-track {
|
|
121
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
html[data-theme='dark']::-webkit-scrollbar-thumb,
|
|
125
|
+
[data-theme='dark'] ::-webkit-scrollbar-thumb {
|
|
126
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
127
|
+
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="-3 -3 30 30">
|
|
2
|
-
<path d="M9.1155 17C8.65517 17 8.27083 16.8458 7.9625 16.5375C7.65417 16.2292 7.5 15.8448 7.5 15.3845V4.6155C7.5 4.15517 7.65417 3.77083 7.9625 3.4625C8.27083 3.15417 8.65517 3 9.1155 3H16.8845C17.3448 3 17.7292 3.15417 18.0375 3.4625C18.3458 3.77083 18.5 4.15517 18.5 4.6155V15.3845C18.5 15.8448 18.3458 16.2292 18.0375 16.5375C17.7292 16.8458 17.3448 17 16.8845 17H9.1155ZM9.1155 16H16.8845C17.0385 16 17.1796 15.9359 17.3077 15.8077C17.4359 15.6796 17.5 15.5385 17.5 15.3845V4.6155C17.5 4.4615 17.4359 4.32042 17.3077 4.19225C17.1796 4.06408 17.0385 4 16.8845 4H9.1155C8.9615 4 8.82042 4.06408 8.69225 4.19225C8.56408 4.32042 8.5 4.4615 8.5 4.6155V15.3845C8.5 15.5385 8.56408 15.6796 8.69225 15.8077C8.82042 15.9359 8.9615 16 9.1155 16ZM6.1155 20C5.65517 20 5.27083 19.8458 4.9625 19.5375C4.65417 19.2292 4.5 18.8449 4.5 18.3848V6.6155H5.5V18.3848C5.5 18.5386 5.56408 18.6796 5.69225 18.8077C5.82042 18.9359 5.9615 19 6.1155 19H14.8845V20H6.1155Z"/>
|
|
3
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="-3 -3 20 20" fill="none"><path d="M2 2l10 10M12 2 2 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
|
package/src/styles/custom.scss
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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.
|
|
14
|
-
@layer bootstrap;
|
|
15
|
-
|
|
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;
|
|
20
|
-
}
|