@jupyterlab/outputarea 4.0.0-alpha.2 → 4.0.0-alpha.5

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.
Files changed (2) hide show
  1. package/package.json +11 -11
  2. package/style/base.css +27 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/outputarea",
3
- "version": "4.0.0-alpha.2",
3
+ "version": "4.0.0-alpha.5",
4
4
  "description": "JupyterLab - Notebook Output Area",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -41,27 +41,27 @@
41
41
  "watch": "tsc -b --watch"
42
42
  },
43
43
  "dependencies": {
44
- "@jupyterlab/apputils": "^4.0.0-alpha.2",
45
- "@jupyterlab/nbformat": "^4.0.0-alpha.2",
46
- "@jupyterlab/observables": "^5.0.0-alpha.2",
47
- "@jupyterlab/rendermime": "^4.0.0-alpha.2",
48
- "@jupyterlab/rendermime-interfaces": "^4.0.0-alpha.2",
49
- "@jupyterlab/services": "^7.0.0-alpha.2",
44
+ "@jupyterlab/apputils": "^4.0.0-alpha.5",
45
+ "@jupyterlab/nbformat": "^4.0.0-alpha.5",
46
+ "@jupyterlab/observables": "^5.0.0-alpha.5",
47
+ "@jupyterlab/rendermime": "^4.0.0-alpha.5",
48
+ "@jupyterlab/rendermime-interfaces": "^4.0.0-alpha.5",
49
+ "@jupyterlab/services": "^7.0.0-alpha.5",
50
50
  "@lumino/algorithm": "^1.9.1",
51
- "@lumino/coreutils": "^1.11.1",
51
+ "@lumino/coreutils": "^1.12.0",
52
52
  "@lumino/disposable": "^1.10.1",
53
53
  "@lumino/messaging": "^1.10.1",
54
54
  "@lumino/properties": "^1.8.1",
55
55
  "@lumino/signaling": "^1.10.1",
56
- "@lumino/widgets": "^1.30.0"
56
+ "@lumino/widgets": "^1.31.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@jupyterlab/testutils": "^4.0.0-alpha.2",
59
+ "@jupyterlab/testutils": "^4.0.0-alpha.5",
60
60
  "@types/jest": "^26.0.10",
61
61
  "jest": "^26.4.2",
62
62
  "rimraf": "~3.0.0",
63
63
  "ts-jest": "^26.3.0",
64
- "typedoc": "~0.21.2",
64
+ "typedoc": "~0.22.10",
65
65
  "typescript": "~4.5.2"
66
66
  },
67
67
  "publishConfig": {
package/style/base.css CHANGED
@@ -3,13 +3,6 @@
3
3
  | Distributed under the terms of the Modified BSD License.
4
4
  |----------------------------------------------------------------------------*/
5
5
 
6
- /*-----------------------------------------------------------------------------
7
- | Private CSS variables
8
- |----------------------------------------------------------------------------*/
9
-
10
- :root {
11
- }
12
-
13
6
  /*-----------------------------------------------------------------------------
14
7
  | Main OutputArea
15
8
  | OutputArea has a list of Outputs
@@ -21,6 +14,7 @@
21
14
 
22
15
  .jp-OutputArea-child {
23
16
  display: table;
17
+ table-layout: fixed;
24
18
  width: 100%;
25
19
  overflow: hidden;
26
20
  }
@@ -28,7 +22,7 @@
28
22
  .jp-OutputPrompt {
29
23
  display: table-cell;
30
24
  vertical-align: top;
31
- min-width: var(--jp-cell-prompt-width);
25
+ width: var(--jp-cell-prompt-width);
32
26
  color: var(--jp-cell-outprompt-font-color);
33
27
  font-family: var(--jp-cell-prompt-font-family);
34
28
  padding: var(--jp-code-padding);
@@ -37,11 +31,13 @@
37
31
  font-size: var(--jp-code-font-size);
38
32
  border: var(--jp-border-width) solid transparent;
39
33
  opacity: var(--jp-cell-prompt-opacity);
34
+
40
35
  /* Right align prompt text, don't wrap to handle large prompt numbers */
41
36
  text-align: right;
42
37
  white-space: nowrap;
43
38
  overflow: hidden;
44
39
  text-overflow: ellipsis;
40
+
45
41
  /* Disable text selection */
46
42
  -webkit-user-select: none;
47
43
  -moz-user-select: none;
@@ -49,11 +45,6 @@
49
45
  user-select: none;
50
46
  }
51
47
 
52
- body[data-format='mobile'] .jp-OutputPrompt {
53
- display: table-row;
54
- text-align: left;
55
- }
56
-
57
48
  .jp-OutputArea-output {
58
49
  display: table-cell;
59
50
  width: 100%;
@@ -65,11 +56,6 @@ body[data-format='mobile'] .jp-OutputPrompt {
65
56
  -ms-user-select: text;
66
57
  }
67
58
 
68
- body[data-format='mobile'] .jp-OutputArea-child .jp-OutputArea-output {
69
- display: table-row;
70
- margin-left: var(--jp-notebook-padding);
71
- }
72
-
73
59
  /**
74
60
  * Isolated output.
75
61
  */
@@ -88,7 +74,7 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated {
88
74
  position: relative;
89
75
  }
90
76
 
91
- body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated:before {
77
+ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated::before {
92
78
  content: '';
93
79
  position: absolute;
94
80
  top: 0;
@@ -102,8 +88,8 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated:before {
102
88
 
103
89
  .jp-OutputArea-output pre {
104
90
  border: none;
105
- margin: 0px;
106
- padding: 0px;
91
+ margin: 0;
92
+ padding: 0;
107
93
  overflow-x: auto;
108
94
  overflow-y: auto;
109
95
  word-break: break-all;
@@ -162,7 +148,7 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated:before {
162
148
  |----------------------------------------------------------------------------*/
163
149
 
164
150
  .jp-OutputArea-output.jp-OutputArea-executeResult {
165
- margin-left: 0px;
151
+ margin-left: 0;
166
152
  width: 100%;
167
153
  }
168
154
 
@@ -198,11 +184,13 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated:before {
198
184
  background-color: inherit;
199
185
  width: 42%;
200
186
  min-width: 200px;
187
+
201
188
  /* make sure input baseline aligns with prompt */
202
189
  vertical-align: baseline;
190
+
203
191
  /* padding + margin = 0.5em between prompt and cursor */
204
- padding: 0em 0.25em;
205
- margin: 0em 0.25em;
192
+ padding: 0 0.25em;
193
+ margin: 0 0.25em;
206
194
  flex: 0 0 70%;
207
195
  }
208
196
 
@@ -232,3 +220,18 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated:before {
232
220
  break-inside: avoid-page;
233
221
  }
234
222
  }
223
+
224
+ /*-----------------------------------------------------------------------------
225
+ | Mobile
226
+ |----------------------------------------------------------------------------*/
227
+ @media only screen and (max-width: 760px) {
228
+ .jp-OutputPrompt {
229
+ display: table-row;
230
+ text-align: left;
231
+ }
232
+
233
+ .jp-OutputArea-child .jp-OutputArea-output {
234
+ display: table-row;
235
+ margin-left: var(--jp-notebook-padding);
236
+ }
237
+ }