@jonsoc/ui 1.1.34 → 1.1.46

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 (201) hide show
  1. package/package.json +5 -1
  2. package/script/colors.txt +234 -234
  3. package/src/assets/favicon/favicon-v3.svg +6 -6
  4. package/src/assets/favicon/favicon.svg +6 -6
  5. package/src/assets/favicon/site.webmanifest +21 -21
  6. package/src/assets/icons/file-types/auto_light.svg +12 -12
  7. package/src/assets/icons/file-types/cursor.svg +1 -1
  8. package/src/assets/icons/file-types/cursor_light.svg +1 -1
  9. package/src/assets/icons/file-types/drone_light.svg +4 -4
  10. package/src/assets/icons/file-types/folder-admin-open.svg +6 -6
  11. package/src/assets/icons/file-types/folder-admin.svg +6 -6
  12. package/src/assets/icons/file-types/folder-circleci-open.svg +7 -7
  13. package/src/assets/icons/file-types/folder-circleci.svg +7 -7
  14. package/src/assets/icons/file-types/folder-flow-open.svg +6 -6
  15. package/src/assets/icons/file-types/folder-flow.svg +6 -6
  16. package/src/assets/icons/file-types/folder-gh-workflows-open.svg +6 -6
  17. package/src/assets/icons/file-types/folder-gh-workflows.svg +6 -6
  18. package/src/assets/icons/file-types/folder-github-open.svg +6 -6
  19. package/src/assets/icons/file-types/folder-github.svg +6 -6
  20. package/src/assets/icons/file-types/folder-intellij-open.svg +39 -39
  21. package/src/assets/icons/file-types/folder-intellij.svg +39 -39
  22. package/src/assets/icons/file-types/folder-macos-open.svg +6 -6
  23. package/src/assets/icons/file-types/folder-macos.svg +6 -6
  24. package/src/assets/icons/file-types/folder-next-open.svg +6 -6
  25. package/src/assets/icons/file-types/folder-next.svg +6 -6
  26. package/src/assets/icons/file-types/folder-nuxt-open.svg +6 -6
  27. package/src/assets/icons/file-types/folder-nuxt.svg +6 -6
  28. package/src/assets/icons/file-types/folder-open.svg +5 -5
  29. package/src/assets/icons/file-types/folder-scripts-open.svg +6 -6
  30. package/src/assets/icons/file-types/folder-scripts.svg +6 -6
  31. package/src/assets/icons/file-types/folder-target-open.svg +10 -10
  32. package/src/assets/icons/file-types/folder-target.svg +10 -10
  33. package/src/assets/icons/file-types/folder-turborepo-open.svg +15 -15
  34. package/src/assets/icons/file-types/folder-turborepo.svg +15 -15
  35. package/src/assets/icons/file-types/folder-vercel-open.svg +5 -5
  36. package/src/assets/icons/file-types/folder-vercel.svg +5 -5
  37. package/src/assets/icons/file-types/folder.svg +5 -5
  38. package/src/assets/icons/file-types/go_gopher.svg +35 -35
  39. package/src/assets/icons/file-types/nano-staged_light.svg +4 -4
  40. package/src/assets/icons/file-types/opa.svg +9 -9
  41. package/src/assets/icons/file-types/quarto.svg +5 -5
  42. package/src/assets/icons/file-types/rome.svg +6 -6
  43. package/src/assets/icons/file-types/stitches_light.svg +10 -10
  44. package/src/assets/icons/file-types/stylelint_light.svg +13 -13
  45. package/src/assets/icons/file-types/systemd.svg +0 -0
  46. package/src/assets/icons/file-types/systemd_light.svg +0 -0
  47. package/src/assets/icons/file-types/unocss.svg +5 -5
  48. package/src/assets/icons/file-types/vlang.svg +6 -6
  49. package/src/assets/icons/provider/abacus.svg +14 -14
  50. package/src/assets/icons/provider/aihubmix.svg +3 -3
  51. package/src/assets/icons/provider/alibaba-cn.svg +3 -3
  52. package/src/assets/icons/provider/alibaba.svg +3 -3
  53. package/src/assets/icons/provider/amazon-bedrock.svg +3 -3
  54. package/src/assets/icons/provider/anthropic.svg +2 -2
  55. package/src/assets/icons/provider/azure-cognitive-services.svg +24 -24
  56. package/src/assets/icons/provider/azure.svg +3 -3
  57. package/src/assets/icons/provider/bailing.svg +3 -3
  58. package/src/assets/icons/provider/baseten.svg +3 -3
  59. package/src/assets/icons/provider/cerebras.svg +4 -4
  60. package/src/assets/icons/provider/chutes.svg +24 -24
  61. package/src/assets/icons/provider/cloudflare-ai-gateway.svg +4 -4
  62. package/src/assets/icons/provider/cloudflare-workers-ai.svg +4 -4
  63. package/src/assets/icons/provider/cohere.svg +5 -5
  64. package/src/assets/icons/provider/cortecs.svg +24 -24
  65. package/src/assets/icons/provider/deepinfra.svg +4 -4
  66. package/src/assets/icons/provider/deepseek.svg +3 -3
  67. package/src/assets/icons/provider/fastrouter.svg +3 -3
  68. package/src/assets/icons/provider/fireworks-ai.svg +3 -3
  69. package/src/assets/icons/provider/friendli.svg +3 -3
  70. package/src/assets/icons/provider/github-copilot.svg +3 -3
  71. package/src/assets/icons/provider/github-models.svg +3 -3
  72. package/src/assets/icons/provider/google-vertex-anthropic.svg +24 -24
  73. package/src/assets/icons/provider/google-vertex.svg +10 -10
  74. package/src/assets/icons/provider/google.svg +3 -3
  75. package/src/assets/icons/provider/groq.svg +3 -3
  76. package/src/assets/icons/provider/helicone.svg +6 -6
  77. package/src/assets/icons/provider/huggingface.svg +3 -3
  78. package/src/assets/icons/provider/iflowcn.svg +3 -3
  79. package/src/assets/icons/provider/inception.svg +4 -4
  80. package/src/assets/icons/provider/inference.svg +3 -3
  81. package/src/assets/icons/provider/io-net.svg +5 -5
  82. package/src/assets/icons/provider/kimi-for-coding.svg +3 -3
  83. package/src/assets/icons/provider/llama.svg +3 -3
  84. package/src/assets/icons/provider/lmstudio.svg +24 -24
  85. package/src/assets/icons/provider/lucidquery.svg +3 -3
  86. package/src/assets/icons/provider/minimax-cn.svg +3 -3
  87. package/src/assets/icons/provider/minimax.svg +3 -3
  88. package/src/assets/icons/provider/mistral.svg +3 -3
  89. package/src/assets/icons/provider/modelscope.svg +5 -5
  90. package/src/assets/icons/provider/moonshotai-cn.svg +3 -3
  91. package/src/assets/icons/provider/moonshotai.svg +3 -3
  92. package/src/assets/icons/provider/morph.svg +24 -24
  93. package/src/assets/icons/provider/nano-gpt.svg +2 -2
  94. package/src/assets/icons/provider/nebius.svg +4 -4
  95. package/src/assets/icons/provider/nvidia.svg +3 -3
  96. package/src/assets/icons/provider/ollama-cloud.svg +7 -7
  97. package/src/assets/icons/provider/openai.svg +3 -3
  98. package/src/assets/icons/provider/opencode.svg +4 -4
  99. package/src/assets/icons/provider/openrouter.svg +8 -8
  100. package/src/assets/icons/provider/ovhcloud.svg +3 -3
  101. package/src/assets/icons/provider/perplexity.svg +3 -3
  102. package/src/assets/icons/provider/poe.svg +7 -7
  103. package/src/assets/icons/provider/requesty.svg +24 -24
  104. package/src/assets/icons/provider/sap-ai-core.svg +24 -24
  105. package/src/assets/icons/provider/scaleway.svg +5 -5
  106. package/src/assets/icons/provider/siliconflow-cn.svg +3 -3
  107. package/src/assets/icons/provider/siliconflow.svg +3 -3
  108. package/src/assets/icons/provider/submodel.svg +3 -3
  109. package/src/assets/icons/provider/synthetic.svg +24 -24
  110. package/src/assets/icons/provider/togetherai.svg +4 -4
  111. package/src/assets/icons/provider/upstage.svg +24 -24
  112. package/src/assets/icons/provider/v0.svg +3 -3
  113. package/src/assets/icons/provider/venice.svg +4 -4
  114. package/src/assets/icons/provider/vercel.svg +3 -3
  115. package/src/assets/icons/provider/vultr.svg +6 -6
  116. package/src/assets/icons/provider/wandb.svg +24 -24
  117. package/src/assets/icons/provider/xai.svg +3 -3
  118. package/src/assets/icons/provider/xiaomi.svg +3 -3
  119. package/src/assets/icons/provider/zai-coding-plan.svg +3 -3
  120. package/src/assets/icons/provider/zai.svg +3 -3
  121. package/src/assets/icons/provider/zenmux.svg +3 -3
  122. package/src/assets/icons/provider/zhipuai-coding-plan.svg +3 -3
  123. package/src/assets/icons/provider/zhipuai.svg +3 -3
  124. package/src/components/accordion.css +98 -98
  125. package/src/components/avatar.css +41 -41
  126. package/src/components/basic-tool.css +97 -97
  127. package/src/components/button.css +165 -165
  128. package/src/components/card.css +29 -29
  129. package/src/components/checkbox.css +121 -121
  130. package/src/components/code.css +4 -4
  131. package/src/components/collapsible.css +97 -97
  132. package/src/components/dialog.css +185 -185
  133. package/src/components/diff-changes.css +41 -41
  134. package/src/components/diff.css +35 -35
  135. package/src/components/dropdown-menu.css +125 -125
  136. package/src/components/file-icon.css +5 -5
  137. package/src/components/file-icons/sprite.svg +11707 -11707
  138. package/src/components/hover-card.css +61 -61
  139. package/src/components/icon-button.css +140 -140
  140. package/src/components/icon.css +34 -34
  141. package/src/components/image-preview.css +63 -63
  142. package/src/components/inline-input.css +17 -17
  143. package/src/components/keybind.css +18 -18
  144. package/src/components/list.css +278 -278
  145. package/src/components/logo.css +4 -4
  146. package/src/components/markdown.css +209 -209
  147. package/src/components/message-nav.css +122 -122
  148. package/src/components/message-part.css +803 -803
  149. package/src/components/popover.css +98 -98
  150. package/src/components/progress-circle.css +12 -12
  151. package/src/components/provider-icon.css +5 -5
  152. package/src/components/provider-icons/sprite.svg +882 -882
  153. package/src/components/radio-group.css +157 -157
  154. package/src/components/resize-handle.css +46 -46
  155. package/src/components/select.css +202 -202
  156. package/src/components/session-review.css +323 -323
  157. package/src/components/session-turn.css +514 -514
  158. package/src/components/spinner.css +6 -6
  159. package/src/components/sticky-accordion-header.css +16 -16
  160. package/src/components/switch.css +132 -132
  161. package/src/components/tabs.css +359 -359
  162. package/src/components/tag.css +37 -37
  163. package/src/components/text-field.css +134 -134
  164. package/src/components/toast.css +205 -205
  165. package/src/components/tooltip.css +74 -74
  166. package/src/components/typewriter.css +14 -14
  167. package/src/styles/animations.css +130 -130
  168. package/src/styles/base.css +393 -393
  169. package/src/styles/colors.css +592 -592
  170. package/src/styles/index.css +52 -52
  171. package/src/styles/tailwind/colors.css +244 -244
  172. package/src/styles/tailwind/index.css +72 -72
  173. package/src/styles/tailwind/utilities.css +113 -113
  174. package/src/styles/theme.css +592 -592
  175. package/src/styles/utilities.css +131 -131
  176. package/src/assets/fonts/cascadia-code-nerd-font-bold.woff2 +0 -1
  177. package/src/assets/fonts/cascadia-code-nerd-font.woff2 +0 -1
  178. package/src/assets/fonts/fira-code-nerd-font-bold.woff2 +0 -1
  179. package/src/assets/fonts/fira-code-nerd-font.woff2 +0 -1
  180. package/src/assets/fonts/geist-mono-bold.woff2 +0 -1
  181. package/src/assets/fonts/geist-mono-medium.woff2 +0 -1
  182. package/src/assets/fonts/geist-mono.woff2 +0 -1
  183. package/src/assets/fonts/hack-nerd-font-bold.woff2 +0 -1
  184. package/src/assets/fonts/hack-nerd-font.woff2 +0 -1
  185. package/src/assets/fonts/ibm-plex-mono-bold.woff2 +0 -1
  186. package/src/assets/fonts/ibm-plex-mono-medium.woff2 +0 -1
  187. package/src/assets/fonts/ibm-plex-mono.woff2 +0 -1
  188. package/src/assets/fonts/inconsolata-nerd-font-bold.woff2 +0 -1
  189. package/src/assets/fonts/inconsolata-nerd-font.woff2 +0 -1
  190. package/src/assets/fonts/intel-one-mono-nerd-font-bold.woff2 +0 -1
  191. package/src/assets/fonts/intel-one-mono-nerd-font.woff2 +0 -1
  192. package/src/assets/fonts/jetbrains-mono-nerd-font-bold.woff2 +0 -1
  193. package/src/assets/fonts/jetbrains-mono-nerd-font.woff2 +0 -1
  194. package/src/assets/fonts/meslo-lgs-nerd-font-bold.woff2 +0 -1
  195. package/src/assets/fonts/meslo-lgs-nerd-font.woff2 +0 -1
  196. package/src/assets/fonts/roboto-mono-nerd-font-bold.woff2 +0 -1
  197. package/src/assets/fonts/roboto-mono-nerd-font.woff2 +0 -1
  198. package/src/assets/fonts/source-code-pro-nerd-font-bold.woff2 +0 -1
  199. package/src/assets/fonts/source-code-pro-nerd-font.woff2 +0 -1
  200. package/src/assets/fonts/ubuntu-mono-nerd-font-bold.woff2 +0 -1
  201. package/src/assets/fonts/ubuntu-mono-nerd-font.woff2 +0 -1
@@ -1,393 +1,393 @@
1
- /*
2
- 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
3
- 2. Remove default margins and padding
4
- 3. Reset all borders.
5
- */
6
-
7
- *,
8
- ::after,
9
- ::before,
10
- ::backdrop,
11
- ::file-selector-button {
12
- box-sizing: border-box; /* 1 */
13
- margin: 0; /* 2 */
14
- padding: 0; /* 2 */
15
- border: 0 solid; /* 3 */
16
- }
17
-
18
- /*
19
- 1. Use a consistent sensible line-height in all browsers.
20
- 2. Prevent adjustments of font size after orientation changes in iOS.
21
- 3. Use a more readable tab size.
22
- 4. Use the user's configured `sans` font-family by default.
23
- 5. Use the user's configured `sans` font-feature-settings by default.
24
- 6. Use the user's configured `sans` font-variation-settings by default.
25
- 7. Disable tap highlights on iOS.
26
- */
27
-
28
- html,
29
- :host {
30
- line-height: var(--line-height-large); /* 1 */
31
- -webkit-text-size-adjust: 100%; /* 2 */
32
- tab-size: 4; /* 3 */
33
- font-family: var(--font-family-sans); /* 4 */
34
- font-feature-settings: var(--font-family-sans--font-feature-settings, normal); /* 5 */
35
- font-variation-settings: var(--font-family-sans--font-variation-settings, normal); /* 6 */
36
- -webkit-tap-highlight-color: transparent; /* 7 */
37
- }
38
-
39
- /*
40
- 1. Add the correct height in Firefox.
41
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
42
- 3. Reset the default border style to a 1px solid border.
43
- */
44
-
45
- hr {
46
- height: 0; /* 1 */
47
- color: inherit; /* 2 */
48
- border-top-width: 1px; /* 3 */
49
- }
50
-
51
- /*
52
- Add the correct text decoration in Chrome, Edge, and Safari.
53
- */
54
-
55
- abbr:where([title]) {
56
- -webkit-text-decoration: underline dotted;
57
- text-decoration: underline dotted;
58
- }
59
-
60
- /*
61
- Remove the default font size and weight for headings.
62
- */
63
-
64
- h1,
65
- h2,
66
- h3,
67
- h4,
68
- h5,
69
- h6 {
70
- font-size: inherit;
71
- font-weight: inherit;
72
- }
73
-
74
- /*
75
- Reset links to optimize for opt-in styling instead of opt-out.
76
- */
77
-
78
- a {
79
- color: inherit;
80
- -webkit-text-decoration: inherit;
81
- text-decoration: inherit;
82
- cursor: default;
83
- }
84
-
85
- *[data-tauri-drag-region] {
86
- app-region: drag;
87
- }
88
-
89
- /*
90
- Add the correct font weight in Edge and Safari.
91
- */
92
-
93
- b,
94
- strong {
95
- font-weight: bolder;
96
- }
97
-
98
- /*
99
- 1. Use the user's configured `mono` font-family by default.
100
- 2. Use the user's configured `mono` font-feature-settings by default.
101
- 3. Use the user's configured `mono` font-variation-settings by default.
102
- 4. Correct the odd `em` font sizing in all browsers.
103
- */
104
-
105
- code,
106
- kbd,
107
- samp,
108
- pre {
109
- font-family: var(--font-family-mono); /* 1 */
110
- font-feature-settings: var(--font-family-mono--font-feature-settings, normal); /* 2 */
111
- font-variation-settings: var(--font-family-mono--font-variation-settings, normal); /* 3 */
112
- font-size: 1em; /* 4 */
113
- }
114
-
115
- /*
116
- Add the correct font size in all browsers.
117
- */
118
-
119
- small {
120
- font-size: 80%;
121
- }
122
-
123
- /*
124
- Prevent `sub` and `sup` elements from affecting the line height in all browsers.
125
- */
126
-
127
- sub,
128
- sup {
129
- font-size: 75%;
130
- line-height: 0;
131
- position: relative;
132
- vertical-align: baseline;
133
- }
134
-
135
- sub {
136
- bottom: -0.25em;
137
- }
138
-
139
- sup {
140
- top: -0.5em;
141
- }
142
-
143
- /*
144
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
145
- 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
146
- 3. Remove gaps between table borders by default.
147
- */
148
-
149
- table {
150
- text-indent: 0; /* 1 */
151
- border-color: inherit; /* 2 */
152
- border-collapse: collapse; /* 3 */
153
- }
154
-
155
- /*
156
- Use the modern Firefox focus style for all focusable elements.
157
- */
158
-
159
- :-moz-focusring {
160
- outline: auto;
161
- }
162
-
163
- /*
164
- Add the correct vertical alignment in Chrome and Firefox.
165
- */
166
-
167
- progress {
168
- vertical-align: baseline;
169
- }
170
-
171
- /*
172
- Add the correct display in Chrome and Safari.
173
- */
174
-
175
- summary {
176
- display: list-item;
177
- }
178
-
179
- /*
180
- Make lists unstyled by default.
181
- */
182
-
183
- ol,
184
- ul,
185
- menu {
186
- list-style: none;
187
- }
188
-
189
- /*
190
- 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
191
- 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
192
- This can trigger a poorly considered lint error in some tools but is included by design.
193
- */
194
-
195
- img,
196
- svg,
197
- video,
198
- canvas,
199
- audio,
200
- iframe,
201
- embed,
202
- object {
203
- display: block; /* 1 */
204
- vertical-align: middle; /* 2 */
205
- }
206
-
207
- /*
208
- Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
209
- */
210
-
211
- img,
212
- video {
213
- max-width: 100%;
214
- height: auto;
215
- }
216
-
217
- /*
218
- 1. Inherit font styles in all browsers.
219
- 2. Remove border radius in all browsers.
220
- 3. Remove background color in all browsers.
221
- 4. Ensure consistent opacity for disabled states in all browsers.
222
- */
223
-
224
- button,
225
- input,
226
- select,
227
- optgroup,
228
- textarea,
229
- ::file-selector-button {
230
- font: inherit; /* 1 */
231
- font-feature-settings: inherit; /* 1 */
232
- font-variation-settings: inherit; /* 1 */
233
- letter-spacing: inherit; /* 1 */
234
- color: inherit; /* 1 */
235
- border-radius: 0; /* 2 */
236
- background-color: transparent; /* 3 */
237
- opacity: 1; /* 4 */
238
- }
239
-
240
- /*
241
- Restore default font weight.
242
- */
243
-
244
- :where(select:is([multiple], [size])) optgroup {
245
- font-weight: bolder;
246
- }
247
-
248
- /*
249
- Restore indentation.
250
- */
251
-
252
- :where(select:is([multiple], [size])) optgroup option {
253
- padding-inline-start: 20px;
254
- }
255
-
256
- /*
257
- Restore space after button.
258
- */
259
-
260
- ::file-selector-button {
261
- margin-inline-end: 4px;
262
- }
263
-
264
- /*
265
- Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
266
- */
267
-
268
- ::placeholder {
269
- opacity: 1;
270
- }
271
-
272
- /*
273
- Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
274
- crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
275
- */
276
-
277
- @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or (contain-intrinsic-size: 1px)
278
- /* Safari 17+ */ {
279
- ::placeholder {
280
- color: color-mix(in oklab, currentcolor 50%, transparent);
281
- }
282
- }
283
-
284
- /*
285
- Prevent resizing textareas horizontally by default.
286
- */
287
-
288
- textarea {
289
- resize: vertical;
290
- }
291
-
292
- /*
293
- Remove the inner padding in Chrome and Safari on macOS.
294
- */
295
-
296
- ::-webkit-search-decoration {
297
- -webkit-appearance: none;
298
- }
299
-
300
- /*
301
- 1. Ensure date/time inputs have the same height when empty in iOS Safari.
302
- 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
303
- */
304
-
305
- ::-webkit-date-and-time-value {
306
- min-height: 1lh; /* 1 */
307
- text-align: inherit; /* 2 */
308
- }
309
-
310
- /*
311
- Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
312
- */
313
-
314
- ::-webkit-datetime-edit {
315
- display: inline-flex;
316
- }
317
-
318
- /*
319
- Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
320
- */
321
-
322
- ::-webkit-datetime-edit-fields-wrapper {
323
- padding: 0;
324
- }
325
-
326
- ::-webkit-datetime-edit,
327
- ::-webkit-datetime-edit-year-field,
328
- ::-webkit-datetime-edit-month-field,
329
- ::-webkit-datetime-edit-day-field,
330
- ::-webkit-datetime-edit-hour-field,
331
- ::-webkit-datetime-edit-minute-field,
332
- ::-webkit-datetime-edit-second-field,
333
- ::-webkit-datetime-edit-millisecond-field,
334
- ::-webkit-datetime-edit-meridiem-field {
335
- padding-block: 0;
336
- }
337
-
338
- /*
339
- Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
340
- */
341
-
342
- ::-webkit-calendar-picker-indicator {
343
- line-height: 1;
344
- }
345
-
346
- /*
347
- Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
348
- */
349
-
350
- :-moz-ui-invalid {
351
- box-shadow: none;
352
- }
353
-
354
- /*
355
- Correct the inability to style the border radius in iOS Safari.
356
- */
357
-
358
- button,
359
- input:where([type="button"], [type="reset"], [type="submit"]),
360
- ::file-selector-button {
361
- appearance: button;
362
- }
363
-
364
- /*
365
- Correct the cursor style of increment and decrement buttons in Safari.
366
- */
367
-
368
- ::-webkit-inner-spin-button,
369
- ::-webkit-outer-spin-button {
370
- height: auto;
371
- }
372
-
373
- /*
374
- Make elements with the HTML hidden attribute stay hidden by default.
375
- */
376
-
377
- [hidden]:where(:not([hidden="until-found"])) {
378
- display: none !important;
379
- }
380
-
381
- /*
382
- Prevent iOS Safari from auto-zooming on input focus.
383
- iOS WebKit zooms on any input with font-size < 16px as an accessibility feature.
384
- */
385
-
386
- @media (hover: none) and (pointer: coarse) {
387
- input,
388
- select,
389
- textarea,
390
- [contenteditable="true"] {
391
- font-size: 16px !important;
392
- }
393
- }
1
+ /*
2
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
3
+ 2. Remove default margins and padding
4
+ 3. Reset all borders.
5
+ */
6
+
7
+ *,
8
+ ::after,
9
+ ::before,
10
+ ::backdrop,
11
+ ::file-selector-button {
12
+ box-sizing: border-box; /* 1 */
13
+ margin: 0; /* 2 */
14
+ padding: 0; /* 2 */
15
+ border: 0 solid; /* 3 */
16
+ }
17
+
18
+ /*
19
+ 1. Use a consistent sensible line-height in all browsers.
20
+ 2. Prevent adjustments of font size after orientation changes in iOS.
21
+ 3. Use a more readable tab size.
22
+ 4. Use the user's configured `sans` font-family by default.
23
+ 5. Use the user's configured `sans` font-feature-settings by default.
24
+ 6. Use the user's configured `sans` font-variation-settings by default.
25
+ 7. Disable tap highlights on iOS.
26
+ */
27
+
28
+ html,
29
+ :host {
30
+ line-height: var(--line-height-large); /* 1 */
31
+ -webkit-text-size-adjust: 100%; /* 2 */
32
+ tab-size: 4; /* 3 */
33
+ font-family: var(--font-family-sans); /* 4 */
34
+ font-feature-settings: var(--font-family-sans--font-feature-settings, normal); /* 5 */
35
+ font-variation-settings: var(--font-family-sans--font-variation-settings, normal); /* 6 */
36
+ -webkit-tap-highlight-color: transparent; /* 7 */
37
+ }
38
+
39
+ /*
40
+ 1. Add the correct height in Firefox.
41
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
42
+ 3. Reset the default border style to a 1px solid border.
43
+ */
44
+
45
+ hr {
46
+ height: 0; /* 1 */
47
+ color: inherit; /* 2 */
48
+ border-top-width: 1px; /* 3 */
49
+ }
50
+
51
+ /*
52
+ Add the correct text decoration in Chrome, Edge, and Safari.
53
+ */
54
+
55
+ abbr:where([title]) {
56
+ -webkit-text-decoration: underline dotted;
57
+ text-decoration: underline dotted;
58
+ }
59
+
60
+ /*
61
+ Remove the default font size and weight for headings.
62
+ */
63
+
64
+ h1,
65
+ h2,
66
+ h3,
67
+ h4,
68
+ h5,
69
+ h6 {
70
+ font-size: inherit;
71
+ font-weight: inherit;
72
+ }
73
+
74
+ /*
75
+ Reset links to optimize for opt-in styling instead of opt-out.
76
+ */
77
+
78
+ a {
79
+ color: inherit;
80
+ -webkit-text-decoration: inherit;
81
+ text-decoration: inherit;
82
+ cursor: default;
83
+ }
84
+
85
+ *[data-tauri-drag-region] {
86
+ app-region: drag;
87
+ }
88
+
89
+ /*
90
+ Add the correct font weight in Edge and Safari.
91
+ */
92
+
93
+ b,
94
+ strong {
95
+ font-weight: bolder;
96
+ }
97
+
98
+ /*
99
+ 1. Use the user's configured `mono` font-family by default.
100
+ 2. Use the user's configured `mono` font-feature-settings by default.
101
+ 3. Use the user's configured `mono` font-variation-settings by default.
102
+ 4. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+ code,
106
+ kbd,
107
+ samp,
108
+ pre {
109
+ font-family: var(--font-family-mono); /* 1 */
110
+ font-feature-settings: var(--font-family-mono--font-feature-settings, normal); /* 2 */
111
+ font-variation-settings: var(--font-family-mono--font-variation-settings, normal); /* 3 */
112
+ font-size: 1em; /* 4 */
113
+ }
114
+
115
+ /*
116
+ Add the correct font size in all browsers.
117
+ */
118
+
119
+ small {
120
+ font-size: 80%;
121
+ }
122
+
123
+ /*
124
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
125
+ */
126
+
127
+ sub,
128
+ sup {
129
+ font-size: 75%;
130
+ line-height: 0;
131
+ position: relative;
132
+ vertical-align: baseline;
133
+ }
134
+
135
+ sub {
136
+ bottom: -0.25em;
137
+ }
138
+
139
+ sup {
140
+ top: -0.5em;
141
+ }
142
+
143
+ /*
144
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
145
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
146
+ 3. Remove gaps between table borders by default.
147
+ */
148
+
149
+ table {
150
+ text-indent: 0; /* 1 */
151
+ border-color: inherit; /* 2 */
152
+ border-collapse: collapse; /* 3 */
153
+ }
154
+
155
+ /*
156
+ Use the modern Firefox focus style for all focusable elements.
157
+ */
158
+
159
+ :-moz-focusring {
160
+ outline: auto;
161
+ }
162
+
163
+ /*
164
+ Add the correct vertical alignment in Chrome and Firefox.
165
+ */
166
+
167
+ progress {
168
+ vertical-align: baseline;
169
+ }
170
+
171
+ /*
172
+ Add the correct display in Chrome and Safari.
173
+ */
174
+
175
+ summary {
176
+ display: list-item;
177
+ }
178
+
179
+ /*
180
+ Make lists unstyled by default.
181
+ */
182
+
183
+ ol,
184
+ ul,
185
+ menu {
186
+ list-style: none;
187
+ }
188
+
189
+ /*
190
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
191
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
192
+ This can trigger a poorly considered lint error in some tools but is included by design.
193
+ */
194
+
195
+ img,
196
+ svg,
197
+ video,
198
+ canvas,
199
+ audio,
200
+ iframe,
201
+ embed,
202
+ object {
203
+ display: block; /* 1 */
204
+ vertical-align: middle; /* 2 */
205
+ }
206
+
207
+ /*
208
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
209
+ */
210
+
211
+ img,
212
+ video {
213
+ max-width: 100%;
214
+ height: auto;
215
+ }
216
+
217
+ /*
218
+ 1. Inherit font styles in all browsers.
219
+ 2. Remove border radius in all browsers.
220
+ 3. Remove background color in all browsers.
221
+ 4. Ensure consistent opacity for disabled states in all browsers.
222
+ */
223
+
224
+ button,
225
+ input,
226
+ select,
227
+ optgroup,
228
+ textarea,
229
+ ::file-selector-button {
230
+ font: inherit; /* 1 */
231
+ font-feature-settings: inherit; /* 1 */
232
+ font-variation-settings: inherit; /* 1 */
233
+ letter-spacing: inherit; /* 1 */
234
+ color: inherit; /* 1 */
235
+ border-radius: 0; /* 2 */
236
+ background-color: transparent; /* 3 */
237
+ opacity: 1; /* 4 */
238
+ }
239
+
240
+ /*
241
+ Restore default font weight.
242
+ */
243
+
244
+ :where(select:is([multiple], [size])) optgroup {
245
+ font-weight: bolder;
246
+ }
247
+
248
+ /*
249
+ Restore indentation.
250
+ */
251
+
252
+ :where(select:is([multiple], [size])) optgroup option {
253
+ padding-inline-start: 20px;
254
+ }
255
+
256
+ /*
257
+ Restore space after button.
258
+ */
259
+
260
+ ::file-selector-button {
261
+ margin-inline-end: 4px;
262
+ }
263
+
264
+ /*
265
+ Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
266
+ */
267
+
268
+ ::placeholder {
269
+ opacity: 1;
270
+ }
271
+
272
+ /*
273
+ Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
274
+ crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
275
+ */
276
+
277
+ @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or (contain-intrinsic-size: 1px)
278
+ /* Safari 17+ */ {
279
+ ::placeholder {
280
+ color: color-mix(in oklab, currentcolor 50%, transparent);
281
+ }
282
+ }
283
+
284
+ /*
285
+ Prevent resizing textareas horizontally by default.
286
+ */
287
+
288
+ textarea {
289
+ resize: vertical;
290
+ }
291
+
292
+ /*
293
+ Remove the inner padding in Chrome and Safari on macOS.
294
+ */
295
+
296
+ ::-webkit-search-decoration {
297
+ -webkit-appearance: none;
298
+ }
299
+
300
+ /*
301
+ 1. Ensure date/time inputs have the same height when empty in iOS Safari.
302
+ 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
303
+ */
304
+
305
+ ::-webkit-date-and-time-value {
306
+ min-height: 1lh; /* 1 */
307
+ text-align: inherit; /* 2 */
308
+ }
309
+
310
+ /*
311
+ Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
312
+ */
313
+
314
+ ::-webkit-datetime-edit {
315
+ display: inline-flex;
316
+ }
317
+
318
+ /*
319
+ Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
320
+ */
321
+
322
+ ::-webkit-datetime-edit-fields-wrapper {
323
+ padding: 0;
324
+ }
325
+
326
+ ::-webkit-datetime-edit,
327
+ ::-webkit-datetime-edit-year-field,
328
+ ::-webkit-datetime-edit-month-field,
329
+ ::-webkit-datetime-edit-day-field,
330
+ ::-webkit-datetime-edit-hour-field,
331
+ ::-webkit-datetime-edit-minute-field,
332
+ ::-webkit-datetime-edit-second-field,
333
+ ::-webkit-datetime-edit-millisecond-field,
334
+ ::-webkit-datetime-edit-meridiem-field {
335
+ padding-block: 0;
336
+ }
337
+
338
+ /*
339
+ Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
340
+ */
341
+
342
+ ::-webkit-calendar-picker-indicator {
343
+ line-height: 1;
344
+ }
345
+
346
+ /*
347
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
348
+ */
349
+
350
+ :-moz-ui-invalid {
351
+ box-shadow: none;
352
+ }
353
+
354
+ /*
355
+ Correct the inability to style the border radius in iOS Safari.
356
+ */
357
+
358
+ button,
359
+ input:where([type="button"], [type="reset"], [type="submit"]),
360
+ ::file-selector-button {
361
+ appearance: button;
362
+ }
363
+
364
+ /*
365
+ Correct the cursor style of increment and decrement buttons in Safari.
366
+ */
367
+
368
+ ::-webkit-inner-spin-button,
369
+ ::-webkit-outer-spin-button {
370
+ height: auto;
371
+ }
372
+
373
+ /*
374
+ Make elements with the HTML hidden attribute stay hidden by default.
375
+ */
376
+
377
+ [hidden]:where(:not([hidden="until-found"])) {
378
+ display: none !important;
379
+ }
380
+
381
+ /*
382
+ Prevent iOS Safari from auto-zooming on input focus.
383
+ iOS WebKit zooms on any input with font-size < 16px as an accessibility feature.
384
+ */
385
+
386
+ @media (hover: none) and (pointer: coarse) {
387
+ input,
388
+ select,
389
+ textarea,
390
+ [contenteditable="true"] {
391
+ font-size: 16px !important;
392
+ }
393
+ }