index.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. @import url('~codemirror/lib/codemirror.css');
  6. @import url('~codemirror/theme/material.css');
  7. @import url('~codemirror/theme/zenburn.css');
  8. @import url('~codemirror/theme/abcdef.css');
  9. @import url('~codemirror/theme/base16-light.css');
  10. @import url('~codemirror/theme/base16-dark.css');
  11. @import url('~codemirror/theme/dracula.css');
  12. @import url('~codemirror/theme/hopscotch.css');
  13. @import url('~codemirror/theme/mbo.css');
  14. @import url('~codemirror/theme/mdn-like.css');
  15. @import url('~codemirror/theme/seti.css');
  16. @import url('~codemirror/theme/the-matrix.css');
  17. @import url('~codemirror/theme/xq-light.css');
  18. .CodeMirror {
  19. line-height: var(--jp-code-line-height);
  20. font-size: var(--jp-code-font-size);
  21. height: auto;
  22. /* Changed to auto to autogrow */
  23. background: none;
  24. }
  25. .CodeMirror pre {
  26. padding: 0;
  27. border: 0;
  28. border-radius: 0;
  29. }
  30. /* This causes https://github.com/jupyter/jupyterlab/issues/522 */
  31. /* May not cause it not because we changed it! */
  32. .CodeMirror-lines {
  33. padding: var(--jp-code-padding);
  34. }
  35. .CodeMirror-linenumbers {
  36. padding: 0 4px 0 4px;
  37. }
  38. .jp-CodeMirrorEditor-static {
  39. margin: var(--jp-code-padding);
  40. }
  41. .jp-CodeMirrorEditor, .jp-CodeMirrorEditor-static {
  42. cursor: text;
  43. }
  44. .CodeMirror.jp-mod-readOnly .CodeMirror-cursor {
  45. display: none;
  46. }
  47. .CodeMirror-gutter-wrapper {
  48. margin-left: calc(-1 * var(--jp-code-padding));
  49. }
  50. .jp-CollaboratorCursor {
  51. border-left: 5px solid transparent;
  52. border-right: 5px solid transparent;
  53. border-top: none;
  54. border-bottom: 3px solid;
  55. background-clip: content-box;
  56. margin-left: -5px;
  57. margin-right: -5px;
  58. }
  59. .jp-CollaboratorCursor-hover {
  60. position: absolute;
  61. z-index: 1;
  62. transform: translateX(-50%);
  63. color: white;
  64. border-radius: 3px;
  65. padding: 1px;
  66. text-align: center;
  67. white-space: nowrap;
  68. }
  69. /*
  70. Here is our jupyter theme for CodeMirror syntax highlighting
  71. This is used in our marked.js syntax highlighting and CodeMirror itself
  72. The string "jupyter" is set in ../codemirror/widget.DEFAULT_CODEMIRROR_THEME
  73. This came from the classic notebook, which came form highlight.js/GitHub
  74. */
  75. .cm-s-jupyter span.cm-keyword { color: #008000; font-weight: bold; }
  76. .cm-s-jupyter span.cm-atom { color: #88F; }
  77. .cm-s-jupyter span.cm-number { color: #080; }
  78. .cm-s-jupyter span.cm-def { color: #00f; }
  79. .cm-s-jupyter span.cm-variable { color: var(--md-grey-900) }
  80. .cm-s-jupyter span.cm-variable-2 { color: var(--md-grey-800) }
  81. .cm-s-jupyter span.cm-variable-3 { color: var(--md-grey-700) }
  82. .cm-s-jupyter span.cm-punctuation { color: #05a; }
  83. .cm-s-jupyter span.cm-property { color: #05a; }
  84. .cm-s-jupyter span.cm-operator { color: #AA22FF; font-weight: bold; }
  85. .cm-s-jupyter span.cm-comment { color: #408080; font-style: italic; }
  86. .cm-s-jupyter span.cm-string { color: #BA2121; }
  87. .cm-s-jupyter span.cm-string-2 { color: #f50; }
  88. .cm-s-jupyter span.cm-meta { color: #AA22FF; }
  89. .cm-s-jupyter span.cm-qualifier { color: #555; }
  90. .cm-s-jupyter span.cm-builtin { color: #008000; }
  91. .cm-s-jupyter span.cm-bracket { color: #997; }
  92. .cm-s-jupyter span.cm-tag { color: #170; }
  93. .cm-s-jupyter span.cm-attribute { color: #00c; }
  94. .cm-s-jupyter span.cm-header { color: blue; }
  95. .cm-s-jupyter span.cm-quote { color: #090; }
  96. .cm-s-jupyter span.cm-link { color: #00c; }
  97. .cm-s-jupyter span.cm-error { color: #f00; }
  98. .cm-s-jupyter span.cm-hr { color: #999; }
  99. .cm-s-jupyter span.cm-tab {
  100. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);
  101. background-position: right;
  102. background-repeat: no-repeat;
  103. }