index.css 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. :root {
  6. --jp-private-console-cell-padding: 5px;
  7. }
  8. .jp-ConsolePanel {
  9. display: flex;
  10. flex: 1 1 auto;
  11. flex-direction: column;
  12. margin-top: -1px;
  13. min-width: 240px;
  14. min-height: 120px;
  15. }
  16. .jp-ConsolePanel::before {
  17. content: '';
  18. display: block;
  19. height: var(--jp-toolbar-micro-height);
  20. background: var(--jp-toolbar-background);
  21. border-bottom: 1px solid var(--jp-toolbar-border-color);
  22. box-shadow: var(--jp-toolbar-box-shadow);
  23. z-index: 1;
  24. }
  25. .jp-CodeConsole {
  26. height: 100%;
  27. padding: 0;
  28. display: flex;
  29. flex-direction: column;
  30. }
  31. .jp-CodeConsole-content {
  32. background-color: var(--jp-console-background);
  33. flex: 1 1 auto;
  34. overflow: auto;
  35. }
  36. .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {
  37. }
  38. .jp-CodeConsole-content .jp-Cell.jp-CodeCell.jp-mod-collapsed.jp-mod-readOnly {
  39. padding-left: calc(2*var(--jp-private-console-cell-padding))
  40. }
  41. .jp-CodeConsole-input {
  42. max-height: 80%;
  43. flex: 0 0 auto;
  44. overflow: auto;
  45. border-top: var(--jp-border-width) solid var(--jp-toolbar-border-color);
  46. /* We used to have a bottom padding of 8px that was supposedly related to
  47. * our implementation of the 2px margin the the panel to let the shadow in the
  48. * dock panel show. But that doesn't seem to be relevant now, so using the
  49. * matching padding. */
  50. padding: var(--jp-private-console-cell-padding);
  51. /* This matches the box shadow on the notebook toolbar, eventually we should create
  52. * CSS variables for this */
  53. box-shadow: 0px 0.4px 6px 0px rgba(0,0,0,0.1);
  54. }
  55. .jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {
  56. border: var(--jp-border-width) solid var(--jp-cell-editor-border-color-active);
  57. box-shadow: var(--jp-input-box-shadow);
  58. background-color: var(--jp-cell-editor-background-active);
  59. }
  60. .jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {
  61. height: 100%;
  62. min-height: 100%;
  63. }
  64. .jp-CodeConsole-content .jp-CodeConsole-banner .jp-InputPrompt {
  65. display: none;
  66. }
  67. .jp-CodeConsole-promptCell .jp-InputArea-editor.jp-mod-focused {
  68. border: var(--jp-border-width) solid var(--jp-cell-editor-border-color-active);
  69. box-shadow: var(--jp-input-box-shadow);
  70. background-color: var(--jp-cell-editor-background-active);
  71. }