@myst-theme/styles 0.17.1 → 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.17.1 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 4390ms.
11
+ Done in 3895ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
9
+ ## 0.18.0
10
+
3
11
  ## 0.17.1
4
12
 
5
13
  ## 0.17.0
@@ -197,7 +205,6 @@
197
205
  ### Minor Changes
198
206
 
199
207
  - 0536fa7: Rename styles to allow for additional grid systems:
200
-
201
208
  - `article-grid-gap` to `grid-gap`
202
209
  - `article-subgrid-gap` to `subgrid-gap`
203
210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myst-theme/styles",
3
- "version": "0.17.1",
3
+ "version": "1.0.0",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {
package/tasklists.css CHANGED
@@ -5,4 +5,7 @@
5
5
  .task-list-item-checkbox {
6
6
  @apply -ml-[29px] mr-[14px] translate-y-px w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:border-blue-500 dark:focus:border-blue-600 dark:ring-offset-gray-800 dark:bg-gray-700 dark:border-gray-600;
7
7
  }
8
+ .prose .task-list-item > p {
9
+ @apply mt-0 mb-0 inline;
10
+ }
8
11
  }
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);