@myst-theme/styles 0.5.10 → 0.5.12

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.5.10 build
2
+ > @myst-theme/styles@0.5.12 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 4817ms.
11
+ Done in 2120ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 0.5.12
4
+
5
+ ## 0.5.11
6
+
3
7
  ## 0.5.10
4
8
 
5
9
  ## 0.5.9
package/app.css CHANGED
@@ -12,3 +12,5 @@
12
12
  @import './tasklists.css';
13
13
  @import './grid.css';
14
14
  @import './hover.css';
15
+ @import './proof.css';
16
+ @import './toc.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myst-theme/styles",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {
package/proof.css ADDED
@@ -0,0 +1,16 @@
1
+ p[data-line-number].line::before {
2
+ content: attr(data-line-number);
3
+ position: absolute;
4
+ left: 0;
5
+ font-family: monospace;
6
+ width: 1.25em;
7
+ text-align: right;
8
+ user-select: none;
9
+ color: gray;
10
+ overflow: hidden;
11
+ }
12
+
13
+ p.line {
14
+ position: relative;
15
+ margin: 0;
16
+ }
package/toc.css ADDED
@@ -0,0 +1,27 @@
1
+ .collapsible-content {
2
+ overflow: hidden;
3
+ }
4
+ .collapsible-content[data-state='open'] {
5
+ animation: open-content 300ms ease-out;
6
+ }
7
+ .collapsible-content[data-state='closed'] {
8
+ animation: close-content 300ms ease-out;
9
+ }
10
+
11
+ @keyframes open-content {
12
+ from {
13
+ height: 0;
14
+ }
15
+ to {
16
+ height: var(--radix-collapsible-content-height);
17
+ }
18
+ }
19
+
20
+ @keyframes close-content {
21
+ from {
22
+ height: var(--radix-collapsible-content-height);
23
+ }
24
+ to {
25
+ height: 0;
26
+ }
27
+ }