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;
box-sizing: border-box;
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) {
height: calc(100dvh - 13rem);
padding: 0.5rem;
&::-webkit-scrollbar {
width: 8px;
}
}
}
@@ -162,17 +162,6 @@
height: calc(100dvh - 22rem);
box-sizing: border-box;
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 {
overflow: auto hidden;
height: 100%;
&::-webkit-scrollbar {
height: 10px;
}
&::-webkit-scrollbar-track {
background: rgb(30 30 30 / 50%);
border-radius: 10px;
}
scrollbar-width: thin;
}
.notes-horizontal-list {
@@ -268,10 +257,6 @@
max-height: 120px;
font-size: 0.85rem;
}
&::-webkit-scrollbar {
width: 6px;
}
}
.dialog-form {
@@ -109,24 +109,6 @@
overflow: auto hidden;
padding-bottom: 8px;
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 {
@@ -357,24 +339,6 @@
&--blurred {
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 {
@@ -70,23 +70,6 @@
overflow-y: auto;
// 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
@@ -118,28 +118,6 @@
flex: 1;
padding-right: 0.25rem;
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 {
@@ -79,7 +79,6 @@
width: 100%;
position: relative;
z-index: 2;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
}
.dashboard-scroller-card {
@@ -74,24 +74,6 @@
max-height: 450px;
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) {
padding: 1rem;
max-height: 400px;
@@ -2,27 +2,11 @@
height: calc(100dvh - 6.7rem);
overflow-y: auto;
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) {
.dashboard-container {
height: calc(100dvh - 5rem);
&::-webkit-scrollbar {
width: 8px;
}
}
}
@@ -63,23 +63,6 @@
display: flex;
flex-direction: column;
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
@@ -323,15 +306,6 @@
gap: 0.625rem;
max-height: 180px;
overflow-y: auto;
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
}
}
.folder-item {
@@ -190,25 +190,6 @@
@media (width <= 768px) {
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 {
@@ -53,23 +53,6 @@
display: flex;
flex-direction: column;
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)
@@ -13,27 +13,16 @@
padding: 0.5rem;
gap: 1rem;
width: 100%;
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
.dashboard-scroller-infinite::-webkit-scrollbar {
height: 8px;
}
.dashboard-scroller-infinite::-webkit-scrollbar-track {
background: transparent;
}
.dashboard-scroller-infinite::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
.dashboard-scroller-infinite::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary-color);
}
.dashboard-scroller-card {
width: 115px;
flex: 0 0 115px;
@@ -164,24 +164,6 @@
white-space: pre-wrap;
overflow-wrap: anywhere;
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 {
@@ -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%);
}
}
}
@@ -104,25 +104,10 @@
box-sizing: border-box;
overflow: hidden auto;
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) {
height: calc(100dvh - 13rem);
padding: 0.5rem;
&::-webkit-scrollbar {
width: 8px;
}
}
}
@@ -76,7 +76,6 @@
width: 100%;
position: relative;
z-index: 2;
scrollbar-color: var(--primary-color) rgb(20 20 30 / 50%);
> * {
scroll-snap-align: start;
@@ -25,25 +25,6 @@
overflow-y: auto;
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) {
padding: 1rem;
gap: 1.25rem;
@@ -33,25 +33,6 @@
max-height: 60vh;
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) {
padding: 1rem;
gap: 1.25rem;
@@ -215,20 +215,6 @@
max-height: 360px;
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 {
display: flex;
align-items: center;
@@ -266,28 +266,6 @@
overflow-y: auto;
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 {
display: flex;
align-items: center;
@@ -313,28 +313,6 @@
&.fade-in {
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 {
@@ -32,23 +32,6 @@
border: 1px solid var(--border-color);
border-top: 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 {
@@ -415,15 +415,6 @@
max-height: 280px;
overflow-y: auto;
padding: 0.25rem;
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
}
}
.queue-item {
+7 -6
View File
@@ -31,27 +31,28 @@ html {
* {
&::-webkit-scrollbar {
width: 12px;
width: 8px;
height: 8px;
}
&::-webkit-scrollbar-track {
background: rgb(0 0 0 / 10%);
border-radius: 10px;
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: rgb(128 128 128 / 50%);
background: var(--surface-600);
border-radius: 10px;
&:hover {
background: rgb(128 128 128 / 70%);
background: var(--surface-500);
}
}
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 {
--p-tooltip-max-width: 25rem;
}