From 47a9427a6e6ac2346b97675efd7fb99c57893059 Mon Sep 17 00:00:00 2001 From: Physcik Date: Fri, 26 Dec 2025 14:31:37 +0500 Subject: List elements --- static/common.css | 53 +++++++++++++++++++++++++++++++++++++++++++++++++--- static/common.js | 2 ++ static/home.svg | 1 + static/home_dark.svg | 1 + static/ul.svg | 1 + 5 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 static/home.svg create mode 100644 static/home_dark.svg create mode 100644 static/ul.svg (limited to 'static') diff --git a/static/common.css b/static/common.css index 9abe81a..fe5531d 100644 --- a/static/common.css +++ b/static/common.css @@ -21,11 +21,30 @@ html, body { margin: 0px; } -h1, p { +h1, h2, p, li { margin: 5px; font-family: "Space Grotesk", sans-serif; } +hr { + height: 2px; + border: none; + background-color: var(--colorscheme-cyan); +} + +ul { + list-style-type: none; +} + +ul li { + padding-left: 24px; + background-image: url(ul.svg); + background-position: 0 2px; + background-size: 16px 16px; + background-repeat: no-repeat; + color: var(--colorscheme-white); +} + body { height: 100%; background-color: var(--colorscheme-not-so-dark-gray); @@ -41,16 +60,45 @@ body { margin: var(--menu-margin); padding: var(--menu-padding); min-width: var(--menu-width); + max-width: var(--menu-width); height: calc(100% - (2*var(--menu-border-width) + 3*var(--menu-margin) + 2*var(--menu-padding))); border: var(--colorscheme-white) var(--menu-border-width) solid; border-radius: 10px; scroll-snap-type: x mandatory; } +#menu > h2 { + color: var(--colorscheme-red); +} + +#menu.light > h2 { + text-shadow: 1px 1px 2px var(--colorscheme-gray); +} + +.articleList { + padding-left: 10px; + max-width: 100%; + max-height: 60%; + overflow-x: hidden; +} + +.articleList > li > a { + color: var(--colorscheme-white); +} + +.articleList > li::marker { + color: var(--colorscheme-white); +} + .control { display: flex; width: 100%; - justify-content: end; + justify-content: space-between; + align-items: center; +} + +.articleList.light > li > a { + color: var(--colorscheme-dark-gray); } #content { @@ -68,7 +116,6 @@ body { font-size: 18px; } - .toggleBtn { background-color: transparent; border: 0px; diff --git a/static/common.js b/static/common.js index 1d6234b..e5a278e 100644 --- a/static/common.js +++ b/static/common.js @@ -11,12 +11,14 @@ function setLightMode() { swapClasses("dark", "light"); isLightMode = true; document.getElementById("toggleIcon").src = "static/toggle.svg" + document.getElementById("homeIcon").src = "static/home_dark.svg" } function setDarkMode() { swapClasses("light", "dark"); isLightMode = false; document.getElementById("toggleIcon").src = "static/toggle_dark.svg" + document.getElementById("homeIcon").src = "static/home.svg" } function swapClasses(baseClass, newClass) { diff --git a/static/home.svg b/static/home.svg new file mode 100644 index 0000000..04aaf87 --- /dev/null +++ b/static/home.svg @@ -0,0 +1 @@ + diff --git a/static/home_dark.svg b/static/home_dark.svg new file mode 100644 index 0000000..537aa1a --- /dev/null +++ b/static/home_dark.svg @@ -0,0 +1 @@ + diff --git a/static/ul.svg b/static/ul.svg new file mode 100644 index 0000000..109148a --- /dev/null +++ b/static/ul.svg @@ -0,0 +1 @@ + -- cgit v1.3