-
Notifications
You must be signed in to change notification settings - Fork 211
Expand file tree
/
Copy path_myst-nb.scss
More file actions
41 lines (38 loc) · 825 Bytes
/
_myst-nb.scss
File metadata and controls
41 lines (38 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*********************************************
* MyST NB and Jupyter Notebooks *
* ref: https://github.com/executablebooks/myst-nb
*********************************************/
div.cell {
div.highlight {
margin-bottom: 0em;
}
div.cell_input,
div.cell_output pre {
border-radius: $box-border-radius;
border: 1px #ccc solid;
}
div.cell_output {
padding-right: 0;
}
// On screens, we want to scoll, but on print show all
@mixin cell-scroll {
@include scrollbar-style();
max-height: 24em;
overflow-y: auto;
@media print {
max-height: unset;
overflow-y: visible;
}
}
&.tag_output_scroll,
&.tag_scroll-output {
div.cell_output {
@include cell-scroll;
}
}
&.tag_scroll-input {
div.cell_input {
@include cell-scroll;
}
}
}