Skip to content

Commit 1928952

Browse files
committed
Enhance docs UI with interactive hover effects and visual polish
Add animated underlines to footer and nav links, heading anchor reveal on hover, code block glow effect, and text selection styling. Include subtle background grain texture and gentle bounce animation for explore button. Improves visual feedback and interactivity across documentation.
1 parent 0ecb939 commit 1928952

File tree

2 files changed

+113
-1
lines changed

2 files changed

+113
-1
lines changed

docs/content/list.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ Symbols appear in the Status column in this order:
6363

6464
**Other:**
6565
- `` — Branch without worktree
66-
- `` — Path mismatch (not at expected location)
6766
- `` — Prunable (directory missing)
6867
- `` — Locked worktree
6968

docs/sass/custom.scss

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,119 @@ input:focus-visible {
918918
scrollbar-color: var(--wt-color-border-subtle) transparent;
919919
}
920920

921+
// Custom text selection - brand colors
922+
::selection {
923+
background: var(--wt-color-accent-soft);
924+
color: var(--wt-color-text);
925+
}
926+
927+
// Footer link underlines - extend the animated underline pattern
928+
footer a {
929+
position: relative;
930+
text-decoration: none;
931+
932+
&::after {
933+
content: "";
934+
position: absolute;
935+
left: 0;
936+
bottom: -1px;
937+
width: 0;
938+
height: 1px;
939+
background: var(--wt-color-text-muted);
940+
transition: width 200ms ease-out;
941+
}
942+
943+
&:hover::after {
944+
width: 100%;
945+
}
946+
}
947+
948+
// Nav item hover underlines
949+
header nav .nav-item {
950+
position: relative;
951+
952+
&::after {
953+
content: "";
954+
position: absolute;
955+
left: 0;
956+
bottom: -2px;
957+
width: 0;
958+
height: 2px;
959+
background: var(--wt-color-accent);
960+
transition: width 200ms ease-out;
961+
}
962+
963+
&:hover::after {
964+
width: 100%;
965+
}
966+
}
967+
968+
// TOC hover indicator (non-active items) - just background, no border to avoid jiggle
969+
.toc-item a:not(.active):hover {
970+
background: var(--wt-color-bg-soft);
971+
}
972+
973+
// Code block hover glow - enhance the existing shadow
974+
.content pre {
975+
transition: box-shadow 100ms ease;
976+
977+
&:hover {
978+
box-shadow: 0 0 0 1px var(--wt-color-accent-soft),
979+
0 4px 16px rgba(27, 127, 75, 0.15),
980+
0 2px 8px rgba(0, 0, 0, 0.06);
981+
}
982+
}
983+
984+
// Heading anchor reveal on hover
985+
.content h2,
986+
.content h3 {
987+
position: relative;
988+
989+
&::before {
990+
content: "#";
991+
position: absolute;
992+
left: -1.5em;
993+
color: var(--wt-color-text-soft);
994+
opacity: 0;
995+
transition: opacity 150ms ease;
996+
font-weight: 400;
997+
}
998+
999+
&:hover::before {
1000+
opacity: 0.6;
1001+
}
1002+
}
1003+
1004+
// Logo hover effect - subtle glow
1005+
header .logo:hover img {
1006+
filter: drop-shadow(0 0 8px rgba(27, 127, 75, 0.3));
1007+
transition: filter 200ms ease;
1008+
}
1009+
1010+
// Subtle background grain texture
1011+
body::before {
1012+
content: "";
1013+
position: fixed;
1014+
top: 0;
1015+
left: 0;
1016+
width: 100%;
1017+
height: 100%;
1018+
pointer-events: none;
1019+
opacity: 0.015;
1020+
z-index: 9999;
1021+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
1022+
}
1023+
1024+
// Explore more bounce animation
1025+
@keyframes gentle-bounce {
1026+
0%, 100% { transform: translateY(0); }
1027+
50% { transform: translateY(4px); }
1028+
}
1029+
1030+
button.explore-more {
1031+
animation: gentle-bounce 2s ease-in-out infinite;
1032+
}
1033+
9211034
// ============================================================================
9221035
// Dark Mode Adjustments
9231036
// ============================================================================

0 commit comments

Comments
 (0)