continue-custom/docs/custom.css
2026-02-16 18:26:59 -08:00

38 lines
728 B
CSS

/* Custom CSS for Continue documentation */
/* Wrap long lines in code blocks instead of horizontal scrolling */
pre code {
white-space: pre-wrap;
word-wrap: break-word;
}
/* Enable smooth scrolling for anchor links */
html {
scroll-behavior: smooth;
/* Adjust scroll padding to account for fixed header */
scroll-padding-top: 80px;
}
/* Ensure proper spacing for heading anchors */
h1[id],
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
scroll-margin-top: 80px;
}
/* Optional: Add a subtle highlight effect when navigating to anchors */
:target {
animation: highlight 2s ease-out;
}
@keyframes highlight {
0% {
background-color: rgba(255, 235, 59, 0.3);
}
100% {
background-color: transparent;
}
}