From facc11896f7219645144385637d57c39e107c6c4 Mon Sep 17 00:00:00 2001 From: Physcik Date: Fri, 26 Dec 2025 15:17:37 +0500 Subject: more elements --- static/common.css | 34 ++++++++++++++++++++++++++++++++++ static/common.js | 9 +++++++++ 2 files changed, 43 insertions(+) (limited to 'static') diff --git a/static/common.css b/static/common.css index fe5531d..a5c74dc 100644 --- a/static/common.css +++ b/static/common.css @@ -51,6 +51,20 @@ body { overflow-x: hidden; } +a { + color: var(--colorscheme-red); + text-decoration: none; + font-weight: bold; +} + +.code { + white-space: pre-wrap; + padding: 10px; + font-family: "Space Grotesk", sans-serif; + font-weight: bold; + overflow-x: scroll; +} + #menu { background-color: var(--colorscheme-dark-gray); position: fixed; @@ -112,6 +126,12 @@ body { color: var(--colorscheme-red); } +#content > .code { + border: 2px solid var(--colorscheme-cyan); + border-radius: 10px; + background-color: var(--colorscheme-gray); +} + #content > p { font-size: 18px; } @@ -137,3 +157,17 @@ body.light { #content.light > h1 { text-shadow: 1px 1px 2px var(--colorscheme-gray); } + +#content > ul { + padding-left: 0px; + font-style: normal; + font-size: 18px; +} + +#content.light > ul > li { + color: var(--colorscheme-dark-gray); +} + +#content.light > .code { + background-color: var(--colorscheme-light-gray); +} diff --git a/static/common.js b/static/common.js index e5a278e..e3566b1 100644 --- a/static/common.js +++ b/static/common.js @@ -33,3 +33,12 @@ function swapClasses(baseClass, newClass) { el.classList.add(newClass); } } + +function deleteTrailingSpaces() { + var elements = document.getElementsByClassName("code"); + console.log(elements); + for (const element of elements) { + let innerHtml = element.innerHTML; + element.innerHTML = innerHtml.trim(); + } +} -- cgit v1.3