Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 39550
1
/*
2
*
3
*Editor for files in a project
4
*/
5
6
.webapp-editor-content
7
position : absolute
8
left : 0
9
margin : 0
10
width : 100%
11
padding : 0
12
background : white
13
14
// get rid of bootstrap's width: 100% for .table elements in the editor content
15
.table
16
width: auto
17
18
.webapp-editor-close-button-x
19
font-size : 14px
20
margin-top : 9px
21
margin-right : 15px
22
width : 2%
23
&:hover
24
color: #f00
25
26
.webapp-editor-tab-filename
27
overflow : hidden
28
display : block
29
white-space : nowrap
30
31
.webapp-editor-find
32
display : inline-block
33
height : 25px
34
padding : 4px 6px
35
margin-top : 3px
36
37
.webapp-editor-filename-pill
38
width : 32%
39
cursor : pointer
40
41
.webapp-editor-filename-pill-icon-active
42
color : orange
43
44
@media (max-width: 767px)
45
.webapp-editor-filename-pill
46
width: 50%
47
48
@media (max-width: 480px)
49
.webapp-editor-filename-pill
50
width: 100%
51
52
.webapp-editor-codemirror
53
width : 100%
54
padding : 0px
55
56
.webapp-editor-codemirror-button-row
57
background : #efefef
58
59
.webapp-editor-codemirror-filename,
60
.webapp-editor-pdf-title
61
margin-left : 1em
62
margin-right : 10px
63
font-size : 11pt
64
font-weight : bold
65
color : #555
66
67
.webapp-editor-codemirror-cursor
68
position : absolute
69
width : 15em
70
z-index : 5
71
72
.webapp-editor-codemirror-cursor-inside
73
position : absolute
74
top : -1.3em
75
left : .5ex
76
height : 1.15em
77
width : .1ex
78
border-left : 2px solid black
79
border : 1px solid #aaa
80
opacity : .7
81
82
.webapp-editor-codemirror-cursor-label
83
position : absolute
84
top : -2.9em
85
left : 1.5ex
86
font-size : 8pt
87
font-family : serif
88
background-color : rgba(255, 255, 255, 0.7)
89
90
91
.webapp-editor-recent-files
92
margin-bottom: 0em
93
94
.webapp-editor-codemirror-sync
95
font-size : 8pt
96
color : #bbb
97
98
.webapp-latex-errors-counter
99
color : white
100
font-weight : bold
101
102
.webapp-latex-warnings-counter
103
color: #FDB600
104
105
.webapp-editor-latex-mesg-template
106
overflow-x : auto
107
background : white
108
margin-right : 2em
109
110
.webapp-editor-latex-mesg-template-error
111
border : 2px solid #a00
112
113
.webapp-editor-latex-mesg-template-warning, .webapp-editor-latex-mesg-template-typesetting
114
border: 2px solid #FDB600
115
116
.webapp-editor-latex-right-pane
117
> .nav > li
118
> a:hover
119
background-color: #fff
120
> a.btn-danger:hover
121
background-color: #ad241f
122
> .nav-tabs > li
123
&.active > a
124
color: #333
125
&.btn-danger
126
background-color: #ad241f
127
> a
128
color: #555
129
margin-top : 2px
130
padding-top : 6px
131
padding-bottom : 6px
132
&.btn-danger
133
color: white
134
135
.webapp-editor-latex-help
136
padding : 20px
137
background-color : white
138
overflow-y : auto !important
139
140
.smc-latex-inline-error
141
padding : 10px
142
143
&.smc-latex-inline-error-error
144
border : 3px solid #FFBBBB
145
146
&.smc-latex-inline-error-warning
147
border : 3px solid #FDB600
148
149
&.smc-latex-inline-error-typesetting
150
border : 3px solid #AAAAFF
151
152
> .smc-latex-inline-error-message
153
padding-bottom: .5em
154
155
> .smc-latex-inline-error-content
156
font-family: monospace
157
158
.smc-latex-inline-error-error
159
background-color: #FFE0D9
160
.smc-latex-inline-error-warning
161
background-color: #DFFFCC
162
.smc-latex-inline-error-typesetting
163
background-color: #CCDFFF
164
165
.smc-latex-error-popover
166
background-color: #FFCDCC
167
> pre
168
background-color: #FFCDCC
169
border: 0
170
font-size: 85%
171
> .arrow:after
172
border-right-color: #FFCDCC !important
173
> .popover-title
174
background-color: #FFACAA
175
176
.Codemirror-latex-errors
177
padding : 0 2px 0 4px
178
min-width : 15px
179
text-align : right
180
white-space : nowrap
181
182
.webapp-editor-pdf-preview-message
183
padding : 20px
184
185
.webapp-latex-mesg-message
186
font-size : 13pt
187
margin-left : 1em
188
189
.webapp-latex-mesg-content
190
font-size : 9pt
191
margin : 5px
192
193
.webapp-editor-pdf-preview-page
194
background-color : #666
195
color : #fff
196
margin : 0 auto
197
overflow : visible
198
199
.webapp-editor-pdf-preview-page-single
200
background-color : #666
201
text-align : center
202
margin : 0 auto
203
img
204
display : block
205
max-width : 100%
206
width : 100%
207
208
.webapp-editor-pdf-preview-spinner
209
position : absolute
210
left : 2em
211
top : 10em
212
213
.webapp-editor-pdf-preview-text
214
border-top : 1px solid black
215
text-align : left
216
margin-left : 1em
217
margin-right : 1em
218
padding-top : 1em
219
color : #8a8a8a
220
221
.webapp-editor-pdf-preview-highlight
222
margin-bottom : -3em
223
padding-bottom : 3em
224
opacity : .3
225
background-color : yellow
226
227
.webapp-editor-pdf-preview-buttons
228
font-size : 11pt
229
border : 1px solid lightgrey
230
231
.webapp-editor-search-openfiles-input
232
width : 80%
233
234
.webapp-editor-openfile-excluded-from-search
235
opacity: .6
236
237
.webapp-editor-openfile-included-in-search
238
border-radius : 6px
239
border : 1px solid #aaa
240
box-shadow : 2px 2px 2px 2px #bbb
241
242
.smc-users-viewing-document
243
display : inline-block
244
245
.webapp-editor-chat-title
246
color: #666
247
margin-right: 5px
248
white-space: nowrap
249
font-size: 18pt
250
font-weight: bold
251
position: fixed
252
z-index: 10
253
right: 0
254
margin-top: -2px
255
256
.smc-editor-chat-smiley
257
font-size : 125%
258
259
/*********** Synchronized Worksheets **************** */
260
261
.sagews-input
262
white-space : nowrap
263
264
.sagews-input-live:hover
265
cursor : pointer
266
background-color : #428bca
267
268
.sagews-input-hr
269
margin : 0px
270
margin-right : -10px
271
margin-bottom : .5ex
272
// makes line look centered
273
display : inline-block
274
height : 3px
275
background : #ccc
276
277
.sagews-input-newcell
278
width : 60%
279
280
.sagews-input-eval-state
281
width : 20%
282
283
.sagews-input-run-state
284
width : 20%
285
286
.sagews-input-evaluated
287
background : #428bca
288
289
// .sagews-input-unevaluated!
290
291
.sagews-input-execute
292
background : #080
293
294
.sagews-input-running
295
background : #0a0
296
297
.sagews-input-waiting
298
background : #DC4437
299
300
// Margin of sagews-output must be 0 for codemirror 3.14+, or cursor gets all jacked up.
301
// background-color: #f9f9f9;
302
//
303
// this messes up codemirror themes
304
305
.sagews-output
306
display : block
307
white-space : normal
308
word-wrap : break-word
309
padding-left : 2em
310
311
.sagews-output-stdout
312
white-space : pre-wrap
313
314
.sagews-output-stderr
315
white-space : pre-wrap
316
317
.sagews-output-cm-gutter
318
border-right : 1ex solid #5cb85c
319
320
.sagews-output-cm-text
321
overflow-x : auto !important // for big image output and since mathjax doesn't wrap around properly yet (?)
322
overflow-y : hidden !important
323
max-width : 100% !important
324
325
.sagews-output-cm-wrap
326
padding-top : 1ex !important
327
padding-bottom : 1ex !important
328
border : 1px solid #ddd
329
330
.sagews-output-edit-button-group
331
visibility : hidden
332
333
.sagews-output:hover .sagews-output-edit-button-group
334
visibility : visible
335
336
.sagews-output-editor
337
font-family : helvetica
338
border : 3px solid lightblue
339
340
.sagews-output-editor-content
341
padding : 6px
342
343
.sagews-output-editor-buttons
344
background-color : #efefef
345
margin-bottom : 5px
346
border : 1px solid lightgrey
347
348
.webapp-editor-codemirror-worksheet-editable-buttons
349
padding-top : 3px
350
351
.webapp-editor-mathjax-editor
352
cursor : pointer
353
border : 1px solid lightgrey !important
354
padding : 3px !important
355
margin-left : 5px
356
357
.sagews-editor-latex-raw
358
border : 1px solid lightgrey
359
padding : 3px
360
box-shadow : 3px 3px 3px 3px #888888
361
margin : 0 auto
362
363
.sagews-editor-latex-preview
364
border : 1px solid black
365
padding : 12px
366
367
.sagews-output-editor-foreground-color-selector
368
cursor : pointer
369
width : 1px
370
height : 30px
371
372
.sagews-output-editor-background-color-selector
373
cursor : pointer
374
width : 1px
375
height : 30px
376
377
.sagews-output-html
378
font-family : helvetica
379
380
.sagews-output-md
381
font-family : helvetica
382
383
.sagews-output-stderr
384
color : red
385
386
.sagews-output-code
387
white-space : pre
388
border : 2px solid lightblue
389
padding : 1ex
390
391
.sagews-output-tex
392
background : white
393
/* so that tex is visible */
394
395
.sagews-output-image
396
background : white
397
/* so that, e.g., latex with transparent background is visible */
398
> img
399
cursor : pointer
400
401
.sagews-output-video
402
cursor : pointer
403
background : white
404
border : 1px solid lightgrey
405
406
.sagews-output-link
407
cursor : pointer
408
409
.sagews-output-hide
410
height : 0px
411
background : #eee
412
413
// .sagews-output-interact!
414
415
.webapp-editor-image
416
padding : 0px
417
overflow-y : auto
418
left : 0px
419
420
.webapp-editor-image-container
421
overflow : auto
422
background-color : #fff
423
border : 1px solid #aaa
424
box-shadow : 5px 5px 5px 5px #888
425
426
.webapp-editor-image-title
427
margin-left : 3em
428
margin-right : 5em
429
font-size : 10pt
430
font-weight : bold
431
color : #555
432
433
434
.webapp-editor-static-html-content
435
overflow-y : auto
436
margin : 0
437
border-top : 1px solid lightgray
438
439
440
.webapp-editor-history-history_editor .webapp-editor-codemirror-input-box
441
width : 100%
442
443
/*the slider background */
444
445
.webapp-editor-history-slider-style
446
height : 11px
447
position : relative
448
margin : 11px
449
> .ui-slider-handle
450
width : 16px
451
height : 24px
452
position : absolute
453
top : -8px
454
margin-left : -6px
455
z-index : 5
456
outline : none
457
458
.smc-history-diff-wrap-delete
459
background-color : #ffecec
460
461
.smc-history-diff-gutter-delete
462
background-color : #ffdddd
463
464
.smc-history-diff-wrap-insert
465
background-color : #eaffea
466
467
.smc-history-diff-gutter-insert
468
background-color : #dbffdb
469
470
.smc-history-diff-wrap-divide
471
border-bottom : 1px solid grey
472
margin-bottom : 2em
473
474
.smc-history-diff-gutter1
475
width : 50px
476
color : #999
477
478
.smc-history-diff-gutter2
479
width : 50px
480
color : #999
481
482
.smc-history-diff-number
483
color : #999
484
padding-left : 10px
485
486
/*Style for the slider button */
487
488
/* Undo various bootstrap madness (which makes scaling markdown very painful) */
489
490
li
491
line-height : normal
492
493
code
494
font-size : inherit
495
496
.cm-trailingspace
497
background-image : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==)
498
background-position : bottom left
499
background-repeat : repeat-x
500
501
/* Deals with the currently open file tabs and moving them around */
502
503
.file-pages
504
float : none
505
overflow : hidden
506
> li > a
507
position : static
508
/* Bootstrap 3 has this as relative ?? */
509
padding : 13px 15px 7px
510
border-radius : 5px 5px 0px 0px
511
/* Flatten bottom corners like tabs */
512
513
.file-tab-placeholder
514
/* Currently blank */
515
516
.file-pages li
517
&.ui-sortable-helper > a
518
background-color : #eee
519
&.active.ui-sortable-helper > a
520
background-color : #08c
521
522
.nav-pills > li + li
523
margin-left : 0 !important
524
525
.webapp-editor-codemirror-not-synced
526
background : red
527
color : white
528
padding : 5px
529
border-radius : 3px
530
531
.webapp-editor-resize-bar-layout-1
532
height : 5px
533
cursor : ns-resize
534
background : #ddd
535
border : 1px solid grey
536
border-radius : 3px
537
z-index : 1
538
&:hover
539
background : #888
540
541
.smc-vertical-drag-bar, .webapp-editor-resize-bar-layout-2, .webapp-editor-latex-resize-bar, .webapp-editor-html-md-resize-bar
542
cursor : ew-resize
543
background : #ddd
544
width : 4px
545
border : 1px solid grey
546
border-radius : 3px
547
z-index : 1
548
&:hover
549
background : #888
550
551
.webapp-editor-html-md-preview
552
padding : 12px
553
background : white
554
overflow : auto
555
border : 1px solid grey
556
border-radius : 4px
557
558
.smc-html-selection
559
background-color : lightgrey
560
border : 1px solid lightgrey
561
562
.smc-html-cursor
563
border-left : 1px solid black
564
margin-right : -1px
565
566
.webapp-html-editor-symbols-dialog td:hover
567
background : lightblue
568
569
.webapp-editor-codeedit-buttonbar-mode
570
background : #fafafa
571
padding : 6px 12px
572
border : 1px solid #ddd
573
cursor : pointer
574
color : darkblue
575
576
.sagews-output-raw_input
577
font-family : sans-serif
578
margin : 1em
579
580
581
.smc-sagews-gutter-hide-show
582
width : 12px
583
color : #999
584
margin-right : 14px
585
margin-left : 3px
586
587
.CodeMirror-linewidget
588
overflow : hidden
589
590
591
/* Used for new sync. */
592
.smc-editor-codemirror-cursor
593
position : absolute
594
width : 15em
595
z-index : 5
596
597
.smc-editor-codemirror-cursor-inside
598
position : absolute
599
top : -1.2em
600
left : -1px
601
height : 1.2em
602
width : 1px
603
604
.smc-editor-codemirror-cursor-label
605
position : absolute
606
top : -2.3em
607
font-size : 8pt
608
font-family : serif
609
color : #fff
610
611
.smc-uncommitted
612
color : white
613
background-color : red
614
padding : 5px
615
border-radius : 3px
616
margin-left : 5px
617
margin-right : -5px
618
619
/* IMPORTANT FOR SAGE WORKSHEETS! Do not remove!
620
We override the bootstrap css styles, which hardcode a specific
621
pixel font-size for headers, and hence can't be zoomed.
622
See https://github.com/sagemathinc/cocalc/issues/585 */
623
624
h1 { font-size: 250% }
625
h2 { font-size: 200% }
626
h3 { font-size: 170% }
627
h4 { font-size: 150% }
628
h5 { font-size: 130% }
629
h6 { font-size: 110% }
630
631
/* Important: for display math in Sage Worksheets.
632
See https://github.com/sagemathinc/cocalc/issues/136
633
NOTE: I did try putting
634
styles: {'background-color':'inherit !important'}
635
in the mathjax config section of last.coffee, but
636
that did nothing. So we're just going with this below. */
637
638
.MathJax_SVG_Display
639
background-color : inherit !important
640
641
642
.smc-vfill
643
flex : 1
644
display : flex
645
flex-direction : column
646
overflow : hidden
647
648
.smc-vflex
649
display : flex
650
flex-direction : column
651
652
.smc-btn-group-nobreak
653
display : flex
654
align-items : flex-start
655
656
.webapp-editor-codemirror-button-container
657
border: 1px solid lightgrey
658
659
.smc-message-from-viewer a:link, .smc-message-from-viewer a:visited
660
color : #FFEB3B
661
662
.smc-chat-message
663
img
664
max-width: 100%
665
blockquote
666
padding: 0px 0px 0px 10px
667
font-size: inherit
668
p
669
font-size: inherit
670
pre
671
font-size: inherit
672
padding: 5px
673
674
// Make codemirror tabs visible. Tabs are the source of great confusion for python
675
// users, so we definitely don't want to not make them very explicit. See
676
// https://codemirror.net/demo/visibletabs.html
677
.cm-tab
678
background : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=)
679
background-position : right
680
background-repeat : no-repeat
681
682