Skip to content

Commit dac0d48

Browse files
committed
Updated mathjs, fixed dark mode
1 parent 68932e2 commit dac0d48

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"katex": "^0.16.22",
1919
"markdown-it": "^14.1.0",
2020
"markdown-it-texmath": "^1.0.0",
21-
"mathjs": "^14.4.0",
21+
"mathjs": "^15.0.0",
2222
"plotly.js-dist-min": "^3.0.1"
2323
}
2424
}

public/math.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ main>.markdown-body .highlight {
7171
/* box with rounded corner */
7272
border: 1px solid #ececec;
7373
background: #ececec;
74+
border-color: #ececec;
75+
color-scheme: light dark;
76+
background: light-dark(#ececec, #2b2b2b);
77+
border-color: light-dark(#ececec, #444);
78+
color: light-dark(#000, #eee);
7479
margin: 4px 2px;
7580
padding: 4px 8px;
7681
border-radius: 1em;
@@ -79,8 +84,10 @@ main>.markdown-body .highlight {
7984

8085
#tabs input:checked+label {
8186
/* white background for selected tab */
82-
background: #FFF;
83-
border: 1px solid #ccc;
87+
background: #fff;
88+
border-color: #ccc;
89+
background: light-dark(#fff, #3a3a3a);
90+
border: 1px solid light-dark(#ccc, #666);
8491
font-weight: bolder;
8592
}
8693

0 commit comments

Comments
 (0)