index.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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-CodeMirrorWidget-static {
  39. margin: var(--jp-code-padding);
  40. }
  41. .jp-CodeMirrorWidget, .jp-CodeMirrorWidget-static {
  42. cursor: text;
  43. }
  44. .jp-CodeMirrorWidget.jp-mod-readOnly .CodeMirror-cursor {
  45. display: none;
  46. }
  47. .CodeMirror-gutter-wrapper {
  48. margin-left: calc(-1 * var(--jp-code-padding));
  49. }
  50. /*
  51. Here is our jupyter theme for CodeMirror syntax highlighting
  52. This is used in our marked.js syntax highlighting and CodeMirror itself
  53. The string "jupyter" is set in ../codemirror/widget.DEFAULT_CODEMIRROR_THEME
  54. This came from the classic notebook, which came form highlight.js/GitHub
  55. */
  56. .cm-s-jupyter span.cm-keyword { color: #008000; font-weight: bold; }
  57. .cm-s-jupyter span.cm-atom { color: #88F; }
  58. .cm-s-jupyter span.cm-number { color: #080; }
  59. .cm-s-jupyter span.cm-def { color: #00f; }
  60. .cm-s-jupyter span.cm-variable { color: --md-grey-900 }
  61. .cm-s-jupyter span.cm-variable-2 { color: --md-grey-800 }
  62. .cm-s-jupyter span.cm-variable-3 { color: --md-grey-700 }
  63. .cm-s-jupyter span.cm-punctuation { color: #05a; }
  64. .cm-s-jupyter span.cm-property { color: #05a; }
  65. .cm-s-jupyter span.cm-operator { color: #AA22FF; font-weight: bold; }
  66. .cm-s-jupyter span.cm-comment { color: #408080; font-style: italic; }
  67. .cm-s-jupyter span.cm-string { color: #BA2121; }
  68. .cm-s-jupyter span.cm-string-2 { color: #f50; }
  69. .cm-s-jupyter span.cm-meta { color: #AA22FF; }
  70. .cm-s-jupyter span.cm-qualifier { color: #555; }
  71. .cm-s-jupyter span.cm-builtin { color: #008000; }
  72. .cm-s-jupyter span.cm-bracket { color: #997; }
  73. .cm-s-jupyter span.cm-tag { color: #170; }
  74. .cm-s-jupyter span.cm-attribute { color: #00c; }
  75. .cm-s-jupyter span.cm-header { color: blue; }
  76. .cm-s-jupyter span.cm-quote { color: #090; }
  77. .cm-s-jupyter span.cm-link { color: #00c; }
  78. .cm-s-jupyter span.cm-error { color: #f00; }
  79. .cm-s-jupyter span.cm-hr { color: #999; }
  80. .cm-s-jupyter span.cm-tab {
  81. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);
  82. background-position: right;
  83. background-repeat: no-repeat;
  84. }