From 17a19d53eaa16bf34a9f8f0ebbe0546b9a534d8f Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Mon, 1 Sep 2025 18:41:48 -0400 Subject: [PATCH] new file: css/sidebar-theme.css modified: index.html --- css/sidebar-theme.css | 164 ++++++++++++++++++++++++++++++++++++++++++ index.html | 129 +++++++++++++++++---------------- 2 files changed, 232 insertions(+), 61 deletions(-) create mode 100644 css/sidebar-theme.css diff --git a/css/sidebar-theme.css b/css/sidebar-theme.css new file mode 100644 index 0000000..a1305bb --- /dev/null +++ b/css/sidebar-theme.css @@ -0,0 +1,164 @@ +/* CSS Grid-based sidebar navigation theme for PicoCSS */ + +:root { + --sidebar-width: 280px; + --content-max-width: 1200px; + --base-font-size: 16px; + --heading-scale: 1.125; +} + +/* Adjust default font sizes */ +html { + font-size: var(--base-font-size); +} + +body { + font-size: 1rem; + line-height: 1.6; +} + +h1 { font-size: calc(1rem * var(--heading-scale) * var(--heading-scale) * var(--heading-scale) * var(--heading-scale)); } +h2 { font-size: calc(1rem * var(--heading-scale) * var(--heading-scale) * var(--heading-scale)); } +h3 { font-size: calc(1rem * var(--heading-scale) * var(--heading-scale)); } +h4 { font-size: calc(1rem * var(--heading-scale)); } +h5, h6 { font-size: 1rem; } + +/* Main grid layout */ +body { + display: grid; + grid-template-columns: var(--sidebar-width) 1fr; + grid-template-areas: + "sidebar main"; + gap: 2rem; + min-height: 100vh; + margin: 0; + padding: 1rem; +} + +/* Sidebar navigation */ +aside.sidebar { + grid-area: sidebar; + background: var(--card-background-color); + border-right: 1px solid var(--muted-border-color); + padding: 2rem; + position: sticky; + top: 1rem; + height: calc(100vh - 2rem); + overflow-y: auto; + overflow-x: hidden; + border-radius: 0.5rem; +} + +/* Main content area */ +main { + grid-area: main; + padding: 2rem 3rem; + max-width: var(--content-max-width); + margin: 0 auto; + width: 100%; +} + +/* Table of contents styling */ +.table-of-contents { + font-size: 0.875rem; +} + +.table-of-contents h2 { + font-size: 1.125rem; + margin-bottom: 1rem; + padding-bottom: 0.5rem; + border-bottom: 1px solid var(--muted-border-color); +} + +.table-of-contents nav ul { + list-style: none; + padding-left: 0; + margin: 0; +} + +.table-of-contents nav ul ul { + padding-left: 1.25rem; + margin-top: 0.25rem; +} + +.table-of-contents nav li { + margin: 0.25rem 0; +} + +.table-of-contents nav a { + text-decoration: none; + color: var(--color); + display: block; + padding: 0.25rem 0.5rem; + border-radius: 0.25rem; + transition: background-color 0.2s; +} + +.table-of-contents nav a:hover { + background-color: var(--secondary-focus); +} + +.table-of-contents nav a.active { + background-color: var(--primary-focus); + color: var(--primary-inverse); +} + +/* Responsive behavior */ +@media (max-width: 768px) { + body { + grid-template-columns: 1fr; + grid-template-areas: + "main"; + } + + aside.sidebar { + position: fixed; + left: -100%; + width: var(--sidebar-width); + z-index: 1000; + transition: left 0.3s ease; + } + + aside.sidebar.open { + left: 0; + } + + /* Mobile menu toggle */ + .sidebar-toggle { + display: block; + position: fixed; + top: 1rem; + left: 1rem; + z-index: 1001; + background: var(--primary); + color: var(--primary-inverse); + border: none; + padding: 0.5rem; + border-radius: 0.25rem; + cursor: pointer; + } +} + +@media (min-width: 769px) { + .sidebar-toggle { + display: none; + } +} + +/* Sidebar scrollbar styling */ +aside.sidebar::-webkit-scrollbar { + width: 6px; +} + +aside.sidebar::-webkit-scrollbar-track { + background: transparent; +} + +aside.sidebar::-webkit-scrollbar-thumb { + background: var(--muted-color); + border-radius: 3px; +} + +aside.sidebar::-webkit-scrollbar-thumb:hover { + background: var(--color); +} \ No newline at end of file diff --git a/index.html b/index.html index cffab5a..2e8f21a 100644 --- a/index.html +++ b/index.html @@ -12,38 +12,8 @@ - - + + @@ -70,33 +40,18 @@ + + -
-
-

russell@unturf. presents, uncloseai

-

Welcome to uncloseai.com - Free LLM & Text To Speech Artificial Intelligence Service

-
- -
- -
-

Introducing uncloseai & Hermes & TTS Speech Endpoints

-

At uncloseai., we offer free AI services powered by the NousResearch/Hermes-3-Llama-3.1-8B model and a TTS (Text-to-Speech) endpoint. Our mission is to provide accessible AI tools for everyone, embodying the principles of both free as in beer & free as in freedom. You can interact with our models without any cost, and you are encouraged to contribute and build upon the open-source code & models that we use.

- -

We intend to be a drop in replacement, you can use the existing open source OpenAI client to communicate with us.

- - - + + +
+
+
+

russell@unturf. presents, uncloseai

+

Welcome to uncloseai.com - Free LLM & Text To Speech Artificial Intelligence Service

+
+ +
+

Introducing uncloseai & Hermes & TTS Speech Endpoints

+

At uncloseai., we offer free AI services powered by the NousResearch/Hermes-3-Llama-3.1-8B model and a TTS (Text-to-Speech) endpoint. Our mission is to provide accessible AI tools for everyone, embodying the principles of both free as in beer & free as in freedom. You can interact with our models without any cost, and you are encouraged to contribute and build upon the open-source code & models that we use.

+ +

We intend to be a drop in replacement, you can use the existing open source OpenAI client to communicate with us.

Web Client-Only Solution: Interact with AI Services Directly from Static Sites or CDNs

@@ -460,13 +436,44 @@ speech.ai.unturf.com { -
- + +