@myst-theme/styles 0.18.0 → 1.0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @myst-theme/styles@0.18.0 build
2
+ > @myst-theme/styles@1.0.0 build
3
3
  > tailwindcss -m -i ./app.css -o ../docs/public/tailwind.css
4
4
 
5
5
  Browserslist: caniuse-lite is outdated. Please run:
@@ -8,4 +8,4 @@ Browserslist: caniuse-lite is outdated. Please run:
8
8
 
9
9
  Rebuilding...
10
10
 
11
- Done in 3743ms.
11
+ Done in 3895ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - bd19488: Fix inline images and centered figure captions
8
+
3
9
  ## 0.18.0
4
10
 
5
11
  ## 0.17.1
@@ -199,7 +205,6 @@
199
205
  ### Minor Changes
200
206
 
201
207
  - 0536fa7: Rename styles to allow for additional grid systems:
202
-
203
208
  - `article-grid-gap` to `grid-gap`
204
209
  - `article-subgrid-gap` to `subgrid-gap`
205
210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myst-theme/styles",
3
- "version": "0.18.0",
3
+ "version": "1.0.0",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {
package/typography.css CHANGED
@@ -35,9 +35,17 @@
35
35
  .prose dd {
36
36
  @apply ml-8;
37
37
  }
38
- .prose p img {
38
+ /* Keep inline images inside text flow from forcing line breaks */
39
+ .article p img,
40
+ .article table img,
41
+ .article dd img,
42
+ .prose p img,
43
+ .prose table img,
44
+ .prose dd img {
39
45
  margin: 0;
40
46
  display: inline-block;
47
+ max-height: 1.2em;
48
+ vertical-align: text-bottom;
41
49
  }
42
50
  article.content {
43
51
  min-height: calc(100vh);