@hyperbook/markdown 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/shell.css +12 -10
- package/dist/index.js +6 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/assets/shell.css
CHANGED
|
@@ -30,6 +30,7 @@ li {
|
|
|
30
30
|
|
|
31
31
|
side-drawer {
|
|
32
32
|
position: absolute;
|
|
33
|
+
width: 500px;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
#nav-drawer {
|
|
@@ -208,8 +209,8 @@ a.jump.previous::before {
|
|
|
208
209
|
right: 0;
|
|
209
210
|
top: 0;
|
|
210
211
|
bottom: 0;
|
|
211
|
-
grid-template-columns:
|
|
212
|
-
grid-template-rows:
|
|
212
|
+
grid-template-columns: var(--nav-width) 1fr;
|
|
213
|
+
grid-template-rows: var(--header-height) 1fr;
|
|
213
214
|
grid-template-areas:
|
|
214
215
|
"header header header"
|
|
215
216
|
"nav article article";
|
|
@@ -224,10 +225,12 @@ a.jump.previous::before {
|
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
.sidebar {
|
|
228
|
+
font-size: var(--nav-font-size);
|
|
227
229
|
display: flex;
|
|
228
230
|
flex-direction: column;
|
|
229
231
|
grid-area: nav;
|
|
230
232
|
overflow-y: auto;
|
|
233
|
+
scrollbar-width: thin;
|
|
231
234
|
border-right-style: solid;
|
|
232
235
|
border-right-width: 1px;
|
|
233
236
|
background: var(--color-nav);
|
|
@@ -271,8 +274,8 @@ a.jump.previous::before {
|
|
|
271
274
|
.toggle>.bar1,
|
|
272
275
|
.toggle>.bar2,
|
|
273
276
|
.toggle>.bar3 {
|
|
274
|
-
width:
|
|
275
|
-
height:
|
|
277
|
+
width: 30px;
|
|
278
|
+
height: 4px;
|
|
276
279
|
margin: 6px 0;
|
|
277
280
|
transition: 0.4s;
|
|
278
281
|
}
|
|
@@ -295,7 +298,6 @@ a.jump.previous::before {
|
|
|
295
298
|
@media screen and (max-width: 1280px) {
|
|
296
299
|
.main-grid {
|
|
297
300
|
grid-template-columns: 1fr;
|
|
298
|
-
grid-template-rows: 80px 1fr;
|
|
299
301
|
grid-template-areas:
|
|
300
302
|
"header"
|
|
301
303
|
"article";
|
|
@@ -318,7 +320,7 @@ main {
|
|
|
318
320
|
}
|
|
319
321
|
|
|
320
322
|
article {
|
|
321
|
-
max-width:
|
|
323
|
+
max-width: var(--main-width);
|
|
322
324
|
margin: 0 auto;
|
|
323
325
|
grid-area: article;
|
|
324
326
|
line-height: 1.5;
|
|
@@ -518,13 +520,13 @@ header {
|
|
|
518
520
|
|
|
519
521
|
.branding .name {
|
|
520
522
|
font-family: hyperbook-heading, sans-serif;
|
|
521
|
-
font-size:
|
|
523
|
+
font-size: 1.1rem;
|
|
522
524
|
font-weight: bold;
|
|
523
525
|
}
|
|
524
526
|
|
|
525
527
|
.jump-container {
|
|
526
528
|
display: flex;
|
|
527
|
-
max-width:
|
|
529
|
+
max-width: var(--main-width);
|
|
528
530
|
margin: 0 auto;
|
|
529
531
|
margin-top: 40px;
|
|
530
532
|
}
|
|
@@ -544,7 +546,7 @@ header {
|
|
|
544
546
|
gap: 16px;
|
|
545
547
|
margin-top: 30px;
|
|
546
548
|
padding-top: 30px;
|
|
547
|
-
max-width:
|
|
549
|
+
max-width: var(--main-width);
|
|
548
550
|
}
|
|
549
551
|
|
|
550
552
|
.meta .edit-github {
|
|
@@ -582,7 +584,7 @@ nav li+li {
|
|
|
582
584
|
}
|
|
583
585
|
|
|
584
586
|
.section {
|
|
585
|
-
margin-top:
|
|
587
|
+
margin-top: 4px;
|
|
586
588
|
}
|
|
587
589
|
|
|
588
590
|
.section>.name {
|
package/dist/index.js
CHANGED
|
@@ -66310,6 +66310,11 @@ body::-webkit-scrollbar {
|
|
|
66310
66310
|
--color-brand: ${colors?.brand || "#007864"};
|
|
66311
66311
|
--color-brand-dark: ${colors?.brandDark || colors?.brand || "#b5e3d8"};
|
|
66312
66312
|
--color-brand-text: ${colors?.brandText || "white"};
|
|
66313
|
+
--main-width: 980px;
|
|
66314
|
+
--header-height: 60px;
|
|
66315
|
+
--nav-width: minmax(300px, 0.33fr);
|
|
66316
|
+
--nav-font-size: 0.9rem;
|
|
66317
|
+
--body-font-size: 14px;
|
|
66313
66318
|
}`;
|
|
66314
66319
|
if (font) {
|
|
66315
66320
|
rootCss += `
|
|
@@ -66359,7 +66364,7 @@ body {
|
|
|
66359
66364
|
color: var(--color-text);
|
|
66360
66365
|
font-family: hyperbook-body;
|
|
66361
66366
|
font-weight: normal;
|
|
66362
|
-
font-size:
|
|
66367
|
+
font-size: var(--body-font-size);
|
|
66363
66368
|
margin: 0;
|
|
66364
66369
|
padding: 0;
|
|
66365
66370
|
}
|