@jupyterlab/cells 4.0.0-alpha.8 → 4.0.0-beta.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.
package/style/index.css CHANGED
@@ -11,8 +11,10 @@
11
11
  @import url('~@jupyterlab/attachments/style/index.css');
12
12
  @import url('~@lumino/dragdrop/style/index.css');
13
13
  @import url('~@jupyterlab/codeeditor/style/index.css');
14
+ @import url('~@jupyterlab/documentsearch/style/index.css');
14
15
  @import url('~@jupyterlab/codemirror/style/index.css');
15
16
  @import url('~@jupyterlab/filebrowser/style/index.css');
16
17
  @import url('~@jupyterlab/outputarea/style/index.css');
18
+ @import url('~@jupyterlab/toc/style/index.css');
17
19
 
18
20
  @import url('./base.css');
package/style/index.js CHANGED
@@ -11,8 +11,10 @@ import '@jupyterlab/rendermime/style/index.js';
11
11
  import '@jupyterlab/attachments/style/index.js';
12
12
  import '@lumino/dragdrop/style/index.js';
13
13
  import '@jupyterlab/codeeditor/style/index.js';
14
+ import '@jupyterlab/documentsearch/style/index.js';
14
15
  import '@jupyterlab/codemirror/style/index.js';
15
16
  import '@jupyterlab/filebrowser/style/index.js';
16
17
  import '@jupyterlab/outputarea/style/index.js';
18
+ import '@jupyterlab/toc/style/index.js';
17
19
 
18
20
  import './base.css';
package/style/widget.css CHANGED
@@ -73,6 +73,11 @@
73
73
  overflow-y: auto;
74
74
  max-height: 24em;
75
75
  margin-left: var(--jp-private-cell-scrolling-output-offset);
76
+ resize: vertical;
77
+ }
78
+
79
+ .jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea[style*='height'] {
80
+ max-height: unset;
76
81
  }
77
82
 
78
83
  .jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea::after {
@@ -99,6 +104,10 @@
99
104
  );
100
105
  }
101
106
 
107
+ .jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-promptOverlay {
108
+ left: calc(-1 * var(--jp-private-cell-scrolling-output-offset));
109
+ }
110
+
102
111
  /*-----------------------------------------------------------------------------
103
112
  | CodeCell
104
113
  |----------------------------------------------------------------------------*/
@@ -123,13 +132,65 @@
123
132
  .jp-collapseHeadingButton {
124
133
  display: flex;
125
134
  min-height: var(--jp-cell-collapser-min-height);
135
+ font-size: var(--jp-code-font-size);
126
136
  position: absolute;
127
- background-size: 25px !important;
137
+ background-color: transparent;
138
+ background-size: 25px;
139
+ background-repeat: no-repeat;
140
+ background-position-x: center;
141
+ background-position-y: top;
142
+ background-image: var(--jp-icon-caret-down);
128
143
  right: 0;
129
144
  top: 0;
130
145
  bottom: 0;
131
146
  }
132
147
 
148
+ .jp-collapseHeadingButton.jp-mod-collapsed {
149
+ background-image: var(--jp-icon-caret-right);
150
+ }
151
+
152
+ /*
153
+ set the container font size to match that of content
154
+ so that the nested collapse buttons have the right size
155
+ */
156
+ .jp-MarkdownCell .jp-InputPrompt {
157
+ font-size: var(--jp-content-font-size1);
158
+ }
159
+
160
+ /*
161
+ Align collapseHeadingButton with cell top header
162
+ The font sizes are identical to the ones in packages/rendermime/style/base.css
163
+ */
164
+ .jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='1'] {
165
+ font-size: var(--jp-content-font-size5);
166
+ background-position-y: calc(0.3 * var(--jp-content-font-size5));
167
+ }
168
+
169
+ .jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='2'] {
170
+ font-size: var(--jp-content-font-size4);
171
+ background-position-y: calc(0.3 * var(--jp-content-font-size4));
172
+ }
173
+
174
+ .jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='3'] {
175
+ font-size: var(--jp-content-font-size3);
176
+ background-position-y: calc(0.3 * var(--jp-content-font-size3));
177
+ }
178
+
179
+ .jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='4'] {
180
+ font-size: var(--jp-content-font-size2);
181
+ background-position-y: calc(0.3 * var(--jp-content-font-size2));
182
+ }
183
+
184
+ .jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='5'] {
185
+ font-size: var(--jp-content-font-size1);
186
+ background-position-y: top;
187
+ }
188
+
189
+ .jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='6'] {
190
+ font-size: var(--jp-content-font-size0);
191
+ background-position-y: top;
192
+ }
193
+
133
194
  /* collapseHeadingButton (show only on (hover,active) if hiddenCellsButton is shown) */
134
195
  .jp-Notebook.jp-mod-showHiddenCellsButton .jp-collapseHeadingButton {
135
196
  display: none;