@jupyterlab/nbconvert-css 4.0.6 → 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 +148 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/nbconvert-css",
3
- "version": "4.0.6",
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.6",
35
- "@jupyterlab/apputils": "^4.1.6",
36
- "@jupyterlab/cells": "^4.0.6",
37
- "@jupyterlab/codemirror": "^4.0.6",
38
- "@jupyterlab/notebook": "^4.0.6",
39
- "@jupyterlab/outputarea": "^4.0.6",
40
- "@jupyterlab/rendermime": "^4.0.6"
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
@@ -1965,9 +1965,9 @@ body.lm-mod-override-cursor .jp-IFrame::before {
1965
1965
 
1966
1966
  /* stylelint-disable selector-max-type */
1967
1967
 
1968
- .jp-FormGroup-content fieldset .jp-inputFieldWrapper input,
1969
- .jp-FormGroup-content fieldset .jp-inputFieldWrapper select,
1970
- .jp-FormGroup-content fieldset .jp-inputFieldWrapper textarea {
1968
+ .jp-FormGroup-content fieldset .jp-inputFieldWrapper > input,
1969
+ .jp-FormGroup-content fieldset .jp-inputFieldWrapper > select,
1970
+ .jp-FormGroup-content fieldset .jp-inputFieldWrapper > textarea {
1971
1971
  font-size: var(--jp-content-font-size2);
1972
1972
  border-color: var(--jp-input-border-color);
1973
1973
  border-style: solid;
@@ -1979,6 +1979,10 @@ body.lm-mod-override-cursor .jp-IFrame::before {
1979
1979
  height: inherit;
1980
1980
  }
1981
1981
 
1982
+ .jp-FormGroup-content .jp-inputFieldWrapper > select > option {
1983
+ background-color: var(--jp-layout-color1);
1984
+ }
1985
+
1982
1986
  .jp-FormGroup-content fieldset input[type='checkbox'] {
1983
1987
  position: relative;
1984
1988
  top: 2px;
@@ -4505,6 +4509,7 @@ h6:hover .jp-InternalAnchorLink {
4505
4509
  font-family: var(--jp-ui-font-family);
4506
4510
  padding: 2px 1px;
4507
4511
  resize: none;
4512
+ white-space: pre;
4508
4513
  }
4509
4514
 
4510
4515
  .jp-DocumentSearch-overlay {
@@ -4575,11 +4580,13 @@ h6:hover .jp-InternalAnchorLink {
4575
4580
  }
4576
4581
 
4577
4582
  .jp-DocumentSearch-toggle-wrapper {
4583
+ flex-shrink: 0;
4578
4584
  width: 14px;
4579
4585
  height: 14px;
4580
4586
  }
4581
4587
 
4582
4588
  .jp-DocumentSearch-button-wrapper {
4589
+ flex-shrink: 0;
4583
4590
  width: var(--jp-private-document-search-button-height);
4584
4591
  height: var(--jp-private-document-search-button-height);
4585
4592
  }
@@ -4703,6 +4710,7 @@ h6:hover .jp-InternalAnchorLink {
4703
4710
  margin: auto 2px;
4704
4711
  padding: 1px 4px;
4705
4712
  height: calc(var(--jp-private-document-search-button-height) + 2px);
4713
+ flex-shrink: 0;
4706
4714
  }
4707
4715
 
4708
4716
  .jp-DocumentSearch-replace-button-wrapper:focus {
@@ -4741,6 +4749,40 @@ h6:hover .jp-InternalAnchorLink {
4741
4749
  background-color: var(--jp-layout-color2);
4742
4750
  }
4743
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
+
4744
4786
  /*-----------------------------------------------------------------------------
4745
4787
  | Copyright (c) Jupyter Development Team.
4746
4788
  | Distributed under the terms of the Modified BSD License.
@@ -5253,14 +5295,15 @@ h6:hover .jp-InternalAnchorLink {
5253
5295
  }
5254
5296
 
5255
5297
  .jp-OutputArea-child {
5256
- display: table;
5257
- table-layout: fixed;
5298
+ display: flex;
5299
+ flex-direction: row;
5258
5300
  width: 100%;
5259
5301
  overflow: hidden;
5260
5302
  }
5261
5303
 
5262
5304
  .jp-OutputPrompt {
5263
5305
  width: var(--jp-cell-prompt-width);
5306
+ flex: 0 0 var(--jp-cell-prompt-width);
5264
5307
  color: var(--jp-cell-outprompt-font-color);
5265
5308
  font-family: var(--jp-cell-prompt-font-family);
5266
5309
  padding: var(--jp-code-padding);
@@ -5283,13 +5326,7 @@ h6:hover .jp-InternalAnchorLink {
5283
5326
  user-select: none;
5284
5327
  }
5285
5328
 
5286
- .jp-OutputArea-prompt {
5287
- display: table-cell;
5288
- vertical-align: top;
5289
- }
5290
-
5291
5329
  .jp-OutputArea-output {
5292
- display: table-cell;
5293
5330
  width: 100%;
5294
5331
  height: auto;
5295
5332
  overflow: auto;
@@ -5325,6 +5362,11 @@ h6:hover .jp-InternalAnchorLink {
5325
5362
  cursor: zoom-in;
5326
5363
  }
5327
5364
 
5365
+ .jp-OutputArea-child .jp-OutputArea-output {
5366
+ flex-grow: 1;
5367
+ flex-shrink: 1;
5368
+ }
5369
+
5328
5370
  /**
5329
5371
  * Isolated output.
5330
5372
  */
@@ -5432,6 +5474,7 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated::before {
5432
5474
  .jp-OutputArea-output.jp-OutputArea-executeResult {
5433
5475
  margin-left: 0;
5434
5476
  width: 100%;
5477
+ flex: 1 1 auto;
5435
5478
  }
5436
5479
 
5437
5480
  /* Text output with the Out[] prompt needs a top padding to match the
@@ -5501,22 +5544,36 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated::before {
5501
5544
 
5502
5545
  @media print {
5503
5546
  .jp-OutputArea-child {
5547
+ display: table;
5548
+ table-layout: fixed;
5504
5549
  break-inside: avoid-page;
5505
5550
  }
5551
+
5552
+ .jp-OutputArea-prompt {
5553
+ display: table-cell;
5554
+ vertical-align: top;
5555
+ }
5556
+
5557
+ .jp-OutputArea-output {
5558
+ display: table-cell;
5559
+ }
5506
5560
  }
5507
5561
 
5508
5562
  /*-----------------------------------------------------------------------------
5509
5563
  | Mobile
5510
5564
  |----------------------------------------------------------------------------*/
5511
5565
  @media only screen and (width <= 760px) {
5566
+ .jp-OutputArea-child {
5567
+ flex-direction: column;
5568
+ }
5569
+
5512
5570
  .jp-OutputPrompt {
5513
- display: table-row;
5571
+ flex: 0 0 auto;
5514
5572
  text-align: left;
5515
5573
  }
5516
5574
 
5517
- .jp-OutputArea-child .jp-OutputArea-output {
5518
- display: table-row;
5519
- margin-left: var(--jp-notebook-padding);
5575
+ .jp-OutputArea-promptOverlay {
5576
+ display: none;
5520
5577
  }
5521
5578
  }
5522
5579
 
@@ -5724,16 +5781,15 @@ Note: input and output wrappers have "display: block" propery in print mode.
5724
5781
 
5725
5782
  /* All input areas */
5726
5783
  .jp-InputArea {
5727
- display: table;
5728
- table-layout: fixed;
5784
+ display: flex;
5785
+ flex-direction: row;
5729
5786
  width: 100%;
5730
5787
  overflow: hidden;
5731
5788
  }
5732
5789
 
5733
5790
  .jp-InputArea-editor {
5734
- display: table-cell;
5791
+ flex: 1 1 auto;
5735
5792
  overflow: hidden;
5736
- vertical-align: top;
5737
5793
 
5738
5794
  /* This is the non-active, default styling */
5739
5795
  border: var(--jp-border-width) solid var(--jp-cell-editor-border-color);
@@ -5742,8 +5798,7 @@ Note: input and output wrappers have "display: block" propery in print mode.
5742
5798
  }
5743
5799
 
5744
5800
  .jp-InputPrompt {
5745
- display: table-cell;
5746
- vertical-align: top;
5801
+ flex: 0 0 var(--jp-cell-prompt-width);
5747
5802
  width: var(--jp-cell-prompt-width);
5748
5803
  color: var(--jp-cell-inprompt-font-color);
5749
5804
  font-family: var(--jp-cell-prompt-font-family);
@@ -5767,17 +5822,40 @@ Note: input and output wrappers have "display: block" propery in print mode.
5767
5822
  user-select: none;
5768
5823
  }
5769
5824
 
5825
+ /*-----------------------------------------------------------------------------
5826
+ | Print
5827
+ |----------------------------------------------------------------------------*/
5828
+ @media print {
5829
+ .jp-InputArea {
5830
+ display: table;
5831
+ table-layout: fixed;
5832
+ }
5833
+
5834
+ .jp-InputArea-editor {
5835
+ display: table-cell;
5836
+ vertical-align: top;
5837
+ }
5838
+
5839
+ .jp-InputPrompt {
5840
+ display: table-cell;
5841
+ vertical-align: top;
5842
+ }
5843
+ }
5844
+
5770
5845
  /*-----------------------------------------------------------------------------
5771
5846
  | Mobile
5772
5847
  |----------------------------------------------------------------------------*/
5773
5848
  @media only screen and (width <= 760px) {
5849
+ .jp-InputArea {
5850
+ flex-direction: column;
5851
+ }
5852
+
5774
5853
  .jp-InputArea-editor {
5775
- display: table-row;
5776
- margin-left: var(--jp-notebook-padding);
5854
+ margin-left: var(--jp-code-padding);
5777
5855
  }
5778
5856
 
5779
5857
  .jp-InputPrompt {
5780
- display: table-row;
5858
+ flex: 0 0 auto;
5781
5859
  text-align: left;
5782
5860
  }
5783
5861
  }
@@ -5792,18 +5870,18 @@ Note: input and output wrappers have "display: block" propery in print mode.
5792
5870
  |----------------------------------------------------------------------------*/
5793
5871
 
5794
5872
  .jp-Placeholder {
5795
- display: table;
5796
- table-layout: fixed;
5873
+ display: flex;
5874
+ flex-direction: row;
5797
5875
  width: 100%;
5798
5876
  }
5799
5877
 
5800
5878
  .jp-Placeholder-prompt {
5801
- display: table-cell;
5879
+ flex: 0 0 var(--jp-cell-prompt-width);
5802
5880
  box-sizing: border-box;
5803
5881
  }
5804
5882
 
5805
5883
  .jp-Placeholder-content {
5806
- display: table-cell;
5884
+ flex: 1 1 auto;
5807
5885
  padding: 4px 6px;
5808
5886
  border: 1px solid transparent;
5809
5887
  border-radius: 0;
@@ -5846,6 +5924,24 @@ Note: input and output wrappers have "display: block" propery in print mode.
5846
5924
  background: var(--jp-cell-editor-background);
5847
5925
  }
5848
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
+
5849
5945
  /*-----------------------------------------------------------------------------
5850
5946
  | Copyright (c) Jupyter Development Team.
5851
5947
  | Distributed under the terms of the Modified BSD License.
@@ -5950,6 +6046,11 @@ Note: input and output wrappers have "display: block" propery in print mode.
5950
6046
  width: calc(
5951
6047
  var(--jp-cell-prompt-width) - var(--jp-private-cell-scrolling-output-offset)
5952
6048
  );
6049
+ flex: 0 0
6050
+ calc(
6051
+ var(--jp-cell-prompt-width) -
6052
+ var(--jp-private-cell-scrolling-output-offset)
6053
+ );
5953
6054
  }
5954
6055
 
5955
6056
  .jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-promptOverlay {
@@ -5965,7 +6066,7 @@ Note: input and output wrappers have "display: block" propery in print mode.
5965
6066
  |----------------------------------------------------------------------------*/
5966
6067
 
5967
6068
  .jp-MarkdownOutput {
5968
- display: table-cell;
6069
+ flex: 1 1 auto;
5969
6070
  width: 100%;
5970
6071
  margin-top: 0;
5971
6072
  margin-bottom: 0;
@@ -6083,6 +6184,10 @@ cell outputs.
6083
6184
  .jp-Cell-outputWrapper {
6084
6185
  display: block;
6085
6186
  }
6187
+
6188
+ .jp-MarkdownOutput {
6189
+ display: table-cell;
6190
+ }
6086
6191
  }
6087
6192
 
6088
6193
  /*-----------------------------------------------------------------------------
@@ -6359,6 +6464,7 @@ cell outputs.
6359
6464
 
6360
6465
  .jp-Notebook .jp-Cell .jp-InputPrompt {
6361
6466
  cursor: move;
6467
+ float: left;
6362
6468
  }
6363
6469
 
6364
6470
  /*-----------------------------------------------------------------------------
@@ -6612,8 +6718,8 @@ cell outputs.
6612
6718
 
6613
6719
  .jp-mod-sideBySide.jp-Notebook .jp-CodeCell {
6614
6720
  display: grid;
6615
- grid-template-columns: minmax(0, 1fr) min-content minmax(
6616
- 0,
6721
+ grid-template-columns: minmax(70px, 1fr) min-content minmax(
6722
+ 70px,
6617
6723
  var(--jp-side-by-side-output-size)
6618
6724
  );
6619
6725
  grid-template-rows: auto minmax(0, 1fr) auto;
@@ -6624,8 +6730,8 @@ cell outputs.
6624
6730
  }
6625
6731
 
6626
6732
  .jp-mod-sideBySide.jp-Notebook .jp-CodeCell.jp-mod-resizedCell {
6627
- grid-template-columns: minmax(0, 1fr) min-content minmax(
6628
- 0,
6733
+ grid-template-columns: minmax(70px, 1fr) min-content minmax(
6734
+ 70px,
6629
6735
  var(--jp-side-by-side-resized-cell)
6630
6736
  );
6631
6737
  }
@@ -6754,3 +6860,12 @@ div.jp-Cell-Placeholder-content-3 {
6754
6860
  top: 140px;
6755
6861
  }
6756
6862
 
6863
+ /*-----------------------------------------------------------------------------
6864
+ | Printing
6865
+ |----------------------------------------------------------------------------*/
6866
+ @media print {
6867
+ .jp-Notebook .jp-Cell .jp-InputPrompt {
6868
+ float: none;
6869
+ }
6870
+ }
6871
+