bookish-press 0.4.35 → 0.4.36

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.
@@ -9,16 +9,13 @@ $: credit = node.getCredit();
9
9
 
10
10
  <Positioned position={node.getPosition()}>
11
11
  <figure>
12
- <blockquote class={'bookish-blockquote'} data-nodeid={node.nodeID}>
12
+ <blockquote class={'quote'} data-nodeid={node.nodeID}>
13
13
  {#each node.getBlocks() as element (element.nodeID)}
14
14
  <Block node={element} />
15
15
  {/each}
16
16
  </blockquote>
17
17
  {#if credit}
18
- <figcaption
19
- class="bookish-blockquote-caption {credit.isEmptyText()
20
- ? 'empty'
21
- : ''}"
18
+ <figcaption class="caption {credit.isEmptyText() ? 'empty' : ''}"
22
19
  ><Format node={credit} placeholder="credit" /></figcaption
23
20
  >
24
21
  {/if}
@@ -26,7 +23,7 @@ $: credit = node.getCredit();
26
23
  </Positioned>
27
24
 
28
25
  <style>
29
- .bookish-blockquote {
26
+ .quote {
30
27
  clear: both;
31
28
  border: none;
32
29
  font-family: var(--bookish-header-font-family);
@@ -40,12 +37,12 @@ $: credit = node.getCredit();
40
37
  position: relative;
41
38
  }
42
39
 
43
- .bookish-blockquote > :global(p) {
40
+ .quote > :global(p) {
44
41
  margin: 0;
45
42
  padding: 0;
46
43
  }
47
44
 
48
- .bookish-blockquote-caption {
45
+ .caption {
49
46
  margin-top: 0.5em;
50
47
  text-align: right;
51
48
  font-family: var(--bookish-header-font-family);
@@ -53,7 +50,7 @@ $: credit = node.getCredit();
53
50
  color: var(--bookish-muted-color);
54
51
  }
55
52
 
56
- .bookish-blockquote:not(.empty):before {
53
+ .quote:before {
57
54
  content: '\201C';
58
55
  position: relative;
59
56
  top: 80pt;
@@ -65,7 +62,7 @@ $: credit = node.getCredit();
65
62
  z-index: -1;
66
63
  }
67
64
 
68
- .bookish-blockquote-caption:before {
65
+ .caption:not(.empty):before {
69
66
  content: '--';
70
67
  margin-right: 0.25em;
71
68
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bookish-press",
3
3
  "private": false,
4
- "version": "0.4.35",
4
+ "version": "0.4.36",
5
5
  "type": "module",
6
6
  "description": "A platform for reading and writing readable, accessible, beautiful online books.",
7
7
  "license": "MIT",