ui: fix dark mode
Browse files- dist/index.html +1 -1
- dist/main.bundle.js +1 -1
- dist/main.bundle.js.map +0 -0
- src/index.html +1 -1
- src/index.js +6 -4
dist/index.html
CHANGED
@@ -2122,7 +2122,7 @@
|
|
2122 |
|
2123 |
<p>To run the kernel you will also need some <strong><em>host code</em></strong>, which is executed on the CPU/host and takes care of preparing data allocations and loading data and code:</p>
|
2124 |
|
2125 |
-
<div class="l-body" style="display: grid; grid-template-columns: 1fr 1fr; align-items: center;">
|
2126 |
<div>
|
2127 |
<d-code block language="python">
|
2128 |
// Host code
|
|
|
2122 |
|
2123 |
<p>To run the kernel you will also need some <strong><em>host code</em></strong>, which is executed on the CPU/host and takes care of preparing data allocations and loading data and code:</p>
|
2124 |
|
2125 |
+
<div class="l-body code-block" style="display: grid; grid-template-columns: 1fr 1fr; align-items: center;">
|
2126 |
<div>
|
2127 |
<d-code block language="python">
|
2128 |
// Host code
|
dist/main.bundle.js
CHANGED
@@ -5680,7 +5680,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
5680 |
document.head.appendChild(styleEl);
|
5681 |
|
5682 |
// Inject dark mode CSS (scoped via html.dark)
|
5683 |
-
var darkCSS = "\n html.dark{color-scheme:dark}\n html.dark body{background:#242525;color:#e5e7eb}\n html.dark a{color:#93c5fd}\n html.dark .figure-legend{color:#9ca3af}\n html.dark d-article,html.dark d-article *{color:white!important;}\n html.dark d-contents{background:#242525}\n html.dark d-contents nav a{color:#cbd5e1}\n html.dark d-contents nav a:hover{text-decoration:underline solid rgba(255,255,255,0.6)}\n html.dark .note-box{background:#111;border-left-color:#888}\n html.dark .note-box-title{color:#d1d5db}\n html.dark .note-box-content{color:#e5e7eb}\n html.dark .large-image-background{background:#242525}\n html.dark .boxed-image{background:#111;border-color:#262626;box-shadow:0 4px 6px rgba(0,0,0,.6)}\n html.dark #graph-all,html.dark #controls,html.dark .memory-block,html.dark .activation-memory,html.dark .gradient-memory{background:#111;border-color:#262626;box-shadow:0 4px 6px rgba(0,0,0,.6);color:#e5e7eb}\n html.dark label,html.dark .memory-title{color:#e5e7eb}\n html.dark .memory-value{color:#93c5fd}\n html.dark input,html.dark select,html.dark textarea{background:#0f0f0f;color:#e5e7eb;border:1px solid #333}\n html.dark input:hover,html.dark select:hover,html.dark textarea:hover{border-color:#60a5fa}\n html.dark input:focus,html.dark select:focus,html.dark textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,0.35)}\n html.dark input[type=range]{background:#333}\n html.dark input[type=range]::-webkit-slider-thumb{background:#3b82f6}\n html.dark .plotly_caption{color:#9ca3af}\n html.dark .theme-toggle-btn{background:rgba(30,30,30,0.85);border-color:transparent}\n html.dark d-article img{background:white}\n html.dark summary {color:black !important;}\n html.dark .katex-container {color:white !important;}\n html.dark d-code {background: white!important;}\n /* Table borders in dark mode */\n html.dark table{border-color
|
5684 |
var darkStyleEl = document.createElement('style');
|
5685 |
darkStyleEl.id = 'darkmode-css';
|
5686 |
darkStyleEl.textContent = darkCSS;
|
|
|
5680 |
document.head.appendChild(styleEl);
|
5681 |
|
5682 |
// Inject dark mode CSS (scoped via html.dark)
|
5683 |
+
var darkCSS = "\n html.dark{color-scheme:dark}\n html.dark body{background:#242525;color:#e5e7eb}\n html.dark a{color:#93c5fd}\n html.dark .figure-legend{color:#9ca3af}\n html.dark d-article,html.dark d-article *{color:white!important;}\n html.dark d-contents{background:#242525}\n html.dark d-contents nav a{color:#cbd5e1}\n html.dark d-contents nav a:hover{text-decoration:underline solid rgba(255,255,255,0.6)}\n html.dark .note-box{background:#111;border-left-color:#888}\n html.dark .note-box-title{color:#d1d5db}\n html.dark .note-box-content{color:#e5e7eb}\n html.dark .large-image-background{background:#242525}\n html.dark .boxed-image{background:#111;border-color:#262626;box-shadow:0 4px 6px rgba(0,0,0,.6)}\n html.dark #graph-all,html.dark #controls,html.dark .memory-block,html.dark .activation-memory,html.dark .gradient-memory{background:#111;border-color:#262626;box-shadow:0 4px 6px rgba(0,0,0,.6);color:#e5e7eb}\n html.dark label,html.dark .memory-title{color:#e5e7eb}\n html.dark .memory-value{color:#93c5fd}\n html.dark input,html.dark select,html.dark textarea{background:#0f0f0f;color:#e5e7eb;border:1px solid #333}\n html.dark input:hover,html.dark select:hover,html.dark textarea:hover{border-color:#60a5fa}\n html.dark input:focus,html.dark select:focus,html.dark textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,0.35)}\n html.dark input[type=range]{background:#333}\n html.dark input[type=range]::-webkit-slider-thumb{background:#3b82f6}\n html.dark .plotly_caption{color:#9ca3af}\n html.dark .theme-toggle-btn{background:rgba(30,30,30,0.85);border-color:transparent}\n html.dark d-article img{background:white}\n html.dark summary {color:black !important;}\n html.dark .katex-container {color:white !important;}\n html.dark d-code {background: white!important;}\n html.dark .code-block div { background: white!important;}\n html.dark .code-block div p { color: black!important;}\n /* Table borders in dark mode */\n html.dark table{border-color:rgba(255,255,255,0.3)}\n html.dark th,html.dark td{border-color:rgba(255,255,255,0.3)}\n html.dark thead tr,html.dark tbody tr{border-color:rgba(255,255,255,0.3)}\n html.dark d-byline, html.dark d-article{border-top: 1px solid rgba(255, 255, 255, 0.5);}\n html.dark d-byline h3{color:white;}\n html.dark d-math *, html.dark span.katex{color:white !important;}\n html.dark d-appendix { color: white}\n html.dark h2 { border-bottom: 1px solid rgba(43, 33, 33, 0.5);}\n html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: white}\n \n \n ";
|
5684 |
var darkStyleEl = document.createElement('style');
|
5685 |
darkStyleEl.id = 'darkmode-css';
|
5686 |
darkStyleEl.textContent = darkCSS;
|
dist/main.bundle.js.map
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
src/index.html
CHANGED
@@ -2122,7 +2122,7 @@
|
|
2122 |
|
2123 |
<p>To run the kernel you will also need some <strong><em>host code</em></strong>, which is executed on the CPU/host and takes care of preparing data allocations and loading data and code:</p>
|
2124 |
|
2125 |
-
<div class="l-body" style="display: grid; grid-template-columns: 1fr 1fr; align-items: center;">
|
2126 |
<div>
|
2127 |
<d-code block language="python">
|
2128 |
// Host code
|
|
|
2122 |
|
2123 |
<p>To run the kernel you will also need some <strong><em>host code</em></strong>, which is executed on the CPU/host and takes care of preparing data allocations and loading data and code:</p>
|
2124 |
|
2125 |
+
<div class="l-body code-block" style="display: grid; grid-template-columns: 1fr 1fr; align-items: center;">
|
2126 |
<div>
|
2127 |
<d-code block language="python">
|
2128 |
// Host code
|
src/index.js
CHANGED
@@ -48,16 +48,18 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
48 |
html.dark summary {color:black !important;}
|
49 |
html.dark .katex-container {color:white !important;}
|
50 |
html.dark d-code {background: white!important;}
|
|
|
|
|
51 |
/* Table borders in dark mode */
|
52 |
-
html.dark table{border-color
|
53 |
-
html.dark th,html.dark td{border-color
|
54 |
-
html.dark thead tr,html.dark tbody tr{border-color
|
55 |
html.dark d-byline, html.dark d-article{border-top: 1px solid rgba(255, 255, 255, 0.5);}
|
56 |
html.dark d-byline h3{color:white;}
|
57 |
html.dark d-math *, html.dark span.katex{color:white !important;}
|
58 |
html.dark d-appendix { color: white}
|
|
|
59 |
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: white}
|
60 |
-
html.dark .l-body { background: white;}
|
61 |
|
62 |
|
63 |
`;
|
|
|
48 |
html.dark summary {color:black !important;}
|
49 |
html.dark .katex-container {color:white !important;}
|
50 |
html.dark d-code {background: white!important;}
|
51 |
+
html.dark .code-block div { background: white!important;}
|
52 |
+
html.dark .code-block div p { color: black!important;}
|
53 |
/* Table borders in dark mode */
|
54 |
+
html.dark table{border-color:rgba(255,255,255,0.3)}
|
55 |
+
html.dark th,html.dark td{border-color:rgba(255,255,255,0.3)}
|
56 |
+
html.dark thead tr,html.dark tbody tr{border-color:rgba(255,255,255,0.3)}
|
57 |
html.dark d-byline, html.dark d-article{border-top: 1px solid rgba(255, 255, 255, 0.5);}
|
58 |
html.dark d-byline h3{color:white;}
|
59 |
html.dark d-math *, html.dark span.katex{color:white !important;}
|
60 |
html.dark d-appendix { color: white}
|
61 |
+
html.dark h2 { border-bottom: 1px solid rgba(43, 33, 33, 0.5);}
|
62 |
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: white}
|
|
|
63 |
|
64 |
|
65 |
`;
|