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
@@ -136,25 +136,10 @@
padding: 1rem; padding: 1rem;
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: rgb(20 20 30 / 50%);
border-radius: 10px;
}
@media (width <= 768px) { @media (width <= 768px) {
height: calc(100dvh - 13rem); height: calc(100dvh - 13rem);
padding: 0.5rem; padding: 0.5rem;
&::-webkit-scrollbar {
width: 8px;
}
} }
} }
@@ -162,17 +162,6 @@
height: calc(100dvh - 22rem); height: calc(100dvh - 22rem);
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: rgb(20 20 30 / 50%);
border-radius: 10px;
}
} }
@@ -70,17 +70,6 @@
.notes-scroll-container { .notes-scroll-container {
overflow: auto hidden; overflow: auto hidden;
height: 100%; height: 100%;
&::-webkit-scrollbar {
height: 10px;
}
&::-webkit-scrollbar-track {
background: rgb(30 30 30 / 50%);
border-radius: 10px;
}
scrollbar-width: thin;
} }
.notes-horizontal-list { .notes-horizontal-list {
@@ -268,10 +257,6 @@
max-height: 120px; max-height: 120px;
font-size: 0.85rem; font-size: 0.85rem;
} }
&::-webkit-scrollbar {
width: 6px;
}
} }
.dialog-form { .dialog-form {
@@ -109,24 +109,6 @@
overflow: auto hidden; overflow: auto hidden;
padding-bottom: 8px; padding-bottom: 8px;
height: 100%; height: 100%;
&::-webkit-scrollbar {
height: 8px;
}
&::-webkit-scrollbar-track {
background: var(--ground-background);
border-radius: 4px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
&:hover {
background: var(--primary-color);
}
}
} }
.reviews-horizontal-list { .reviews-horizontal-list {
@@ -357,24 +339,6 @@
&--blurred { &--blurred {
filter: blur(4px); filter: blur(4px);
} }
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-track {
background: var(--ground-background);
border-radius: 2px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
&:hover {
background: var(--primary-color);
}
}
} }
.review-empty-text { .review-empty-text {
@@ -70,23 +70,6 @@
overflow-y: auto; overflow-y: auto;
// Desktop width constraints moved to src/styles.scss for body-appended elements // Desktop width constraints moved to src/styles.scss for body-appended elements
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
&::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary-color);
}
} }
// .show class no longer needed as popover handles visibility // .show class no longer needed as popover handles visibility
@@ -118,28 +118,6 @@
flex: 1; flex: 1;
padding-right: 0.25rem; padding-right: 0.25rem;
min-height: 0; min-height: 0;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--overlay-background);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
transition: background 0.2s ease;
&:hover {
background: var(--primary-color);
}
}
scrollbar-width: thin;
scrollbar-color: var(--border-color) var(--overlay-background);
} }
.shelf-item { .shelf-item {
@@ -79,7 +79,6 @@
width: 100%; width: 100%;
position: relative; position: relative;
z-index: 2; z-index: 2;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
} }
.dashboard-scroller-card { .dashboard-scroller-card {
@@ -74,24 +74,6 @@
max-height: 450px; max-height: 450px;
overflow-y: auto; overflow-y: auto;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--overlay-background);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
&:hover {
background: var(--primary-color);
}
}
@media (width <= 480px) { @media (width <= 480px) {
padding: 1rem; padding: 1rem;
max-height: 400px; max-height: 400px;
@@ -2,27 +2,11 @@
height: calc(100dvh - 6.7rem); height: calc(100dvh - 6.7rem);
overflow-y: auto; overflow-y: auto;
position: relative; position: relative;
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: rgb(20 20 30 / 50%);
border-radius: 10px;
}
scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
} }
@media (width <= 768px) { @media (width <= 768px) {
.dashboard-container { .dashboard-container {
height: calc(100dvh - 5rem); height: calc(100dvh - 5rem);
&::-webkit-scrollbar {
width: 8px;
}
} }
} }
@@ -63,23 +63,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 2rem; gap: 2rem;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
&:hover {
background: var(--primary-color);
}
}
} }
// Sections // Sections
@@ -323,15 +306,6 @@
gap: 0.625rem; gap: 0.625rem;
max-height: 180px; max-height: 180px;
overflow-y: auto; overflow-y: auto;
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
}
} }
.folder-item { .folder-item {
@@ -190,25 +190,6 @@
@media (width <= 768px) { @media (width <= 768px) {
max-height: 35rem; max-height: 35rem;
} }
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--overlay-background);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
transition: background 0.2s ease;
&:hover {
background: var(--primary-color);
}
}
} }
.dialog-footer { .dialog-footer {
@@ -53,23 +53,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1.5rem; gap: 1.5rem;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
&:hover {
background: var(--primary-color);
}
}
} }
// Column Headers - mirrors field-row structure for alignment (desktop only) // Column Headers - mirrors field-row structure for alignment (desktop only)
@@ -13,27 +13,16 @@
padding: 0.5rem; padding: 0.5rem;
gap: 1rem; gap: 1rem;
width: 100%; width: 100%;
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
} }
.dashboard-scroller-infinite::-webkit-scrollbar { .dashboard-scroller-infinite::-webkit-scrollbar {
height: 8px; height: 8px;
} }
.dashboard-scroller-infinite::-webkit-scrollbar-track {
background: transparent;
}
.dashboard-scroller-infinite::-webkit-scrollbar-thumb { .dashboard-scroller-infinite::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px; border-radius: 4px;
} }
.dashboard-scroller-infinite::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary-color);
}
.dashboard-scroller-card { .dashboard-scroller-card {
width: 115px; width: 115px;
flex: 0 0 115px; flex: 0 0 115px;
@@ -164,24 +164,6 @@
white-space: pre-wrap; white-space: pre-wrap;
overflow-wrap: anywhere; overflow-wrap: anywhere;
max-height: 50vh; max-height: 50vh;
&::-webkit-scrollbar {
width: 8px;
height: 8px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
&:hover {
background: var(--text-color-secondary);
}
}
} }
.cover-info { .cover-info {
@@ -607,23 +607,6 @@ $border-color: rgb(255 255 255 / 10%);
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding: 0.5rem 0; 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; display: flex;
flex-direction: column; flex-direction: column;
gap: 20px; 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 { .section-label {
@@ -96,23 +96,6 @@ $transition-normal: 200ms ease;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 24px; 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 { .shortcut-group {
@@ -163,23 +163,6 @@ $transition-normal: 200ms ease;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
overscroll-behavior: contain; 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 // Page list
@@ -112,23 +112,6 @@ $transition-normal: 200ms ease;
@media (width <= 768px) { @media (width <= 768px) {
padding: 16px; 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 { .metadata-container {
@@ -98,23 +98,6 @@ $transition-normal: 200ms ease;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20px; 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 { .section-label {
@@ -138,23 +138,6 @@ $transition-normal: 200ms ease;
flex: 1 1 0; flex: 1 1 0;
min-height: 0; min-height: 0;
max-height: 100%; 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 { .tab-content {
@@ -96,23 +96,6 @@ $transition-normal: 200ms ease;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 24px; 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 { .shortcut-group {
@@ -132,23 +132,6 @@ $transition-normal: 200ms ease;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
overscroll-behavior: contain; 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 // Item list
@@ -175,23 +175,6 @@ $transition-normal: 200ms ease;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
overscroll-behavior: contain; 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 // Chapter list
@@ -169,23 +169,6 @@ $transition-fast: 150ms ease;
overflow-y: auto; overflow-y: auto;
padding: 12px 0; padding: 12px 0;
overscroll-behavior: contain; 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 --- // --- Outline / Chapter list ---
@@ -467,12 +450,4 @@ $transition-fast: 150ms ease;
.highlight-text { .highlight-text {
color: $text-secondary-light; color: $text-secondary-light;
} }
.content::-webkit-scrollbar-thumb {
background: rgb(0 0 0 / 10%);
&:hover {
background: rgb(0 0 0 / 20%);
}
}
} }
@@ -104,25 +104,10 @@
box-sizing: border-box; box-sizing: border-box;
overflow: hidden auto; overflow: hidden auto;
scrollbar-gutter: stable; scrollbar-gutter: stable;
scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
&::-webkit-scrollbar {
width: 12px;
}
&::-webkit-scrollbar-track {
background: rgb(20 20 30 / 50%);
border-radius: 10px;
}
@media (width <= 768px) { @media (width <= 768px) {
height: calc(100dvh - 13rem); height: calc(100dvh - 13rem);
padding: 0.5rem; padding: 0.5rem;
&::-webkit-scrollbar {
width: 8px;
}
} }
} }
@@ -76,7 +76,6 @@
width: 100%; width: 100%;
position: relative; position: relative;
z-index: 2; z-index: 2;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
> * { > * {
scroll-snap-align: start; scroll-snap-align: start;
@@ -25,25 +25,6 @@
overflow-y: auto; overflow-y: auto;
max-height: 60vh; max-height: 60vh;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--overlay-background);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
transition: background 0.2s ease;
&:hover {
background: var(--primary-color);
}
}
@media (width <= 480px) { @media (width <= 480px) {
padding: 1rem; padding: 1rem;
gap: 1.25rem; gap: 1.25rem;
@@ -33,25 +33,6 @@
max-height: 60vh; max-height: 60vh;
overflow-y: auto; overflow-y: auto;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--overlay-background);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
transition: background 0.2s ease;
&:hover {
background: var(--primary-color);
}
}
@media (width <= 480px) { @media (width <= 480px) {
padding: 1rem; padding: 1rem;
gap: 1.25rem; gap: 1.25rem;
@@ -215,20 +215,6 @@
max-height: 360px; max-height: 360px;
overflow-y: auto; overflow-y: auto;
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-track {
background: rgb(255 255 255 / 5%);
border-radius: 2px;
}
&::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 20%);
border-radius: 2px;
}
.no-results { .no-results {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -266,28 +266,6 @@
overflow-y: auto; overflow-y: auto;
padding-right: 0.25rem; padding-right: 0.25rem;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--overlay-background);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
transition: background 0.2s ease;
&:hover {
background: var(--primary-color);
}
}
scrollbar-width: thin;
scrollbar-color: var(--border-color) var(--overlay-background);
.file-item-card { .file-item-card {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -313,28 +313,6 @@
&.fade-in { &.fade-in {
animation: fade-in-up 0.4s ease-out; animation: fade-in-up 0.4s ease-out;
} }
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--overlay-background);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
transition: background 0.2s ease;
&:hover {
background: var(--primary-color);
}
}
scrollbar-width: thin;
scrollbar-color: var(--border-color) var(--overlay-background);
} }
@keyframes fade-in-up { @keyframes fade-in-up {
@@ -32,23 +32,6 @@
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-top: none; border-top: none;
border-bottom: none; border-bottom: none;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
&:hover {
background: var(--primary-color);
}
}
} }
.dialog-footer { .dialog-footer {
@@ -415,15 +415,6 @@
max-height: 280px; max-height: 280px;
overflow-y: auto; overflow-y: auto;
padding: 0.25rem; padding: 0.25rem;
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
}
} }
.queue-item { .queue-item {
+7 -6
View File
@@ -31,27 +31,28 @@ html {
* { * {
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 12px; width: 8px;
height: 8px;
} }
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
background: rgb(0 0 0 / 10%); background: transparent;
border-radius: 10px;
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: rgb(128 128 128 / 50%); background: var(--surface-600);
border-radius: 10px; border-radius: 10px;
&:hover { &:hover {
background: rgb(128 128 128 / 70%); background: var(--surface-500);
} }
} }
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: rgb(128 128 128 / 50%) rgb(0 0 0 / 10%); scrollbar-color: var(--surface-600) transparent;
} }
.chart-info-tooltip.p-tooltip { .chart-info-tooltip.p-tooltip {
--p-tooltip-max-width: 25rem; --p-tooltip-max-width: 25rem;
} }