change color

This commit is contained in:
isUnknown 2024-06-20 10:33:53 +02:00
parent bdb8613be4
commit ee4d7762b6
4 changed files with 24 additions and 11 deletions

View file

@ -6,17 +6,17 @@ body {
background-size: var(--unit--horizontal) var(--unit--vertical);
background-image: linear-gradient(
to right,
var(--color-tertiary--x-light) 1px,
var(--color-secondary--x-light) 1px,
transparent 1px
),
linear-gradient(
to bottom,
var(--color-tertiary--light) 1px,
var(--color-secondary--light) 1px,
transparent 1px
),
linear-gradient(
to bottom,
var(--color-tertiary--x-light) 1px,
var(--color-secondary--x-light) 1px,
transparent 1px
);
background-position: 0 0, 0 0, 0 calc(var(--unit--vertical) / 2);

View file

@ -126,6 +126,19 @@ function fixFootNotes() {
});
}
function removeAccents(str) {
const from = "áäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a·/_,:;";
const to = "aaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa------";
for (let i = 0, l = from.length; i < l; i++) {
str = str.replace(new RegExp(from.charAt(i), "g"), to.charAt(i));
}
return str;
}
function slugify(str) {
return removeAccents(str.toLowerCase());
}
document.addEventListener("DOMContentLoaded", () => {
ragadjust("h1, h2, h3, h4, h5", ["all"]);
window.window.scrollTo({