refactor(styles): unify scrollbar styles (#990)

This commit is contained in:
brios
2026-04-29 21:17:08 +02:00
committed by GitHub
parent 0fad5c11e4
commit 9e14f3b319
35 changed files with 7 additions and 581 deletions
@@ -607,23 +607,6 @@ $border-color: rgb(255 255 255 / 10%);
flex: 1;
overflow-y: auto;
padding: 0.5rem 0;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--accent-color) 30%, transparent);
border-radius: 3px;
&:hover {
background: color-mix(in srgb, var(--accent-color) 50%, transparent);
}
}
}
}
@@ -98,23 +98,6 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
gap: 20px;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
.section-label {
@@ -96,23 +96,6 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
gap: 24px;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
.shortcut-group {
@@ -163,23 +163,6 @@ $transition-normal: 200ms ease;
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
// Page list
@@ -112,23 +112,6 @@ $transition-normal: 200ms ease;
@media (width <= 768px) {
padding: 16px;
}
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
.metadata-container {
@@ -98,23 +98,6 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
gap: 20px;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
.section-label {
@@ -138,23 +138,6 @@ $transition-normal: 200ms ease;
flex: 1 1 0;
min-height: 0;
max-height: 100%;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
.tab-content {
@@ -96,23 +96,6 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
gap: 24px;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
.shortcut-group {
@@ -132,23 +132,6 @@ $transition-normal: 200ms ease;
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
// Item list
@@ -175,23 +175,6 @@ $transition-normal: 200ms ease;
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
// Chapter list
@@ -169,23 +169,6 @@ $transition-fast: 150ms ease;
overflow-y: auto;
padding: 12px 0;
overscroll-behavior: contain;
&::-webkit-scrollbar {
width: 5px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 15%);
border-radius: 10px;
&:hover {
background: rgb(255 255 255 / 25%);
}
}
}
// --- Outline / Chapter list ---
@@ -467,12 +450,4 @@ $transition-fast: 150ms ease;
.highlight-text {
color: $text-secondary-light;
}
.content::-webkit-scrollbar-thumb {
background: rgb(0 0 0 / 10%);
&:hover {
background: rgb(0 0 0 / 20%);
}
}
}