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