@myst-theme/styles 0.5.9 → 0.5.11

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,11 @@
1
1
 
2
- > @myst-theme/styles@0.5.9 build
2
+ > @myst-theme/styles@0.5.11 build
3
3
  > tailwindcss -m -i ./app.css -o ../docs/public/tailwind.css
4
4
 
5
+ Browserslist: caniuse-lite is outdated. Please run:
6
+ npx update-browserslist-db@latest
7
+ Why you should do it regularly: https://github.com/browserslist/update-db#readme
5
8
 
6
9
  Rebuilding...
7
10
 
8
- Done in 3102ms.
11
+ Done in 2052ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 0.5.11
4
+
5
+ ## 0.5.10
6
+
3
7
  ## 0.5.9
4
8
 
5
9
  ### Patch Changes
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.9",
3
+ "version": "0.5.11",
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
+ }