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