Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/_editor.sass
Views: 687
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45/*6*7*Editor for files in a project8*/910.webapp-editor-content11position : absolute12left : 013margin : 014width : 100%15padding : 016background : white1718// get rid of bootstrap's width: 100% for .table elements in the editor content19.table20width: auto21.webapp-editor-textedit-buttonbar22padding : 3px 3px 0px 3px23background : #efefef2425.webapp-editor-close-button-x26font-size : 14px27margin-top : 9px28margin-right : 15px29width : 2%30&:hover31color: #f003233.webapp-editor-tab-filename34overflow : hidden35display : block36white-space : nowrap3738.webapp-editor-find39display : inline-block40height : 25px41padding : 4px 6px42margin-top : 3px4344.webapp-editor-filename-pill45width : 32%46cursor : pointer4748.webapp-editor-filename-pill-icon-active49color : orange5051@media (max-width: 767px)52.webapp-editor-filename-pill53width: 50%5455@media (max-width: 480px)56.webapp-editor-filename-pill57width: 100%5859.webapp-editor-codemirror60width : 100%61padding : 0px6263.webapp-editor-codemirror-button-row64background : #efefef6566.webapp-editor-codemirror-filename,67.webapp-editor-pdf-title68margin-left : 1em69margin-right : 10px70font-size : 11pt71font-weight : bold72color : #5557374.webapp-editor-codemirror-message75font-size : 11pt7677.webapp-editor-codemirror-cursor78position : absolute79width : 15em80z-index : 58182.webapp-editor-codemirror-cursor-inside83position : absolute84top : -1.3em85left : .5ex86height : 1.15em87width : .1ex88border-left : 2px solid black89border : 1px solid #aaa90opacity : .79192.webapp-editor-codemirror-cursor-label93position : absolute94top : -2.9em95left : 1.5ex96font-size : 8pt97font-family : serif98background-color : rgba(255, 255, 255, 0.7)99100101.webapp-editor-recent-files102margin-bottom: 0em103104.webapp-editor-codemirror-sync105font-size : 8pt106color : #bbb107108.webapp-latex-errors-counter109color : white110font-weight : bold111112.webapp-latex-warnings-counter113color: #FDB600114115.webapp-editor-latex-mesg-template116overflow-x : auto117background : white118margin-right : 2em119120.webapp-editor-latex-mesg-template-error121border : 2px solid #a00122123.webapp-editor-latex-mesg-template-warning, .webapp-editor-latex-mesg-template-typesetting124border: 2px solid #FDB600125126.webapp-editor-latex-right-pane127> .nav > li128> a:hover129background-color: #fff130> a.btn-danger:hover131background-color: #ad241f132> .nav-tabs > li133&.active > a134color: #333135&.btn-danger136background-color: #ad241f137> a138color: #555139margin-top : 2px140padding-top : 6px141padding-bottom : 6px142&.btn-danger143color: white144145.webapp-editor-latex-help146padding : 20px147background-color : white148overflow-y : auto !important149150.smc-latex-inline-error151padding : 10px152153&.smc-latex-inline-error-error154border : 3px solid #FFBBBB155156&.smc-latex-inline-error-warning157border : 3px solid #FDB600158159&.smc-latex-inline-error-typesetting160border : 3px solid #AAAAFF161162> .smc-latex-inline-error-message163padding-bottom: .5em164165> .smc-latex-inline-error-content166font-family: monospace167168.smc-latex-inline-error-error169background-color: #FFE0D9170.smc-latex-inline-error-warning171background-color: #DFFFCC172.smc-latex-inline-error-typesetting173background-color: #CCDFFF174175.smc-latex-error-popover176background-color: #FFCDCC177> pre178background-color: #FFCDCC179border: 0180font-size: 85%181> .arrow:after182border-right-color: #FFCDCC !important183> .popover-title184background-color: #FFACAA185186.Codemirror-latex-errors187padding : 0 2px 0 4px188min-width : 15px189text-align : right190white-space : nowrap191192.webapp-editor-pdf-preview-message193padding : 20px194195.webapp-latex-mesg-message196font-size : 13pt197margin-left : 1em198199.webapp-latex-mesg-content200font-size : 9pt201margin : 5px202203.webapp-editor-pdf-preview-page204background-color : #666205color : #fff206margin : 0 auto207overflow : visible208209.webapp-editor-pdf-preview-page-single210background-color : #666211text-align : center212margin : 0 auto213img214display : block215max-width : 100%216width : 100%217218.webapp-editor-pdf-preview-spinner219position : absolute220left : 2em221top : 10em222223.webapp-editor-pdf-preview-text224border-top : 1px solid black225text-align : left226margin-left : 1em227margin-right : 1em228padding-top : 1em229color : #8a8a8a230231.webapp-editor-pdf-preview-highlight232margin-bottom : -3em233padding-bottom : 3em234opacity : .3235background-color : yellow236237.webapp-editor-pdf-preview-buttons238font-size : 11pt239border : 1px solid lightgrey240241.webapp-editor-search-openfiles-input242width : 80%243244.webapp-editor-openfile-excluded-from-search245opacity: .6246247.webapp-editor-openfile-included-in-search248border-radius : 6px249border : 1px solid #aaa250box-shadow : 2px 2px 2px 2px #bbb251252.smc-users-viewing-document253display : inline-block254255.webapp-editor-chat-title256color: #666257margin-right: 5px258white-space: nowrap259font-size: 18pt260font-weight: bold261position: fixed262z-index: 10263right: 0264margin-top: -2px265266/*********** Synchronized Worksheets **************** */267268.sagews-input269white-space : nowrap270271.sagews-input-live:hover272cursor : pointer273background-color : #428bca274275.sagews-input-hr276margin : 0px277margin-right : -10px278margin-bottom : .5ex279// makes line look centered280display : inline-block281height : 3px282background : #ccc283284.sagews-input-newcell285width : 60%286287.sagews-input-eval-state288width : 20%289290.sagews-input-run-state291width : 20%292293.sagews-input-evaluated294background : #428bca295296// .sagews-input-unevaluated!297298.sagews-input-execute299background : #080300301.sagews-input-running302background : #0a0303304.sagews-input-waiting305background : #DC4437306307// Margin of sagews-output must be 0 for codemirror 3.14+, or cursor gets all jacked up.308// background-color: #f9f9f9309//310// this messes up codemirror themes311312.sagews-output313display : block314white-space : normal315word-wrap : break-word316padding-left : 2em317318.sagews-output-stdout319white-space : pre-wrap320321.sagews-output-stderr322white-space : pre-wrap323324.sagews-output-cm-gutter325border-right : 1ex solid #5cb85c326327.sagews-output-cm-text328overflow-x : auto !important // for big image output and since mathjax doesn't wrap around properly yet (?)329overflow-y : hidden !important330max-width : 100% !important331332.sagews-output-cm-wrap333padding-top : 1ex !important334padding-bottom : 1ex !important335border-top : 1px solid lightgrey336337.sagews-output-edit-button-group338visibility : hidden339340.sagews-output:hover .sagews-output-edit-button-group341visibility : visible342343.sagews-output-editor344font-family : helvetica345border : 3px solid lightblue346347.sagews-output-editor-content348padding : 6px349350.sagews-output-editor-buttons351background-color : #efefef352margin-bottom : 5px353border : 1px solid lightgrey354355.webapp-editor-codemirror-worksheet-editable-buttons356padding-top : 3px357358.webapp-editor-mathjax-editor359cursor : pointer360border : 1px solid lightgrey !important361padding : 3px !important362margin-left : 5px363364.sagews-editor-latex-raw365border : 1px solid lightgrey366padding : 3px367box-shadow : 3px 3px 3px 3px #888888368margin : 0 auto369370.sagews-editor-latex-preview371border : 1px solid black372padding : 12px373374.sagews-output-editor-foreground-color-selector375cursor : pointer376width : 1px377height : 30px378379.sagews-output-editor-background-color-selector380cursor : pointer381width : 1px382height : 30px383384.sagews-output-html385font-family : helvetica386387.sagews-output-md388font-family : helvetica389390.sagews-output-stderr391color : red392393.sagews-output-code394white-space : pre395border : 2px solid lightblue396padding : 1ex397398.sagews-output-tex399background : white400/* so that tex is visible */401402.sagews-output-image403background : white404/* so that, e.g., latex with transparent background is visible */405> img406cursor : pointer407408.sagews-output-video409cursor : pointer410background : white411border : 1px solid lightgrey412413.sagews-output-link414cursor : pointer415416.sagews-output-hide417height : 0px418background : #eee419420// .sagews-output-interact!421422423.webapp-editor-static-html-content424overflow-y : auto425margin : 0426border-top : 1px solid lightgray427428429.webapp-editor-history-history_editor .webapp-editor-codemirror-input-box430width : 100%431432/*the slider background */433434.webapp-editor-history-slider-style435height : 11px436position : relative437margin : 11px438> .ui-slider-handle439width : 16px440height : 24px441position : absolute442top : -8px443margin-left : -6px444z-index : 5445outline : none446447.smc-history-diff-wrap-delete448background-color : #ffecec449450.smc-history-diff-gutter-delete451background-color : #ffdddd452453.smc-history-diff-wrap-insert454background-color : #eaffea455456.smc-history-diff-gutter-insert457background-color : #dbffdb458459.smc-history-diff-wrap-divide460border-bottom : 1px solid grey461462.smc-history-diff-gutter1463width : 50px464color : #999465466.smc-history-diff-gutter2467width : 50px468color : #999469470.smc-history-diff-number471color : #999472padding-left : 10px473474/*Style for the slider button */475476/* Undo various bootstrap madness (which makes scaling markdown very painful) */477478li479line-height : inherit480481code482font-size : inherit483484.cm-trailingspace485background-image : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==)486background-position : bottom left487background-repeat : repeat-x488489/* Deals with the currently open file tabs and moving them around */490491.file-pages492float : none493overflow : hidden494> li > a495position : static496/* Bootstrap 3 has this as relative ?? */497padding : 13px 15px 7px498border-radius : 5px 5px 0px 0px499/* Flatten bottom corners like tabs */500501.file-tab-placeholder502/* Currently blank */503504.file-pages li505&.ui-sortable-helper > a506background-color : #eee507&.active.ui-sortable-helper > a508background-color : #08c509510.nav-pills > li + li511margin-left : 0 !important512513.webapp-editor-codemirror-not-synced514background : red515color : white516padding : 5px517border-radius : 3px518519.webapp-editor-resize-bar-layout-1520height : 7px521cursor : ns-resize522background : #eee523border : 0.5px solid lightgrey524z-index : 1525&:hover526background : #428bca527528.webapp-editor-resize-bar-layout-2, .webapp-editor-latex-resize-bar, .webapp-editor-html-md-resize-bar529cursor : ew-resize530background : #eee531width : 6px532border : 0.5px solid lightgrey533z-index : 100 /* must be less than 1050, which is used for modals */534&:hover535background : #428bca536537.cc-vertical-drag-bar538cursor : ew-resize539background : #eee540padding : 3px541border : 1px solid #ddd542&:hover543background : #428bca544545.cc-vertical-drag-bar-dragging546z-index : 100547548.cc-horizontal-drag-bar549cursor : ns-resize550background : #eee551padding : 3px552border : 1px solid #ddd553&:hover554background : #428bca555556.cc-horizontal-drag-bar-dragging557z-index : 100558559.webapp-editor-html-md-preview560padding : 12px561background : white562overflow : auto563564.smc-html-selection565background-color : lightgrey566border : 1px solid lightgrey567568.smc-html-cursor569border-left : 1px solid black570margin-right : -1px571572.webapp-html-editor-symbols-dialog span:hover573color : blue574background : lightblue575576.webapp-editor-codeedit-buttonbar-mode577background : #fafafa578padding : 6px 12px579border : 1px solid #ddd580cursor : pointer581color : darkblue582583.sagews-output-raw_input584font-family : sans-serif585margin : 1em586587588.smc-sagews-gutter-hide-show589width : 12px590color : #999591margin-right : 14px592margin-left : 3px593594.CodeMirror-linewidget595overflow : hidden596597598/* Used for new sync. */599.smc-editor-codemirror-cursor600position : absolute601width : 15em602z-index : 5603604.smc-editor-codemirror-cursor-inside605position : absolute606top : -1.2em607left : -1px608height : 1.2em609width : 1px610611.smc-editor-codemirror-cursor-label612position : absolute613top : -2.3em614font-size : 8pt615font-family : serif616color : #fff617618.smc-uncommitted619color : white620background-color : red621padding : 5px622border-radius : 3px623margin-left : 5px624margin-right : -5px625626/* IMPORTANT FOR SAGE WORKSHEETS! Do not remove!627This is for the hi font-size's below!628We override the bootstrap css styles, which hardcode a specific629pixel font-size for headers, and hence can't be zoomed.630See https://github.com/sagemathinc/cocalc/issues/585631632And the color:inherit is because antd sets the color to black-ish,633which is very annoying if we have a dark background and want634color white uniformly, e.g., on sticky notes.635636This is also assumed for the whiteboard and slate. */637638h1639font-size: 250%640color: inherit641h2642font-size: 200%643color: inherit644h3645font-size: 170%646color: inherit647h4648font-size: 150%649color: inherit650h5651font-size: 130%652color: inherit653h6654font-size: 110%655color: inherit656657658/* The overflow:hidden is needed for Firefox. */659.smc-vfill660flex : 1 1 0661display : flex662flex-direction : column663overflow : hidden664665.smc-btn-group-nobreak666display : flex667align-items : flex-start668669.webapp-editor-codemirror-button-container670margin : 3px671672// Fallback if used without .smc-message-from-viewer or .smc-message-from-other673.user-mention674color: #0958d9675background: white676padding: 3px,677margin: -3px 0,678679.smc-message-from-viewer .user-mention680color: #e8e8e8681background: rgba(114,137,218,.1)682border-radius: 3px683padding: 0 2px684685.smc-message-from-other .user-mention686color: #7289da687background: rgba(114,137,218,.1)688border-radius: 3px689padding: 0 2px690691.cocalc-task-description .user-mention692color: #7289da693background: rgba(114,137,218,.1)694border-radius: 3px695padding: 0 2px696697.smc-chat-message698overflow-x: auto699overflow-y: hidden700img701max-width: 100%702blockquote703padding: 0px 0px 0px 10px704font-size: inherit705p706font-size: inherit707pre708font-size: inherit709padding: 5px710711// Make codemirror tabs visible. Tabs are the source of great confusion for python712// users, so we definitely don't want to not make them very explicit. See713// https://codemirror.net/demo/visibletabs.html714.cm-tab715background : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=)716background-position : right717background-repeat : no-repeat718719// For some weird reason, the default codemirror theme doesn't set his, which720// makes code hard to read! Very odd.721.cm-property722color: darkblue723724.CodeMirror pre.CodeMirror-placeholder725color: #999 !important726727.cocalc-html-component728img729max-width: 100%730blockquote731padding: 0px 0px 0px 10px732font-size: inherit733p734font-size: inherit735pre736font-size: inherit737padding: 5px738739.cocalc-whiteboard-edge-select740&:hover741border: 2.5px solid #ccc742margin: -2.5px743744.cocalc-whiteboard-edge-selected745border: 2.5px solid #ccc746margin: -2.5px747748749750