index.css 1.8 KB

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