@jupyterlab/nbconvert-css 3.3.3 → 3.3.4

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 +72 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/nbconvert-css",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
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": "^3.3.3",
35
- "@jupyterlab/apputils": "^3.3.3",
36
- "@jupyterlab/cells": "^3.3.3",
37
- "@jupyterlab/codemirror": "^3.3.3",
38
- "@jupyterlab/notebook": "^3.3.3",
39
- "@jupyterlab/outputarea": "^3.3.3",
40
- "@jupyterlab/rendermime": "^3.3.3"
34
+ "@jupyterlab/application": "^3.3.4",
35
+ "@jupyterlab/apputils": "^3.3.4",
36
+ "@jupyterlab/cells": "^3.3.4",
37
+ "@jupyterlab/codemirror": "^3.3.4",
38
+ "@jupyterlab/notebook": "^3.3.4",
39
+ "@jupyterlab/outputarea": "^3.3.4",
40
+ "@jupyterlab/rendermime": "^3.3.4"
41
41
  },
42
42
  "devDependencies": {
43
43
  "css-loader": "^5.0.1",
package/style/index.css CHANGED
@@ -13690,6 +13690,78 @@ body[data-format='mobile'] .jp-InputPrompt {
13690
13690
  overflow: auto;
13691
13691
  }
13692
13692
 
13693
+ /* collapseHeadingButton (show always if hiddenCellsButton is _not_ shown) */
13694
+ .jp-collapseHeadingButton {
13695
+ display: none;
13696
+ min-height: var(--jp-cell-collapser-min-height);
13697
+ position: absolute;
13698
+ right: 0;
13699
+ top: 0;
13700
+ bottom: 0;
13701
+ background-color: transparent;
13702
+ background-size: 25px;
13703
+ background-repeat: no-repeat;
13704
+ background-position-x: center;
13705
+ background-position-y: top;
13706
+ background-image: var(--jp-icon-caret-down);
13707
+ border: none;
13708
+ cursor: pointer;
13709
+ }
13710
+
13711
+ .jp-collapseHeadingButton:hover {
13712
+ background-color: var(--jp-layout-color2);
13713
+ }
13714
+
13715
+ .jp-collapseHeadingButton.jp-mod-collapsed {
13716
+ background-image: var(--jp-icon-caret-right);
13717
+ }
13718
+
13719
+ :is(.jp-MarkdownCell:hover, .jp-mod-active) .jp-collapseHeadingButton {
13720
+ display: flex;
13721
+ }
13722
+
13723
+ /*
13724
+ set the container font size to match that of content
13725
+ so that the nested collapse buttons have the right size
13726
+ */
13727
+ .jp-MarkdownCell .jp-InputPrompt {
13728
+ font-size: var(--jp-content-font-size1);
13729
+ }
13730
+
13731
+ /*
13732
+ Align collapseHeadingButton with cell top header
13733
+ The font sizes are identical to the ones in packages/rendermime/style/base.css
13734
+ */
13735
+ .jp-collapseHeadingButton[data-heading-level='1'] {
13736
+ font-size: var(--jp-content-font-size5);
13737
+ background-position-y: calc(0.3 * var(--jp-content-font-size5));
13738
+ }
13739
+
13740
+ .jp-collapseHeadingButton[data-heading-level='2'] {
13741
+ font-size: var(--jp-content-font-size4);
13742
+ background-position-y: calc(0.3 * var(--jp-content-font-size4));
13743
+ }
13744
+
13745
+ .jp-collapseHeadingButton[data-heading-level='3'] {
13746
+ font-size: var(--jp-content-font-size3);
13747
+ background-position-y: calc(0.3 * var(--jp-content-font-size3));
13748
+ }
13749
+
13750
+ .jp-collapseHeadingButton[data-heading-level='4'] {
13751
+ font-size: var(--jp-content-font-size2);
13752
+ background-position-y: calc(0.3 * var(--jp-content-font-size2));
13753
+ }
13754
+
13755
+ .jp-collapseHeadingButton[data-heading-level='5'] {
13756
+ font-size: var(--jp-content-font-size1);
13757
+ background-position-y: top;
13758
+ }
13759
+
13760
+ .jp-collapseHeadingButton[data-heading-level='6'] {
13761
+ font-size: var(--jp-content-font-size0);
13762
+ background-position-y: top;
13763
+ }
13764
+
13693
13765
  .jp-showHiddenCellsButton {
13694
13766
  margin-left: calc(var(--jp-cell-prompt-width) + 2 * var(--jp-code-padding));
13695
13767
  margin-top: var(--jp-code-padding);
@@ -13702,19 +13774,6 @@ body[data-format='mobile'] .jp-InputPrompt {
13702
13774
  background-color: var(--jp-border-color2) !important;
13703
13775
  }
13704
13776
 
13705
- .jp-collapseHeadingButton {
13706
- display: none;
13707
- }
13708
-
13709
- .jp-MarkdownCell:hover .jp-collapseHeadingButton {
13710
- display: flex;
13711
- min-height: var(--jp-cell-collapser-min-height);
13712
- position: absolute;
13713
- right: 0;
13714
- top: 0;
13715
- bottom: 0;
13716
- }
13717
-
13718
13777
  /*-----------------------------------------------------------------------------
13719
13778
  | Copyright (c) Jupyter Development Team.
13720
13779
  | Distributed under the terms of the Modified BSD License.