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