igniteui-astro-components 0.0.1 → 0.0.3

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.
Files changed (120) hide show
  1. package/README.md +21 -0
  2. package/package.json +3 -1
  3. package/src/assets/icons/angular-logo.svg +38 -0
  4. package/src/assets/icons/arrow-down.svg +3 -0
  5. package/src/assets/icons/arrow.svg +3 -0
  6. package/src/assets/icons/blazor-logo.svg +10 -0
  7. package/src/assets/icons/bullet-poiont.svg +3 -0
  8. package/src/assets/icons/chatGPT,.svg +4 -0
  9. package/src/assets/icons/check-circle.svg +3 -0
  10. package/src/assets/icons/check.svg +3 -0
  11. package/src/assets/icons/cheked.svg +3 -0
  12. package/src/assets/icons/chevron.svg +3 -0
  13. package/src/assets/icons/classes.svg +3 -0
  14. package/src/assets/icons/claude.svg +3 -0
  15. package/src/assets/icons/clear.svg +3 -0
  16. package/src/assets/icons/close.svg +3 -0
  17. package/src/assets/icons/code.svg +3 -0
  18. package/src/assets/icons/collapse.svg +5 -0
  19. package/src/assets/icons/command.svg +3 -0
  20. package/src/assets/icons/copy-clipboard.svg +3 -0
  21. package/src/assets/icons/copy.svg +3 -0
  22. package/src/assets/icons/crown.svg +3 -0
  23. package/src/assets/icons/dot.svg +3 -0
  24. package/src/assets/icons/download.svg +3 -0
  25. package/src/assets/icons/dropdown-indicator-bold.svg +3 -0
  26. package/src/assets/icons/dropdown-indicator.svg +3 -0
  27. package/src/assets/icons/enter-fullscreen.svg +3 -0
  28. package/src/assets/icons/enumerations.svg +3 -0
  29. package/src/assets/icons/exit-fullscreen.svg +3 -0
  30. package/src/assets/icons/expand-all.svg +5 -0
  31. package/src/assets/icons/expand-icon.svg +3 -0
  32. package/src/assets/icons/eye.svg +3 -0
  33. package/src/assets/icons/filter-clear.svg +1 -0
  34. package/src/assets/icons/filter.svg +3 -0
  35. package/src/assets/icons/functions.svg +5 -0
  36. package/src/assets/icons/github-logo.svg +3 -0
  37. package/src/assets/icons/hamburger-menu.svg +3 -0
  38. package/src/assets/icons/info.svg +3 -0
  39. package/src/assets/icons/interfaces.svg +3 -0
  40. package/src/assets/icons/link-blank.svg +3 -0
  41. package/src/assets/icons/link.svg +3 -0
  42. package/src/assets/icons/moon.svg +3 -0
  43. package/src/assets/icons/note.svg +3 -0
  44. package/src/assets/icons/open-link-blank.svg +3 -0
  45. package/src/assets/icons/page.svg +3 -0
  46. package/src/assets/icons/palette,.svg +3 -0
  47. package/src/assets/icons/pen.svg +3 -0
  48. package/src/assets/icons/play-circle.svg +10 -0
  49. package/src/assets/icons/premium.svg +3 -0
  50. package/src/assets/icons/react.svg +4 -0
  51. package/src/assets/icons/refresh.svg +3 -0
  52. package/src/assets/icons/rocket.svg +10 -0
  53. package/src/assets/icons/search.svg +10 -0
  54. package/src/assets/icons/shine.svg +3 -0
  55. package/src/assets/icons/show-more.svg +3 -0
  56. package/src/assets/icons/source-code.svg +3 -0
  57. package/src/assets/icons/start.svg +3 -0
  58. package/src/assets/icons/sub-directory-indicator.svg +3 -0
  59. package/src/assets/icons/sun.svg +3 -0
  60. package/src/assets/icons/system-theme.svg +3 -0
  61. package/src/assets/icons/system.svg +3 -0
  62. package/src/assets/icons/type-alias.svg +3 -0
  63. package/src/assets/icons/variables.svg +3 -0
  64. package/src/assets/icons/warning.svg +3 -0
  65. package/src/assets/icons/web-component-logo.svg +23 -0
  66. package/src/assets/icons/wrap-text.svg +3 -0
  67. package/src/assets/ig-logo.svg +33 -0
  68. package/src/assets/illustrations/classes.svg +3 -0
  69. package/src/assets/illustrations/enumerations.svg +3 -0
  70. package/src/assets/illustrations/functions.svg +5 -0
  71. package/src/assets/illustrations/interfaces.svg +3 -0
  72. package/src/assets/illustrations/type-alias.svg +3 -0
  73. package/src/assets/illustrations/variables.svg +3 -0
  74. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +57 -0
  75. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +51 -0
  76. package/src/components/DocsBreadcrumb/README.md +66 -0
  77. package/src/components/DocsSidebar/DocsSidebar.astro +28 -58
  78. package/src/components/DocsSidebar/DocsSidebar.scss +18 -0
  79. package/src/components/DocsSidebar/SidebarFilterInput.astro +22 -57
  80. package/src/components/DocsSidebar/SidebarFilterInput.scss +69 -0
  81. package/src/components/DocsSidebar/SidebarLabel.astro +2 -7
  82. package/src/components/DocsSubHeader/DocsSubHeader.astro +60 -248
  83. package/src/components/DocsSubHeader/DocsSubHeader.scss +69 -0
  84. package/src/components/DocsSubHeader/README.md +6 -37
  85. package/src/components/DocsToc/DocsToc.astro +38 -83
  86. package/src/components/DocsToc/DocsToc.scss +33 -0
  87. package/src/components/DocsTree/DocsTree.astro +16 -2
  88. package/src/components/DocsTree/DocsTreeItem.astro +21 -16
  89. package/src/components/DocsTree/docs-tree.scss +185 -0
  90. package/src/components/GlobalFooter/GlobalFooter.astro +1 -1
  91. package/src/components/GlobalFooter/GlobalFooter.module.scss +1 -0
  92. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +217 -196
  93. package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +2 -47
  94. package/src/components/MobileSidebarToggle/MobileSidebarToggle.scss +0 -0
  95. package/src/components/Search/Search.astro +14 -103
  96. package/src/components/Search/Search.scss +50 -0
  97. package/src/components/ThemingWidget/ThemingWidget.astro +1 -5
  98. package/src/components/ThemingWidget/ThemingWidget.scss +3 -0
  99. package/src/components/mdx/DocsAside/DocsAside.astro +15 -47
  100. package/src/components/mdx/DocsAside/DocsAside.scss +36 -0
  101. package/src/components/mdx/DocsAside/README.md +6 -6
  102. package/src/components/mdx/Sample/Sample.astro +1 -32
  103. package/src/components/mdx/Sample/Sample.scss +32 -0
  104. package/src/integration.ts +9 -0
  105. package/src/layouts/DocsLayout/DocsLayout.astro +88 -204
  106. package/src/layouts/DocsLayout/DocsLayout.scss +125 -0
  107. package/src/scripts/icon-registry.ts +57 -0
  108. package/src/styles/custom.scss +17 -251
  109. package/src/styles/global/_breakpoints.scss +48 -0
  110. package/src/styles/global/_code-blocks.scss +77 -0
  111. package/src/styles/global/_component-themes.scss +68 -0
  112. package/src/styles/global/_index.scss +9 -0
  113. package/src/styles/global/_markdown.scss +120 -0
  114. package/src/styles/global/_members.scss +85 -0
  115. package/src/styles/global/_palette.scss +131 -0
  116. package/src/styles/global/_type-scale.scss +182 -0
  117. package/src/styles/global/_variables.scss +71 -0
  118. package/src/styles/theme.scss +58 -0
  119. package/src/components/DocsTree/docs-tree.css +0 -227
  120. package/src/styles/ig-theme.scss +0 -43
@@ -1,3 +1,5 @@
1
+ @use 'igniteui-theming/sass/typography/functions' as *;
2
+
1
3
  /*
2
4
  * GlobalNavBar — CSS Module styles
3
5
  *
@@ -16,200 +18,219 @@
16
18
  */
17
19
 
18
20
  .navBar {
19
- --nav-bg: #222;
20
- --nav-color: #fff;
21
- --nav-border: #333;
22
- --nav-link: #fff;
23
- --nav-link-hover: #eee;
24
- --nav-btn-bg: #0099ff;
25
- --nav-btn-color: #fff;
26
- --nav-btn-border: #0099ff;
27
- --nav-btn-hover-color: #0099ff;
28
- --nav-btn-hover-bg: transparent;
29
- --nav-height: auto;
30
- background: var(--nav-bg, inherit);
31
- color: var(--nav-color, inherit);
32
-
33
- // Element selectors are never hashed by CSS Modules — no :global() needed.
34
- header {
35
- position: fixed;
36
- top: 0;
37
- left: 0;
38
- right: 0;
39
- z-index: 1000;
40
- font-family: aktiv-grotesk, sans-serif;
41
-
42
- :global(.navbar) {
43
- border-width: 0 0 1px;
44
- border-radius: 0;
45
- }
46
- }
47
-
48
- // Class names below come from the injected headerHtml / static fallback markup.
49
- // CSS Modules would hash them, breaking the match — :global() prevents that.
50
- :global(.navbar-inverse) {
51
- background: var(--nav-bg, inherit);
52
- min-height: 86px;
53
- }
54
-
55
- :global(.fixed_header) {
56
- position: fixed;
57
- width: 100%;
58
- padding-bottom: 10px;
59
- padding-top: 10px;
60
- margin: 0;
61
- top: 0;
62
- z-index: 9999;
63
- left: 0;
64
- background-color: #fff;
65
- }
66
-
67
- :global(.navbar) {
68
- margin-bottom: 0;
69
- border-bottom-color: var(--nav-border, #333);
70
- border: inset;
71
- }
72
-
73
- :global(.navbar-brand) {
74
- display: flex;
75
- align-items: center;
76
- font-family: 'aktiv-grotesk', sans-serif;
77
- color: var(--nav-color, #fff);
78
- font-size: 18px;
79
- padding: 0;
80
-
81
- span {
82
- color: var(--nav-color, #fff);
83
- }
84
- }
85
-
86
- :global(.navbar-wrapper) {
87
- display: flex;
88
- justify-content: space-between;
89
- align-items: center;
90
- height: var(--nav-height, auto);
91
- }
92
-
93
- :global(.navbar) :global(.navbar-nav) {
94
- display: inline-block;
95
- }
96
-
97
- :global(.navbar) :global(.nav.navbar-nav) {
98
- width: 100%;
99
- padding: 16px;
100
- font-size: 0.75rem;
101
- font-weight: 400;
102
-
103
- li > a {
104
- transition: all 0.25s ease-in-out;
105
- text-align: center;
106
- color: var(--nav-link, #fff);
107
-
108
- &:hover,
109
- &:focus {
110
- color: var(--nav-link-hover, #eee);
111
- background-color: transparent;
112
- }
113
- }
114
-
115
- :global(li.active) > a {
116
- background-color: transparent !important;
117
- font-weight: 500;
118
- }
119
-
120
- :global(li.nav__cta) > a {
121
- color: var(--nav-btn-color, #fff);
122
- background-color: var(--nav-btn-bg, #0099ff);
123
- text-transform: uppercase;
124
- font-weight: bold;
125
- font-size: inherit;
126
- margin-left: 10px;
127
- padding: 0.5em 1.5em;
128
- border: 1px solid var(--nav-btn-border, #0099ff);
129
- border-radius: 0;
130
- transition: all 250ms ease-in-out;
131
- white-space: nowrap;
132
-
133
- &:hover,
134
- &:focus {
135
- color: var(--nav-btn-hover-color, #0099ff);
136
- background-color: var(--nav-btn-hover-bg, transparent);
137
- border-color: var(--nav-btn-border, #0099ff);
138
- }
139
- }
140
- }
141
-
142
- :global(.navbar-frameworks) {
143
- display: flex;
144
- align-items: center;
145
-
146
- a {
147
- padding-right: 8px;
148
- color: #9d9d9d;
149
- font-size: 0.875rem;
150
- text-decoration: none;
151
-
152
- &:hover,
153
- &:focus {
154
- color: #eee;
155
- background-color: transparent;
156
- text-decoration: none;
157
- }
158
- }
159
- }
160
-
161
- :global(.docfx-nav-header) {
162
- display: flex;
163
- justify-content: space-between;
164
- }
165
-
166
- :global(.logo-breadcrumb) {
167
- display: flex;
168
- align-items: center;
169
- }
170
-
171
- :global(.globalnav__logo) { max-height: 48px; }
172
- :global(.globalnav__menu) { list-style: none; margin: 0; padding: 0; }
173
-
174
- @media only screen and (min-width: 961px) {
175
- [data-mega-menu="true"] :global(.globalnav__primary) :global(.globalnav__wrapper) {
176
- position: static;
177
- }
178
-
179
- :global(.globalnav__wrapper) {
180
- max-width: 100%;
181
- margin: auto 15px;
182
- padding: 0;
183
- }
184
-
185
- :global(.navbar) :global(.nav.navbar-nav) {
186
- display: flex;
187
- align-items: center;
188
- padding: 0;
189
- width: auto;
190
- }
191
- }
192
-
193
- @media only screen and (max-width: 1200px) {
194
- :global(.navbar-frameworks) { display: none; }
195
- }
196
-
197
- @media only screen and (max-width: 965px) {
198
- :global(.navbar-frameworks) { display: none; }
199
- }
200
-
201
- @media only screen and (max-width: 767px) {
202
- :global(.navbar-frameworks) {
203
- display: flex;
204
- justify-content: center;
205
- padding-top: 10px;
206
-
207
- a { font-size: 1rem !important; }
208
- }
209
-
210
- :global(.navbar) :global(.nav.navbar-nav) :global(li.nav__cta) > a {
211
- margin-left: 0;
212
- margin-top: 10px;
213
- }
214
- }
21
+ --nav-bg: #222;
22
+ --nav-color: #fff;
23
+ --nav-border: #333;
24
+ --nav-link: #fff;
25
+ --nav-link-hover: #eee;
26
+ --nav-btn-bg: #09f;
27
+ --nav-btn-color: #fff;
28
+ --nav-btn-border: #09f;
29
+ --nav-btn-hover-color: #09f;
30
+ --nav-btn-hover-bg: transparent;
31
+ --nav-height: auto;
32
+
33
+ background: var(--igd-layout-sections-bg);
34
+ color: var(--nav-color, inherit);
35
+
36
+ // Element selectors are never hashed by CSS Modules — no :global() needed.
37
+ header {
38
+ position: static;
39
+ top: 0;
40
+ left: 0;
41
+ right: 0;
42
+ z-index: 1000;
43
+ font-family: aktiv-grotesk, sans-serif;
44
+
45
+ :global(.navbar) {
46
+ border-width: 0 0 1px;
47
+ border-radius: 0;
48
+ }
49
+ }
50
+
51
+ // Class names below come from the injected headerHtml / static fallback markup.
52
+ // CSS Modules would hash them, breaking the match — :global() prevents that.
53
+ :global(.globalnav__primary) {
54
+ padding-inline: rem(17px);
55
+ border-bottom: var(--igd-app-outline) !important;
56
+ }
57
+
58
+ :global(.navbar-inverse) {
59
+ background: var(--nav-bg, inherit);
60
+ min-height: 86px;
61
+ }
62
+
63
+ :global(.fixed_header) {
64
+ position: fixed;
65
+ width: 100%;
66
+ padding-bottom: 10px;
67
+ padding-top: 10px;
68
+ margin: 0;
69
+ top: 0;
70
+ z-index: 9999;
71
+ left: 0;
72
+ background-color: #fff;
73
+ }
74
+
75
+ :global(.navbar) {
76
+ margin-bottom: 0;
77
+ border-bottom-color: var(--nav-border, #333);
78
+ border: inset;
79
+ }
80
+
81
+ :global(.navbar-brand) {
82
+ display: flex;
83
+ align-items: center;
84
+ font-family: 'aktiv-grotesk', sans-serif;
85
+ color: var(--nav-color, #fff);
86
+ font-size: 18px;
87
+ padding: 0;
88
+
89
+ span {
90
+ color: var(--nav-color, #fff);
91
+ }
92
+ }
93
+
94
+ :global(.navbar-wrapper) {
95
+ display: flex;
96
+ justify-content: space-between;
97
+ align-items: center;
98
+ height: var(--nav-height, auto);
99
+ }
100
+
101
+ :global(.navbar) :global(.navbar-nav) {
102
+ display: inline-block;
103
+ }
104
+
105
+ :global(.navbar) :global(.nav.navbar-nav) {
106
+ width: 100%;
107
+ padding: 16px;
108
+ font-size: 0.75rem;
109
+ font-weight: 400;
110
+
111
+ li > a {
112
+ transition: all 0.25s ease-in-out;
113
+ text-align: center;
114
+ color: var(--nav-link, #fff);
115
+
116
+ &:hover,
117
+ &:focus {
118
+ color: var(--nav-link-hover, #eee);
119
+ background-color: transparent;
120
+ }
121
+ }
122
+
123
+ :global(li.active) > a {
124
+ background-color: transparent !important;
125
+ font-weight: 500;
126
+ }
127
+
128
+ :global(li.nav__cta) > a {
129
+ color: var(--nav-btn-color, #fff);
130
+ background-color: var(--nav-btn-bg, #09f);
131
+ text-transform: uppercase;
132
+ font-weight: bold;
133
+ font-size: inherit;
134
+ margin-left: 10px;
135
+ padding: 0.5em 1.5em;
136
+ border: 1px solid var(--nav-btn-border, #09f);
137
+ border-radius: 0;
138
+ transition: all 250ms ease-in-out;
139
+ white-space: nowrap;
140
+
141
+ &:hover,
142
+ &:focus {
143
+ color: var(--nav-btn-hover-color, #09f);
144
+ background-color: var(--nav-btn-hover-bg, transparent);
145
+ border-color: var(--nav-btn-border, #09f);
146
+ }
147
+ }
148
+ }
149
+
150
+ :global(.navbar-frameworks) {
151
+ display: flex;
152
+ align-items: center;
153
+
154
+ a {
155
+ padding-right: 8px;
156
+ color: #9d9d9d;
157
+ font-size: 0.875rem;
158
+ text-decoration: none;
159
+
160
+ &:hover,
161
+ &:focus {
162
+ color: #eee;
163
+ background-color: transparent;
164
+ text-decoration: none;
165
+ }
166
+ }
167
+ }
168
+
169
+ :global(.docfx-nav-header) {
170
+ display: flex;
171
+ justify-content: space-between;
172
+ }
173
+
174
+ :global(.logo-breadcrumb) {
175
+ display: flex;
176
+ align-items: center;
177
+ }
178
+
179
+ :global(.globalnav__logo) {
180
+ max-height: 48px;
181
+ }
182
+
183
+ :global(.globalnav__menu) {
184
+ list-style: none;
185
+ margin: 0;
186
+ padding: 0;
187
+ }
188
+
189
+ @media only screen and (min-width: 961px) {
190
+ [data-mega-menu='true'] :global(.globalnav__primary) :global(.globalnav__wrapper) {
191
+ position: static;
192
+ }
193
+
194
+ :global(.globalnav__wrapper) {
195
+ max-width: 100%;
196
+ margin: auto 15px;
197
+ padding: 0;
198
+ }
199
+
200
+ :global(.navbar) :global(.nav.navbar-nav) {
201
+ display: flex;
202
+ align-items: center;
203
+ padding: 0;
204
+ width: auto;
205
+ }
206
+ }
207
+
208
+ @media only screen and (max-width: 1200px) {
209
+ :global(.navbar-frameworks) {
210
+ display: none;
211
+ }
212
+ }
213
+
214
+ @media only screen and (max-width: 965px) {
215
+ :global(.navbar-frameworks) {
216
+ display: none;
217
+ }
218
+ }
219
+
220
+ @media only screen and (max-width: 767px) {
221
+ :global(.navbar-frameworks) {
222
+ display: flex;
223
+ justify-content: center;
224
+ padding-top: 10px;
225
+
226
+ a {
227
+ font-size: 1rem !important;
228
+ }
229
+ }
230
+
231
+ :global(.navbar) :global(.nav.navbar-nav) :global(li.nav__cta) > a {
232
+ margin-left: 0;
233
+ margin-top: 10px;
234
+ }
235
+ }
215
236
  }
@@ -6,6 +6,8 @@
6
6
  * Props:
7
7
  * label – visible button text (e.g. group name). Default: 'Components List'.
8
8
  */
9
+ import './MobileSidebarToggle.scss';
10
+
9
11
  interface Props {
10
12
  label?: string;
11
13
  }
@@ -63,50 +65,3 @@ const { label = "Components List" } = Astro.props;
63
65
  });
64
66
  </script>
65
67
 
66
- <style is:global>
67
- .mobile-sidebar-toggle {
68
- position: fixed;
69
- top: var(--sl-nav-height);
70
- inset-inline-start: 0;
71
- z-index: calc(var(--sl-z-index-navbar) - 1);
72
- display: flex;
73
- align-items: center;
74
- justify-content: space-between;
75
- width: 100%;
76
- height: var(--docs-mobile-toggle-height);
77
- padding: 0 var(--sl-sidebar-pad-x, 1rem);
78
- background: var(--sl-color-bg-sidebar);
79
- border: none;
80
- border-bottom: 1px solid var(--sl-color-hairline-shade);
81
- cursor: pointer;
82
- color: var(--sl-color-text-accent);
83
- font-size: 0.7rem;
84
- font-weight: 700;
85
- letter-spacing: 0.08em;
86
- text-transform: uppercase;
87
- }
88
-
89
- .mobile-sidebar-toggle_chevron {
90
- flex-shrink: 0;
91
- transition: transform 0.2s ease;
92
- }
93
-
94
- .mobile-sidebar-toggle[aria-expanded="true"]
95
- .mobile-sidebar-toggle_chevron {
96
- transform: rotate(180deg);
97
- }
98
-
99
- [data-mobile-menu-expanded] {
100
- overflow: hidden;
101
- }
102
-
103
- @media (min-width: 50rem) {
104
- .mobile-sidebar-toggle {
105
- display: none;
106
- }
107
-
108
- [data-mobile-menu-expanded] {
109
- overflow: auto;
110
- }
111
- }
112
- </style>
@@ -9,23 +9,26 @@
9
9
  * In development the button is rendered but the dynamic import will 404
10
10
  * gracefully — no errors surface to the user.
11
11
  */
12
+ import './Search.scss';
12
13
  ---
13
14
 
14
15
  <button
15
- id="search-trigger"
16
- class="search-trigger"
17
- aria-label="Search documentation"
18
- title="Search (Ctrl+K)"
16
+ id="search-trigger"
17
+ class="search-trigger"
18
+ aria-label="Search documentation"
19
+ title="Search (Ctrl+K)"
19
20
  >
20
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"
21
- fill="none" stroke="currentColor" stroke-width="2"
22
- stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
23
- <circle cx="11" cy="11" r="8"/>
24
- <line x1="21" y1="21" x2="16.65" y2="16.65"/>
25
- </svg>
26
- <span class="search-trigger-hint">Ctrl+K</span>
21
+ <igc-icon name="search" collection="docs" aria-hidden="true"></igc-icon>
22
+ <span class="search-trigger__label">Search</span>
23
+ <span class="search-trigger__hint"><span>Ctrl</span>K</span>
27
24
  </button>
28
25
 
26
+ <script>
27
+ import { defineComponents, IgcIconComponent } from 'igniteui-webcomponents';
28
+ import '../../scripts/icon-registry';
29
+ defineComponents(IgcIconComponent);
30
+ </script>
31
+
29
32
  <dialog id="search-dialog" class="search-dialog" aria-label="Search">
30
33
  <div class="search-dialog-inner">
31
34
  <div id="search-pagefind"></div>
@@ -128,95 +131,3 @@
128
131
  }
129
132
  </script>
130
133
 
131
- <style is:global>
132
- /* ── Trigger button ─────────────────────────────────────────────────────── */
133
-
134
- .search-trigger {
135
- width: 10rem;
136
- display: flex;
137
- align-items: center;
138
- gap: 0.4rem;
139
- padding: 0.25rem 0.5rem;
140
- border: 1px solid var(--sl-color-hairline-shade);
141
- border-radius: 0.375rem;
142
- background: var(--sl-color-bg);
143
- color: var(--sl-color-gray-3);
144
- font-size: 0.75rem;
145
- cursor: pointer;
146
- white-space: nowrap;
147
- transition: border-color 0.15s, color 0.15s;
148
- }
149
-
150
- .search-trigger:hover {
151
- border-color: var(--sl-color-accent);
152
- color: var(--sl-color-accent);
153
- }
154
-
155
- .search-trigger-hint {
156
- font-size: 0.65rem;
157
- opacity: 0.7;
158
- }
159
-
160
- @media (max-width: 50rem) {
161
- .search-trigger-hint { display: none; }
162
- .search-trigger { border: none; background: none; padding: 0.25rem; }
163
- }
164
-
165
- /* ── Modal dialog ───────────────────────────────────────────────────────── */
166
-
167
- .search-dialog {
168
- position: fixed;
169
- inset: 0;
170
- margin: 5rem auto auto;
171
- width: 90%;
172
- max-width: 40rem;
173
- max-height: calc(100vh - 8rem);
174
- padding: 0;
175
- border: 1px solid var(--sl-color-hairline-shade);
176
- border-radius: 0.5rem;
177
- background: var(--sl-color-bg);
178
- box-shadow: var(--sl-shadow-lg);
179
- overflow: hidden;
180
- }
181
-
182
- .search-dialog::backdrop {
183
- background: rgba(0, 0, 0, 0.5);
184
- backdrop-filter: blur(2px);
185
- }
186
-
187
- .search-dialog-inner {
188
- overflow-y: auto;
189
- max-height: calc(100vh - 8rem);
190
- }
191
-
192
- /* ── Pagefind UI overrides — map to --sl-* tokens ───────────────────────── */
193
-
194
- .search-dialog {
195
- --pagefind-ui-scale: 0.9;
196
- --pagefind-ui-primary: var(--sl-color-accent);
197
- --pagefind-ui-text: var(--sl-color-text);
198
- --pagefind-ui-background: var(--sl-color-bg);
199
- --pagefind-ui-border: var(--sl-color-hairline-shade);
200
- --pagefind-ui-tag: var(--sl-color-bg-sidebar);
201
- --pagefind-ui-border-width: 1px;
202
- --pagefind-ui-border-radius: 0.375rem;
203
- --pagefind-ui-font: inherit;
204
- }
205
-
206
- /* Remove pagefind's built-in margin/padding on the wrapper */
207
- #search-pagefind .pagefind-ui {
208
- padding: 0.75rem;
209
- }
210
-
211
- #search-pagefind .pagefind-ui__search-input {
212
- border-radius: 0.375rem;
213
- }
214
-
215
- #search-pagefind .pagefind-ui__result {
216
- border-top: 1px solid var(--sl-color-hairline);
217
- }
218
-
219
- #search-pagefind .pagefind-ui__result-link {
220
- color: var(--sl-color-accent);
221
- }
222
- </style>
@@ -0,0 +1,50 @@
1
+ @use '../../styles/global/breakpoints' as *;
2
+ @use 'igniteui-theming/sass/typography' as *;
3
+
4
+ .search-trigger {
5
+ --ig-size: 1;
6
+
7
+ width: 100%;
8
+ max-width: rem(330px);
9
+ display: flex;
10
+ height: 100%;
11
+ align-items: center;
12
+ border: none;
13
+ border-inline-end: var(--igd-app-outline);
14
+ padding-inline: var(--igd-padding-sm);
15
+ gap: rem(8px);
16
+ white-space: nowrap;
17
+
18
+ // Override native button styles
19
+ background-color: transparent;
20
+ box-shadow: none;
21
+
22
+ &:focus-visible {
23
+ outline: none;
24
+ box-shadow: inset 0 0 0 1px var(--igd-accent);
25
+ }
26
+ }
27
+
28
+ .search-trigger__hint {
29
+ @include type-style('subtitle-1') {
30
+ margin: 0;
31
+ };
32
+
33
+ display: flex;
34
+ align-items: center;
35
+ margin-inline-start: auto;
36
+
37
+ span {
38
+ @include type-style('detail-1', false) {
39
+ margin: 0;
40
+ };
41
+ }
42
+ }
43
+
44
+ .search-trigger__label {
45
+ @include type-style('body-2') {
46
+ margin: 0;
47
+ };
48
+
49
+ color: var(--ig-gray-600);
50
+ }