@myst-theme/styles 0.18.0 → 1.0.1

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.1 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 3095ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 1.0.1
4
+
5
+ ## 1.0.0
6
+
7
+ ### Patch Changes
8
+
9
+ - bd19488: Fix inline images and centered figure captions
10
+
3
11
  ## 0.18.0
4
12
 
5
13
  ## 0.17.1
@@ -199,7 +207,6 @@
199
207
  ### Minor Changes
200
208
 
201
209
  - 0536fa7: Rename styles to allow for additional grid systems:
202
-
203
210
  - `article-grid-gap` to `grid-gap`
204
211
  - `article-subgrid-gap` to `subgrid-gap`
205
212
 
package/button.css CHANGED
@@ -1,6 +1,8 @@
1
1
  a.button,
2
+ button.button,
3
+ span.button,
2
4
  cite.button a {
3
- @apply px-4 py-2 font-bold rounded no-underline;
5
+ @apply px-4 py-2 font-bold rounded no-underline cursor-pointer;
4
6
  @apply text-white bg-blue-500 whitespace-nowrap;
5
7
  &:hover {
6
8
  @apply bg-blue-700;
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.1",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {
@@ -9,6 +9,10 @@
9
9
  },
10
10
  "author": "Rowan Cockett <rowan@curvenote.com>",
11
11
  "license": "MIT",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/jupyter-book/myst-theme.git"
15
+ },
12
16
  "bugs": {
13
17
  "url": "https://github.com/jupyter-book/myst-theme/issues"
14
18
  },
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);