Skip to content

Commit 08b934e

Browse files
Add javascripts and stylesheets
1 parent c0fe212 commit 08b934e

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

docs/javascripts/mathjax.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
window.MathJax = {
2+
tex: {
3+
inlineMath: [["\\(", "\\)"]],
4+
displayMath: [["\\[", "\\]"]],
5+
processEscapes: true,
6+
processEnvironments: true
7+
},
8+
options: {
9+
ignoreHtmlClass: ".*|",
10+
processHtmlClass: "arithmatex"
11+
}
12+
};
13+
14+
document$.subscribe(() => {
15+
MathJax.startup.output.clearCache()
16+
MathJax.typesetClear()
17+
MathJax.texReset()
18+
MathJax.typesetPromise()
19+
})

docs/stylesheets/extra.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
:root {
2+
--md-primary-fg-color: #FFA800;
3+
--md-primary-fg-color--light: #CCCCCC;
4+
--md-primary-fg-color--dark: #425066;
5+
}
6+
7+
.video-wrapper {
8+
max-width: 240px;
9+
display: flex;
10+
flex-direction: row;
11+
}
12+
.video-wrapper > iframe {
13+
width: 100%;
14+
aspect-ratio: 16 / 9;
15+
}
16+
17+
.buttons-wrapper {
18+
flex-wrap: wrap;
19+
gap: 1em;
20+
display: flex;
21+
/* flex-grow: 1; */
22+
/* justify-content: center; */
23+
/* align-content: center; */
24+
}
25+
26+
.buttons-wrapper > a {
27+
justify-content: center;
28+
align-content: center;
29+
flex-wrap: nowrap;
30+
/* gap: 1em; */
31+
align-items: center;
32+
text-align: center;
33+
flex: 1 1 30%;
34+
display: flex;
35+
}
36+
37+
.md-button > .buttons-content {
38+
align-items: center;
39+
justify-content: center;
40+
display: flex;
41+
gap: 1em;
42+
}

0 commit comments

Comments
 (0)