jupyter-theme.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. }
  18. .cm-s-jupyter .CodeMirror-cursor {
  19. border-left: var(--jp-code-cursor-width0) solid var(--jp-editor-cursor-color);
  20. }
  21. .cm-s-jupyter span.cm-keyword {
  22. color: var(--jp-mirror-editor-keyword-color);
  23. font-weight: bold;
  24. }
  25. .cm-s-jupyter span.cm-atom {
  26. color: var(--jp-mirror-editor-atom-color);
  27. }
  28. .cm-s-jupyter span.cm-number {
  29. color: var(--jp-mirror-editor-number-color);
  30. }
  31. .cm-s-jupyter span.cm-def {
  32. color: var(--jp-mirror-editor-def-color);
  33. }
  34. .cm-s-jupyter span.cm-variable {
  35. color: var(--jp-mirror-editor-variable-color);
  36. }
  37. .cm-s-jupyter span.cm-variable-2 {
  38. color: var(--jp-mirror-editor-variable-2-color);
  39. }
  40. .cm-s-jupyter span.cm-variable-3 {
  41. color: var(--jp-mirror-editor-variable-3-color);
  42. }
  43. .cm-s-jupyter span.cm-punctuation {
  44. color: var(--jp-mirror-editor-punctuation-color);
  45. }
  46. .cm-s-jupyter span.cm-property {
  47. color: var(--jp-mirror-editor-property-color);
  48. }
  49. .cm-s-jupyter span.cm-operator {
  50. color: var(--jp-mirror-editor-operator-color);
  51. font-weight: bold;
  52. }
  53. .cm-s-jupyter span.cm-comment {
  54. color: var(--jp-mirror-editor-comment-color);
  55. font-style: italic;
  56. }
  57. .cm-s-jupyter span.cm-string {
  58. color: var(--jp-mirror-editor-string-color);
  59. }
  60. .cm-s-jupyter span.cm-string-2 {
  61. color: var(--jp-mirror-editor-string-2-color);
  62. }
  63. .cm-s-jupyter span.cm-meta {
  64. color: var(--jp-mirror-editor-meta-color);
  65. }
  66. .cm-s-jupyter span.cm-qualifier {
  67. color: var(--jp-mirror-editor-qualifier-color);
  68. }
  69. .cm-s-jupyter span.cm-builtin {
  70. color: var(--jp-mirror-editor-builtin-color);
  71. }
  72. .cm-s-jupyter span.cm-bracket {
  73. color: var(--jp-mirror-editor-bracket-color);
  74. }
  75. .cm-s-jupyter span.cm-tag {
  76. color: var(--jp-mirror-editor-tag-color);
  77. }
  78. .cm-s-jupyter span.cm-attribute {
  79. color: var(--jp-mirror-editor-attribute-color);
  80. }
  81. .cm-s-jupyter span.cm-header {
  82. color: var(--jp-mirror-editor-header-color);
  83. }
  84. .cm-s-jupyter span.cm-quote {
  85. color: var(--jp-mirror-editor-quote-color);
  86. }
  87. .cm-s-jupyter span.cm-link {
  88. color: var(--jp-mirror-editor-link-color);
  89. }
  90. .cm-s-jupyter span.cm-error {
  91. color: var(--jp-mirror-editor-error-color);
  92. }
  93. .cm-s-jupyter span.cm-hr {
  94. color: #999;
  95. }
  96. .cm-s-jupyter span.cm-tab {
  97. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);
  98. background-position: right;
  99. background-repeat: no-repeat;
  100. }
  101. .cm-s-jupyter .CodeMirror-activeline-background,
  102. .cm-s-jupyter .CodeMirror-gutter {
  103. background-color: var(--jp-layout-color2);
  104. }