##// END OF EJS Templates
fix css toolbar
Matthias BUSSONNIER -
Show More
@@ -1,454 +1,455 b''
1 /**
1 /**
2 * Primary styles
2 * Primary styles
3 *
3 *
4 * Author: IPython Development Team
4 * Author: IPython Development Team
5 */
5 */
6
6
7 @import "variables.less";
7 @import "variables.less";
8
8
9 body {
9 body {
10 overflow: hidden;
10 overflow: hidden;
11 background-color:@notebook_background;
11 background-color:@notebook_background;
12 }
12 }
13
13
14 blockquote {
14 blockquote {
15 border-left: 4px solid #DDD;
15 border-left: 4px solid #DDD;
16 padding: 0 15px;
16 padding: 0 15px;
17 color: #777;
17 color: #777;
18 }
18 }
19
19
20 span#save_widget {
20 span#save_widget {
21 padding: 5px;
21 padding: 5px;
22 margin: 0px 0px 0px 300px;
22 margin: 0px 0px 0px 300px;
23 display:inline-block;
23 display:inline-block;
24 }
24 }
25
25
26 span#notebook_name {
26 span#notebook_name {
27 height: 1em;
27 height: 1em;
28 line-height: 1em;
28 line-height: 1em;
29 padding: 3px;
29 padding: 3px;
30 border: none;
30 border: none;
31 font-size: 146.5%;
31 font-size: 146.5%;
32 }
32 }
33
33
34
34
35 .ui-menubar-item .ui-button .ui-button-text {
35 .ui-menubar-item .ui-button .ui-button-text {
36 padding: 0.4em 1.0em;
36 padding: 0.4em 1.0em;
37 font-size: 100%;
37 font-size: 100%;
38 }
38 }
39
39
40 .ui-menu {
40 .ui-menu {
41 -moz-box-shadow: 0px 6px 10px -1px #adadad;
41 -moz-box-shadow: 0px 6px 10px -1px #adadad;
42 -webkit-box-shadow: 0px 6px 10px -1px #adadad;
42 -webkit-box-shadow: 0px 6px 10px -1px #adadad;
43 box-shadow: 0px 6px 10px -1px #adadad;
43 box-shadow: 0px 6px 10px -1px #adadad;
44 }
44 }
45
45
46 .ui-menu .ui-menu-item a {
46 .ui-menu .ui-menu-item a {
47 border: 1px solid transparent;
47 border: 1px solid transparent;
48 padding: 2px 1.6em;
48 padding: 2px 1.6em;
49 }
49 }
50
50
51 .ui-menu .ui-menu-item a.ui-state-focus {
51 .ui-menu .ui-menu-item a.ui-state-focus {
52 margin: 0;
52 margin: 0;
53 }
53 }
54
54
55 .ui-menu hr {
55 .ui-menu hr {
56 margin: 0.3em 0;
56 margin: 0.3em 0;
57 }
57 }
58
58
59 #menubar_container {
59 #menubar_container {
60 position: relative;
60 position: relative;
61 }
61 }
62
62
63 #notification_area {
63 #notification_area {
64 position: absolute;
64 position: absolute;
65 right: 0px;
65 right: 0px;
66 top: 0px;
66 top: 0px;
67 height: 25px;
67 height: 25px;
68 padding: 3px 0px;
68 padding: 3px 0px;
69 padding-right: 3px;
69 padding-right: 3px;
70 z-index: 10;
70 z-index: 10;
71 }
71 }
72
72
73 .notification_widget{
73 .notification_widget{
74 float : right;
74 float : right;
75 right: 0px;
75 right: 0px;
76 top: 1px;
76 top: 1px;
77 height: 25px;
77 height: 25px;
78 padding: 3px 6px;
78 padding: 3px 6px;
79 z-index: 10;
79 z-index: 10;
80 }
80 }
81
81
82 .toolbar {
82 .toolbar {
83 padding: 3px 15px;
83 padding: 3px 15px;
84 border-bottom: @borderwidth @border_color solid;
84 border-bottom: @borderwidth @border_color solid;
85 }
85 }
86
86
87 #maintoolbar > select, #maintoolbar label {
87 #maintoolbar > select, #maintoolbar label {
88 height : 23px;
88 height : 23px;
89 vertical-align: top;
89 vertical-align: top;
90 margin-right:2px;
90 margin-right:2px;
91 margin-bottom:0;
91 margin-bottom:0;
92 display: inline;
92 }
93 }
93
94
94 #cell_type {
95 #cell_type {
95 font-size: 85%;
96 font-size: 85%;
96 margin-left:0.3em;
97 margin-left:0.3em;
97 margin-right:0.3em;
98 margin-right:0.3em;
98
99
99 }
100 }
100
101
101
102
102 #ipython-main-app {
103 #ipython-main-app {
103 width: 100%;
104 width: 100%;
104 position: relative;
105 position: relative;
105 }
106 }
106
107
107 span#quick_help_area {
108 span#quick_help_area {
108 position: static;
109 position: static;
109 padding: 5px 0px;
110 padding: 5px 0px;
110 margin: 0px 0px 0px 0px;
111 margin: 0px 0px 0px 0px;
111 }
112 }
112
113
113 .help_string {
114 .help_string {
114 float: right;
115 float: right;
115 width: 170px;
116 width: 170px;
116 padding: 0px 5px;
117 padding: 0px 5px;
117 text-align: left;
118 text-align: left;
118 font-size: 85%;
119 font-size: 85%;
119 }
120 }
120
121
121 .help_string_label {
122 .help_string_label {
122 float: right;
123 float: right;
123 font-size: 85%;
124 font-size: 85%;
124 }
125 }
125
126
126 div#notebook_panel {
127 div#notebook_panel {
127 margin: 0px 0px 0px 0px;
128 margin: 0px 0px 0px 0px;
128 padding: 0px;
129 padding: 0px;
129 }
130 }
130
131
131 div#notebook {
132 div#notebook {
132 overflow-y: scroll;
133 overflow-y: scroll;
133 overflow-x: auto;
134 overflow-x: auto;
134 width: 100%;
135 width: 100%;
135 /* This spaces the cell away from the edge of the notebook area */
136 /* This spaces the cell away from the edge of the notebook area */
136 padding: 5px 5px 15px 5px;
137 padding: 5px 5px 15px 5px;
137 margin: 0px;
138 margin: 0px;
138 }
139 }
139
140
140 div#pager_splitter {
141 div#pager_splitter {
141 height: 8px;
142 height: 8px;
142 }
143 }
143
144
144 #pager_container {
145 #pager_container {
145 position : relative;
146 position : relative;
146 }
147 }
147
148
148 div#pager {
149 div#pager {
149 padding: 15px;
150 padding: 15px;
150 overflow: auto;
151 overflow: auto;
151 display: none;
152 display: none;
152 }
153 }
153
154
154 div.ui-widget-content {
155 div.ui-widget-content {
155 border: 1px solid @border_color;
156 border: 1px solid @border_color;
156 outline: none;
157 outline: none;
157 }
158 }
158
159
159 .cell {
160 .cell {
160 border: 1px solid transparent;
161 border: 1px solid transparent;
161
162
162 &.selected {
163 &.selected {
163 .corner-all;
164 .corner-all;
164 background-color:@cell_selected_background;
165 background-color:@cell_selected_background;
165 border : thin @border_color solid;
166 border : thin @border_color solid;
166 }
167 }
167 }
168 }
168
169
169 div.cell {
170 div.cell {
170 width: 100%;
171 width: 100%;
171 padding: 5px 5px 5px 0px;
172 padding: 5px 5px 5px 0px;
172 /* This acts as a spacer between cells, that is outside the border */
173 /* This acts as a spacer between cells, that is outside the border */
173 margin: 2px 0px 2px 0px;
174 margin: 2px 0px 2px 0px;
174 outline: none;
175 outline: none;
175 }
176 }
176
177
177 div.code_cell {
178 div.code_cell {
178 }
179 }
179
180
180 /* any special styling for code cells that are currently running goes here */
181 /* any special styling for code cells that are currently running goes here */
181 div.code_cell.running {
182 div.code_cell.running {
182 }
183 }
183
184
184 div.prompt {
185 div.prompt {
185 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
186 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
186 width: 11ex;
187 width: 11ex;
187 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
188 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
188 padding: 0.4em;
189 padding: 0.4em;
189 margin: 0px;
190 margin: 0px;
190 font-family: monospace;
191 font-family: monospace;
191 text-align: right;
192 text-align: right;
192 /* This has to match that of the the CodeMirror class line-height below */
193 /* This has to match that of the the CodeMirror class line-height below */
193 line-height: 1.231;
194 line-height: 1.231;
194 }
195 }
195
196
196 div.input {
197 div.input {
197 page-break-inside: avoid;
198 page-break-inside: avoid;
198 }
199 }
199
200
200 /* input_area and input_prompt must match in top border and margin for alignment */
201 /* input_area and input_prompt must match in top border and margin for alignment */
201 div.input_area {
202 div.input_area {
202 /*color: @fontBaseColor;*/
203 /*color: @fontBaseColor;*/
203 border: 1px solid @border_color;
204 border: 1px solid @border_color;
204 .corner-all;
205 .corner-all;
205 background: @cell_background;
206 background: @cell_background;
206 }
207 }
207
208
208 div.input_prompt {
209 div.input_prompt {
209 color: navy;
210 color: navy;
210 border-top: 1px solid transparent;
211 border-top: 1px solid transparent;
211 }
212 }
212
213
213 div.output_wrapper {
214 div.output_wrapper {
214 /* This is a spacer between the input and output of each cell */
215 /* This is a spacer between the input and output of each cell */
215 margin-top: 5px;
216 margin-top: 5px;
216 margin-left: 5px;
217 margin-left: 5px;
217 /* FF needs explicit width to stretch */
218 /* FF needs explicit width to stretch */
218 width: 100%;
219 width: 100%;
219 /* this position must be relative to enable descendents to be absolute within it */
220 /* this position must be relative to enable descendents to be absolute within it */
220 position: relative;
221 position: relative;
221 }
222 }
222
223
223 /* class for the output area when it should be height-limited */
224 /* class for the output area when it should be height-limited */
224 div.output_scroll {
225 div.output_scroll {
225 /* ideally, this would be max-height, but FF barfs all over that */
226 /* ideally, this would be max-height, but FF barfs all over that */
226 height: 24em;
227 height: 24em;
227 /* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */
228 /* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */
228 width: 100%;
229 width: 100%;
229
230
230 overflow: auto;
231 overflow: auto;
231 .corner-all;
232 .corner-all;
232 box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8);
233 box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8);
233 }
234 }
234
235
235 /* output div while it is collapsed */
236 /* output div while it is collapsed */
236 div.output_collapsed {
237 div.output_collapsed {
237 margin-right: 5px;
238 margin-right: 5px;
238 }
239 }
239
240
240 div.out_prompt_overlay {
241 div.out_prompt_overlay {
241 height: 100%;
242 height: 100%;
242 padding: 0px;
243 padding: 0px;
243 position: absolute;
244 position: absolute;
244 .corner-all;
245 .corner-all;
245 }
246 }
246
247
247 div.out_prompt_overlay:hover {
248 div.out_prompt_overlay:hover {
248 /* use inner shadow to get border that is computed the same on WebKit/FF */
249 /* use inner shadow to get border that is computed the same on WebKit/FF */
249 box-shadow: inset 0 0 1px #000;
250 box-shadow: inset 0 0 1px #000;
250 background: rgba(240, 240, 240, 0.5);
251 background: rgba(240, 240, 240, 0.5);
251 }
252 }
252
253
253 div.output_prompt {
254 div.output_prompt {
254 color: darkred;
255 color: darkred;
255 /* 5px right shift to account for margin in parent container */
256 /* 5px right shift to account for margin in parent container */
256 margin: 0 5px 0 -5px;
257 margin: 0 5px 0 -5px;
257 }
258 }
258
259
259 /* This class is the outer container of all output sections. */
260 /* This class is the outer container of all output sections. */
260 div.output_area {
261 div.output_area {
261 padding: 0px;
262 padding: 0px;
262 page-break-inside: avoid;
263 page-break-inside: avoid;
263 }
264 }
264
265
265
266
266 /* This is needed to protect the pre formating from global settings such
267 /* This is needed to protect the pre formating from global settings such
267 as that of bootstrap */
268 as that of bootstrap */
268 div.output_area pre {
269 div.output_area pre {
269 font-family: monospace;
270 font-family: monospace;
270 margin: 0;
271 margin: 0;
271 padding: 0;
272 padding: 0;
272 border: 0;
273 border: 0;
273 font-size: 100%;
274 font-size: 100%;
274 font: inherit;
275 font: inherit;
275 vertical-align: baseline;
276 vertical-align: baseline;
276 color: black;
277 color: black;
277 background-color: white;
278 background-color: white;
278 }
279 }
279
280
280 /* This class is for the output subarea inside the output_area and after
281 /* This class is for the output subarea inside the output_area and after
281 the prompt div. */
282 the prompt div. */
282 div.output_subarea {
283 div.output_subarea {
283 padding: 0.44em 0.4em 0.4em 1px;
284 padding: 0.44em 0.4em 0.4em 1px;
284 }
285 }
285
286
286 /* The rest of the output_* classes are for special styling of the different
287 /* The rest of the output_* classes are for special styling of the different
287 output types */
288 output types */
288
289
289 /* all text output has this class: */
290 /* all text output has this class: */
290 div.output_text {
291 div.output_text {
291 text-align: left;
292 text-align: left;
292 color: @fontBaseColor;
293 color: @fontBaseColor;
293 font-family: monospace;
294 font-family: monospace;
294 /* This has to match that of the the CodeMirror class line-height below */
295 /* This has to match that of the the CodeMirror class line-height below */
295 line-height: 1.231;
296 line-height: 1.231;
296 }
297 }
297
298
298 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
299 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
299 div.output_stream {
300 div.output_stream {
300 padding-top: 0.0em;
301 padding-top: 0.0em;
301 padding-bottom: 0.0em;
302 padding-bottom: 0.0em;
302 }
303 }
303 div.output_stdout {
304 div.output_stdout {
304 }
305 }
305 div.output_stderr {
306 div.output_stderr {
306 background: #fdd; /* very light red background for stderr */
307 background: #fdd; /* very light red background for stderr */
307 }
308 }
308
309
309 div.output_latex {
310 div.output_latex {
310 text-align: left;
311 text-align: left;
311 }
312 }
312
313
313 div.output_html {
314 div.output_html {
314 }
315 }
315
316
316 div.output_png {
317 div.output_png {
317 }
318 }
318
319
319 div.output_jpeg {
320 div.output_jpeg {
320 }
321 }
321
322
322 div.text_cell {
323 div.text_cell {
323 padding: 5px 5px 5px 5px;
324 padding: 5px 5px 5px 5px;
324 }
325 }
325
326
326 div.text_cell_input {
327 div.text_cell_input {
327 color: @fontBaseColor;
328 color: @fontBaseColor;
328 border: 1px solid @border_color;
329 border: 1px solid @border_color;
329 .corner-all;
330 .corner-all;
330 background: @cell_background;
331 background: @cell_background;
331 }
332 }
332
333
333 div.text_cell_render {
334 div.text_cell_render {
334 /*font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;*/
335 /*font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;*/
335 outline: none;
336 outline: none;
336 resize: none;
337 resize: none;
337 width: inherit;
338 width: inherit;
338 border-style: none;
339 border-style: none;
339 padding: 5px;
340 padding: 5px;
340 color: @fontBaseColor;
341 color: @fontBaseColor;
341 }
342 }
342
343
343 /* The following gets added to the <head> if it is detected that the user has a
344 /* The following gets added to the <head> if it is detected that the user has a
344 * monospace font with inconsistent normal/bold/italic height. See
345 * monospace font with inconsistent normal/bold/italic height. See
345 * notebookmain.js. Such fonts will have keywords vertically offset with
346 * notebookmain.js. Such fonts will have keywords vertically offset with
346 * respect to the rest of the text. The user should select a better font.
347 * respect to the rest of the text. The user should select a better font.
347 * See: https://github.com/ipython/ipython/issues/1503
348 * See: https://github.com/ipython/ipython/issues/1503
348 *
349 *
349 * .CodeMirror span {
350 * .CodeMirror span {
350 * vertical-align: bottom;
351 * vertical-align: bottom;
351 * }
352 * }
352 */
353 */
353
354
354 .CodeMirror {
355 .CodeMirror {
355 line-height: 1.231; /* Changed from 1em to our global default */
356 line-height: 1.231; /* Changed from 1em to our global default */
356 }
357 }
357
358
358 .CodeMirror-scroll {
359 .CodeMirror-scroll {
359 height: auto; /* Changed to auto to autogrow */
360 height: auto; /* Changed to auto to autogrow */
360 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
361 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
361 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
362 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
362 overflow-y: hidden;
363 overflow-y: hidden;
363 overflow-x: auto; /* Changed from auto to remove scrollbar */
364 overflow-x: auto; /* Changed from auto to remove scrollbar */
364 }
365 }
365
366
366 /* CSS font colors for translated ANSI colors. */
367 /* CSS font colors for translated ANSI colors. */
367
368
368
369
369 .ansiblack {color: @fontBaseColor;}
370 .ansiblack {color: @fontBaseColor;}
370 .ansired {color: darkred;}
371 .ansired {color: darkred;}
371 .ansigreen {color: darkgreen;}
372 .ansigreen {color: darkgreen;}
372 .ansiyellow {color: brown;}
373 .ansiyellow {color: brown;}
373 .ansiblue {color: darkblue;}
374 .ansiblue {color: darkblue;}
374 .ansipurple {color: darkviolet;}
375 .ansipurple {color: darkviolet;}
375 .ansicyan {color: steelblue;}
376 .ansicyan {color: steelblue;}
376 .ansigrey {color: grey;}
377 .ansigrey {color: grey;}
377 .ansibold {font-weight: bold;}
378 .ansibold {font-weight: bold;}
378
379
379 .completions {
380 .completions {
380 position: absolute;
381 position: absolute;
381 z-index: 10;
382 z-index: 10;
382 overflow: hidden;
383 overflow: hidden;
383 border: 1px solid @border_color;
384 border: 1px solid @border_color;
384 }
385 }
385
386
386 .completions select {
387 .completions select {
387 background: white;
388 background: white;
388 outline: none;
389 outline: none;
389 border: none;
390 border: none;
390 padding: 0px;
391 padding: 0px;
391 margin: 0px;
392 margin: 0px;
392 overflow: auto;
393 overflow: auto;
393 font-family: monospace;
394 font-family: monospace;
394 }
395 }
395
396
396 option.context {
397 option.context {
397 background-color: #DEF7FF;
398 background-color: #DEF7FF;
398 }
399 }
399 option.introspection {
400 option.introspection {
400 background-color: #EBF4EB;
401 background-color: #EBF4EB;
401 }
402 }
402
403
403 /*fixed part of the completion*/
404 /*fixed part of the completion*/
404 .completions p b {
405 .completions p b {
405 font-weight:bold;
406 font-weight:bold;
406 }
407 }
407
408
408 .completions p {
409 .completions p {
409 background: #DDF;
410 background: #DDF;
410 /*outline: none;
411 /*outline: none;
411 padding: 0px;*/
412 padding: 0px;*/
412 border-bottom: black solid 1px;
413 border-bottom: black solid 1px;
413 padding: 1px;
414 padding: 1px;
414 font-family: monospace;
415 font-family: monospace;
415 }
416 }
416
417
417 pre.dialog {
418 pre.dialog {
418 background-color: @cell_background;
419 background-color: @cell_background;
419 border: 1px solid #ddd;
420 border: 1px solid #ddd;
420 .corner-all;
421 .corner-all;
421 padding: 0.4em;
422 padding: 0.4em;
422 padding-left: 2em;
423 padding-left: 2em;
423 }
424 }
424
425
425 p.dialog {
426 p.dialog {
426 padding : 0.2em;
427 padding : 0.2em;
427 }
428 }
428
429
429 .shortcut_key {
430 .shortcut_key {
430 display: inline-block;
431 display: inline-block;
431 width: 15ex;
432 width: 15ex;
432 text-align: right;
433 text-align: right;
433 font-family: monospace;
434 font-family: monospace;
434 }
435 }
435
436
436 .shortcut_descr {
437 .shortcut_descr {
437 }
438 }
438
439
439 /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems
440 /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems
440 to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do.
441 to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do.
441 */
442 */
442 pre, code, kbd, samp { white-space: pre-wrap; }
443 pre, code, kbd, samp { white-space: pre-wrap; }
443
444
444 #fonttest {
445 #fonttest {
445 font-family: monospace;
446 font-family: monospace;
446 }
447 }
447
448
448 .js-error {
449 .js-error {
449 color: darkred;
450 color: darkred;
450 }
451 }
451
452
452
453
453
454
454
455
General Comments 0
You need to be logged in to leave comments. Login now