@myst-theme/styles 0.15.2 → 0.16.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,5 +1,5 @@
1
1
 
2
- > @myst-theme/styles@0.15.2 build
2
+ > @myst-theme/styles@0.16.0 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 3757ms.
11
+ Done in 4053ms.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @myst-theme/styles
2
2
 
3
+ ## 0.16.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 208c87e: Fix primary sidebar & header not showing navigation buttons correctly when ToC is hidden
8
+ - 05945ec: Fix jupyter cell buttons layout issues, myst-theme #593 and mystmd #2066, #2068
9
+
3
10
  ## 0.15.2
4
11
 
5
12
  ## 0.15.1
package/jupyter.css CHANGED
@@ -1,47 +1,43 @@
1
1
  .font-system {
2
2
  font-family: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
3
3
  }
4
+
4
5
  .jupyter-error {
5
- background-color: rgb(255, 221, 221);
6
+ @apply bg-red-100;
6
7
  }
8
+
7
9
  /* Hide the output prompts from jupyter by default */
8
10
  .jp-OutputPrompt {
9
- display: none;
11
+ @apply hidden;
10
12
  }
13
+
11
14
  /* Pandas tables */
12
15
  /* Here we use important to overwrite mt from typography.css */
16
+
13
17
  table.dataframe {
14
- border: none;
15
- border-collapse: collapse;
16
- border-spacing: 0;
17
- color: black;
18
- font-size: 1em;
19
- table-layout: fixed;
20
- margin: 0 !important;
18
+ @apply border-none border-collapse text-black border-spacing-0 text-xs table-fixed !m-0;
21
19
  }
20
+
22
21
  .dataframe thead {
23
- border-bottom: 1px solid black;
24
- vertical-align: bottom;
25
- }
26
- .dataframe tr,
27
- .dataframe th,
28
- .dataframe td {
29
- text-align: right;
30
- vertical-align: middle;
31
- padding: 0.5em 0.5em;
32
- line-height: normal;
33
- white-space: normal;
34
- max-width: none;
35
- border: none;
22
+ @apply align-bottom border-b border-black;
36
23
  }
24
+
37
25
  .dataframe th {
38
- font-weight: bold;
26
+ @apply font-bold;
39
27
  }
40
- .dataframe tbody tr:nth-child(odd) {
41
- background: #f5f5f5;
28
+
29
+ .dataframe td {
30
+ @apply p-2 leading-normal text-right whitespace-normal align-middle border-none max-w-none;
42
31
  }
43
- .dataframe tbody tr:hover {
44
- background: rgba(66, 165, 245, 0.2);
32
+
33
+ /* System to override the Jupyter colors depending on line parity */
34
+
35
+ .jp-OutputArea-output table tr:nth-child(odd) {
36
+ @apply bg-neutral-100 dark:bg-neutral-900 [&>*]:hover:bg-sky-100 [&>*]:dark:hover:bg-sky-950;
37
+ }
38
+
39
+ .jp-OutputArea-output table tr:nth-child(even) {
40
+ @apply bg-neutral-200 dark:bg-neutral-800 [&>*]:hover:bg-sky-100 [&>*]:dark:hover:bg-sky-950;
45
41
  }
46
42
 
47
43
  html.dark {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myst-theme/styles",
3
- "version": "0.15.2",
3
+ "version": "0.16.0",
4
4
  "main": "index.js",
5
5
  "style": "app.css",
6
6
  "scripts": {