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. border-top: var(--jp-border-width) solid var(--jp-border-color1);
  13. margin-top: -1px;
  14. }
  15. .jp-CodeConsole {
  16. height: 100%;
  17. padding: 0;
  18. display: flex;
  19. flex-direction: column;
  20. }
  21. .jp-CodeConsole-content {
  22. background-color: var(--jp-layout-color2);
  23. flex: 1 1 auto;
  24. overflow: auto;
  25. }
  26. .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {
  27. background-color: var(--jp-layout-color3);
  28. flex: 1 1 auto;
  29. overflow: auto;
  30. }
  31. .jp-CodeConsole-content .jp-Cell.jp-CodeCell.jp-mod-collapsed.jp-mod-readOnly {
  32. padding-left: calc(2*var(--jp-private-console-cell-padding))
  33. }
  34. .jp-CodeConsole-input {
  35. max-height: 80%;
  36. flex: 0 0 auto;
  37. overflow: auto;
  38. border-top: var(--jp-border-width) solid var(--jp-border-color1);
  39. padding-top: var(--jp-private-console-cell-padding);
  40. padding-right: var(--jp-private-console-cell-padding);
  41. padding-left: var(--jp-private-console-cell-padding);
  42. /* The weird 8px bottom padding is needed because of the 2px margin in the panel
  43. that lets the shadow in the dock panel show */
  44. padding-bottom: 8px;
  45. }
  46. .jp-CodeConsole-content .jp-InputArea-editor.jp-CellEditor {
  47. background: transparent;
  48. border-color: transparent;
  49. }
  50. /* TODO: we should be able to use notebook styles for this */
  51. .jp-CodeConsole-input .jp-CodeConsole-prompt.jp-Cell {
  52. background: linear-gradient(to right, #66BB6A -40px, #66BB6A 5px, transparent 5px, transparent 100%);
  53. border-color: #66BB6A;
  54. border-left-width: var(--jp-border-width);
  55. }
  56. .jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {
  57. height: 100%;
  58. min-height: 100%;
  59. }
  60. .jp-CodeConsole-content .jp-CodeConsole-banner .jp-Cell-prompt {
  61. display: none;
  62. }