|
60 | 60 | background-color: var(--jp-git-diff-deleted-color);
|
61 | 61 | border: none;
|
62 | 62 | }
|
| 63 | + |
| 64 | +/* Imported from nbdime-jupyterlab */ |
| 65 | +.jp-git-diff-root .nbdime-Widget { |
| 66 | + display: flex; |
| 67 | + flex-direction: column; |
| 68 | +} |
| 69 | + |
| 70 | +.jp-git-diff-root .nbdime-root { |
| 71 | + padding: var(--jp-notebook-padding); |
| 72 | + min-width: 50px; |
| 73 | + min-height: 50px; |
| 74 | + outline: none; |
| 75 | + overflow: auto; |
| 76 | + background: var(--jp-layout-color0); |
| 77 | + color: var(--jp-ui-font-color0); |
| 78 | + flex: 1 1 auto; |
| 79 | +} |
| 80 | + |
| 81 | + |
| 82 | +/* Header syling */ |
| 83 | + |
| 84 | +.jp-git-diff-root .nbdime-Diff { |
| 85 | + border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color); |
| 86 | + box-shadow: var(--jp-toolbar-box-shadow); |
| 87 | + background: var(--jp-toolbar-background); |
| 88 | + color: var(--jp-ui-font-color1); |
| 89 | + flex: 0 0 auto; |
| 90 | + padding: 2px; |
| 91 | + z-index: 1; |
| 92 | +} |
| 93 | + |
| 94 | +/* Hiding unchanged cells if told to */ |
| 95 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Cell-diff.jp-Diff-unchanged { |
| 96 | + display: none; |
| 97 | +} |
| 98 | + |
| 99 | +/* Show a marker with the number of cells hidden before */ |
| 100 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Cell-diff[data-nbdime-NCellsHiddenBefore]::before, |
| 101 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Diff-addremchunk[data-nbdime-NCellsHiddenBefore]::before { |
| 102 | + content: attr(data-nbdime-NCellsHiddenBefore) " unchanged cell(s) hidden"; |
| 103 | + position: absolute; |
| 104 | + width: 100%; |
| 105 | + top: 0; |
| 106 | + background-color: var(--jp-layout-color2); |
| 107 | + border-top: solid var(--jp-layout-color3) 1px; |
| 108 | + border-bottom: solid var(--jp-layout-color3) 1px; |
| 109 | + text-align: center; |
| 110 | +} |
| 111 | + |
| 112 | +/* Show a marker with the number of cells hidden after (for hidden cells at end) */ |
| 113 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Cell-diff[data-nbdime-NCellsHiddenAfter]::after, |
| 114 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Diff-addremchunk[data-nbdime-NCellsHiddenAfter]::after { |
| 115 | + content: attr(data-nbdime-NCellsHiddenAfter) " unchanged cell(s) hidden"; |
| 116 | + position: absolute; |
| 117 | + width: 100%; |
| 118 | + bottom: 0; |
| 119 | + background-color: var(--jp-layout-color2); |
| 120 | + border-top: solid var(--jp-layout-color3) 1px; |
| 121 | + border-bottom: solid var(--jp-layout-color3) 1px; |
| 122 | + text-align: center; |
| 123 | +} |
| 124 | + |
| 125 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Cell-diff[data-nbdime-NCellsHiddenBefore], |
| 126 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Diff-addremchunk[data-nbdime-NCellsHiddenBefore] { |
| 127 | + padding-top: 40px; |
| 128 | +} |
| 129 | + |
| 130 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Cell-diff[data-nbdime-NCellsHiddenAfter], |
| 131 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Diff-addremchunk[data-nbdime-NCellsHiddenAfter] { |
| 132 | + padding-bottom: 40px; |
| 133 | +} |
| 134 | + |
| 135 | +/* Marker for when all cells are unchanged and hidden */ |
| 136 | +.jp-git-diff-root .nbdime-root.jp-mod-hideUnchanged .jp-Notebook-diff[data-nbdime-AllCellsHidden]::after { |
| 137 | + content: "No changes, " attr(data-nbdime-AllCellsHidden) " unchanged cell(s) hidden"; |
| 138 | + display: block; |
| 139 | + width: 100%; |
| 140 | + background-color: var(--jp-layout-color2); |
| 141 | + border-top: solid var(--jp-layout-color3) 1px; |
| 142 | + border-bottom: solid var(--jp-layout-color3) 1px; |
| 143 | + text-align: center; |
| 144 | +} |
0 commit comments