Elffuss BraidHub

kikocis/continue public

0cbdfa622ced · 595 BRawPermalink
1/* Custom CSS for Continue documentation */
2
3/* Enable smooth scrolling for anchor links */
4html {
5 scroll-behavior: smooth;
6 /* Adjust scroll padding to account for fixed header */
7 scroll-padding-top: 80px;
8}
9
10/* Ensure proper spacing for heading anchors */
11h1[id],
12h2[id],
13h3[id],
14h4[id],
15h5[id],
16h6[id] {
17 scroll-margin-top: 80px;
18}
19
20/* Optional: Add a subtle highlight effect when navigating to anchors */
21:target {
22 animation: highlight 2s ease-out;
23}
24
25@keyframes highlight {
26 0% {
27 background-color: rgba(255, 235, 59, 0.3);
28 }
29 100% {
30 background-color: transparent;
31 }
32}