123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- /*-----------------------------------------------------------------------------
- | Copyright (c) Jupyter Development Team.
- | Distributed under the terms of the Modified BSD License.
- |----------------------------------------------------------------------------*/
- /*-----------------------------------------------------------------------------
- | Private CSS variables
- |----------------------------------------------------------------------------*/
- :root {
- --jp-private-cell-scrolling-output-offset: 5px;
- }
- /*-----------------------------------------------------------------------------
- | Cell
- |----------------------------------------------------------------------------*/
- .jp-Cell {
- padding: var(--jp-cell-padding);
- margin: 0px;
- border: none;
- outline: none;
- background: transparent;
- }
- /*-----------------------------------------------------------------------------
- | Common input/output
- |----------------------------------------------------------------------------*/
- .jp-Cell-inputWrapper,
- .jp-Cell-outputWrapper {
- display: flex;
- flex-direction: row;
- padding: 0px;
- margin: 0px;
- /* Added to reveal the box-shadow on the input and output collapsers. */
- overflow: visible;
- }
- /* Only input/output areas inside cells */
- .jp-Cell-inputArea,
- .jp-Cell-outputArea {
- flex: 1 1 auto;
- }
- /*-----------------------------------------------------------------------------
- | Collapser
- |----------------------------------------------------------------------------*/
- /* Make the output collapser disappear when there is not output, but do so
- * in a manner that leaves it in the layout and preserves its width.
- */
- .jp-Cell.jp-mod-noOutputs .jp-Cell-outputCollapser {
- border: none !important;
- background: transparent !important;
- }
- .jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputCollapser {
- min-height: var(--jp-cell-collapser-min-height);
- }
- /*-----------------------------------------------------------------------------
- | Output
- |----------------------------------------------------------------------------*/
- /* Put a space between input and output when there IS output */
- .jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputWrapper {
- margin-top: 5px;
- }
- /* Text output with the Out[] prompt needs a top padding to match the
- * alignment of the Out[] prompt itself.
- */
- .jp-OutputArea-executeResult .jp-RenderedText.jp-OutputArea-output {
- padding-top: var(--jp-code-padding);
- }
- .jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea {
- overflow-y: auto;
- max-height: 200px;
- box-shadow: inset 0 0 6px 2px rgba(0, 0, 0, 0.3);
- margin-left: var(--jp-private-cell-scrolling-output-offset);
- }
- .jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-prompt {
- flex: 0 0
- calc(
- var(--jp-cell-prompt-width) -
- var(--jp-private-cell-scrolling-output-offset)
- );
- }
- /*-----------------------------------------------------------------------------
- | CodeCell
- |----------------------------------------------------------------------------*/
- /*-----------------------------------------------------------------------------
- | MarkdownCell
- |----------------------------------------------------------------------------*/
- .jp-MarkdownOutput {
- flex: 1 1 auto;
- margin-top: 0;
- margin-bottom: 0;
- padding-left: var(--jp-code-padding);
- }
- .jp-MarkdownOutput.jp-RenderedHTMLCommon {
- overflow: visible;
- }
|