mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
Improve how the colouring is showed in html (ttytheme)
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
5bf25117b9
commit
368c649f89
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,10 @@ export function generate_theme(query = "#theme-output") {
|
|||
document.body.style.backgroundColor = `rgb(${tty_clrs["black"].rgb.join(
|
||||
","
|
||||
)})`;
|
||||
document.body.style.color = `rgb(${tty_clrs["bold_white"].rgb.join(",")})`;
|
||||
document.body.style.color = `rgb(${tty_clrs["light_gray"].rgb.join(",")})`;
|
||||
|
||||
for (let header of document.querySelectorAll("h1, h2:first-of-type"))
|
||||
header.style.color = `rgb(${tty_clrs["bold_white"].rgb.join(",")})`;
|
||||
|
||||
let elem = document.querySelector(query);
|
||||
if (!elem) throw ReferenceError(`${query} did not match any results`);
|
||||
|
|
Loading…
Add table
Reference in a new issue