koffi 2.12.0 → 2.12.2

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 (188) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE.txt +2 -2
  3. package/README.md +8 -8
  4. package/build/koffi/darwin_arm64/koffi.node +0 -0
  5. package/build/koffi/darwin_x64/koffi.node +0 -0
  6. package/build/koffi/freebsd_arm64/koffi.node +0 -0
  7. package/build/koffi/freebsd_ia32/koffi.node +0 -0
  8. package/build/koffi/freebsd_x64/koffi.node +0 -0
  9. package/build/koffi/linux_arm64/koffi.node +0 -0
  10. package/build/koffi/linux_armhf/koffi.node +0 -0
  11. package/build/koffi/linux_ia32/koffi.node +0 -0
  12. package/build/koffi/linux_loong64/koffi.node +0 -0
  13. package/build/koffi/linux_riscv64d/koffi.node +0 -0
  14. package/build/koffi/linux_x64/koffi.node +0 -0
  15. package/build/koffi/musl_arm64/koffi.node +0 -0
  16. package/build/koffi/musl_x64/koffi.node +0 -0
  17. package/build/koffi/openbsd_ia32/koffi.node +0 -0
  18. package/build/koffi/openbsd_x64/koffi.node +0 -0
  19. package/build/koffi/win32_arm64/koffi.exp +0 -0
  20. package/build/koffi/win32_arm64/koffi.node +0 -0
  21. package/build/koffi/win32_ia32/koffi.exp +0 -0
  22. package/build/koffi/win32_ia32/koffi.node +0 -0
  23. package/build/koffi/win32_x64/koffi.exp +0 -0
  24. package/build/koffi/win32_x64/koffi.node +0 -0
  25. package/doc/assets.ini +3 -3
  26. package/doc/develop.sh +4 -3
  27. package/doc/pages/platforms.md +1 -1
  28. package/doc/static/highlight.js +1 -1
  29. package/doc/static/koffi.css +3 -2
  30. package/doc/static/print.css +1 -1
  31. package/doc/templates/code.html +5 -5
  32. package/doc/templates/page.html +4 -4
  33. package/index.d.ts +2 -2
  34. package/index.js +25 -25
  35. package/indirect.js +25 -5
  36. package/package.json +2 -2
  37. package/src/cnoke/LICENSE.txt +2 -2
  38. package/src/cnoke/README.md +2 -0
  39. package/src/cnoke/assets/FindCNoke.cmake +12 -2
  40. package/src/cnoke/assets/win_delay_hook.c +4 -4
  41. package/src/cnoke/cnoke.js +4 -2
  42. package/src/cnoke/package.json +1 -1
  43. package/src/cnoke/src/builder.js +11 -14
  44. package/src/cnoke/src/index.js +2 -2
  45. package/src/cnoke/src/tools.js +34 -2
  46. package/src/core/{libcc/libcc.cc → base/base.cc} +3092 -1674
  47. package/src/core/{libcc/libcc.hh → base/base.hh} +3059 -2432
  48. package/src/core/{libcc → base}/mimetypes.inc +42 -4
  49. package/src/core/{libcc → base}/mimetypes_gen.py +3 -3
  50. package/src/core/unicode/generate.py +124 -0
  51. package/src/core/unicode/xid.cc +52 -0
  52. package/src/core/unicode/xid.hh +29 -0
  53. package/src/core/unicode/xid.inc +465 -0
  54. package/src/koffi/CMakeLists.txt +8 -5
  55. package/src/koffi/cmake/raylib.cmake +6 -2
  56. package/src/koffi/cmake/{sqlite.cmake → sqlite3.cmake} +3 -3
  57. package/src/koffi/examples/electron-forge/forge.config.js +23 -3
  58. package/src/koffi/examples/electron-forge/package.json +18 -16
  59. package/src/koffi/src/abi_arm32.cc +8 -21
  60. package/src/koffi/src/abi_arm32_asm.S +2 -2
  61. package/src/koffi/src/abi_arm64.cc +46 -59
  62. package/src/koffi/src/abi_arm64_asm.S +4 -4
  63. package/src/koffi/src/abi_arm64_asm.asm +2 -2
  64. package/src/koffi/src/abi_loong64_asm.S +2 -2
  65. package/src/koffi/src/abi_riscv64.cc +6 -19
  66. package/src/koffi/src/abi_riscv64_asm.S +2 -2
  67. package/src/koffi/src/abi_x64_sysv.cc +4 -17
  68. package/src/koffi/src/abi_x64_sysv_asm.S +5 -5
  69. package/src/koffi/src/abi_x64_win.cc +4 -17
  70. package/src/koffi/src/abi_x64_win_asm.asm +2 -2
  71. package/src/koffi/src/abi_x86.cc +9 -22
  72. package/src/koffi/src/abi_x86_asm.S +2 -2
  73. package/src/koffi/src/abi_x86_asm.asm +2 -2
  74. package/src/koffi/src/call.cc +49 -42
  75. package/src/koffi/src/call.hh +9 -8
  76. package/src/koffi/src/errno.inc +152 -152
  77. package/src/koffi/src/ffi.cc +45 -39
  78. package/src/koffi/src/ffi.hh +6 -6
  79. package/src/koffi/src/init.js +1 -1
  80. package/src/koffi/src/parser.cc +6 -5
  81. package/src/koffi/src/parser.hh +3 -3
  82. package/src/koffi/src/trampolines/armasm.inc +2 -2
  83. package/src/koffi/src/trampolines/gnu.inc +2 -2
  84. package/src/koffi/src/trampolines/masm32.inc +2 -2
  85. package/src/koffi/src/trampolines/masm64.inc +2 -2
  86. package/src/koffi/src/trampolines/prototypes.inc +2 -2
  87. package/src/koffi/src/util.cc +9 -9
  88. package/src/koffi/src/util.hh +3 -3
  89. package/src/koffi/src/win32.cc +5 -5
  90. package/src/koffi/src/win32.hh +9 -9
  91. package/vendor/node-addon-api/CHANGELOG.md +97 -2
  92. package/vendor/node-addon-api/CONTRIBUTING.md +117 -7
  93. package/vendor/node-addon-api/README.md +25 -249
  94. package/vendor/node-addon-api/common.gypi +1 -0
  95. package/vendor/node-addon-api/doc/README.md +145 -0
  96. package/vendor/node-addon-api/doc/array_buffer.md +15 -15
  97. package/vendor/node-addon-api/doc/basic_env.md +200 -0
  98. package/vendor/node-addon-api/doc/buffer.md +24 -26
  99. package/vendor/node-addon-api/doc/cmake-js.md +19 -0
  100. package/vendor/node-addon-api/doc/{creating_a_release.md → contributing/creating_a_release.md} +16 -4
  101. package/vendor/node-addon-api/doc/env.md +11 -131
  102. package/vendor/node-addon-api/doc/error_handling.md +12 -0
  103. package/vendor/node-addon-api/doc/external.md +13 -4
  104. package/vendor/node-addon-api/doc/finalization.md +153 -0
  105. package/vendor/node-addon-api/doc/memory_management.md +1 -1
  106. package/vendor/node-addon-api/doc/object_wrap.md +19 -3
  107. package/vendor/node-addon-api/doc/promises.md +51 -0
  108. package/vendor/node-addon-api/doc/setup.md +29 -6
  109. package/vendor/node-addon-api/doc/value.md +13 -0
  110. package/vendor/node-addon-api/doc/version_management.md +2 -2
  111. package/vendor/node-addon-api/eslint.config.js +5 -0
  112. package/vendor/node-addon-api/index.js +2 -0
  113. package/vendor/node-addon-api/napi-inl.h +592 -166
  114. package/vendor/node-addon-api/napi.h +167 -59
  115. package/vendor/node-addon-api/node_addon_api.gyp +10 -0
  116. package/vendor/node-addon-api/noexcept.gypi +1 -1
  117. package/vendor/node-addon-api/package.json +10 -13
  118. package/vendor/node-addon-api/release-please-config.json +15 -0
  119. package/vendor/node-addon-api/test/addon_build/tpl/binding.gyp +2 -1
  120. package/vendor/node-addon-api/test/array_buffer.js +1 -1
  121. package/vendor/node-addon-api/test/async_context.js +2 -2
  122. package/vendor/node-addon-api/test/async_progress_queue_worker.js +3 -3
  123. package/vendor/node-addon-api/test/async_progress_worker.js +3 -3
  124. package/vendor/node-addon-api/test/async_worker.cc +15 -13
  125. package/vendor/node-addon-api/test/async_worker.js +5 -5
  126. package/vendor/node-addon-api/test/basic_types/value.cc +6 -0
  127. package/vendor/node-addon-api/test/basic_types/value.js +17 -0
  128. package/vendor/node-addon-api/test/binding.cc +8 -0
  129. package/vendor/node-addon-api/test/binding.gyp +23 -1
  130. package/vendor/node-addon-api/test/buffer.js +1 -2
  131. package/vendor/node-addon-api/test/common/index.js +1 -1
  132. package/vendor/node-addon-api/test/except_all.cc +22 -0
  133. package/vendor/node-addon-api/test/except_all.js +14 -0
  134. package/vendor/node-addon-api/test/exports.js +19 -0
  135. package/vendor/node-addon-api/test/finalizer_order.cc +152 -0
  136. package/vendor/node-addon-api/test/finalizer_order.js +98 -0
  137. package/vendor/node-addon-api/test/function.js +2 -2
  138. package/vendor/node-addon-api/test/function_reference.js +2 -2
  139. package/vendor/node-addon-api/test/globalObject/global_object_delete_property.cc +4 -4
  140. package/vendor/node-addon-api/test/globalObject/global_object_get_property.cc +4 -4
  141. package/vendor/node-addon-api/test/globalObject/global_object_has_own_property.cc +3 -3
  142. package/vendor/node-addon-api/test/globalObject/global_object_set_property.cc +5 -5
  143. package/vendor/node-addon-api/test/name.cc +10 -8
  144. package/vendor/node-addon-api/test/object/delete_property.cc +5 -5
  145. package/vendor/node-addon-api/test/object/get_property.cc +5 -5
  146. package/vendor/node-addon-api/test/object/has_own_property.cc +4 -4
  147. package/vendor/node-addon-api/test/object/has_property.cc +5 -5
  148. package/vendor/node-addon-api/test/object/object.cc +1 -1
  149. package/vendor/node-addon-api/test/object/set_property.cc +5 -5
  150. package/vendor/node-addon-api/test/object/subscript_operator.cc +3 -3
  151. package/vendor/node-addon-api/test/object_reference.cc +18 -18
  152. package/vendor/node-addon-api/test/promise.cc +75 -0
  153. package/vendor/node-addon-api/test/promise.js +23 -0
  154. package/vendor/node-addon-api/test/require_basic_finalizers/index.js +38 -0
  155. package/vendor/node-addon-api/test/require_basic_finalizers/tpl/addon.cc +12 -0
  156. package/vendor/node-addon-api/test/require_basic_finalizers/tpl/binding.gyp +48 -0
  157. package/vendor/node-addon-api/test/require_basic_finalizers/tpl/index.js +3 -0
  158. package/vendor/node-addon-api/test/require_basic_finalizers/tpl/package.json +11 -0
  159. package/vendor/node-addon-api/test/run_script.cc +1 -1
  160. package/vendor/node-addon-api/test/type_taggable.cc +1 -1
  161. package/vendor/node-addon-api/test/type_taggable.js +3 -4
  162. package/vendor/node-addon-api/test/typedarray.cc +28 -24
  163. package/vendor/node-addon-api/tools/conversion.js +1 -1
  164. package/vendor/node-api-headers/CHANGELOG.md +29 -0
  165. package/vendor/node-api-headers/CREATING_A_RELEASE.md +12 -2
  166. package/vendor/node-api-headers/def/js_native_api.def +6 -1
  167. package/vendor/node-api-headers/def/node_api.def +7 -1
  168. package/vendor/node-api-headers/include/js_native_api.h +56 -24
  169. package/vendor/node-api-headers/include/js_native_api_types.h +27 -0
  170. package/vendor/node-api-headers/include/node_api.h +38 -29
  171. package/vendor/node-api-headers/lib/parse-utils.js +92 -0
  172. package/vendor/node-api-headers/package.json +7 -7
  173. package/vendor/node-api-headers/release-please-config.json +12 -0
  174. package/vendor/node-api-headers/scripts/update-headers.js +63 -12
  175. package/vendor/node-api-headers/scripts/write-symbols.js +1 -1
  176. package/vendor/node-api-headers/symbols.js +17 -1
  177. package/vendor/node-api-headers/test/parse-utils.js +21 -0
  178. package/doc/flat/flat.css +0 -27
  179. package/doc/flat/normal.css +0 -429
  180. package/doc/flat/print.css +0 -29
  181. package/doc/flat/reset.css +0 -41
  182. package/doc/flat/small.css +0 -104
  183. package/doc/flat/static.js +0 -161
  184. package/src/core/libcc/brotli.cc +0 -186
  185. package/src/core/libcc/lz4.cc +0 -197
  186. package/src/core/libcc/miniz.cc +0 -353
  187. package/vendor/node-addon-api/tools/eslint-format.js +0 -79
  188. /package/vendor/node-api-headers/{scripts → lib}/clang-utils.js +0 -0
@@ -1,429 +0,0 @@
1
- /* Copyright (C) 2024 Niels Martignène <niels.martignene@protonmail.com>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the “Software”), to deal in
5
- the Software without restriction, including without limitation the rights to use,
6
- copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
7
- Software, and to permit persons to whom the Software is furnished to do so,
8
- subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
14
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
15
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
- OTHER DEALINGS IN THE SOFTWARE. */
21
-
22
- html {
23
- --top_color: #ccc;
24
- --anchor_color: #383838;
25
- --button_color: #888;
26
- --focus_color: #ececec;
27
-
28
- --top_height: 90px;
29
- --top_padding: 6px;
30
- --small_height: 80px;
31
- --top_background: white;
32
- --footer_background: #f6f6f9;
33
-
34
- height: 100%;
35
- scroll-padding-top: calc(var(--top_height) + 10px);
36
- }
37
-
38
- body {
39
- min-height: 100%;
40
- margin: 0;
41
- padding: 0;
42
-
43
- font-family: 'Open Sans', sans-serif;
44
- font-size: 17px;
45
- line-height: 1.5;
46
-
47
- background: white;
48
- color: #383838;
49
-
50
- display: flex;
51
- flex-direction: column;
52
- }
53
-
54
- canvas:focus {
55
- border: none;
56
- outline: none;
57
- }
58
-
59
- a {
60
- color: var(--color, var(--anchor_color));
61
- cursor: pointer;
62
- text-decoration: none;
63
- }
64
- a:hover { text-decoration: underline; }
65
- a:has(> img) { text-decoration: none !important; }
66
-
67
- #top {
68
- position: sticky;
69
- top: 0;
70
- background: var(--top_background);
71
- z-index: 9;
72
- border-bottom: 2px solid var(--top_background);
73
- transition: border-bottom-color 0.4s ease;
74
- }
75
- #top.border { border-bottom-color: #383838; }
76
- #top menu {
77
- position: sticky;
78
- top: 0;
79
- box-sizing: border-box;
80
- max-width: 1200px;
81
- height: var(--top_height);
82
- box-sizing: border-box;
83
- margin: 0 auto;
84
- padding: var(--top_padding);
85
- overflow: visible;
86
- z-index: 1;
87
- display: flex;
88
- align-items: center;
89
- gap: 10px;
90
- }
91
- #top li {
92
- position: relative;
93
- list-style-type: none;
94
- padding-left: 8px;
95
- border-left: 2px solid rgba(0, 0, 0, 0);
96
- }
97
- #top li a {
98
- color: #383838;
99
- text-decoration: none;
100
- }
101
- #top li > div a.category {
102
- cursor: default;
103
- pointer-events: none;
104
- }
105
- #top li > a {
106
- display: block;
107
- border-bottom: 1px solid #383838;
108
- text-transform: uppercase;
109
- text-wrap: nowrap;
110
- }
111
- #top li > a:hover, #top li.active > a {
112
- margin-bottom: -1px;
113
- border-bottom: 2px solid var(--top_color);
114
- color: var(--top_color);
115
- }
116
- #top li > a.active {
117
- font-weight: bold;
118
- border-bottom-color: var(--top_color);
119
- color: var(--top_color);
120
- }
121
- #top li > div { display: none; }
122
- .nojs #top li:has(> div):hover, #top li:has(> div).active { border-left-color: var(--top_color); }
123
- .nojs #top li:has(> div):hover > a, #top li:has(> div).active > a {
124
- margin-bottom: 1px;
125
- border-bottom: none;
126
- }
127
- .nojs #top li:hover > div, #top li.active > div {
128
- position: absolute;
129
- margin-top: 0px;
130
- margin-left: -10px;
131
- width: 220px;
132
- padding: 12px 1em 10px 1em;
133
- display: flex;
134
- flex-direction: column;
135
- background: var(--top_background);
136
- border-left: 2px solid var(--top_color);
137
- border-bottom: 2px solid var(--top_color);
138
- }
139
- #top li > div > a { margin-top: 3px; }
140
- #top li > div > a.active { font-weight: bold; }
141
- #top li > div > a:hover { text-decoration: underline; }
142
-
143
- #logo {
144
- height: 70%;
145
- object-fit: contain;
146
- margin-right: 2em;
147
- }
148
- #logo > img {
149
- width: 100%;
150
- height: 100%;
151
- object-fit: contain;
152
- }
153
-
154
- #side menu {
155
- margin: 0;
156
- padding: 8px;
157
- width: 224px;
158
- box-sizing: border-box;
159
-
160
- position: fixed;
161
- left: calc(50% + 360px);
162
- top: calc(var(--top_height) + 34px);
163
-
164
- background: #fdfdfd;
165
- border: 2px solid #383838;
166
- }
167
- #side li { list-style-type: none; }
168
- #side a {
169
- display: block;
170
- padding: 1px;
171
- color: #383838;
172
- text-decoration: none;
173
- }
174
- #side a:hover { text-decoration: underline; }
175
- #side a.active { font-weight: bold; }
176
- #side a.lv1 { padding-left: 12px; }
177
- #side a.lv2 { padding-left: 27px; }
178
- #side a.lv3 { padding-left: 42px; }
179
- #side a.lv4 { padding-left: 57px; }
180
- #side a.lv5 { padding-left: 72px; }
181
- #side a.lv6 { padding-left: 87px; }
182
-
183
- :is(#deploy, .deploy) { display: none; }
184
-
185
- main {
186
- flex: 1;
187
- width: 100%;
188
- max-width: 1200px;
189
- box-sizing: border-box;
190
- margin: 20px auto 0 auto;
191
- padding: 0 16px 16px 16px;
192
- }
193
- #side ~ main { padding-right: 290px; }
194
-
195
- footer {
196
- padding: 0.5em;
197
- background: var(--footer_background);
198
- display: flex;
199
- gap: 1.5em;
200
- align-items: center;
201
- justify-content: center;
202
- }
203
- footer > img { filter: saturate(0%) brightness(0); }
204
-
205
- p { margin: 1em 0 0 0; }
206
- p:first-child, h1 + p, h2 + p, h3 + p { margin-top: 0; }
207
-
208
- main img { max-width: 100%; }
209
-
210
- h1 {
211
- margin: 0 0 0.5em 0;
212
- font-size: 1.6em;
213
- text-transform: uppercase;
214
- font-weight: normal;
215
- color: #383838;
216
- font-weight: bold;
217
- }
218
- h2 {
219
- margin: 0 0 1em 0;
220
- display: table;
221
- padding: 2px 14px 2px 30px;
222
- background: #191f22;
223
- font-size: 1.2em;
224
- font-weight: normal;
225
- text-transform: uppercase;
226
- color: white;
227
- }
228
- h3 {
229
- margin: 0 0 0.8em 0;
230
- display: table;
231
- padding: 2px 14px 2px 40px;
232
- background: #ddd;
233
- font-size: 1.1em;
234
- font-weight: normal;
235
- font-style: italic;
236
- text-transform: uppercase;
237
- color: #383838;
238
- }
239
- * + h1, * + h2, * + h3 { margin-top: 1.2em; }
240
-
241
- table {
242
- margin: 0 auto;
243
- border-collapse: collapse;
244
- empty-cells: show;
245
- }
246
- * + table { margin-top: 1em; }
247
- tr {
248
- border-bottom: 1px solid #ededf0;
249
- vertical-align: middle;
250
- }
251
- th, td {
252
- height: 1.5em;
253
- padding: 0.5em;
254
- vertical-align: middle;
255
- }
256
- th {
257
- background: #f8f8f8;
258
- font-size: 0.9em;
259
- font-variant: small-caps;
260
- text-align: left;
261
- user-select: none;
262
- -webkit-user-select: none;
263
- }
264
- td {
265
- background: white;
266
- border: 1px solid #ebebeb;
267
- }
268
- thead > tr { border: 1px solid #ededf0; }
269
- thead th { text-align: center; }
270
- tbody th {
271
- text-align: left;
272
- font-weight: normal;
273
- font-style: italic;
274
- }
275
- th.center, td.center { text-align: center; }
276
- th.right, td.right { text-align: right; }
277
- table :is(td, th, col).check { width: 2em; }
278
- table :is(td, th).center { text-align: center; }
279
- table :is(td, th).right { text-align: right; }
280
- table :is(tr, td, th, col).missing {
281
- font-style: italic;
282
- color: var(--color, gray);
283
- }
284
- table :is(td, th).picture { padding: 6px 0 0 6px; }
285
- table :is(td, th).picture > img {
286
- width: 24px;
287
- height: 24px;
288
- }
289
- table + div.legend {
290
- margin-top: 6px;
291
- text-align: center;
292
- font-size: 0.8em;
293
- }
294
-
295
- hr {
296
- margin: 4px auto;
297
- width: 90%;
298
- border: none;
299
- border-bottom: 1px solid #ededf0;
300
- }
301
-
302
- button {
303
- padding: 0.35em 1em 0.45em 1em;
304
- background: var(--button_color);
305
- border: none;
306
- border-radius: 10px;
307
- color: white;
308
- cursor: pointer;
309
- white-space: nowrap;
310
- }
311
- button::-moz-focus-inner { border: 0; }
312
- button:not(:disabled):not(.active):hover {
313
- background: color-mix(in srgb, var(--button_color) 90%, black);
314
- color: white;
315
- }
316
- button:disabled {
317
- filter: saturate(10%) brightness(80%);
318
- cursor: not-allowed;
319
- pointer-events: none;
320
- }
321
- button:disabled > * { opacity: 0.3; }
322
- button.active { background: color-mix(in srgb, var(--button_color) 50%, black); }
323
- button > img {
324
- width: 16px;
325
- height: 16px;
326
- transform: translateY(2px);
327
- }
328
- button > img:only-child {
329
- width: 32px;
330
- height: 32px;
331
- transform: translateY(4px);
332
- }
333
-
334
- .actions {
335
- display: flex;
336
- margin-top: 1em;
337
- gap: 20px;
338
- justify-content: center;
339
- align-items: start;
340
- flex-wrap: wrap;
341
- }
342
- .actions + * { margin-top: 1em; }
343
- .actions > :is(a, button) {
344
- display: block;
345
- width: 30%;
346
- min-width: 10em;
347
- background: var(--button_color);
348
- color: white;
349
- padding: 0.35em 2em 0.45em 2em;
350
- text-decoration: none;
351
- text-align: center;
352
- }
353
- .actions > :is(a, button):hover {
354
- background: color-mix(in srgb, var(--button_color) 90%, black);
355
- color: white;
356
- }
357
- .actions > :is(a, button).disabled {
358
- pointer-events: none;
359
- filter: saturate(10%) brightness(50%);
360
- }
361
-
362
- span.warning { color: var(--color, red); }
363
- span.warning:before {
364
- content: "⚠\FE0E";
365
- margin-right: 2px;
366
- }
367
-
368
- code:not(.hljs) {
369
- padding: 2px 6px;
370
- font-family: monospace;
371
- font-size: 14px;
372
- background: #eee;
373
- white-space: nowrap;
374
- }
375
- pre > code:not(.hljs) {
376
- padding: 0;
377
- font-size: inherit;
378
- background: transparent;
379
- }
380
-
381
- pre {
382
- position: relative;
383
- margin: 1em 20px;
384
- padding: 0;
385
- border: 1px solid #ebebeb;
386
- background: #ffffff;
387
- overflow: auto;
388
- font-size: 12px;
389
- z-index: 0;
390
- }
391
- .nojs pre { padding: 6px; }
392
-
393
- .alert {
394
- margin: 1.8em 1em 1.4em 1em;
395
- padding: 0.8em 1em;
396
- background: #fcfcfc;
397
- border-left: 3px solid var(--color);
398
- }
399
- .alert:first-child { margin-top: 0; }
400
- .alert > .title {
401
- font-weight: bold;
402
- color: var(--color);
403
- }
404
- .alert > .title::after { content: var(--text); }
405
- .alert.note {
406
- --color: #316dca;
407
- --text: 'Note';
408
- }
409
- .alert.tip {
410
- --color: #347d39;
411
- --text: 'Tip';
412
- }
413
- .alert.important {
414
- --color: #8256d0;
415
- --text: '⚠\FE0E Important';
416
- }
417
- .alert.warning {
418
- --color: #966600;
419
- --text: '⚠\FE0E Warning';
420
- }
421
- .alert.caution {
422
- --color: #c93c37;
423
- --text: '⚠\FE0E Caution';
424
- }
425
-
426
- .footnotes {
427
- margin: 2em 1em;
428
- font-style: italic;
429
- }
@@ -1,29 +0,0 @@
1
- /* Copyright (C) 2024 Niels Martignène <niels.martignene@protonmail.com>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the “Software”), to deal in
5
- the Software without restriction, including without limitation the rights to use,
6
- copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
7
- Software, and to permit persons to whom the Software is furnished to do so,
8
- subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
14
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
15
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
- OTHER DEALINGS IN THE SOFTWARE. */
21
-
22
- @media print {
23
- #top { display: none; }
24
- #side { display: none; }
25
- #side ~ main { padding-right: 16px; }
26
- footer { display: none; }
27
-
28
- h1:not(:first-child) { break-before: page; }
29
- }
@@ -1,41 +0,0 @@
1
- /* Copyright (C) 2024 Niels Martignène <niels.martignene@protonmail.com>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the “Software”), to deal in
5
- the Software without restriction, including without limitation the rights to use,
6
- copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
7
- Software, and to permit persons to whom the Software is furnished to do so,
8
- subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
14
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
15
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
- OTHER DEALINGS IN THE SOFTWARE. */
21
-
22
- /* -------------------- Normalization -------------------- */
23
-
24
- button, input, optgroup, select, textarea {
25
- box-sizing: border-box;
26
- font-family: inherit;
27
- font-size: 100%;
28
- }
29
- input[type='checkbox'], input[type='radio'] { vertical-align: -2px; }
30
-
31
- a { cursor: pointer; }
32
-
33
- p { margin: 0; }
34
- p + p { margin-top: 1em; }
35
-
36
- /* -------------------- Miscellaneous -------------------- */
37
-
38
- .disabled, .disabled * {
39
- pointer-events: none !important;
40
- user-select: none !important;
41
- }
@@ -1,104 +0,0 @@
1
- /* Copyright (C) 2024 Niels Martignène <niels.martignene@protonmail.com>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the “Software”), to deal in
5
- the Software without restriction, including without limitation the rights to use,
6
- copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
7
- Software, and to permit persons to whom the Software is furnished to do so,
8
- subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
14
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
15
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
- OTHER DEALINGS IN THE SOFTWARE. */
21
-
22
- @media screen and (max-width: 1300px) {
23
- #side menu {
24
- width: auto;
25
- margin: 16px;
26
- padding: 16px;
27
- position: static;
28
- }
29
-
30
- #side ~ main { padding-right: 16px; }
31
-
32
- button > span { display: none; }
33
- }
34
-
35
- @media screen and (max-width: 960px) {
36
- html { scroll-padding-top: calc(var(--small_height) + 10px); }
37
-
38
- #top menu {
39
- height: var(--small_height);
40
- padding-top: 16px;
41
- padding-left: 60px;
42
- flex-direction: column;
43
- gap: 0;
44
- align-items: start;
45
- z-index: 8;
46
- }
47
- #top li a {
48
- font-size: 1.1em;
49
- line-height: 1.6em;
50
- }
51
- #top li > a:hover, #top li.active > a { margin-bottom: -2px; }
52
- #top li > a { border-bottom: none; }
53
- .js #top li > a, .nojs #top:not(:hover) li > a { display: none; }
54
- .nojs #top:hover menu, #top.active menu {
55
- height: auto;
56
- gap: 4px;
57
- }
58
- #top.active li > a, .nojs #top li.active > a { display: block !important; }
59
- #top li.active > div, .nojs #top li:hover > div { position: static; }
60
-
61
- #side a {
62
- font-size: 1.1em;
63
- line-height: 1.6em;
64
- }
65
-
66
- footer {
67
- flex-direction: column;
68
- padding: 0.5em;
69
- gap: 6px;
70
- text-align: center;
71
- }
72
- footer > img { display: none; }
73
-
74
- #logo {
75
- height: 100%;
76
- margin: 0 auto;
77
- transform: translate(-10px, 0);
78
- }
79
- .js #top.active #logo { display: none; }
80
- .nojs #top:hover #logo { display: none; }
81
-
82
- :is(#deploy, .deploy) {
83
- display: block !important;
84
- position: fixed;
85
- width: 42px;
86
- height: 40px;
87
- top: 10px;
88
- left: 8px;
89
- padding: 0;
90
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAOUlEQVQ4T2O0sLD4z0ADwDhqMCxUGWkQvGAjRw2GhyztgmI0HcPTMc2CYjSDDOGygmapYtRgWKoAAGrCE+uzrIQ5AAAAAElFTkSuQmCC");
91
- background-repeat: no-repeat;
92
- background-position: center;
93
- z-index: 999;
94
- cursor: pointer;
95
- }
96
- .nojs #deploy { pointer-events: none; }
97
-
98
- pre { margin: 1em 0; }
99
-
100
- .alert {
101
- margin-left: 0.4em;
102
- margin-right: 0.4em;
103
- }
104
- }