forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
116 lines (97 loc) · 3.51 KB
/
index.css
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
.jp-ConsolePanel {
display: flex;
flex: 1 1 auto;
flex-direction: column;
margin-top: -1px;
min-width: 240px;
min-height: 120px;
}
.jp-ConsolePanel::before {
content: '';
display: block;
height: var(--jp-toolbar-micro-height);
background: var(--jp-toolbar-background);
border-bottom: 1px solid var(--jp-toolbar-border-color);
box-shadow: var(--jp-toolbar-box-shadow);
z-index: 1;
}
.jp-CodeConsole {
height: 100%;
padding: 0;
display: flex;
flex-direction: column;
}
.jp-CodeConsole .jp-Cell {
padding: var(--jp-cell-padding);
}
/*-----------------------------------------------------------------------------
| Content (already run cells)
|----------------------------------------------------------------------------*/
.jp-CodeConsole-content {
background: var(--jp-layout-color0);
flex: 1 1 auto;
overflow: auto;
padding: var(--jp-console-padding);
}
.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-InputPrompt {
opacity: var(--jp-cell-prompt-not-active-opacity);
color: var(--jp-cell-inprompt-font-color);
}
.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-OutputPrompt {
opacity: var(--jp-cell-prompt-not-active-opacity);
color: var(--jp-cell-outprompt-font-color);
}
/* This rule is for styling cell run by another activity in this console */
.jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {
}
.jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {
background: transparent;
border: 1px solid transparent;
}
.jp-CodeConsole-content .jp-CodeConsole-banner .jp-InputPrompt {
display: none;
}
/* collapser is hovered */
.jp-CodeConsole-content .jp-Cell .jp-Collapser:hover {
box-shadow: var(--jp-elevation-z2);
background: var(--jp-brand-color1);
opacity: var(--jp-cell-collapser-not-active-hover-opacity);
}
/*-----------------------------------------------------------------------------
| Input/prompt cell
|----------------------------------------------------------------------------*/
.jp-CodeConsole-input {
max-height: 80%;
flex: 0 0 auto;
overflow: auto;
border-top: var(--jp-border-width) solid var(--jp-toolbar-border-color);
padding: var(--jp-cell-padding) var(--jp-console-padding);
/* This matches the box shadow on the notebook toolbar, eventually we should create
* CSS variables for this */
box-shadow: 0px 0.4px 6px 0px rgba(0, 0, 0, 0.1);
background: var(--jp-layout-color1);
}
.jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {
height: 100%;
min-height: 100%;
}
.jp-CodeConsole-promptCell .jp-InputArea-editor.jp-mod-focused {
border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);
box-shadow: var(--jp-input-box-shadow);
background-color: var(--jp-cell-editor-active-background);
}
/*-----------------------------------------------------------------------------
| Presentation Mode (.jp-mod-presentationMode)
|----------------------------------------------------------------------------*/
.jp-mod-presentationMode .jp-CodeConsole {
--jp-content-font-size1: var(--jp-content-presentation-font-size1);
--jp-code-font-size: var(--jp-code-presentation-font-size);
}
.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-InputPrompt,
.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-OutputPrompt {
flex: 0 0 110px;
}