Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add collapsers to template #1689

Merged
merged 1 commit into from Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions share/jupyter/nbconvert/templates/lab/base.html.j2
Expand Up @@ -15,6 +15,8 @@

{% block input_group -%}
<div class="jp-Cell-inputWrapper">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
<div class="jp-InputArea jp-Cell-inputArea">
{{ super() }}
</div>
Expand All @@ -31,6 +33,8 @@

{% block output_group %}
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
{{ super() }}
</div>
{% endblock output_group %}
Expand Down
31 changes: 14 additions & 17 deletions share/jupyter/nbconvert/templates/lab/index.html.j2
Expand Up @@ -43,23 +43,25 @@
<style type="text/css">
/* Misc */
a.anchor-link {
display: none;
display: none;
}

.highlight {
margin: 0.4em;
margin: 0.4em;
}

/* Input area styling */
.jp-InputArea {
overflow: hidden;
overflow: hidden;
}

.jp-InputArea-editor {
overflow: hidden;
overflow: hidden;
}

/* Output area styling: using table instead of flexbox so that we can use break-inside property */
/* Using table instead of flexbox so that we can use break-inside property */
/* CSS rules under this comment should not be required anymore after we move to the JupyterLab 4.0 CSS */


.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-prompt {
min-width: calc(
Expand Down Expand Up @@ -95,19 +97,14 @@ body[data-format='mobile'] .jp-OutputArea-child .jp-OutputArea-output {
width: 100%;
}

/* block wrapper: using block instead of flexbox so that we can use break-inside property
note: in the case of JupyterLab, wrappers also include collapsers, hence the flexbox.
*/

.jp-Cell-inputWrapper, .jp-Cell-outputWrapper {
display: block;
}

/* Media print rules */

@media print {
body {
margin: 0;
.jp-Collapser {
display: none;
}

.jp-Cell-inputWrapper,
.jp-Cell-outputWrapper {
display: block;
}

.jp-OutputArea-child {
Expand Down