@myst-theme/styles 0.2.4 → 0.2.6

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.2.4 build
2
+ > @myst-theme/styles@0.2.6 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 946ms.
8
+ Done in 1171ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 0.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 4c9b763a: Updates to styles for hover documents
8
+
9
+ ## 0.2.5
10
+
11
+ ### Patch Changes
12
+
13
+ - 4232ab31: Move to hover links rather than click links
14
+
3
15
  ## 0.2.4
4
16
 
5
17
  ## 0.2.3
package/app.css CHANGED
@@ -11,3 +11,4 @@
11
11
  @import './jupyter.css';
12
12
  @import './tasklists.css';
13
13
  @import './grid.css';
14
+ @import './hover.css';
package/citations.css CHANGED
@@ -7,7 +7,7 @@ cite {
7
7
  .cite-group.narrative cite::after {
8
8
  content: ',\00a0';
9
9
  }
10
- .cite-group > span:last-of-type cite::after {
10
+ .cite-group > cite:last-of-type::after {
11
11
  content: '';
12
12
  }
13
13
  .cite-group.parenthetical:before {
package/hover.css ADDED
@@ -0,0 +1,40 @@
1
+ .hover-card-content {
2
+ animation-duration: 0.6s;
3
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
4
+ }
5
+ .hover-card-content[data-side='top'] {
6
+ animation-name: slideUp;
7
+ }
8
+ .hover-card-content[data-side='bottom'] {
9
+ animation-name: slideDown;
10
+ }
11
+
12
+ @keyframes slideUp {
13
+ from {
14
+ opacity: 0;
15
+ transform: translateY(10px);
16
+ }
17
+ to {
18
+ opacity: 1;
19
+ transform: translateY(0);
20
+ }
21
+ }
22
+
23
+ @keyframes slideDown {
24
+ from {
25
+ opacity: 0;
26
+ transform: translateY(-10px);
27
+ }
28
+ to {
29
+ opacity: 1;
30
+ transform: translateY(0);
31
+ }
32
+ }
33
+
34
+ .hover-document {
35
+ @apply bg-white dark:bg-slate-800 text-sm rounded border border-gray-50 shadow-xl article;
36
+ }
37
+
38
+ .hover-link {
39
+ @apply text-blue-700 dark:text-blue-100 no-underline hover:text-blue-500 font-normal;
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myst-theme/styles",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {