Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Refactor link and code styling for improved UX
Maximilian Roos6de22f550124
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scssindex 081f62ffb..c3fc024c7 100644--- a/docs/sass/custom.scss+++ b/docs/sass/custom.scss@@ -395,12 +395,9 @@ main {// Links.content a {color: var(--wt-color-link);- transition: color 150ms, text-decoration 150ms;-- &:hover {- text-decoration: underline;- text-decoration-thickness: 1.5px;- }+ text-decoration: underline;+ text-decoration-thickness: 1px;+ text-underline-offset: 2px;}// ============================================================================@@ -408,15 +405,18 @@ main {// ============================================================================.content code {- background-color: var(--wt-color-code-bg);- border-radius: 0.2rem;- padding: 0.05rem 0.25rem;- color: var(--wt-color-text);+ padding: 0.1rem 0.3rem;+ color: var(--wt-color-code-inline-text);font-family: var(--wt-font-mono);font-size: 0.92rem;font-weight: 400;}+// Remove padding from code inside links so underline animation matches text width+.content a code {+ padding: 0;+}+// ============================================================================// Code Blocks - Distinctive card style with left accent// ============================================================================@@ -1223,7 +1223,8 @@ input:focus-visible {box-shadow: 0 0 0 3px var(--wt-shadow-accent);}-// Content links - animated underline+// Content links - animated underline flourish on hover+// Permanent underline via text-decoration; ::after adds animated thickening.content a:not(.button):not(.heading-anchor):not(.zola-anchor) {position: relative;@@ -1231,20 +1232,16 @@ input:focus-visible {content: "";position: absolute;left: 0;- bottom: -1px;+ bottom: 0;width: 0;- height: 1.5px;- background: var(--wt-color-accent);+ height: 2px;+ background: var(--wt-color-link);transition: width 200ms ease-out;}&:hover::after {width: 100%;}-- &:hover {- text-decoration: none;- }}// Button - enhanced hoverdiff --git a/docs/templates/_variables.html b/docs/templates/_variables.htmlindex d7caac838..f26008a57 100644--- a/docs/templates/_variables.html+++ b/docs/templates/_variables.html@@ -27,6 +27,7 @@/* Code */--wt-color-code-bg: #f8f7f6;--wt-color-code-border: #e5e3e0;+ --wt-color-code-inline-text: #b45309; /* amber text for inline code *//* Shadows - using oklch for proper alpha blending */--wt-shadow-soft: oklch(0% 0 0 / 0.03);@@ -82,6 +83,7 @@/* Code */--wt-color-code-bg: #252321;--wt-color-code-border: #3a3735;+ --wt-color-code-inline-text: #fbbf24; /* amber text for inline code *//* Shadows - lighter in dark mode for visibility */--wt-shadow-soft: oklch(0% 0 0 / 0.15);