forked from jupyter/notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.css
198 lines (167 loc) · 4.58 KB
/
base.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
|
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
@import './variables.css';
/* Document oriented look for the notebook (scrollbar to the right of the page) */
body[data-notebook='notebooks'] .jp-NotebookPanel-toolbar {
padding-left: calc(calc(100% - var(--jp-notebook-max-width)) * 0.5);
padding-right: calc(calc(100% - var(--jp-notebook-max-width)) * 0.5);
}
body[data-notebook='notebooks'] .jp-Notebook > * {
background: var(--jp-layout-color0);
padding: var(--jp-notebook-padding);
}
body[data-notebook='notebooks']
.jp-Notebook.jp-mod-commandMode
.jp-Cell.jp-mod-active.jp-mod-selected:not(.jp-mod-multiSelected) {
background: var(--jp-layout-color0) !important;
}
body[data-notebook='notebooks'] .jp-Notebook > *:first-child {
padding-top: var(--jp-notebook-padding-offset);
margin-top: var(--jp-notebook-toolbar-margin-bottom);
}
body[data-notebook='notebooks'] .jp-Notebook > *:first-child:not(:last-child) {
box-shadow: 0px 0px 12px 1px rgb(87 87 87 / 20%);
}
body[data-notebook='notebooks']
.jp-Notebook
> *:first-child:last-child::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
box-shadow: 0px 0px 12px 1px rgb(87 87 87 / 20%);
margin-bottom: -11px;
}
body[data-notebook='notebooks'] .jp-Notebook {
padding-top: unset;
padding-bottom: unset;
padding-left: calc(calc(100% - var(--jp-notebook-max-width)) * 0.5);
padding-right: calc(
calc(
100% - var(--jp-notebook-max-width) - var(--jp-notebook-padding-offset)
) * 0.5
);
background: var(--jp-layout-color2);
}
body[data-notebook='notebooks'] .jp-Notebook.jp-mod-scrollPastEnd::after {
background: var(--jp-layout-color0);
min-height: var(--jp-notebook-padding);
box-shadow: 0px 0px 12px 1px rgb(87 87 87 / 20%);
}
body[data-notebook='notebooks']
.jp-Notebook
.jp-Notebook-cell:not(:first-child)::after,
body[data-notebook='notebooks']
.jp-Notebook
.jp-Notebook-cell:not(:first-child)::before {
content: ' ';
height: 100%;
position: absolute;
top: 0;
width: 11px;
}
body[data-notebook='notebooks']
.jp-Notebook
.jp-Notebook-cell:not(:first-child)::before {
box-shadow: -11px 0 11px -11px rgb(87 87 87 / 20%) inset;
left: -11px;
}
body[data-notebook='notebooks']
.jp-Notebook
.jp-Notebook-cell:not(:first-child)::after {
box-shadow: 12px 0 11px -11px rgb(87 87 87 / 20%) inset;
right: -11px;
}
/* Cell toolbar adjustements */
body[data-notebook='notebooks'] .jp-cell-toolbar {
background: unset;
top: unset;
box-shadow: unset;
}
@media only screen and (max-width: 760px) {
body[data-notebook='notebooks'] .jp-cell-toolbar {
top: 5px;
}
}
/* ---- */
.jp-NotebookKernelLogo {
flex: 0 0 auto;
display: flex;
align-items: center;
text-align: center;
margin-right: 8px;
}
.jp-NotebookKernelLogo img {
max-width: 28px;
max-height: 28px;
display: flex;
}
.jp-NotebookKernelStatus {
margin: 0;
font-weight: normal;
font-size: var(--jp-ui-font-size1);
color: var(--jp-ui-font-color0);
font-family: var(--jp-ui-font-family);
line-height: var(--jp-private-title-panel-height);
padding-left: var(--jp-kernel-status-padding);
padding-right: var(--jp-kernel-status-padding);
}
.jp-NotebookKernelStatus-error {
background-color: var(--jp-error-color0);
}
.jp-NotebookKernelStatus-warn {
background-color: var(--jp-warn-color0);
}
.jp-NotebookKernelStatus-info {
background-color: var(--jp-info-color0);
}
.jp-NotebookKernelStatus-fade {
animation: 0.5s fade-out forwards;
}
@keyframes fade-out {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
#jp-title h1 {
cursor: pointer;
font-size: 18px;
margin: 0;
font-weight: normal;
color: var(--jp-ui-font-color0);
font-family: var(--jp-ui-font-family);
line-height: calc(1.5 * var(--jp-private-title-panel-height));
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
#jp-title h1:hover {
background: var(--jp-layout-color2);
}
.jp-NotebookCheckpoint {
font-size: 14px;
margin-left: 5px;
margin-right: 5px;
font-weight: normal;
color: var(--jp-ui-font-color0);
font-family: var(--jp-ui-font-family);
line-height: calc(1.5 * var(--jp-private-title-panel-height));
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
/* Mobile View */
body[data-format='mobile'] .jp-NotebookCheckpoint {
display: none;
}
body[data-format='mobile'] .jp-Notebook > *:first-child {
margin-top: 0;
}