base.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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-CodeConsole {
  14. height: 100%;
  15. padding: 0;
  16. display: flex;
  17. flex-direction: column;
  18. }
  19. .jp-CodeConsole .jp-Cell {
  20. padding: var(--jp-cell-padding);
  21. }
  22. /*-----------------------------------------------------------------------------
  23. | Content (already run cells)
  24. |----------------------------------------------------------------------------*/
  25. .jp-CodeConsole-content {
  26. background: var(--jp-layout-color0);
  27. flex: 1 1 auto;
  28. overflow: auto;
  29. padding: var(--jp-console-padding);
  30. }
  31. .jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-InputPrompt {
  32. opacity: var(--jp-cell-prompt-not-active-opacity);
  33. color: var(--jp-cell-inprompt-font-color);
  34. cursor: move;
  35. }
  36. .jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-OutputPrompt {
  37. opacity: var(--jp-cell-prompt-not-active-opacity);
  38. color: var(--jp-cell-outprompt-font-color);
  39. }
  40. /* This rule is for styling cell run by another activity in this console */
  41. .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {
  42. }
  43. .jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {
  44. background: transparent;
  45. border: 1px solid transparent;
  46. }
  47. .jp-CodeConsole-content .jp-CodeConsole-banner .jp-InputPrompt {
  48. display: none;
  49. }
  50. /* collapser is hovered */
  51. .jp-CodeConsole-content .jp-Cell .jp-Collapser:hover {
  52. box-shadow: var(--jp-elevation-z2);
  53. background: var(--jp-brand-color1);
  54. opacity: var(--jp-cell-collapser-not-active-hover-opacity);
  55. }
  56. /*-----------------------------------------------------------------------------
  57. | Input/prompt cell
  58. |----------------------------------------------------------------------------*/
  59. .jp-CodeConsole-input {
  60. max-height: 80%;
  61. flex: 0 0 auto;
  62. overflow: auto;
  63. border-top: var(--jp-border-width) solid var(--jp-toolbar-border-color);
  64. padding: var(--jp-cell-padding) var(--jp-console-padding);
  65. /* This matches the box shadow on the notebook toolbar, eventually we should create
  66. * CSS variables for this */
  67. box-shadow: 0px 0.4px 6px 0px rgba(0, 0, 0, 0.1);
  68. background: var(--jp-layout-color1);
  69. }
  70. .jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {
  71. height: 100%;
  72. min-height: 100%;
  73. }
  74. .jp-CodeConsole-promptCell .jp-InputArea-editor.jp-mod-focused {
  75. border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);
  76. box-shadow: var(--jp-input-box-shadow);
  77. background-color: var(--jp-cell-editor-active-background);
  78. }
  79. /*-----------------------------------------------------------------------------
  80. | Presentation Mode (.jp-mod-presentationMode)
  81. |----------------------------------------------------------------------------*/
  82. .jp-mod-presentationMode .jp-CodeConsole {
  83. --jp-content-font-size1: var(--jp-content-presentation-font-size1);
  84. --jp-code-font-size: var(--jp-code-presentation-font-size);
  85. }
  86. .jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-InputPrompt,
  87. .jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-OutputPrompt {
  88. flex: 0 0 110px;
  89. }