index.css 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) 2014-2016, Jupyter Development Team.
  3. |
  4. | Distributed under the terms of the Modified BSD License.
  5. |----------------------------------------------------------------------------*/
  6. :root {
  7. --jp-private-completer-code-font-size: 14px;
  8. --jp-private-completer-item-height: 24px;
  9. }
  10. .jp-Completer {
  11. background: var(--jp-layout-color1);
  12. border: var(--jp-border-width) solid var(--jp-border-color1);
  13. box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
  14. list-style-type: none;
  15. overflow: auto;
  16. padding: 0;
  17. margin: 4px 0 0 -4px;
  18. max-height: calc((10 * var(--jp-private-completer-item-height)) + (2 * var(--jp-border-width)));
  19. min-height: calc(var(--jp-private-completer-item-height) + (2 * var(--jp-border-width)));
  20. z-index: 10001;
  21. }
  22. .jp-Completer-item {
  23. margin: 0;
  24. min-width: 150px;
  25. padding: 0 2px;
  26. }
  27. .jp-Completer-item:hover, .jp-Completer-item.jp-mod-active {
  28. background: var(--jp-layout-color2);
  29. }
  30. .jp-Completer-item code {
  31. font-size: var(--jp-private-completer-code-font-size);
  32. height: var(--jp-private-completer-item-height);
  33. padding: 0;
  34. margin: 0;
  35. }
  36. .jp-Completer-item mark {
  37. font-weight: bold;
  38. background: inherit;
  39. color: inherit;
  40. }