feat: font sizing
This commit is contained in:
parent
2bcc3f4675
commit
3b5561ad6a
2 changed files with 5 additions and 12 deletions
|
|
@ -22,7 +22,11 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
});
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.querySelectorAll(".code").forEach(loadCode);
|
||||
document.querySelectorAll(".code").forEach((e) => {
|
||||
e.style.display = "flex";
|
||||
e.style["justify-content"] = "center";
|
||||
loadCode(e);
|
||||
});
|
||||
});
|
||||
|
||||
async function loadCode(e) {
|
||||
|
|
|
|||
|
|
@ -109,14 +109,3 @@ pre * {
|
|||
.post-article a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.post-code {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.language-python,
|
||||
.language-cpp {
|
||||
/* override prism.js styles */
|
||||
font-size: 0.85em !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue