Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/decl-doc/Decl.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.decl {
background-color: var(--sl-color-gray-6);
border-bottom: 1px solid var(--sl-color-gray-5);
overflow: scroll;
overflow: auto;
margin: 0;
padding: 0 1em;
}
Expand Down
33 changes: 20 additions & 13 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,41 @@
}

/* Custom scrollbar */
:root[data-theme="light"] ::-webkit-scrollbar-track {
background: #f1f1f1;
::-webkit-scrollbar {
width: 4px;
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The ::-webkit-scrollbar selector only sets the width property for vertical scrollbars. For horizontal scrollbars to match the same thin styling, consider adding height: 4px; as well to maintain consistency.

Suggested change
width: 4px;
width: 4px;
height: 4px;

Copilot uses AI. Check for mistakes.
}

::-webkit-scrollbar-track {
background-color: #e6f3ff;
border-radius: 2px;
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
background: #888;
::-webkit-scrollbar-thumb {
background-color: #87ceeb;
border-radius: 2px;
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
background: #555;
::-webkit-scrollbar-thumb:hover {
background-color: #4682b4;
}

:root[data-theme="dark"] ::-webkit-scrollbar-track {
background: #2a2a2a;
background-color: #1e3a5f;
}

:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
background: #666;
background-color: #4a90e2;
}

:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
background: #aaa;
background-color: #5b9bd5;
}

::-webkit-scrollbar {
width: 8px;
* {
scrollbar-width: thin;
scrollbar-color: #87ceeb #e6f3ff;
}

::-webkit-scrollbar-thumb {
border-radius: 4px;
:root[data-theme="dark"] * {
scrollbar-color: #4a90e2 #1e3a5f;
}