@lvl99dotcom/edaha.md 0.1.0 → 0.2.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.
Files changed (61) hide show
  1. package/LICENSE +183 -183
  2. package/README.md +7 -252
  3. package/dist/cli/index.d.ts +36 -6
  4. package/dist/cli/index.js +48 -9
  5. package/dist/embeds/blocks/index.d.ts +59 -0
  6. package/dist/embeds/blocks/index.js +103 -0
  7. package/dist/embeds/index.d.ts +122 -19
  8. package/dist/embeds/index.js +381 -41
  9. package/dist/embeds/types/index.d.ts +111 -8
  10. package/dist/generator/article/index.d.ts +52 -12
  11. package/dist/generator/article/index.js +94 -26
  12. package/dist/generator/build/index.d.ts +55 -23
  13. package/dist/generator/build/index.js +151 -81
  14. package/dist/generator/config/index.d.ts +45 -8
  15. package/dist/generator/config/index.js +152 -30
  16. package/dist/generator/configFile/index.d.ts +58 -0
  17. package/dist/generator/configFile/index.js +122 -0
  18. package/dist/generator/fields/index.d.ts +93 -0
  19. package/dist/generator/fields/index.js +186 -0
  20. package/dist/generator/format/index.d.ts +40 -0
  21. package/dist/generator/format/index.js +75 -0
  22. package/dist/generator/lists/index.d.ts +3 -3
  23. package/dist/generator/lists/index.js +9 -8
  24. package/dist/generator/markdown/index.d.ts +8 -3
  25. package/dist/generator/markdown/index.js +11 -4
  26. package/dist/generator/metadata/index.d.ts +150 -0
  27. package/dist/generator/metadata/index.js +361 -0
  28. package/dist/generator/metadataGroups/index.d.ts +45 -0
  29. package/dist/generator/metadataGroups/index.js +169 -0
  30. package/dist/generator/templates/index.d.ts +35 -3
  31. package/dist/generator/templates/index.js +72 -6
  32. package/dist/generator/types/index.d.ts +43 -18
  33. package/dist/generator/urls/index.d.ts +18 -8
  34. package/dist/generator/urls/index.js +22 -12
  35. package/dist/index.d.ts +5 -7
  36. package/dist/index.js +6 -7
  37. package/package.json +18 -47
  38. package/theme/static/{site.css → base.css} +132 -24
  39. package/theme/templates/article/list.njk +6 -6
  40. package/theme/templates/article/single.njk +13 -7
  41. package/theme/templates/layouts/html.njk +54 -32
  42. package/theme/templates/layouts/rssfeed.njk +7 -7
  43. package/theme/templates/page/home.njk +2 -7
  44. package/theme/templates/page/single.njk +2 -2
  45. package/dist/client/assets/index-BbKEbPS8.css +0 -1
  46. package/dist/client/assets/index-DtG7vi1d.js +0 -559
  47. package/dist/client/index.html +0 -13
  48. package/dist/editor/index.d.ts +0 -62
  49. package/dist/editor/index.js +0 -102
  50. package/dist/embeds/bandcamp/index.d.ts +0 -9
  51. package/dist/embeds/bandcamp/index.js +0 -28
  52. package/dist/embeds/youtube/index.d.ts +0 -17
  53. package/dist/embeds/youtube/index.js +0 -48
  54. package/dist/server/app/index.d.ts +0 -39
  55. package/dist/server/app/index.js +0 -138
  56. package/dist/server/convert/index.d.ts +0 -25
  57. package/dist/server/convert/index.js +0 -125
  58. package/dist/server/store/index.d.ts +0 -148
  59. package/dist/server/store/index.js +0 -411
  60. package/dist/server/types/index.d.ts +0 -76
  61. package/dist/server/types/index.js +0 -1
@@ -6,24 +6,49 @@
6
6
  --colour-background: #ffffff;
7
7
  --colour-surface: #f4f4f6;
8
8
  --colour-border: #d8d8de;
9
- --colour-link: #1f5fbf;
10
- --colour-link-hover: #123d7d;
11
- --colour-focus: #1f5fbf;
12
- }
13
-
9
+ --colour-link: #bc4501;
10
+ --colour-link-hover: #db5a10;
11
+ --colour-focus: #db5a10;
12
+ --font-size-base: 16px;
13
+ --font-size-title: 48px;
14
+ --font-size-h1: 32px;
15
+ --font-size-h2: 28px;
16
+ --font-size-h3: 24px;
17
+ --font-size-h4: 20px;
18
+ --font-size-h5: 18px;
19
+ --font-size-h6: 16px;
20
+ }
21
+
22
+ /* Dark colours: the device's choice unless the theme switcher chose light, or the theme switcher's choice */
14
23
  @media (prefers-color-scheme: dark) {
15
- :root {
24
+ :root:not([data-theme="light"]) {
16
25
  --colour-text: #ececf0;
17
26
  --colour-muted: #a6a6ae;
18
27
  --colour-background: #141416;
19
28
  --colour-surface: #1f1f23;
20
29
  --colour-border: #38383f;
21
- --colour-link: #8ab4ff;
22
- --colour-link-hover: #b8d1ff;
23
- --colour-focus: #8ab4ff;
30
+ --colour-link: #dc6d2c;
31
+ --colour-link-hover: #fda26d;
32
+ --colour-focus: #fda26d;
24
33
  }
25
34
  }
26
35
 
36
+ :root[data-theme="dark"] {
37
+ color-scheme: dark;
38
+ --colour-text: #ececf0;
39
+ --colour-muted: #a6a6ae;
40
+ --colour-background: #141416;
41
+ --colour-surface: #1f1f23;
42
+ --colour-border: #38383f;
43
+ --colour-link: #dc6d2c;
44
+ --colour-link-hover: #fda26d;
45
+ --colour-focus: #fda26d;
46
+ }
47
+
48
+ :root[data-theme="light"] {
49
+ color-scheme: light;
50
+ }
51
+
27
52
  *,
28
53
  *::before,
29
54
  *::after {
@@ -34,12 +59,7 @@ body {
34
59
  margin: 0;
35
60
  background: var(--colour-background);
36
61
  color: var(--colour-text);
37
- font-family:
38
- system-ui,
39
- -apple-system,
40
- "Segoe UI",
41
- Roboto,
42
- sans-serif;
62
+ font-family: Arial, sans-serif;
43
63
  font-size: 1.0625rem;
44
64
  line-height: 1.6;
45
65
  }
@@ -53,11 +73,36 @@ a:hover {
53
73
  }
54
74
 
55
75
  a:focus-visible,
76
+ button:focus-visible,
56
77
  .button:focus-visible {
57
78
  outline: 3px solid var(--colour-focus);
58
79
  outline-offset: 2px;
59
80
  }
60
81
 
82
+ h1 {
83
+ font-size: var(--font-size-h1);
84
+ }
85
+
86
+ h2 {
87
+ font-size: var(--font-size-h2);
88
+ }
89
+
90
+ h3 {
91
+ font-size: var(--font-size-h3);
92
+ }
93
+
94
+ h4 {
95
+ font-size: var(--font-size-h4);
96
+ }
97
+
98
+ h5 {
99
+ font-size: var(--font-size-h5);
100
+ }
101
+
102
+ h6 {
103
+ font-size: var(--font-size-h6);
104
+ }
105
+
61
106
  img {
62
107
  max-width: 100%;
63
108
  height: auto;
@@ -69,6 +114,38 @@ pre {
69
114
  background: var(--colour-surface);
70
115
  }
71
116
 
117
+ code {
118
+ background: var(--colour-surface);
119
+ color: var(--colour-muted);
120
+ font-size: 0.9em;
121
+ padding: 0.2em;
122
+ }
123
+
124
+ /* Hidden on screen but read by screen readers, e.g. extra context for "Read more" links */
125
+ .visually-hidden {
126
+ position: absolute;
127
+ width: 1px;
128
+ height: 1px;
129
+ margin: -1px;
130
+ padding: 0;
131
+ border: 0;
132
+ overflow: hidden;
133
+ clip: rect(0 0 0 0);
134
+ clip-path: inset(50%);
135
+ white-space: nowrap;
136
+ }
137
+
138
+ /* Raw content is shown as it is written: in the page's own font, keeping its spaces and line breaks */
139
+ .raw {
140
+ font: inherit;
141
+ white-space: pre-wrap;
142
+ }
143
+
144
+ pre.raw {
145
+ padding: 0;
146
+ background: none;
147
+ }
148
+
72
149
  table {
73
150
  border-collapse: collapse;
74
151
  }
@@ -79,6 +156,20 @@ td {
79
156
  border: 1px solid var(--colour-border);
80
157
  }
81
158
 
159
+ aside {
160
+ color: var(--colour-muted);
161
+ }
162
+
163
+ /* Switches between the light and dark theme (see theme-switcher.js) */
164
+ .theme-switcher {
165
+ padding: 0.25rem;
166
+ border: 0;
167
+ background: none;
168
+ color: inherit;
169
+ font: inherit;
170
+ cursor: pointer;
171
+ }
172
+
82
173
  .button {
83
174
  display: inline-block;
84
175
  padding: 0.5rem 1rem;
@@ -94,15 +185,6 @@ td {
94
185
  color: var(--colour-text);
95
186
  }
96
187
 
97
- .visually-hidden {
98
- position: absolute;
99
- width: 1px;
100
- height: 1px;
101
- overflow: hidden;
102
- clip-path: inset(50%);
103
- white-space: nowrap;
104
- }
105
-
106
188
  .site-header,
107
189
  .site-content,
108
190
  .site-footer {
@@ -166,6 +248,20 @@ td {
166
248
  margin-inline: 0.5rem;
167
249
  }
168
250
 
251
+ .site-breadcrumb,
252
+ .site-breadcrumb a:link,
253
+ .site-breadcrumb a:visited {
254
+ color: var(--colour-muted);
255
+ text-decoration: none;
256
+ }
257
+
258
+ .site-breadcrumb a:hover,
259
+ .site-breadcrumb a:active,
260
+ .site-breadcrumb a[aria-current] {
261
+ color: var(--colour-link-hover);
262
+ text-decoration: none;
263
+ }
264
+
169
265
  .article-meta,
170
266
  .article-updated {
171
267
  color: var(--colour-muted);
@@ -218,3 +314,15 @@ nav[aria-label="Pages"] ul {
218
314
  .colophon {
219
315
  font-size: 0.875rem;
220
316
  }
317
+
318
+ .colophon a:link,
319
+ .colophon a:visited {
320
+ color: var(--colour-muted);
321
+ text-decoration: none;
322
+ }
323
+
324
+ .colophon a:hover,
325
+ .colophon a:active {
326
+ color: var(--colour-link-hover);
327
+ text-decoration: none;
328
+ }
@@ -1,11 +1,11 @@
1
1
  {% extends "layouts/html.njk" %}
2
2
 
3
- {% block head_title %}{{ list.name }} | {% if list.pagination.page.index > 1 %}Page {{ list.pagination.page.index }} | {% endif %}{{ blog.name }}{% endblock %}
3
+ {% block headTitle %}{{ list.name }} | {% if list.pagination.page.index > 1 %}Page {{ list.pagination.page.index }} | {% endif %}{{ site.name }}{% endblock %}
4
4
 
5
5
  {% block breadcrumbItems %}
6
- {% set type = blog.types[list.type] %}
6
+ {% set typeSettings = site.types[list.type] %}
7
7
  {% if list.kind != "type" %}
8
- <li><a href="{{ type.url }}">{{ type.labelPlural }}</a></li>
8
+ <li><a href="{{ typeSettings.url }}">{{ typeSettings.labelPlural }}</a></li>
9
9
  {% endif %}
10
10
  <li><a href="{{ list.url }}" aria-current="page">{{ list.name }}</a></li>
11
11
  {% endblock %}
@@ -13,9 +13,9 @@
13
13
  {% block main %}
14
14
  <h1>{{ list.name }}</h1>
15
15
  {% if list.kind == "tag" %}
16
- <p>{{ blog.types[list.type].labelPlural }} tagged "{{ list.name }}".</p>
16
+ <p>{{ site.types[list.type].labelPlural }} tagged "{{ list.name }}".</p>
17
17
  {% elif list.kind == "author" %}
18
- <p>{{ blog.types[list.type].labelPlural }} by {{ list.name }}.</p>
18
+ <p>{{ site.types[list.type].labelPlural }} by {{ list.name }}.</p>
19
19
  {% endif %}
20
20
 
21
21
  {% if list.articles.length %}
@@ -31,7 +31,7 @@
31
31
  <h2 class="article-title"><a href="{{ article.url }}">{{ article.title }}</a></h2>
32
32
  <p class="article-meta">
33
33
  <time datetime="{{ article.date }}">{{ article.date | date }}</time>
34
- by {{ article.author.name }}
34
+ {% if article.author %}by {{ article.author.name }}{% endif %}
35
35
  </p>
36
36
  <div class="article-excerpt">
37
37
  {{ article.excerptHtml | safe }}
@@ -1,13 +1,13 @@
1
1
  {% extends "layouts/html.njk" %}
2
2
 
3
- {% block head_title %}{{ article.title }} | {{ blog.name }}{% endblock %}
3
+ {% block headTitle %}{{ article.title }} | {{ site.name }}{% endblock %}
4
4
 
5
- {% block head_description %}{{ article.excerptText }}{% endblock %}
5
+ {% block headDescription %}{{ article.excerptText }}{% endblock %}
6
6
 
7
7
  {% block breadcrumbItems %}
8
- {% set type = blog.types[article.type] %}
9
- {% if type.generate.list %}
10
- <li><a href="{{ type.url }}">{{ type.labelPlural }}</a></li>
8
+ {% set typeSettings = site.types[article.type] %}
9
+ {% if typeSettings.generate.list %}
10
+ <li><a href="{{ typeSettings.url }}">{{ typeSettings.labelPlural }}</a></li>
11
11
  {% endif %}
12
12
  <li><a href="{{ article.url }}" aria-current="page">{{ article.title }}</a></li>
13
13
  {% endblock %}
@@ -17,9 +17,12 @@
17
17
  <h1 class="article-title">{{ article.title }}</h1>
18
18
 
19
19
  <div class="article-body">
20
- {{ article.bodyHtml | safe }}
20
+ {% block body %}
21
+ {{ article.bodyHtml | safe }}
22
+ {% endblock %}
21
23
  </div>
22
24
 
25
+ {% block attachments %}
23
26
  {% if article.attachments.length %}
24
27
  <h2>Attachments</h2>
25
28
  <ul class="article-attachments">
@@ -34,23 +37,26 @@
34
37
  {% endfor %}
35
38
  </ul>
36
39
  {% endif %}
40
+ {% endblock %}
37
41
  </article>
38
42
  {% endblock %}
39
43
 
40
44
  {% block aside %}
41
45
  <aside>
42
46
  <dl>
47
+ {% if article.author %}
43
48
  <dt>Author</dt>
44
49
  <dd>
45
50
  {{ article.author.name }}
46
51
  {% if article.author.url %}(<a href="{{ article.author.url }}" rel="author">website</a>){% endif %}
47
52
  </dd>
53
+ {% endif %}
48
54
  <dt>Date</dt>
49
55
  <dd><time datetime="{{ article.date }}">{{ article.date | date }}</time></dd>
50
56
  {% if article.tags.length %}
51
57
  <dt>Tagged</dt>
52
58
  <dd>
53
- {% for tag in article.tags %}{% if blog.types[article.type].generate.tag %}<a href="{{ tag.url }}">{{ tag.name }}</a>{% else %}{{ tag.name }}{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}
59
+ {% for tag in article.tags %}{% if site.types[article.type].generate.tag %}<a href="{{ tag.url }}">{{ tag.name }}</a>{% else %}{{ tag.name }}{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}
54
60
  </dd>
55
61
  {% endif %}
56
62
  </dl>
@@ -3,48 +3,70 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>{% block head_title %}{{ blog.name }}{% endblock %}</title>
7
- <meta name="description" content="{% block head_description %}{{ blog.description }}{% endblock %}" />
6
+ <title>{% block headTitle %}{{ site.name }}{% endblock %}</title>
7
+ <meta name="description" content="{% block headDescription %}{{ site.description }}{% endblock %}" />
8
+
8
9
  {% if list and list.hasFeed %}
9
- <link rel="alternate" type="application/rss+xml" title="{{ list.name }} | {{ blog.name }}" href="{{ list.feedUrl }}" />
10
+ <link rel="alternate" type="application/rss+xml" title="{{ list.name }} | {{ site.name }}" href="{{ list.feedUrl }}" />
10
11
  {% endif %}
11
- <link rel="stylesheet" href="/site.css" />
12
+
13
+ {% block headImports %}
14
+ <link rel="stylesheet" href="{{ site.baseUrl }}/base.css" />
15
+ {% endblock %}
16
+ {% embedHead %}
12
17
  </head>
13
- <body class="{% block bodyClass %}{% endblock %}">
18
+ <body class="{% if type %}{{ type }} {% endif %}{% block bodyClass %}{% endblock %}">
14
19
  {% block header %}
15
- <header class="site-header">
16
- <p class="site-title"><a href="{{ blog.url }}">{{ blog.name }}</a></p>
17
- </header>
20
+ <header class="site-header">
21
+ <h1 class="site-title">
22
+ <a href="{{ site.url }}">{{ site.name }}<span class="leaf-device"></span></a>
23
+ </h1>
24
+ </header>
25
+ {% block headerNav %}{% endblock %}
18
26
  {% endblock %}
19
27
 
20
- <div class="site-content">
21
- <main class="site-main">
22
- {% block breadcrumb %}
23
- <nav class="site-breadcrumb" aria-label="Breadcrumb">
24
- <ul>
25
- <li><a href="{{ blog.url }}">{{ blog.name }}</a></li>
26
- {% block breadcrumbItems %}{% endblock %}
27
- </ul>
28
- </nav>
29
- {% endblock %}
28
+ {% block content %}
29
+ <div class="site-content">
30
+ <main class="site-main">
31
+ {% block breadcrumb %}
32
+ <nav class="site-breadcrumb" aria-label="Breadcrumb">
33
+ <ul>
34
+ <li><a href="{{ site.path }}">{{ site.name }}</a></li>
35
+ {% block breadcrumbItems %}{% endblock %}
36
+ </ul>
37
+ </nav>
38
+ {% endblock %}
30
39
 
31
- {% block main %}{% endblock %}
32
- </main>
40
+ {% block main %}{% endblock %}
41
+ </main>
33
42
 
34
- {% block aside %}{% endblock %}
35
- </div>
43
+ {% block aside %}{% endblock %}
44
+ </div>
45
+ {% endblock %}
36
46
 
37
47
  {% block footer %}
38
- <footer class="site-footer">
39
- <nav aria-label="Sections">
40
- {% for name, type in blog.types %}
41
- {% if type.generate.list %}
42
- <a href="{{ type.url }}">{{ type.labelPlural }}</a>
43
- {% endif %}
44
- {% endfor %}
45
- </nav>
46
- <p class="colophon">{{ blog.name }}</p>
47
- </footer>
48
+ <footer class="site-footer">
49
+ {% block footerNav %}
50
+ <nav aria-label="Sections">
51
+ {% for name, type in site.types %}
52
+ {% if type.generate.list %}
53
+ <a href="{{ type.url }}">{{ type.labelPlural }}</a>
54
+ {% endif %}
55
+ {% endfor %}
56
+ </nav>
57
+ {% endblock %}
58
+
59
+ {% block colophon %}
60
+ <p class="colophon">
61
+ <a href="{{ site.url }}">{{ site.name }}</a>
62
+ &middot;
63
+ Built with <a href="https://lvl99.github.io/edaha.md" target="_blank" rel="noopener noreferrer">edaha.md</a>
64
+ </p>
65
+ {% endblock %}
66
+ </footer>
48
67
  {% endblock %}
68
+
69
+ {% block bodyImports %}{% endblock %}
70
+ {% embedFoot %}
49
71
  </body>
50
72
  </html>
@@ -1,21 +1,21 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3
3
  <channel>
4
- <title>{{ list.name }} | {{ blog.name }}</title>
5
- <link>{{ site.url }}{{ list.url }}</link>
6
- <description>{{ blog.description }}</description>
4
+ <title>{{ list.name }} | {{ site.name }}</title>
5
+ <link>{{ list.url | absoluteUrl(site.url) }}</link>
6
+ <description>{{ site.description }}</description>
7
7
  <language>en</language>
8
- <atom:link href="{{ site.url }}{{ list.feedUrl }}" rel="self" type="application/rss+xml" />
8
+ <atom:link href="{{ list.feedUrl | absoluteUrl(site.url) }}" rel="self" type="application/rss+xml" />
9
9
  {% if list.articles.length %}
10
10
  <lastBuildDate>{{ list.articles[0].date | rfc822 }}</lastBuildDate>
11
11
  {% endif %}
12
12
  {% for article in list.articles %}
13
13
  <item>
14
14
  <title>{{ article.title }}</title>
15
- <link>{{ site.url }}{{ article.url }}</link>
16
- <guid isPermaLink="true">{{ site.url }}{{ article.url }}</guid>
15
+ <link>{{ article.url | absoluteUrl(site.url) }}</link>
16
+ <guid isPermaLink="true">{{ article.url | absoluteUrl(site.url) }}</guid>
17
17
  <pubDate>{{ article.date | rfc822 }}</pubDate>
18
- {% if article.author.email %}
18
+ {% if article.author and article.author.email %}
19
19
  <author>{{ article.author.email }} ({{ article.author.name }})</author>
20
20
  {% endif %}
21
21
  {% for tag in article.tags %}
@@ -1,20 +1,15 @@
1
1
  {# The website's front page: its title and body, without the header or breadcrumbs #}
2
2
  {% extends "layouts/html.njk" %}
3
3
 
4
- {% block head_title %}{{ blog.name }}{% endblock %}
4
+ {% block headTitle %}{{ site.name }} | {{ article.title }}{% endblock %}
5
5
 
6
- {% block head_description %}{{ blog.description }}{% endblock %}
6
+ {% block headDescription %}{{ site.description }}{% endblock %}
7
7
 
8
8
  {% block bodyClass %}home{% endblock %}
9
9
 
10
- {# The title is the page's own header #}
11
- {% block header %}{% endblock %}
12
-
13
10
  {% block breadcrumb %}{% endblock %}
14
11
 
15
12
  {% block main %}
16
- <h1 class="site-title">{{ article.title }}</h1>
17
-
18
13
  <div class="home-body">
19
14
  {{ article.bodyHtml | safe }}
20
15
  </div>
@@ -1,8 +1,8 @@
1
1
  {% extends "layouts/html.njk" %}
2
2
 
3
- {% block head_title %}{{ article.title }} | {{ blog.name }}{% endblock %}
3
+ {% block headTitle %}{{ article.title }} | {{ site.name }}{% endblock %}
4
4
 
5
- {% block head_description %}{{ article.excerptText }}{% endblock %}
5
+ {% block headDescription %}{{ article.excerptText }}{% endblock %}
6
6
 
7
7
  {% block breadcrumbItems %}
8
8
  <li><a href="{{ article.url }}" aria-current="page">{{ article.title }}</a></li>
@@ -1 +0,0 @@
1
- blog-editor{grid-template-columns:16rem 1fr;gap:1rem;display:grid}blog-article form{grid-template-columns:1fr 20rem;gap:1rem;display:grid}blog-article-data-field{margin-block:.5rem;display:block}blog-article-data-field input,blog-article-data-field select,blog-article-data-field textarea{box-sizing:border-box;width:100%}.toasts{flex-direction:column;gap:.5rem;max-width:24rem;display:flex;position:fixed;bottom:1rem;right:1rem}.toast{background:canvas;border:1px solid;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .75rem;display:flex}.toast.error{border-width:2px}.dialog-backdrop{background:#0006;place-items:center;display:grid;position:fixed;inset:0}.dialog{background:canvas;border:1px solid;padding:1rem}blog-article .preview{box-sizing:border-box;width:100%;height:40rem}.richtext-content .ProseMirror{min-height:20rem}.richtext-content img{max-width:100%}.richtext-content .readmore-block,.richtext-content .embed-block{cursor:pointer;border:1px dashed;margin-block:.5rem;padding:.5rem}.richtext-content .block-header{align-items:center;gap:.5rem;display:flex}.richtext-content .block-header span{flex:1}.richtext-content [data-type=details]{cursor:pointer;border:1px dashed;margin-block:.5rem;padding:.5rem}.richtext-content [data-type=details] summary,.richtext-content [data-type=detailsContent]{cursor:text}.richtext-content [data-type=details]>button{display:none}.richtext-content [data-type=details] summary,.richtext-content [data-type=detailsContent]{border:1px dotted;margin-block-start:.5rem;padding:.25rem .5rem;display:block}.richtext-content [data-type=detailsContent][hidden]{display:block}.richtext-content [data-type=details]:before,.richtext-content [data-type=details] summary:before,.richtext-content [data-type=detailsContent]:before{opacity:.6;font-size:.75em;font-weight:400;display:block}.richtext-content [data-type=details]:before{content:"Details"}.richtext-content [data-type=details] summary:before{content:"Summary"}.richtext-content [data-type=detailsContent]:before{content:"Content"}.richtext-content .embed-preview iframe{max-width:100%}.richtext-content .heading-id{opacity:.6;-webkit-user-select:all;user-select:all;margin-inline-start:.5em;font-size:.75em;font-weight:400}.richtext-content .ProseMirror-selectednode{outline:3px solid highlight}