diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 9570b44..938af8c 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -6,7 +6,7 @@ jobs: deploy: runs-on: based-alpine env: - # stable, latest release + # stable ZONA: zona # from git # ZONA: git+https://git.ficd.sh/ficd/zona.git@10d1772a2d7a14c977e8359e3df25a2a40948daa diff --git a/content/static/style.css b/content/static/style.css index 56644c3..d900bda 100644 --- a/content/static/style.css +++ b/content/static/style.css @@ -1,5 +1,4 @@ :root { - --main-placeholder-color: #b14242; --main-text-color: #b4b4b4; --main-text-opaque-color: rgba(180, 180, 180, 0.8); --main-bg-color: #121212; @@ -12,7 +11,7 @@ } html { - scroll-behavior: smooth; + scroll-behavior: smooth; } body { @@ -34,77 +33,27 @@ header { .post-nav { font-family: monospace; - font-size: 0.95em; - white-space: nowrap; -} - -.post-nav .bar { - position: relative; - bottom: 0.05em; - display: inline-block; - width: 1px; - height: 0.8em; - background-color: currentColor; - vertical-align: middle; - margin: 0 0.3em; -} - -.post-nav .placeholder { - color: var(--main-placeholder-color); } .post-nav .symbol { color: var(--main-bullet-color); - margin: 0; - padding: 0; - display: inline; } -.site-logo.hover-symbol::before { - content: "@"; - /* color: var(--main-bullet-color);*/ +.post-nav a { + margin: 0 2px; } -.title.hover-symbol::before { - content: ">"; - /* color: var(--main-bullet-color);*/ -} - -.hover-symbol { +.site-logo { color: inherit; - position: relative; font-weight: bold; text-decoration: none; - transition: color 0.15s ease; -} - -.hover-symbol::before { - font-family: monospace; - content: "#"; - position: absolute; - right: 100%; - margin-right: 0.25em; - top: 50%; - transform: translateY(-50%); - opacity: 0; - transition: opacity 0.15s ease, color 0.15s ease; - color: var(--main-text-color); -} - -.hover-symbol:hover::before { - opacity: 1; - color: var(--main-placeholder-color); /* only the symbol changes color */ -} -.hover-symbol:hover { - background-color: transparent; - /* color: var(--main-placeholder-color);*/ + /* font-size: 1.75rem;*/ } .toclink { position: relative; text-decoration: none; color: inherit; - transition: color 0.15s ease; } .toclink::before { @@ -115,16 +64,7 @@ header { top: 50%; transform: translateY(-50%); opacity: 0; - transition: opacity 0.15s ease, color 0.15s ease; - color: var(--main-link-color); -} - -.toclink:hover::before { - opacity: 1; - color: var(--main-placeholder-color); -} -.toclink:hover { - background-color: transparent; + transition: opacity 0.2s ease; } h1 .toclink::before { @@ -143,6 +83,13 @@ h4 .toclink::before { content: "###"; } +.toclink:hover::before { + opacity: 1; +} +.toclink:hover { + background-color: transparent; +} + /* h1, */ h2, h3, @@ -164,11 +111,6 @@ h1 { font-family: monospace; } -.title a { - color: inherit; - text-decoration: none; -} - article h1:first-of-type { margin-block-start: 1.67rem; } @@ -214,26 +156,38 @@ h6 { ul { list-style-type: disc; + /* or any other list style */ } li::marker { color: var(--main-bullet-color); + /* Change this to your desired color */ } a { color: var(--main-link-color); - text-decoration: underline; - text-decoration-color: rgba(0, 0, 0, 0); - text-underline-offset: 2px; + text-decoration: none; + position: relative; } -a { - transition: color 0.15s ease, text-decoration-color 0.15s ease; +a::after { + content: ""; + position: absolute; + left: 0; + bottom: -2px; + width: 100%; + height: 1px; + background-color: currentColor; + transform: scaleX(0); + transform-origin: center; + transition: transform 0.1s ease; } -a:hover { - text-decoration-color: var(--main-placeholder-color); - color: var(--main-bullet-color); +a:hover::after { + transform: scaleX(1); +} +a:has(> code)::after { + display: none; } max-width: 100%; @@ -470,3 +424,23 @@ caption { font-size: 0.8rem; color: var(--main-small-text-color); } + +a > code { + text-decoration: none; + color: var(--main-link-color); + position: relative; +} + +a:has(> code) { + text-decoration: none; + background: none; + /* position: static;*/ +} + +a:hover > code { + text-decoration: underline; +} + +a:hover:has(> code) { + background: none; +} diff --git a/justfile b/justfile index db26990..adaadda 100644 --- a/justfile +++ b/justfile @@ -3,10 +3,6 @@ zonaref := `rg "^.*(git\+.*).*$" -r '$1' .forgejo/workflows/deploy.yml` echo: echo {{zonaref}} -# run the development build of zona -dev *args: - uv run --project "$HOME/dev/zona" zona {{args}} - serve *args: @just run serve {{args}} diff --git a/templates/header.html b/templates/header.html index 9a905ab..6882de2 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1,6 +1,6 @@