@myst-theme/styles 0.1.38 → 0.2.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,8 +1,8 @@
1
1
 
2
- > @myst-theme/styles@0.1.38 build
2
+ > @myst-theme/styles@0.2.1 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 899ms.
8
+ Done in 1043ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 2ffaab08: Added a 'framed' style for blocks
8
+
9
+ ## 0.2.0
10
+
11
+ ### Patch Changes
12
+
13
+ - a61aa03a: Improve margins on children and balancing of callouts and equations.
14
+
3
15
  ## 0.1.38
4
16
 
5
17
  ## 0.1.37
package/app.css CHANGED
@@ -10,3 +10,4 @@
10
10
  @import './block-styles.css';
11
11
  @import './jupyter.css';
12
12
  @import './tasklists.css';
13
+ @import './grid.css';
package/block-styles.css CHANGED
@@ -4,10 +4,13 @@
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 my-5;
8
+ }
9
+ .framed {
10
+ @apply p-5 border shadow bg-slate-50 dark:bg-slate-800 my-5;
8
11
  }
9
12
  .shaded-children > * {
10
- @apply p-2 bg-slate-100;
13
+ @apply p-2 bg-slate-50 dark:bg-slate-800;
11
14
  }
12
15
  .rounded-children > * {
13
16
  @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/grid.css ADDED
@@ -0,0 +1,3 @@
1
+ .myst-grid > * {
2
+ margin: 0 !important;
3
+ }
package/index.js CHANGED
@@ -173,6 +173,7 @@ const safeList = [
173
173
  'col-span-6',
174
174
  // Utilities
175
175
  'shaded',
176
+ 'framed',
176
177
  'shaded-children',
177
178
  'rounded-children',
178
179
  ];
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.38",
3
+ "version": "0.2.1",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {
package/typography.css CHANGED
@@ -24,6 +24,9 @@
24
24
  .prose table tr:hover td {
25
25
  @apply bg-slate-50 dark:bg-stone-800;
26
26
  }
27
+ .prose table td dl {
28
+ margin: 0;
29
+ }
27
30
  .prose dt > strong {
28
31
  @apply font-bold text-blue-900 dark:text-blue-100;
29
32
  }