index.css 4.1 KB

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