jupyter-theme.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. /**
  6. * Here is our jupyter theme for CodeMirror syntax highlighting
  7. * This is used in our marked.js syntax highlighting and CodeMirror itself
  8. * The string "jupyter" is set in ../codemirror/widget.DEFAULT_CODEMIRROR_THEME
  9. * This came from the classic notebook, which came form highlight.js/GitHub
  10. */
  11. :host {
  12. background: var(--jp-layout-color0);
  13. color: var(--jp-content-font-color1);
  14. }
  15. .CodeMirror {
  16. background: transparent;
  17. color: inherit;
  18. }
  19. .cm-s-jupyter .CodeMirror-cursor {
  20. border-left: var(--jp-code-cursor-width0) solid var(--jp-editor-cursor-color);
  21. }
  22. .cm-s-jupyter span.cm-keyword {
  23. color: var(--jp-mirror-editor-keyword-color);
  24. font-weight: bold;
  25. }
  26. .cm-s-jupyter span.cm-atom {
  27. color: var(--jp-mirror-editor-atom-color);
  28. }
  29. .cm-s-jupyter span.cm-number {
  30. color: var(--jp-mirror-editor-number-color);
  31. }
  32. .cm-s-jupyter span.cm-def {
  33. color: var(--jp-mirror-editor-def-color);
  34. }
  35. .cm-s-jupyter span.cm-variable {
  36. color: var(--jp-mirror-editor-variable-color);
  37. }
  38. .cm-s-jupyter span.cm-variable-2 {
  39. color: var(--jp-mirror-editor-variable-2-color);
  40. }
  41. .cm-s-jupyter span.cm-variable-3 {
  42. color: var(--jp-mirror-editor-variable-3-color);
  43. }
  44. .cm-s-jupyter span.cm-punctuation {
  45. color: var(--jp-mirror-editor-punctuation-color);
  46. }
  47. .cm-s-jupyter span.cm-property {
  48. color: var(--jp-mirror-editor-property-color);
  49. }
  50. .cm-s-jupyter span.cm-operator {
  51. color: var(--jp-mirror-editor-operator-color);
  52. font-weight: bold;
  53. }
  54. .cm-s-jupyter span.cm-comment {
  55. color: var(--jp-mirror-editor-comment-color);
  56. font-style: italic;
  57. }
  58. .cm-s-jupyter span.cm-string {
  59. color: var(--jp-mirror-editor-string-color);
  60. }
  61. .cm-s-jupyter span.cm-string-2 {
  62. color: var(--jp-mirror-editor-string-2-color);
  63. }
  64. .cm-s-jupyter span.cm-meta {
  65. color: var(--jp-mirror-editor-meta-color);
  66. }
  67. .cm-s-jupyter span.cm-qualifier {
  68. color: var(--jp-mirror-editor-qualifier-color);
  69. }
  70. .cm-s-jupyter span.cm-builtin {
  71. color: var(--jp-mirror-editor-builtin-color);
  72. }
  73. .cm-s-jupyter span.cm-bracket {
  74. color: var(--jp-mirror-editor-bracket-color);
  75. }
  76. .cm-s-jupyter span.cm-tag {
  77. color: var(--jp-mirror-editor-tag-color);
  78. }
  79. .cm-s-jupyter span.cm-attribute {
  80. color: var(--jp-mirror-editor-attribute-color);
  81. }
  82. .cm-s-jupyter span.cm-header {
  83. color: var(--jp-mirror-editor-header-color);
  84. }
  85. .cm-s-jupyter span.cm-quote {
  86. color: var(--jp-mirror-editor-quote-color);
  87. }
  88. .cm-s-jupyter span.cm-link {
  89. color: var(--jp-mirror-editor-link-color);
  90. }
  91. .cm-s-jupyter span.cm-error {
  92. color: var(--jp-mirror-editor-error-color);
  93. }
  94. .cm-s-jupyter span.cm-hr {
  95. color: #999;
  96. }
  97. .cm-s-jupyter span.cm-tab {
  98. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);
  99. background-position: right;
  100. background-repeat: no-repeat;
  101. }
  102. .cm-s-jupyter .CodeMirror-activeline-background,
  103. .cm-s-jupyter .CodeMirror-gutter {
  104. background-color: var(--jp-layout-color2);
  105. }