Path: blob/master/src/packages/frontend/_jupyter.sass
1496 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45@use 'colors'67// I just noticed there is another version of this file in jupyter/_jupyter.sass8// They need to be carefully merged into one! But not today.910.smc-jupyter-nbviewer-content11border: 1px solid lightgray1213.smc-jupyter-nbviewer14background: white15position: fixed16width: 100%1718.smc-jupyter-notebook19background: white20width: 100%21left: 0px22min-height: 10em /* ensure path is covered while loading notebook */2324.smc-jupyter-notebook-history-slider-controls25position: absolute26top: 8px27right: 5px28width: 80%29background: white30border: 2px solid orange31border-radius: 4px32padding: 20px33box-shadow: 5px 6px 4px lightgray3435.smc-jupyter-notebook-history-slider36margin-top: 11px3738.smc-jupyter-notebook-status-messages39font-size: 10pt4041.smc-jupyter-notebook-danger42color: white43font-weight: bold44font-size: 7pt45background: red4647.smc-jupyter-history-revision-number48font-size: 10pt4950.smc-jupyter-history-revision-time51font-size: 10pt5253/* Used for new sync. */54.smc-jupyter-cursor55position: absolute56width: 15em57z-index: 5 !important5859.smc-jupyter-cursor-inside60height: 1.2em61width: 1px6263.smc-jupyter-cursor-label64font-size: 8pt65font-family: serif66color: #fff67z-index: 10006869.smc-jupyter-notebook-notebook70width: 100%7172.cc-jupyter-snippets73.ant-collapse-content-box74padding: 0 !important7576span.hl77background-color: yellow78font-weight: bold7980.cc-jupyter-snippet81> div.ant-collapse-header82color: colors.$COL_GRAY !important8384.cc-jupyter-snippet-collapse85.cc-jupyter-snippet86border-radius: 2px87border: 0px88overflow: hidden8990.cc-jupyter-snippet-content91background: white92margin: 0 10px 10px 10px93padding: 10px94border: 1px solid colors.$COL_GRAY_L95border-radius: 3px96box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.22)97> pre98font-size: 80%99100.cc-jupyter-snippet-header101vertical-align: -0.125em // to match ANTD's collapse icon102p103display: inline104105// katex 0.13.5 somehow causes formulas to be displayed wider than the width of the output106// adding ugly horizontal scrollbar. this eliminates that.107.cocalc-jupyter-rendered108.katex-display>.katex>.katex-html109// display: contents // this did work, but it's some experimental new display option110margin: 1em .5em // margin works as well, but we also have to set it for mathjax to make it look consistent111.katex112padding: 0 2.5px113114// this seems to be missing from jupyter widgets, but is used to implement the according115// https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#accordion116// I.e., without this css rule, accordion is just broken.117.lm-Widget.lm-mod-hidden118display: none !important119120.cc-jupyter-buttonbar-dropdown121.ant-dropdown-menu-item122color: colors.$COL_GRAY_D !important123124125