bookish-press 0.4.44 → 0.4.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.
@@ -61,6 +61,7 @@ function handleChange() {
61
61
  display: inline;
62
62
  padding: calc(1.5 * var(--bookish-inline-padding))
63
63
  var(--bookish-inline-padding);
64
+ white-space: pre-line;
64
65
  }
65
66
 
66
67
  :global(.bookish-code-inline) :global(code) {
@@ -18,7 +18,7 @@ $: id =
18
18
  $: classes =
19
19
  node.getLevel() === 0
20
20
  ? undefined
21
- : 'bookish-header' +
21
+ : 'page-header' +
22
22
  ($chapter && $chapter.highlightedID === id
23
23
  ? ' bookish-content-highlight'
24
24
  : '');
@@ -214,7 +214,7 @@ let editable = isBookEditable() ||
214
214
  <!-- Collapse the outline if a marginal is selected. -->
215
215
  <Outline
216
216
  slot="outline"
217
- collapse={marginal !== undefined}
217
+ collapse={$marginal !== undefined}
218
218
  previous={$edition.getPreviousChapterID(chapterID)}
219
219
  next={$edition.getNextChapterID(chapterID)}
220
220
  listener={(expanded) => {
@@ -77,7 +77,7 @@ function highlight() {
77
77
  const threshold = getHighlightThreshold();
78
78
  // Find the header that we're past so we can update the outline.
79
79
  let indexOfNearestHeaderAbove = -1; // -1 represents the title
80
- Array.from(document.getElementsByClassName('bookish-header')).forEach((header, index) => {
80
+ Array.from(document.getElementsByClassName('page-header')).forEach((header, index) => {
81
81
  // Is this a header we care about?
82
82
  if (header.tagName === 'H1' ||
83
83
  header.tagName === 'H2' ||
@@ -200,6 +200,7 @@ export const TechTheme = {
200
200
  paragraphFontFamily: '"Roboto", serif',
201
201
  headerFontFamily: '"Russo One", serif',
202
202
  bulletFontFamily: '"Roboto"',
203
+ codeFontFamily: '"Courier New", monospace',
203
204
  },
204
205
  // Font sizes
205
206
  sizes: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bookish-press",
3
3
  "private": false,
4
- "version": "0.4.44",
4
+ "version": "0.4.46",
5
5
  "type": "module",
6
6
  "description": "A platform for reading and writing readable, accessible, beautiful online books.",
7
7
  "license": "MIT",