| 1 | /* Custom CSS for Continue documentation */ |
| 2 | |
| 3 | /* Enable smooth scrolling for anchor links */ |
| 4 | html { |
| 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 */ |
| 11 | h1[id], |
| 12 | h2[id], |
| 13 | h3[id], |
| 14 | h4[id], |
| 15 | h5[id], |
| 16 | h6[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 | } |