munchboka-edutools 0.1.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of munchboka-edutools might be problematic. Click here for more details.

Files changed (149) hide show
  1. munchboka_edutools/__init__.py +184 -0
  2. munchboka_edutools/_plotmath_shim.py +126 -0
  3. munchboka_edutools/_version.py +2 -0
  4. munchboka_edutools/directives/__init__.py +1 -0
  5. munchboka_edutools/directives/admonitions.py +389 -0
  6. munchboka_edutools/directives/cas_popup.py +272 -0
  7. munchboka_edutools/directives/clear.py +103 -0
  8. munchboka_edutools/directives/dialogue.py +137 -0
  9. munchboka_edutools/directives/escape_room.py +296 -0
  10. munchboka_edutools/directives/factor_tree.py +549 -0
  11. munchboka_edutools/directives/ggb.py +209 -0
  12. munchboka_edutools/directives/ggb_icon.py +105 -0
  13. munchboka_edutools/directives/ggb_popup.py +165 -0
  14. munchboka_edutools/directives/horner.py +324 -0
  15. munchboka_edutools/directives/interactive_code.py +75 -0
  16. munchboka_edutools/directives/jeopardy.py +252 -0
  17. munchboka_edutools/directives/multi_plot.py +1126 -0
  18. munchboka_edutools/directives/pair_puzzle.py +191 -0
  19. munchboka_edutools/directives/parsons.py +109 -0
  20. munchboka_edutools/directives/plot.py +3105 -0
  21. munchboka_edutools/directives/poly_icon.py +111 -0
  22. munchboka_edutools/directives/polydiv.py +344 -0
  23. munchboka_edutools/directives/popup.py +245 -0
  24. munchboka_edutools/directives/quiz.py +291 -0
  25. munchboka_edutools/directives/signchart.py +516 -0
  26. munchboka_edutools/directives/timed_quiz.py +436 -0
  27. munchboka_edutools/directives/turtle.py +157 -0
  28. munchboka_edutools/static/css/admonitions.css +2012 -0
  29. munchboka_edutools/static/css/cas_popup.css +242 -0
  30. munchboka_edutools/static/css/code_mirror_themes/github_dark_cm.css +112 -0
  31. munchboka_edutools/static/css/code_mirror_themes/github_dark_default_cm.css +40 -0
  32. munchboka_edutools/static/css/code_mirror_themes/github_dark_high_contrast_cm.css +141 -0
  33. munchboka_edutools/static/css/code_mirror_themes/github_light_cm.css +120 -0
  34. munchboka_edutools/static/css/code_mirror_themes/github_light_default_cm.css +108 -0
  35. munchboka_edutools/static/css/code_mirror_themes/one_dark_cm.css +121 -0
  36. munchboka_edutools/static/css/dialogue.css +92 -0
  37. munchboka_edutools/static/css/escapeRoom/escape-room.css +223 -0
  38. munchboka_edutools/static/css/figures.css +274 -0
  39. munchboka_edutools/static/css/general_style.css +74 -0
  40. munchboka_edutools/static/css/github-dark-high-contrast.css +141 -0
  41. munchboka_edutools/static/css/github-dark.css +112 -0
  42. munchboka_edutools/static/css/github-light.css +120 -0
  43. munchboka_edutools/static/css/interactive_code/style.css +575 -0
  44. munchboka_edutools/static/css/interactive_code.css +582 -0
  45. munchboka_edutools/static/css/jeopardy.css +529 -0
  46. munchboka_edutools/static/css/pairPuzzle/style.css +177 -0
  47. munchboka_edutools/static/css/parsons/parsonsPuzzle.css +331 -0
  48. munchboka_edutools/static/css/popup.css +115 -0
  49. munchboka_edutools/static/css/quiz.css +312 -0
  50. munchboka_edutools/static/css/timedQuiz.css +375 -0
  51. munchboka_edutools/static/icons/ggb/mode_evaluate.svg +1 -0
  52. munchboka_edutools/static/icons/ggb/mode_extremum.svg +1 -0
  53. munchboka_edutools/static/icons/ggb/mode_intersect.svg +1 -0
  54. munchboka_edutools/static/icons/ggb/mode_nsolve.svg +1 -0
  55. munchboka_edutools/static/icons/ggb/mode_numeric.svg +1 -0
  56. munchboka_edutools/static/icons/ggb/mode_point.svg +1 -0
  57. munchboka_edutools/static/icons/ggb/mode_solve.svg +1 -0
  58. munchboka_edutools/static/icons/misc/windows-logo.svg +1 -0
  59. munchboka_edutools/static/icons/outline/dark_mode/academic.svg +3 -0
  60. munchboka_edutools/static/icons/outline/dark_mode/backward.svg +3 -0
  61. munchboka_edutools/static/icons/outline/dark_mode/book.svg +3 -0
  62. munchboka_edutools/static/icons/outline/dark_mode/chat_bubble.svg +3 -0
  63. munchboka_edutools/static/icons/outline/dark_mode/check.svg +3 -0
  64. munchboka_edutools/static/icons/outline/dark_mode/cmd_line.svg +3 -0
  65. munchboka_edutools/static/icons/outline/dark_mode/file.svg +1 -0
  66. munchboka_edutools/static/icons/outline/dark_mode/fire.svg +4 -0
  67. munchboka_edutools/static/icons/outline/dark_mode/key.svg +3 -0
  68. munchboka_edutools/static/icons/outline/dark_mode/magnifying.svg +3 -0
  69. munchboka_edutools/static/icons/outline/dark_mode/pencil_square.svg +3 -0
  70. munchboka_edutools/static/icons/outline/dark_mode/play.svg +3 -0
  71. munchboka_edutools/static/icons/outline/dark_mode/question.svg +3 -0
  72. munchboka_edutools/static/icons/outline/dark_mode/square_check.svg +1 -0
  73. munchboka_edutools/static/icons/outline/dark_mode/stop.svg +3 -0
  74. munchboka_edutools/static/icons/outline/dark_mode/summary.svg +3 -0
  75. munchboka_edutools/static/icons/outline/dark_mode/undo.svg +3 -0
  76. munchboka_edutools/static/icons/outline/dark_mode/unlock.svg +3 -0
  77. munchboka_edutools/static/icons/outline/light_mode/academic.svg +3 -0
  78. munchboka_edutools/static/icons/outline/light_mode/backward.svg +3 -0
  79. munchboka_edutools/static/icons/outline/light_mode/book.svg +3 -0
  80. munchboka_edutools/static/icons/outline/light_mode/chat_bubble.svg +3 -0
  81. munchboka_edutools/static/icons/outline/light_mode/check.svg +3 -0
  82. munchboka_edutools/static/icons/outline/light_mode/cmd_line.svg +3 -0
  83. munchboka_edutools/static/icons/outline/light_mode/file.svg +1 -0
  84. munchboka_edutools/static/icons/outline/light_mode/fire.svg +4 -0
  85. munchboka_edutools/static/icons/outline/light_mode/key.svg +3 -0
  86. munchboka_edutools/static/icons/outline/light_mode/magnifying.svg +3 -0
  87. munchboka_edutools/static/icons/outline/light_mode/pencil_square.svg +3 -0
  88. munchboka_edutools/static/icons/outline/light_mode/play.svg +3 -0
  89. munchboka_edutools/static/icons/outline/light_mode/question.svg +3 -0
  90. munchboka_edutools/static/icons/outline/light_mode/square_check.svg +1 -0
  91. munchboka_edutools/static/icons/outline/light_mode/stop.svg +3 -0
  92. munchboka_edutools/static/icons/outline/light_mode/summary.svg +3 -0
  93. munchboka_edutools/static/icons/outline/light_mode/undo.svg +3 -0
  94. munchboka_edutools/static/icons/outline/light_mode/unlock.svg +3 -0
  95. munchboka_edutools/static/icons/polyicons/cubicdown.svg +3 -0
  96. munchboka_edutools/static/icons/polyicons/cubicup.svg +3 -0
  97. munchboka_edutools/static/icons/polyicons/frown.svg +3 -0
  98. munchboka_edutools/static/icons/polyicons/smile.svg +3 -0
  99. munchboka_edutools/static/icons/solid/dark_mode/academic.svg +5 -0
  100. munchboka_edutools/static/icons/solid/dark_mode/backward.svg +3 -0
  101. munchboka_edutools/static/icons/solid/dark_mode/book.svg +3 -0
  102. munchboka_edutools/static/icons/solid/dark_mode/brain.svg +1 -0
  103. munchboka_edutools/static/icons/solid/dark_mode/file.svg +1 -0
  104. munchboka_edutools/static/icons/solid/dark_mode/fire.svg +3 -0
  105. munchboka_edutools/static/icons/solid/dark_mode/key.svg +3 -0
  106. munchboka_edutools/static/icons/solid/dark_mode/pencil_square.svg +4 -0
  107. munchboka_edutools/static/icons/solid/dark_mode/play.svg +3 -0
  108. munchboka_edutools/static/icons/solid/dark_mode/python.svg +1 -0
  109. munchboka_edutools/static/icons/solid/dark_mode/scroll.svg +1 -0
  110. munchboka_edutools/static/icons/solid/dark_mode/stop.svg +3 -0
  111. munchboka_edutools/static/icons/solid/light_mode/academic.svg +5 -0
  112. munchboka_edutools/static/icons/solid/light_mode/backward.svg +3 -0
  113. munchboka_edutools/static/icons/solid/light_mode/book.svg +3 -0
  114. munchboka_edutools/static/icons/solid/light_mode/brain.svg +1 -0
  115. munchboka_edutools/static/icons/solid/light_mode/file.svg +1 -0
  116. munchboka_edutools/static/icons/solid/light_mode/fire.svg +3 -0
  117. munchboka_edutools/static/icons/solid/light_mode/key.svg +3 -0
  118. munchboka_edutools/static/icons/solid/light_mode/pencil_square.svg +4 -0
  119. munchboka_edutools/static/icons/solid/light_mode/play.svg +3 -0
  120. munchboka_edutools/static/icons/solid/light_mode/python.svg +1 -0
  121. munchboka_edutools/static/icons/solid/light_mode/scroll.svg +1 -0
  122. munchboka_edutools/static/icons/solid/light_mode/stop.svg +3 -0
  123. munchboka_edutools/static/icons/stickers/edit.svg +1 -0
  124. munchboka_edutools/static/icons/stickers/pencil_square.svg +3 -0
  125. munchboka_edutools/static/js/casThemeManager.js +99 -0
  126. munchboka_edutools/static/js/escapeRoom/escape-room.js +219 -0
  127. munchboka_edutools/static/js/geogebra-setup.js +6 -0
  128. munchboka_edutools/static/js/highlight-init.js +6 -0
  129. munchboka_edutools/static/js/interactiveCode/codeEditor.js +632 -0
  130. munchboka_edutools/static/js/interactiveCode/interactiveCodeSetup.js +348 -0
  131. munchboka_edutools/static/js/interactiveCode/pythonRunner.js +336 -0
  132. munchboka_edutools/static/js/interactiveCode/turtleCode.js +203 -0
  133. munchboka_edutools/static/js/interactiveCode/workerManager.js +353 -0
  134. munchboka_edutools/static/js/jeopardy.js +523 -0
  135. munchboka_edutools/static/js/pairPuzzle/draggableItem.js +64 -0
  136. munchboka_edutools/static/js/pairPuzzle/dropZone.js +119 -0
  137. munchboka_edutools/static/js/pairPuzzle/game.js +160 -0
  138. munchboka_edutools/static/js/parsons/parsonsPuzzle.js +641 -0
  139. munchboka_edutools/static/js/popup.js +85 -0
  140. munchboka_edutools/static/js/quiz.js +422 -0
  141. munchboka_edutools/static/js/skulpt/skulpt.js +35721 -0
  142. munchboka_edutools/static/js/timedQuiz/multipleChoiceQuestion.js +184 -0
  143. munchboka_edutools/static/js/timedQuiz/timedMultipleChoiceQuiz.js +244 -0
  144. munchboka_edutools/static/js/timedQuiz/utils.js +6 -0
  145. munchboka_edutools/static/js/utils.js +3 -0
  146. munchboka_edutools-0.1.13.dist-info/METADATA +108 -0
  147. munchboka_edutools-0.1.13.dist-info/RECORD +149 -0
  148. munchboka_edutools-0.1.13.dist-info/WHEEL +4 -0
  149. munchboka_edutools-0.1.13.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,274 @@
1
+ .figure .caption {
2
+ text-align: left !important;
3
+ }
4
+
5
+ /* Prevents equations as svg-files to be clickable links */
6
+ a.no-click {
7
+ pointer-events: none !important;
8
+ }
9
+
10
+
11
+ .image .caption {
12
+ text-align: left !important;
13
+ }
14
+
15
+
16
+ .inline-image {
17
+ width: 35px; /* Fixed width */
18
+ height: auto; /* Maintain aspect ratio */
19
+ vertical-align: middle; /* Align with text */
20
+ border: 1px solid #006aff; /* Add a border */
21
+ border-radius: 8px !important; /* Rounded corners */
22
+ }
23
+
24
+ [data-mode="light"] .inline-image {
25
+ filter: invert(0%); /* Normal */
26
+ }
27
+
28
+ [data-mode="dark"] .inline-image {
29
+ filter: invert(100%) hue-rotate(180deg) !important; /* Invert colors for dark mode */
30
+ background-color: inherit !important;
31
+ }
32
+
33
+ /* Auto mode with system preference */
34
+ @media (prefers-color-scheme: dark) {
35
+ [data-mode="auto"] .inline-image {
36
+ filter: invert(100%) hue-rotate(180deg) !important; /* Invert colors for dark mode */
37
+ background-color: inherit !important;
38
+ }
39
+ }
40
+
41
+ /* Auto mode with system preference */
42
+ @media (prefers-color-scheme: light) {
43
+ [data-mode="auto"] .inline-image {
44
+ filter: invert(0%) !important; /* Normal */
45
+ }
46
+ }
47
+
48
+
49
+ /* CSS rules for logo */
50
+ .navbar-brand img {
51
+ width: 150px; /* Adjust the width as needed */
52
+ height: auto; /* Maintain the aspect ratio */
53
+ border-radius: 16px;
54
+ }
55
+
56
+
57
+
58
+ /* Base styles for figures */
59
+ .adaptive-figure img,
60
+ .adaptive-figure svg {
61
+ /* background: transparent !important;
62
+ background-color: inherit !important; */
63
+ transition: filter 0.1s ease; /* Smooth transition between modes */
64
+ max-width: 100%;
65
+ /* height: auto; */
66
+ display: block;
67
+ /* margin: 1em auto; */
68
+ }
69
+
70
+ /* Light mode (default) */
71
+ [data-mode="light"] .adaptive-figure img
72
+ [data-mode="light"] .adaptive-figure svg,
73
+ [data-mode="light"] img.adaptive-figure {
74
+ filter: invert(0%); /* Normal */
75
+ }
76
+
77
+ /* Dark mode styles */
78
+ [data-mode="dark"] .adaptive-figure img,
79
+ [data-mode="dark"] .adaptive-figure svg,
80
+ [data-mode="dark"] img.adaptive-figure {
81
+ filter: invert(100%) hue-rotate(180deg) !important;
82
+ /* background: transparent !important; */
83
+ background-color: inherit !important;
84
+ /* background-color: #f2f2f2 !important; */
85
+ }
86
+
87
+ /* Auto mode with system preference */
88
+ @media (prefers-color-scheme: dark) {
89
+ [data-mode="auto"] .adaptive-figure img ,
90
+ [data-mode="auto"] .adaptive-figure svg,
91
+ [data-mode="auto"] img.adaptive-figure {
92
+ filter: invert(100%) hue-rotate(180deg) !important;
93
+ background-color: inherit !important;
94
+ }
95
+ }
96
+
97
+ /* Auto mode with system preference */
98
+ @media (prefers-color-scheme: light) {
99
+ [data-mode="auto"] .adaptive-figure img
100
+ [data-mode="auto"] .adaptive-figure svg,
101
+ [data-mode="auto"] img.adaptive-figure {
102
+ filter: invert(0%) !important;
103
+ }
104
+ }
105
+
106
+
107
+
108
+
109
+
110
+
111
+ /* Base styles for manim gifs */
112
+ .manim-figure img,
113
+ .manim-figure svg {
114
+ background: transparent !important; /* Force transparent background */
115
+ background-color: inherit !important;
116
+ transition: filter 0.1s ease; /* Smooth transition between modes */
117
+ max-width: 100%;
118
+ height: auto;
119
+ display: block;
120
+ margin: 1em auto;
121
+ }
122
+
123
+ /* Light mode (default) */
124
+ [data-mode="light"] .manim-figure img {
125
+ filter: invert(100%); /* Normal */
126
+ filter: invert(100%) hue-rotate(180deg) !important; /* Invert colors for dark mode */
127
+ }
128
+
129
+ /* Dark mode styles */
130
+ [data-mode="dark"] .manim-figure img,
131
+ [data-mode="dark"] .manim-figure svg {
132
+ filter: invert(0%); /* Normal */
133
+ }
134
+
135
+ /* Auto mode with system preference */
136
+ @media (prefers-color-scheme: dark) {
137
+ [data-mode="auto"] .manim-figure img {
138
+ filter: invert(0%) !important; /* Normal */
139
+ }
140
+ }
141
+
142
+ /* Auto mode with system preference */
143
+ @media (prefers-color-scheme: light) {
144
+ [data-mode="auto"] .manim-figure img {
145
+ filter: invert(100%) !important;
146
+ }
147
+ }
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ /* Light mode (default) */
156
+ [data-mode="light"] video {
157
+ filter: invert(0%) !important; /* Invert colors for dark mode */
158
+ }
159
+
160
+ /* Dark mode styles */
161
+ [data-mode="dark"] video {
162
+ filter: invert(100%) hue-rotate(220deg); /* Normal */
163
+ }
164
+
165
+ /* Auto mode with system preference */
166
+ @media (prefers-color-scheme: dark) {
167
+ [data-mode="auto"] video {
168
+ filter: invert(100%) hue-rotate(220deg) !important; /* Normal */
169
+ }
170
+ }
171
+
172
+ /* Auto mode with system preference */
173
+ @media (prefers-color-scheme: light) {
174
+ [data-mode="auto"] video {
175
+ filter: invert(0%) !important; /* Invert colors for dark mode */
176
+ }
177
+ }
178
+
179
+
180
+
181
+ /* Light mode (default) */
182
+ [data-mode="light"] video.manim-video {
183
+ filter: invert(100%) hue-rotate(220deg) !important; /* Invert colors for dark mode */
184
+ }
185
+
186
+ /* Dark mode styles */
187
+ [data-mode="dark"] video.manim-video {
188
+ filter: invert(0%); /* Normal */
189
+ }
190
+
191
+ /* Auto mode with system preference */
192
+ @media (prefers-color-scheme: dark) {
193
+ [data-mode="auto"] video.manim-video {
194
+ filter: invert(0%) !important; /* Normal */
195
+ }
196
+ }
197
+
198
+ /* Auto mode with system preference */
199
+ @media (prefers-color-scheme: light) {
200
+ [data-mode="auto"] video.manim-video {
201
+ filter: invert(100%) hue-rotate(220deg) !important; /* Invert colors for dark mode */
202
+ }
203
+ }
204
+
205
+
206
+
207
+
208
+ .quiz-image-container {
209
+ display: flex;
210
+ justify-content: center;
211
+ width: 100%;
212
+ }
213
+
214
+ .quiz-image {
215
+ max-width: auto;
216
+ }
217
+
218
+
219
+ figure.align-right {
220
+ margin-left: 0px !important; /* Space between figure and text on the left */
221
+ margin-right: 0; /* No margin on the right edge */
222
+ margin-top: 0; /* Reduce top margin */
223
+ margin-bottom: 15px; /* Some bottom margin for spacing */
224
+ padding: 0px !important;
225
+ }
226
+
227
+
228
+ svg.align-right {
229
+ margin-left: 0px !important; /* Space between figure and text on the left */
230
+ margin-right: 0; /* No margin on the right edge */
231
+ margin-top: 0; /* Reduce top margin */
232
+ margin-bottom: 15px; /* Some bottom margin for spacing */
233
+ padding: 0px !important;
234
+ }
235
+
236
+
237
+
238
+
239
+
240
+
241
+ /* Base styles for polynomial division figures */
242
+ .polydiv-figure img {
243
+ background: transparent !important; /* Force transparent background */
244
+ transition: filter 0.3s ease; /* Smooth transition between modes */
245
+ max-width: 100%;
246
+ height: auto;
247
+ display: block;
248
+ margin: 1em auto;
249
+ }
250
+
251
+ /* Light mode (default) */
252
+ [data-mode="light"] .polydiv-figure img,
253
+ .polydiv-figure img {
254
+ filter: invert(0%); /* Normal */
255
+ }
256
+
257
+ /* Dark mode styles */
258
+ [data-mode="dark"] .polydiv-figure img {
259
+ filter: invert(100%) hue-rotate(180deg) !important; /* Invert colors for dark mode */
260
+ }
261
+
262
+ /* Auto mode with system preference */
263
+ @media (prefers-color-scheme: dark) {
264
+ [data-mode="auto"] .polydiv-figure img {
265
+ filter: invert(100%) hue-rotate(180deg) !important;
266
+ }
267
+ }
268
+
269
+ /* Auto mode with system preference */
270
+ @media (prefers-color-scheme: light) {
271
+ [data-mode="auto"] .polydiv-figure img {
272
+ filter: invert(0%) !important;
273
+ }
274
+ }
@@ -0,0 +1,74 @@
1
+ /* Minimal default styles for munchboka-edutools */
2
+ .quiz-main-container {
3
+ margin: 1rem 0;
4
+ }
5
+ .quiz-image.adaptive-figure {
6
+ max-width: 100%;
7
+ height: auto;
8
+ }
9
+
10
+ /* --- Figure and graph styles --- */
11
+
12
+ /* Prevent any anchor marked no-click from being clickable (used by inline SVG figures) */
13
+ a.no-click,
14
+ .no-scaled-link {
15
+ pointer-events: none !important;
16
+ }
17
+
18
+ /* Container-level adaptive figure: ensure any contained raster/SVG scales responsively */
19
+ .adaptive-figure img,
20
+ .adaptive-figure svg,
21
+ img.adaptive-figure,
22
+ svg.graph-inline-svg {
23
+ max-width: 100%;
24
+ height: auto;
25
+ display: block;
26
+ }
27
+
28
+ /* Optional plot figure spacing */
29
+ figure.plot-figure {
30
+ margin: 1em auto;
31
+ }
32
+
33
+ /* Theme-aware adjustment for dark mode when the theme sets data-mode on <html> */
34
+ [data-mode="dark"] .adaptive-figure img,
35
+ [data-mode="dark"] .adaptive-figure svg,
36
+ [data-mode="dark"] img.adaptive-figure,
37
+ [data-mode="dark"] svg.graph-inline-svg {
38
+ /* Invert for dark mode to preserve contrast of typical light-on-white math figures */
39
+ filter: invert(100%) hue-rotate(180deg) !important;
40
+ background: transparent !important;
41
+ background-color: inherit !important;
42
+ }
43
+
44
+ /* Auto mode follows system preference; keep same background behavior */
45
+ @media (prefers-color-scheme: dark) {
46
+ [data-mode="auto"] .adaptive-figure img,
47
+ [data-mode="auto"] .adaptive-figure svg,
48
+ [data-mode="auto"] img.adaptive-figure,
49
+ [data-mode="auto"] svg.graph-inline-svg {
50
+ filter: invert(100%) hue-rotate(180deg) !important;
51
+ background: transparent !important;
52
+ background-color: inherit !important;
53
+ }
54
+ }
55
+
56
+ /* Explicit light mode (or default) keeps figures normal */
57
+ [data-mode="light"] .adaptive-figure img,
58
+ [data-mode="light"] .adaptive-figure svg,
59
+ [data-mode="light"] img.adaptive-figure,
60
+ [data-mode="light"] svg.graph-inline-svg {
61
+ filter: invert(0%) !important;
62
+ }
63
+
64
+ /* Allow opt-out by adding the class no-invert alongside adaptive-figure */
65
+ .adaptive-figure.no-invert img,
66
+ .adaptive-figure.no-invert svg,
67
+ img.adaptive-figure.no-invert,
68
+ svg.graph-inline-svg.no-invert,
69
+ [data-mode="dark"] .adaptive-figure.no-invert img,
70
+ [data-mode="dark"] .adaptive-figure.no-invert svg,
71
+ [data-mode="auto"] .adaptive-figure.no-invert img,
72
+ [data-mode="auto"] .adaptive-figure.no-invert svg {
73
+ filter: invert(0%) hue-rotate(0deg) !important;
74
+ }
@@ -0,0 +1,141 @@
1
+ /* General styles */
2
+ .cm-s-github-dark-high-contrast.CodeMirror {
3
+ background-color: #0d1117;
4
+ color: #C9D1D9;
5
+ }
6
+
7
+ /* Gutter styles */
8
+ .cm-s-github-dark-high-contrast .CodeMirror-gutters {
9
+ background: #0d1117;
10
+ border-right: 1px solid #C9D1D9;
11
+ }
12
+
13
+ .cm-s-github-dark-high-contrast .CodeMirror-linenumber {
14
+ color: #6e7781;
15
+ }
16
+
17
+ .cm-s-github-dark-high-contrast .CodeMirror-cursor {
18
+ border-left: 1px solid #C9D1D9;
19
+ }
20
+
21
+ /* Highlighted line */
22
+ .cm-s-github-dark-high-contrast .CodeMirror-activeline-background {
23
+ background: #58a6ff70;
24
+ }
25
+
26
+ /* Selection */
27
+ .cm-s-github-dark-high-contrast .CodeMirror-selected {
28
+ background: #58a6ff70;
29
+ }
30
+
31
+ /* Token styles */
32
+ .cm-s-github-dark-high-contrast .cm-comment {
33
+ color: #d9dee3;
34
+ }
35
+
36
+ .cm-s-github-dark-high-contrast .cm-error {
37
+ color: #ff9492;
38
+ }
39
+
40
+ .cm-s-github-dark-high-contrast .cm-keyword {
41
+ color: #ff9492;
42
+ }
43
+
44
+ .cm-s-github-dark-high-contrast .cm-atom {
45
+ color: #ffb757;
46
+ }
47
+
48
+ .cm-s-github-dark-high-contrast .cm-number {
49
+ color: #ffb757;
50
+ }
51
+
52
+ .cm-s-github-dark-high-contrast .cm-def {
53
+ color: #91cbff;
54
+ }
55
+
56
+ .cm-s-github-dark-high-contrast .cm-variable {
57
+ color: #dbb7ff;
58
+ }
59
+
60
+ .cm-s-github-dark-high-contrast .cm-variable-2 {
61
+ color: #ffb757;
62
+ }
63
+
64
+ .cm-s-github-dark-high-contrast .cm-variable-3 {
65
+ color: #ffb757;
66
+ }
67
+
68
+ .cm-s-github-dark-high-contrast .cm-property {
69
+ color: #91cbff;
70
+ }
71
+
72
+ .cm-s-github-dark-high-contrast .cm-operator {
73
+ color: #72f088;
74
+ }
75
+
76
+ .cm-s-github-dark-high-contrast .cm-punctuation {
77
+ color: #C9D1D9;
78
+ }
79
+
80
+ .cm-s-github-dark-high-contrast .cm-string {
81
+ color: #91cbff;
82
+ }
83
+
84
+ .cm-s-github-dark-high-contrast .cm-string-2 {
85
+ color: #91cbff;
86
+ }
87
+
88
+ .cm-s-github-dark-high-contrast .cm-meta {
89
+ color: #ffb757;
90
+ }
91
+
92
+ .cm-s-github-dark-high-contrast .cm-qualifier {
93
+ color: #ff9492;
94
+ }
95
+
96
+ .cm-s-github-dark-high-contrast .cm-builtin {
97
+ color: #ffb757;
98
+ }
99
+
100
+ .cm-s-github-dark-high-contrast .cm-bracket {
101
+ color: #C9D1D9;
102
+ }
103
+
104
+ .cm-s-github-dark-high-contrast .cm-tag {
105
+ color: #72f088;
106
+ }
107
+
108
+ .cm-s-github-dark-high-contrast .cm-attribute {
109
+ color: #ffb757;
110
+ }
111
+
112
+ .cm-s-github-dark-high-contrast .cm-hr {
113
+ color: #C9D1D9;
114
+ }
115
+
116
+ .cm-s-github-dark-high-contrast .cm-link {
117
+ color: #91cbff;
118
+ }
119
+
120
+ /* Emphasis and Strong */
121
+ .cm-s-github-dark-high-contrast .cm-em {
122
+ font-style: italic;
123
+ }
124
+
125
+ .cm-s-github-dark-high-contrast .cm-strong {
126
+ font-weight: bold;
127
+ }
128
+
129
+ /* Generic */
130
+ .cm-s-github-dark-high-contrast .cm-error {
131
+ color: #ff9492;
132
+ }
133
+
134
+ .cm-s-github-dark-high-contrast .cm-quote {
135
+ color: #d9dee3;
136
+ }
137
+
138
+ /* Specific to f-strings in Python */
139
+ .cm-s-github-dark-high-contrast .cm-string-2 .cm-operator {
140
+ color: #C9D1D9; /* Ensure the operator in f-strings has the correct color */
141
+ }
@@ -0,0 +1,112 @@
1
+ /* github-dark theme for CodeMirror */
2
+ .cm-s-github-dark.CodeMirror {
3
+ background-color: #0d1117;
4
+ color: #e6edf3;
5
+ }
6
+
7
+ .cm-s-github-dark .CodeMirror-gutters {
8
+ background-color: #0d1117;
9
+ border-right: 1px solid #30363d;
10
+ }
11
+
12
+ .cm-s-github-dark .CodeMirror-linenumber {
13
+ color: #6e7681;
14
+ }
15
+
16
+ .cm-s-github-dark .CodeMirror-cursor {
17
+ border-left: 1px solid #2f81f7;
18
+ }
19
+
20
+ .cm-s-github-dark .CodeMirror-selected {
21
+ background: #6e768166;
22
+ }
23
+
24
+ /* Token Colors */
25
+ .cm-s-github-dark .cm-comment {
26
+ color: #8b949e;
27
+ /* font-style: italic; */
28
+ }
29
+
30
+ .cm-s-github-dark .cm-error {
31
+ color: #f85149;
32
+ }
33
+
34
+ .cm-s-github-dark .cm-keyword {
35
+ color: #ff7b72;
36
+ }
37
+
38
+ .cm-s-github-dark .cm-operator {
39
+ color: #ff7b72;
40
+ font-weight: bold;
41
+ }
42
+
43
+ .cm-s-github-dark .cm-literal {
44
+ color: #a5d6ff;
45
+ }
46
+
47
+ .cm-s-github-dark .cm-variable {
48
+ color: #e6edf3;
49
+ }
50
+
51
+ .cm-s-github-dark .cm-punctuation {
52
+ color: #e6edf3;
53
+ }
54
+
55
+ .cm-s-github-dark .cm-number {
56
+ color: #a5d6ff;
57
+ }
58
+
59
+ .cm-s-github-dark .cm-string {
60
+ color: #a5d6ff;
61
+ }
62
+
63
+ .cm-s-github-dark .cm-variable-2 {
64
+ color: #e6edf3;
65
+ }
66
+
67
+ .cm-s-github-dark .cm-variable-3 {
68
+ color: #f0883e;
69
+ font-weight: bold;
70
+ }
71
+
72
+ .cm-s-github-dark .cm-atom {
73
+ color: #79c0ff;
74
+ font-weight: bold;
75
+ }
76
+
77
+ .cm-s-github-dark .cm-def {
78
+ color: #d2a8ff;
79
+ font-weight: bold;
80
+ }
81
+
82
+ .cm-s-github-dark .cm-tag {
83
+ color: #7ee787;
84
+ }
85
+
86
+ .cm-s-github-dark .cm-string-2 {
87
+ color: #a5d6ff;
88
+ }
89
+
90
+ /* Generic Styling */
91
+ .cm-s-github-dark .cm-em {
92
+ font-style: italic;
93
+ }
94
+
95
+ .cm-s-github-dark .cm-strong {
96
+ font-weight: bold;
97
+ }
98
+
99
+ .cm-s-github-dark .cm-header {
100
+ color: #79c0ff;
101
+ font-weight: bold;
102
+ }
103
+
104
+ .cm-s-github-dark .cm-quote {
105
+ color: #8b949e;
106
+ font-style: italic;
107
+ }
108
+
109
+ .cm-s-github-dark .cm-link {
110
+ color: #79c0ff;
111
+ text-decoration: underline;
112
+ }
@@ -0,0 +1,120 @@
1
+ /* github-light theme for CodeMirror */
2
+ .cm-s-github-light.CodeMirror {
3
+ background-color: #ffffff;
4
+ color: #24292f;
5
+ }
6
+
7
+ .cm-s-github-light .CodeMirror-gutters {
8
+ background-color: #ffffff;
9
+ border-right: 1px solid #d1d5da;
10
+ }
11
+
12
+ .cm-s-github-light .CodeMirror-linenumber {
13
+ color: #6e7781;
14
+ }
15
+
16
+ .cm-s-github-light .CodeMirror-cursor {
17
+ border-left: 1px solid #24292f;
18
+ }
19
+
20
+ .cm-s-github-light .CodeMirror-selected {
21
+ background: #0969da4a;
22
+ }
23
+
24
+ /* Token Colors */
25
+ .cm-s-github-light .cm-comment {
26
+ color: #6e7781;
27
+ /* font-style: italic; */
28
+ }
29
+
30
+ .cm-s-github-light .cm-error {
31
+ color: #cf222e;
32
+ }
33
+
34
+ .cm-s-github-light .cm-keyword {
35
+ color: #cf222e;
36
+ }
37
+
38
+ .cm-s-github-light .cm-operator {
39
+ color: #116329;
40
+ font-weight: bold;
41
+ }
42
+
43
+ .cm-s-github-light .cm-literal {
44
+ color: #953800;
45
+ }
46
+
47
+ .cm-s-github-light .cm-variable {
48
+ color: #8250df;
49
+ }
50
+
51
+ .cm-s-github-light .cm-punctuation {
52
+ color: #24292f;
53
+ }
54
+
55
+ .cm-s-github-light .cm-number {
56
+ color: #953800;
57
+ }
58
+
59
+ .cm-s-github-light .cm-string {
60
+ color: #0550ae;
61
+ }
62
+
63
+ .cm-s-github-light .cm-attribute {
64
+ color: #953800;
65
+ }
66
+
67
+ .cm-s-github-light .cm-builtin {
68
+ color: #953800;
69
+ }
70
+
71
+ .cm-s-github-light .cm-variable-2 {
72
+ color: #116329;
73
+ }
74
+
75
+ .cm-s-github-light .cm-variable-3 {
76
+ color: #0550ae;
77
+ font-weight: bold;
78
+ }
79
+
80
+ .cm-s-github-light .cm-atom {
81
+ color: #0550ae;
82
+ font-weight: bold;
83
+ }
84
+
85
+ .cm-s-github-light .cm-def {
86
+ color: #0550ae;
87
+ /* font-weight: bold; */
88
+ }
89
+
90
+ .cm-s-github-light .cm-tag {
91
+ color: #116329;
92
+ }
93
+
94
+ .cm-s-github-light .cm-string-2 {
95
+ color: #0550ae;
96
+ }
97
+
98
+ /* Generic Styling */
99
+ .cm-s-github-light .cm-em {
100
+ font-style: italic;
101
+ }
102
+
103
+ .cm-s-github-light .cm-strong {
104
+ font-weight: bold;
105
+ }
106
+
107
+ .cm-s-github-light .cm-header {
108
+ color: #0550ae;
109
+ font-weight: bold;
110
+ }
111
+
112
+ .cm-s-github-light .cm-quote {
113
+ color: #6e7781;
114
+ font-style: italic;
115
+ }
116
+
117
+ .cm-s-github-light .cm-link {
118
+ color: #116329;
119
+ text-decoration: underline;
120
+ }