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