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
8 changes: 6 additions & 2 deletions app/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ html {
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
scroll-padding-top: 5rem; /* Offset for fixed header - otherwise anchor headers are cutted */
scrollbar-gutter: stable;
}

/*
Expand Down Expand Up @@ -229,6 +230,10 @@ select:focus-visible {
}

/* Scrollbar styling */
* {
scrollbar-color: var(--border) var(--bg);
}

::-webkit-scrollbar {
width: 8px;
height: 8px;
Expand All @@ -244,14 +249,13 @@ select:focus-visible {
}

::-webkit-scrollbar-thumb:hover {
background: #404040;
background: var(--border-hover);
}

/* Scrollbar styling for Firefox */
@supports not selector(::-webkit-scrollbar) {
* {
scrollbar-width: thin;
scrollbar-color: var(--border) var(--bg);
}
}

Expand Down
20 changes: 10 additions & 10 deletions app/pages/package/[...package].vue
Original file line number Diff line number Diff line change
Expand Up @@ -1344,23 +1344,23 @@ onKeyStroke(
@media (min-width: 1024px) {
.sidebar-scroll {
scrollbar-gutter: stable;
scrollbar-width: none;
scrollbar-width: 8px;
scrollbar-color: transparent transparent;
}

.sidebar-scroll::-webkit-scrollbar {
width: 0;
height: 0;
width: 8px;
height: 8px;
}

.sidebar-scroll:hover,
.sidebar-scroll:focus-within {
scrollbar-width: auto;
.sidebar-scroll::-webkit-scrollbar-track,
.sidebar-scroll::-webkit-scrollbar-thumb {
background: transparent;
}

.sidebar-scroll:hover::-webkit-scrollbar,
.sidebar-scroll:focus-within::-webkit-scrollbar {
width: 8px;
height: 8px;
.sidebar-scroll:hover,
.sidebar-scroll:focus-within {
scrollbar-color: var(--border) transparent;
}

.sidebar-scroll:hover::-webkit-scrollbar-thumb,
Expand Down
Loading