base.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) 2014-2016, Jupyter Development Team.
  3. |
  4. | Distributed under the terms of the Modified BSD License.
  5. |----------------------------------------------------------------------------*/
  6. .jp-JSONEditor {
  7. display: flex;
  8. flex-direction: column;
  9. width: 100%;
  10. }
  11. .jp-JSONEditor-host {
  12. flex: 1 1 auto;
  13. border: var(--jp-border-width) solid var(--jp-input-border-color);
  14. border-radius: 0px;
  15. background: var(--jp-layout-color0);
  16. min-height: 50px;
  17. padding: 1px;
  18. }
  19. .jp-JSONEditor.jp-mod-error .jp-JSONEditor-host {
  20. border-color: red;
  21. outline-color: red;
  22. }
  23. .jp-JSONEditor-header {
  24. display: flex;
  25. flex: 1 0 auto;
  26. padding: 0 0 0 12px;
  27. }
  28. .jp-JSONEditor-header label {
  29. flex: 0 0 auto;
  30. }
  31. .jp-JSONEditor-commitButton,
  32. .jp-JSONEditor-revertButton {
  33. height: 16px;
  34. width: 16px;
  35. background-size: 18px;
  36. background-repeat: no-repeat;
  37. background-position: center;
  38. }
  39. .jp-JSONEditor-commitButton {
  40. background-image: var(--jp-icon-checkmark);
  41. margin-left: 8px;
  42. }
  43. .jp-JSONEditor-revertButton {
  44. background-image: var(--jp-icon-undo);
  45. }
  46. .jp-JSONEditor-host.jp-mod-focused {
  47. background-color: var(--jp-input-active-background);
  48. border: 1px solid var(--jp-input-active-border-color);
  49. box-shadow: var(--jp-input-box-shadow);
  50. }
  51. .jp-Editor.jp-mod-dropTarget {
  52. border: var(--jp-border-width) solid var(--jp-input-active-border-color);
  53. box-shadow: var(--jp-input-box-shadow);
  54. }