hyperbook 0.76.0 → 0.76.1

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.
@@ -111,7 +111,7 @@ figure {
111
111
 
112
112
  .hyperbook-markdown figure.normal figcaption {
113
113
  font-style: italic;
114
- font-size: 14px;
114
+ font-size: 0.875rem;
115
115
  max-width: 400px;
116
116
  margin: 0 auto;
117
117
  }
@@ -126,7 +126,7 @@ figure {
126
126
  .hyperbook-markdown a.heading:hover::before {
127
127
  position: absolute;
128
128
  content: "📎";
129
- font-size: 12px;
129
+ font-size: 0.75rem;
130
130
  top: 50%;
131
131
  transform: translateY(-50%);
132
132
  left: 0px;
@@ -311,7 +311,7 @@ figure {
311
311
  background: none;
312
312
  border: none;
313
313
  opacity: 0.5;
314
- font-size: 16px;
314
+ font-size: 1rem;
315
315
  }
316
316
 
317
317
  .hyperbook-markdown .bookmark:hover {
@@ -104,13 +104,13 @@
104
104
  margin-right: 2px;
105
105
  display: inline-block;
106
106
  font-family: sans-serif;
107
- font-size: 16px;
107
+ font-size: 1rem;
108
108
  box-sizing: border-box;
109
109
  color: #f4f4f4;
110
110
  }
111
111
 
112
112
  .abcjs-inline-audio .abcjs-tempo-wrapper {
113
- font-size: 10px;
113
+ font-size: 0.625rem;
114
114
  color: #f4f4f4;
115
115
  box-sizing: border-box;
116
116
  display: flex;
@@ -157,7 +157,7 @@
157
157
  .abcjs-large .abcjs-btn {
158
158
  width: 56px;
159
159
  height: 52px;
160
- font-size: 28px;
160
+ font-size: 1.75rem;
161
161
  padding: 6px 8px;
162
162
  }
163
163
  .abcjs-large .abcjs-midi-progress-background {
@@ -170,17 +170,17 @@
170
170
  width: 40px;
171
171
  }
172
172
  .abcjs-large .abcjs-midi-clock {
173
- font-size: 32px;
173
+ font-size: 2rem;
174
174
  margin-right: 10px;
175
175
  margin-left: 10px;
176
176
  margin-top: -1px;
177
177
  }
178
178
  .abcjs-large .abcjs-midi-tempo {
179
- font-size: 20px;
179
+ font-size: 1.25rem;
180
180
  width: 50px;
181
181
  }
182
182
  .abcjs-large .abcjs-tempo-wrapper {
183
- font-size: 20px;
183
+ font-size: 1.25rem;
184
184
  }
185
185
 
186
186
  .abcjs-css-warning {
@@ -42,7 +42,7 @@
42
42
 
43
43
  .directive-alert.icon::before {
44
44
  border-radius: 100%;
45
- font-size: 14px;
45
+ font-size: 0.875rem;
46
46
  font-weight: 700;
47
47
  left: -14px;
48
48
  display: flex;
@@ -36,7 +36,7 @@ ul.directive-bookmarks li:last-of-type {
36
36
  ul.directive-bookmarks a::before {
37
37
  content: "🔖";
38
38
  position: absolute;
39
- font-size: 12px;
39
+ font-size: 0.75rem;
40
40
  left: 12px;
41
41
  top: 50%;
42
42
  transform: translateY(-50%);
@@ -36,7 +36,7 @@
36
36
  .directive-collapsible>summary:after {
37
37
  content: "\02795";
38
38
  /* Unicode character for "plus" sign (+) */
39
- font-size: 13px;
39
+ font-size: 0.8125rem;
40
40
  float: right;
41
41
  margin-left: 5px;
42
42
  color: var(--color-text);
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .directive-pagelist .letter {
6
- font-size: 24px;
6
+ font-size: 1.5rem;
7
7
  }
8
8
 
9
9
  .directive-pagelist .term {
@@ -15,7 +15,7 @@
15
15
  .directive-protect .password-input>input {
16
16
  text-align: center;
17
17
  border-radius: 10px;
18
- font-size: 18px;
18
+ font-size: 1.125rem;
19
19
  border-width: 1px;
20
20
  border-style: solid;
21
21
  }
@@ -62,11 +62,11 @@
62
62
  }
63
63
 
64
64
  .directive-qr .label.S {
65
- font-size: 12px;
65
+ font-size: 0.75rem;
66
66
  }
67
67
 
68
68
  .directive-qr .label.M {
69
- font-size: 14px;
69
+ font-size: 0.875rem;
70
70
  }
71
71
 
72
72
  .directive-qr {
@@ -98,7 +98,7 @@
98
98
  padding: 16px;
99
99
  color: white;
100
100
  font-weight: bold;
101
- font-size: 18px;
101
+ font-size: 1.125rem;
102
102
  transition: 0.6s ease;
103
103
  border-radius: 0 3px 3px 0;
104
104
  user-select: none;
@@ -125,7 +125,7 @@ code-input {
125
125
 
126
126
  .directive-typst .typst-error-title {
127
127
  font-weight: 600;
128
- font-size: 14px;
128
+ font-size: 0.875rem;
129
129
  display: flex;
130
130
  align-items: center;
131
131
  gap: 8px;
@@ -136,7 +136,7 @@ code-input {
136
136
  border: none;
137
137
  color: white;
138
138
  cursor: pointer;
139
- font-size: 24px;
139
+ font-size: 1.5rem;
140
140
  line-height: 1;
141
141
  padding: 0;
142
142
  margin: 0;
@@ -158,7 +158,7 @@ code-input {
158
158
  padding: 16px;
159
159
  color: #dc2626;
160
160
  font-family: monospace;
161
- font-size: 13px;
161
+ font-size: 0.8125rem;
162
162
  white-space: pre-wrap;
163
163
  word-break: break-word;
164
164
  line-height: 1.5;
@@ -201,7 +201,7 @@ code-input {
201
201
  border-radius: 4px;
202
202
  cursor: pointer;
203
203
  white-space: nowrap;
204
- font-size: 14px;
204
+ font-size: 0.875rem;
205
205
  transition: all 0.2s;
206
206
  }
207
207
 
@@ -224,7 +224,7 @@ code-input {
224
224
  border: none;
225
225
  color: inherit;
226
226
  cursor: pointer;
227
- font-size: 18px;
227
+ font-size: 1.125rem;
228
228
  line-height: 1;
229
229
  padding: 0;
230
230
  margin: 0;
@@ -247,7 +247,7 @@ code-input {
247
247
 
248
248
  .directive-typst .add-source-file {
249
249
  padding: 6px 12px;
250
- font-size: 16px;
250
+ font-size: 1rem;
251
251
  flex: none;
252
252
  font-weight: bold;
253
253
  white-space: nowrap;
@@ -295,7 +295,7 @@ code-input {
295
295
  .directive-typst .binary-files-section summary .summary-indicator {
296
296
  transition: transform 0.2s;
297
297
  display: inline-block;
298
- font-size: 12px;
298
+ font-size: 0.75rem;
299
299
  }
300
300
 
301
301
  .directive-typst .binary-files-section[open] summary .summary-indicator {
@@ -308,7 +308,7 @@ code-input {
308
308
 
309
309
  .directive-typst .add-binary-file {
310
310
  padding: 6px 12px;
311
- font-size: 14px;
311
+ font-size: 0.875rem;
312
312
  border: 1px solid var(--color-spacer);
313
313
  border-radius: 4px;
314
314
  background-color: var(--color--background);
@@ -338,7 +338,7 @@ code-input {
338
338
  color: var(--color-text);
339
339
  opacity: 0.6;
340
340
  font-style: italic;
341
- font-size: 14px;
341
+ font-size: 0.875rem;
342
342
  }
343
343
 
344
344
  .directive-typst .binary-file-item {
@@ -346,11 +346,11 @@ code-input {
346
346
  align-items: center;
347
347
  gap: 8px;
348
348
  padding: 8px 12px;
349
- font-size: 14px;
349
+ font-size: 0.875rem;
350
350
  }
351
351
 
352
352
  .directive-typst .binary-file-icon {
353
- font-size: 16px;
353
+ font-size: 1rem;
354
354
  flex-shrink: 0;
355
355
  }
356
356
 
@@ -364,7 +364,7 @@ code-input {
364
364
  border: none;
365
365
  color: var(--color-text);
366
366
  cursor: pointer;
367
- font-size: 18px;
367
+ font-size: 1.125rem;
368
368
  line-height: 1;
369
369
  padding: 0;
370
370
  margin: 0;
@@ -7,7 +7,7 @@
7
7
  pre[class*="language-"],
8
8
  code[class*="language-"] {
9
9
  color: #c9d1d9;
10
- font-size: 13px;
10
+ font-size: 0.8125rem;
11
11
  text-shadow: none;
12
12
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
13
13
  direction: ltr;
@@ -7,7 +7,7 @@
7
7
  pre[class*="language-"],
8
8
  code[class*="language-"] {
9
9
  color: #24292f;
10
- font-size: 13px;
10
+ font-size: 0.8125rem;
11
11
  text-shadow: none;
12
12
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
13
13
  direction: ltr;
@@ -298,7 +298,7 @@ a.jump.previous::before {
298
298
  }
299
299
 
300
300
  .mobile-nav .toggle {
301
- font-size: 42px;
301
+ font-size: 2.625rem;
302
302
  border: none;
303
303
  padding: 0;
304
304
  margin: 0;
@@ -702,7 +702,7 @@ nav li+li {
702
702
  align-items: center;
703
703
  justify-content: center;
704
704
  overflow: none;
705
- font-size: 32px;
705
+ font-size: 2rem;
706
706
  position: absolute;
707
707
  top: 0;
708
708
  left: 0;
package/dist/index.js CHANGED
@@ -179161,7 +179161,6 @@ body::-webkit-scrollbar {
179161
179161
  --header-height: 60px;
179162
179162
  --nav-width: minmax(300px, 0.33fr);
179163
179163
  --nav-font-size: 0.9rem;
179164
- --body-font-size: 14px;
179165
179164
  }`;
179166
179165
  if (font) {
179167
179166
  rootCss += `
@@ -179216,7 +179215,7 @@ body {
179216
179215
  color: var(--color-text);
179217
179216
  font-family: hyperbook-body;
179218
179217
  font-weight: normal;
179219
- font-size: var(--body-font-size);
179218
+ font-size: 1rem;
179220
179219
  margin: 0;
179221
179220
  padding: 0;
179222
179221
  }
@@ -201544,7 +201543,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
201544
201543
  /***/ ((module) => {
201545
201544
 
201546
201545
  "use strict";
201547
- module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.76.0","author":"Mike Barkmin","homepage":"https://github.com/openpatch/hyperbook#readme","license":"MIT","bin":{"hyperbook":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/openpatch/hyperbook.git","directory":"packages/hyperbook"},"bugs":{"url":"https://github.com/openpatch/hyperbook/issues"},"engines":{"node":">=18"},"scripts":{"version":"pnpm build","lint":"tsc --noEmit","dev":"ncc build ./index.ts -w -o dist/","build":"rimraf dist && ncc build ./index.ts -o ./dist/ --no-cache --no-source-map-register --external favicons --external sharp && node postbuild.mjs"},"dependencies":{"favicons":"^7.2.0"},"devDependencies":{"create-hyperbook":"workspace:*","@hyperbook/fs":"workspace:*","@hyperbook/markdown":"workspace:*","@hyperbook/types":"workspace:*","@pnpm/exportable-manifest":"1000.0.6","@types/archiver":"6.0.3","@types/async-retry":"1.4.9","@types/cross-spawn":"6.0.6","@types/lunr":"^2.3.7","@types/prompts":"2.4.9","@types/tar":"6.1.13","@types/ws":"^8.5.14","@vercel/ncc":"0.38.3","archiver":"7.0.1","async-retry":"1.3.3","chalk":"5.4.1","chokidar":"4.0.3","commander":"12.1.0","cpy":"11.1.0","cross-spawn":"7.0.6","domutils":"^3.2.2","extract-zip":"^2.0.1","got":"12.6.0","htmlparser2":"^10.0.0","lunr":"^2.3.9","lunr-languages":"^1.14.0","mime":"^4.0.6","prompts":"2.4.2","rimraf":"6.0.1","tar":"7.4.3","update-check":"1.5.4","ws":"^8.18.0"}}');
201546
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.76.1","author":"Mike Barkmin","homepage":"https://github.com/openpatch/hyperbook#readme","license":"MIT","bin":{"hyperbook":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/openpatch/hyperbook.git","directory":"packages/hyperbook"},"bugs":{"url":"https://github.com/openpatch/hyperbook/issues"},"engines":{"node":">=18"},"scripts":{"version":"pnpm build","lint":"tsc --noEmit","dev":"ncc build ./index.ts -w -o dist/","build":"rimraf dist && ncc build ./index.ts -o ./dist/ --no-cache --no-source-map-register --external favicons --external sharp && node postbuild.mjs"},"dependencies":{"favicons":"^7.2.0"},"devDependencies":{"create-hyperbook":"workspace:*","@hyperbook/fs":"workspace:*","@hyperbook/markdown":"workspace:*","@hyperbook/types":"workspace:*","@pnpm/exportable-manifest":"1000.0.6","@types/archiver":"6.0.3","@types/async-retry":"1.4.9","@types/cross-spawn":"6.0.6","@types/lunr":"^2.3.7","@types/prompts":"2.4.9","@types/tar":"6.1.13","@types/ws":"^8.5.14","@vercel/ncc":"0.38.3","archiver":"7.0.1","async-retry":"1.3.3","chalk":"5.4.1","chokidar":"4.0.3","commander":"12.1.0","cpy":"11.1.0","cross-spawn":"7.0.6","domutils":"^3.2.2","extract-zip":"^2.0.1","got":"12.6.0","htmlparser2":"^10.0.0","lunr":"^2.3.9","lunr-languages":"^1.14.0","mime":"^4.0.6","prompts":"2.4.2","rimraf":"6.0.1","tar":"7.4.3","update-check":"1.5.4","ws":"^8.18.0"}}');
201548
201547
 
201549
201548
  /***/ })
201550
201549
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbook",
3
- "version": "0.76.0",
3
+ "version": "0.76.1",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",
@@ -58,8 +58,8 @@
58
58
  "ws": "^8.18.0",
59
59
  "create-hyperbook": "0.3.1",
60
60
  "@hyperbook/fs": "0.23.0",
61
- "@hyperbook/markdown": "0.47.1",
62
- "@hyperbook/types": "0.19.0"
61
+ "@hyperbook/types": "0.19.0",
62
+ "@hyperbook/markdown": "0.47.1"
63
63
  },
64
64
  "scripts": {
65
65
  "version": "pnpm build",