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