@myst-theme/styles 0.1.37 → 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.
@@ -1,8 +1,8 @@
1
1
 
2
- > @myst-theme/styles@0.1.37 build
2
+ > @myst-theme/styles@0.2.0 build
3
3
  > tailwindcss -m -i ./app.css -o ../docs/public/tailwind.css
4
4
 
5
5
 
6
6
  Rebuilding...
7
7
 
8
- Done in 1019ms.
8
+ Done in 695ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - a61aa03a: Improve margins on children and balancing of callouts and equations.
8
+
9
+ ## 0.1.38
10
+
3
11
  ## 0.1.37
4
12
 
5
13
  ## 0.1.36
package/block-styles.css CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  @layer base {
6
6
  .shaded {
7
- @apply p-2 bg-slate-100;
7
+ @apply pt-5 bg-slate-100 dark:bg-slate-800 mb-3;
8
8
  }
9
9
  .shaded-children > * {
10
- @apply p-2 bg-slate-100;
10
+ @apply p-2 bg-slate-100 dark:bg-slate-800;
11
11
  }
12
12
  .rounded-children > * {
13
13
  @apply rounded;
package/figures.css CHANGED
@@ -8,3 +8,11 @@ figure.quote figcaption > p:before {
8
8
  figure.code > div {
9
9
  margin: 0;
10
10
  }
11
+ figure figcaption > p {
12
+ margin-top: 0 !important;
13
+ margin-bottom: 0 !important;
14
+ }
15
+ figure img {
16
+ margin-top: 0 !important;
17
+ margin-bottom: 0 !important;
18
+ }
package/grid-system.css CHANGED
@@ -9,6 +9,8 @@
9
9
  .article-grid > * {
10
10
  /* The default is spanning the body for any child component */
11
11
  @apply col-body;
12
+ /* Grids do not have margin-collapse, so each direct child needs to be addressed */
13
+ margin-top: 0 !important;
12
14
  }
13
15
  .article-grid-gap {
14
16
  @apply gap-1 md:gap-2 xl:gap-3 2xl:gap-4;
package/math.css CHANGED
@@ -1,3 +1,6 @@
1
+ .katex-display {
2
+ margin: 0 !important;
3
+ }
1
4
  /* Hide katex generated equation numbers */
2
5
  .katex .eqn-num {
3
6
  opacity: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myst-theme/styles",
3
- "version": "0.1.37",
3
+ "version": "0.2.0",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {