@jupyterlab/nbconvert-css 4.0.7 → 4.0.8

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 +8 -8
  2. package/style/index.css +63 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/nbconvert-css",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "description": "CSS bundle for the JupyterLab nbconvert template",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -31,13 +31,13 @@
31
31
  "watch": "webpack --watch"
32
32
  },
33
33
  "dependencies": {
34
- "@jupyterlab/application": "^4.0.7",
35
- "@jupyterlab/apputils": "^4.1.7",
36
- "@jupyterlab/cells": "^4.0.7",
37
- "@jupyterlab/codemirror": "^4.0.7",
38
- "@jupyterlab/notebook": "^4.0.7",
39
- "@jupyterlab/outputarea": "^4.0.7",
40
- "@jupyterlab/rendermime": "^4.0.7"
34
+ "@jupyterlab/application": "^4.0.8",
35
+ "@jupyterlab/apputils": "^4.1.8",
36
+ "@jupyterlab/cells": "^4.0.8",
37
+ "@jupyterlab/codemirror": "^4.0.8",
38
+ "@jupyterlab/notebook": "^4.0.8",
39
+ "@jupyterlab/outputarea": "^4.0.8",
40
+ "@jupyterlab/rendermime": "^4.0.8"
41
41
  },
42
42
  "devDependencies": {
43
43
  "css-loader": "^6.7.1",
package/style/index.css CHANGED
@@ -4580,11 +4580,13 @@ h6:hover .jp-InternalAnchorLink {
4580
4580
  }
4581
4581
 
4582
4582
  .jp-DocumentSearch-toggle-wrapper {
4583
+ flex-shrink: 0;
4583
4584
  width: 14px;
4584
4585
  height: 14px;
4585
4586
  }
4586
4587
 
4587
4588
  .jp-DocumentSearch-button-wrapper {
4589
+ flex-shrink: 0;
4588
4590
  width: var(--jp-private-document-search-button-height);
4589
4591
  height: var(--jp-private-document-search-button-height);
4590
4592
  }
@@ -4708,6 +4710,7 @@ h6:hover .jp-InternalAnchorLink {
4708
4710
  margin: auto 2px;
4709
4711
  padding: 1px 4px;
4710
4712
  height: calc(var(--jp-private-document-search-button-height) + 2px);
4713
+ flex-shrink: 0;
4711
4714
  }
4712
4715
 
4713
4716
  .jp-DocumentSearch-replace-button-wrapper:focus {
@@ -4746,6 +4749,40 @@ h6:hover .jp-InternalAnchorLink {
4746
4749
  background-color: var(--jp-layout-color2);
4747
4750
  }
4748
4751
 
4752
+ /*
4753
+ The following few rules allow the search box to expand horizontally,
4754
+ as the text within it grows. This is done by using putting
4755
+ the text within a wrapper element and using that wrapper for sizing,
4756
+ as <textarea> and <input> tags do not grow automatically.
4757
+ This is the underlying technique:
4758
+ https://til.simonwillison.net/css/resizing-textarea
4759
+ */
4760
+ .jp-DocumentSearch-input-label::after {
4761
+ content: attr(data-value) ' ';
4762
+ visibility: hidden;
4763
+ white-space: pre;
4764
+ }
4765
+
4766
+ .jp-DocumentSearch-input-label {
4767
+ display: inline-grid;
4768
+ align-items: stretch;
4769
+ }
4770
+
4771
+ .jp-DocumentSearch-input-label::after,
4772
+ .jp-DocumentSearch-input-label > .jp-DocumentSearch-input {
4773
+ width: auto;
4774
+ min-width: 1em;
4775
+ grid-area: 1/2;
4776
+ font: inherit;
4777
+ padding: 2px 3px;
4778
+ margin: 0;
4779
+ resize: none;
4780
+ background: none;
4781
+ appearance: none;
4782
+ border: none;
4783
+ overflow: hidden;
4784
+ }
4785
+
4749
4786
  /*-----------------------------------------------------------------------------
4750
4787
  | Copyright (c) Jupyter Development Team.
4751
4788
  | Distributed under the terms of the Modified BSD License.
@@ -5833,18 +5870,18 @@ Note: input and output wrappers have "display: block" propery in print mode.
5833
5870
  |----------------------------------------------------------------------------*/
5834
5871
 
5835
5872
  .jp-Placeholder {
5836
- display: table;
5837
- table-layout: fixed;
5873
+ display: flex;
5874
+ flex-direction: row;
5838
5875
  width: 100%;
5839
5876
  }
5840
5877
 
5841
5878
  .jp-Placeholder-prompt {
5842
- display: table-cell;
5879
+ flex: 0 0 var(--jp-cell-prompt-width);
5843
5880
  box-sizing: border-box;
5844
5881
  }
5845
5882
 
5846
5883
  .jp-Placeholder-content {
5847
- display: table-cell;
5884
+ flex: 1 1 auto;
5848
5885
  padding: 4px 6px;
5849
5886
  border: 1px solid transparent;
5850
5887
  border-radius: 0;
@@ -5887,6 +5924,24 @@ Note: input and output wrappers have "display: block" propery in print mode.
5887
5924
  background: var(--jp-cell-editor-background);
5888
5925
  }
5889
5926
 
5927
+ /*-----------------------------------------------------------------------------
5928
+ | Print
5929
+ |----------------------------------------------------------------------------*/
5930
+ @media print {
5931
+ .jp-Placeholder {
5932
+ display: table;
5933
+ table-layout: fixed;
5934
+ }
5935
+
5936
+ .jp-Placeholder-content {
5937
+ display: table-cell;
5938
+ }
5939
+
5940
+ .jp-Placeholder-prompt {
5941
+ display: table-cell;
5942
+ }
5943
+ }
5944
+
5890
5945
  /*-----------------------------------------------------------------------------
5891
5946
  | Copyright (c) Jupyter Development Team.
5892
5947
  | Distributed under the terms of the Modified BSD License.
@@ -6663,8 +6718,8 @@ cell outputs.
6663
6718
 
6664
6719
  .jp-mod-sideBySide.jp-Notebook .jp-CodeCell {
6665
6720
  display: grid;
6666
- grid-template-columns: minmax(0, 1fr) min-content minmax(
6667
- 0,
6721
+ grid-template-columns: minmax(70px, 1fr) min-content minmax(
6722
+ 70px,
6668
6723
  var(--jp-side-by-side-output-size)
6669
6724
  );
6670
6725
  grid-template-rows: auto minmax(0, 1fr) auto;
@@ -6675,8 +6730,8 @@ cell outputs.
6675
6730
  }
6676
6731
 
6677
6732
  .jp-mod-sideBySide.jp-Notebook .jp-CodeCell.jp-mod-resizedCell {
6678
- grid-template-columns: minmax(0, 1fr) min-content minmax(
6679
- 0,
6733
+ grid-template-columns: minmax(70px, 1fr) min-content minmax(
6734
+ 70px,
6680
6735
  var(--jp-side-by-side-resized-cell)
6681
6736
  );
6682
6737
  }