index.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. }
  14. .jp-ConsolePanel::before {
  15. content: '';
  16. display: block;
  17. height: var(--jp-toolbar-micro-height);
  18. background: var(--jp-toolbar-background);
  19. border-bottom: 1px solid var(--jp-toolbar-border-color);
  20. box-shadow: var(--jp-toolbar-box-shadow);
  21. z-index: 1;
  22. }
  23. .jp-CodeConsole {
  24. height: 100%;
  25. padding: 0;
  26. display: flex;
  27. flex-direction: column;
  28. }
  29. .jp-CodeConsole-content {
  30. background-color: var(--jp-console-background);
  31. flex: 1 1 auto;
  32. overflow: auto;
  33. }
  34. .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {
  35. }
  36. .jp-CodeConsole-content .jp-Cell.jp-CodeCell.jp-mod-collapsed.jp-mod-readOnly {
  37. padding-left: calc(2*var(--jp-private-console-cell-padding))
  38. }
  39. .jp-CodeConsole-input {
  40. max-height: 80%;
  41. flex: 0 0 auto;
  42. overflow: auto;
  43. border-top: var(--jp-border-width) solid var(--jp-toolbar-border-color);
  44. /* We used to have a bottom padding of 8px that was supposedly related to
  45. * our implementation of the 2px margin the the panel to let the shadow in the
  46. * dock panel show. But that doesn't seem to be relevant now, so using the
  47. * matching padding. */
  48. padding: var(--jp-private-console-cell-padding);
  49. /* This matches the box shadow on the notebook toolbar, eventually we should create
  50. * CSS variables for this */
  51. box-shadow: 0px 0.4px 6px 0px rgba(0,0,0,0.1);
  52. }
  53. .jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {
  54. background: transparent;
  55. border-color: transparent;
  56. }
  57. .jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {
  58. height: 100%;
  59. min-height: 100%;
  60. }
  61. .jp-CodeConsole-content .jp-CodeConsole-banner .jp-Cell-prompt {
  62. display: none;
  63. }