index.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. .jp-ConsolePanel {
  6. display: flex;
  7. flex: 1 1 auto;
  8. flex-direction: column;
  9. margin-top: -1px;
  10. min-width: 240px;
  11. min-height: 120px;
  12. }
  13. .jp-ConsolePanel::before {
  14. content: '';
  15. display: block;
  16. height: var(--jp-toolbar-micro-height);
  17. background: var(--jp-toolbar-background);
  18. border-bottom: 1px solid var(--jp-toolbar-border-color);
  19. box-shadow: var(--jp-toolbar-box-shadow);
  20. z-index: 1;
  21. }
  22. .jp-CodeConsole {
  23. height: 100%;
  24. padding: 0;
  25. display: flex;
  26. flex-direction: column;
  27. }
  28. .jp-CodeConsole .jp-Cell {
  29. padding: var(--jp-cell-padding);
  30. }
  31. /*-----------------------------------------------------------------------------
  32. | Content (already run cells)
  33. |----------------------------------------------------------------------------*/
  34. .jp-CodeConsole-content {
  35. background: var(--jp-layout-color0);
  36. flex: 1 1 auto;
  37. overflow: auto;
  38. padding: var(--jp-console-padding);
  39. }
  40. .jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-InputPrompt {
  41. opacity: var(--jp-cell-prompt-not-active-opacity);
  42. color: var(--jp-cell-prompt-not-active-font-color);
  43. }
  44. .jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-OutputPrompt {
  45. opacity: var(--jp-cell-prompt-not-active-opacity);
  46. color: var(--jp-cell-prompt-not-active-font-color);
  47. }
  48. /* This rule is for styling cell run by another activity in this console */
  49. .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {
  50. }
  51. .jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {
  52. background: transparent;
  53. border: 1px solid transparent;
  54. }
  55. .jp-CodeConsole-content .jp-CodeConsole-banner .jp-InputPrompt {
  56. display: none;
  57. }
  58. /* collapser is hovered */
  59. .jp-CodeConsole-content .jp-Cell .jp-Collapser:hover {
  60. box-shadow: var(--jp-elevation-z2);
  61. background: var(--jp-brand-color1);
  62. opacity: var(--jp-cell-collapser-not-active-hover-opacity);
  63. }
  64. /*-----------------------------------------------------------------------------
  65. | Input/prompt cell
  66. |----------------------------------------------------------------------------*/
  67. .jp-CodeConsole-input {
  68. max-height: 80%;
  69. flex: 0 0 auto;
  70. overflow: auto;
  71. border-top: var(--jp-border-width) solid var(--jp-toolbar-border-color);
  72. padding: var(--jp-cell-padding) var(--jp-console-padding);
  73. /* This matches the box shadow on the notebook toolbar, eventually we should create
  74. * CSS variables for this */
  75. box-shadow: 0px 0.4px 6px 0px rgba(0,0,0,0.1);
  76. background: var(--jp-layout-color1);
  77. }
  78. .jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {
  79. height: 100%;
  80. min-height: 100%;
  81. }
  82. .jp-CodeConsole-promptCell .jp-InputArea-editor.jp-mod-focused {
  83. border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);
  84. box-shadow: var(--jp-input-box-shadow);
  85. background-color: var(--jp-cell-editor-active-background);
  86. }
  87. /*-----------------------------------------------------------------------------
  88. | Presentation Mode (.jp-mod-presentationMode)
  89. |----------------------------------------------------------------------------*/
  90. .jp-mod-presentationMode .jp-CodeConsole {
  91. --jp-content-font-size1: var(--jp-content-presentation-font-size1);
  92. --jp-code-font-size: var(--jp-code-presentation-font-size);
  93. }
  94. .jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-InputPrompt,
  95. .jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-OutputPrompt {
  96. flex: 0 0 110px;
  97. }