@brett_lamy/docstream 0.6.2 → 0.6.4

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/styles.css +13 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brett_lamy/docstream",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "GitBook-aware readonly markdown and AI stream renderer.",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/styles.css CHANGED
@@ -81,16 +81,7 @@
81
81
  }
82
82
 
83
83
  :is([data-docstream], .docs-article) [data-docstream-blocks] > * {
84
- margin-block: 0;
85
- }
86
-
87
- :is([data-docstream], .docs-article) [data-docstream-blocks] > * + * {
88
- margin-block-start: 0.9em;
89
- }
90
-
91
- :is([data-docstream], .docs-article) [data-docstream-blocks] > :is(.docs-table, .docs-cards) {
92
- margin-block-start: 0;
93
- margin-block-end: 0;
84
+ margin-block: 0.75em;
94
85
  }
95
86
 
96
87
  :is([data-docstream], .docs-article) :is(h1, h2, h3, h4, h5, h6) {
@@ -104,11 +95,7 @@
104
95
  }
105
96
 
106
97
  :is([data-docstream], .docs-article) [data-docstream-blocks] > :is(h1, h2, h3, h4, h5, h6) {
107
- margin-block-start: 1.6em;
108
- }
109
-
110
- :is([data-docstream], .docs-article) [data-docstream-blocks] > :first-child:is(h1, h2, h3, h4, h5, h6) {
111
- margin-block-start: 0;
98
+ margin-block: 1.6em 0.45em;
112
99
  }
113
100
 
114
101
  :is([data-docstream], .docs-article) h1 {
@@ -145,7 +132,11 @@
145
132
  }
146
133
 
147
134
  :is([data-docstream], .docs-article) p {
148
- margin-block: 0;
135
+ margin-block: 0.75em;
136
+ }
137
+
138
+ :is([data-docstream], .docs-article) [data-docstream-blocks] > :is(.docs-cards, .docs-code, .docs-math, .docs-hint, .docs-tabs, .docs-expandable, .docs-stepper, .docs-mermaid-preview, .oas, .docs-embed, .docstream-viz, figure, blockquote, ul, ol, hr) {
139
+ margin-block: 0.75em;
149
140
  }
150
141
 
151
142
  :is([data-docstream], .docs-article) a {
@@ -1300,3 +1291,9 @@
1300
1291
  height: 14px;
1301
1292
  border-radius: 4px;
1302
1293
  }
1294
+
1295
+ /* Keep every rendered table variant flush, after the shared block spacing rules. */
1296
+ :is([data-docstream], .docs-article) [data-docstream-blocks] > :is(.docs-table, table, .docs-cards) {
1297
+ margin-block-start: 0;
1298
+ margin-block-end: 0;
1299
+ }