style(sidebar): scrollbar hover on section, smaller toggle button
- Scrollbar shows on playlists-section hover (not just scrollbar area) - Toggle button: 22px diameter (was 24px), right: -11px
This commit is contained in:
1 parent
eebf766f1c
commit
ab6cbfa414
1 file changed
+11
-10
@@ -958,15 +958,11 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Thin scrollbar - hidden by default, visible on hover */
|
/* Thin scrollbar - hidden by default, visible on section hover */
|
||||||
.playlists-scroll {
|
.playlists-scroll {
|
||||||
scrollbar-color: transparent transparent;
|
scrollbar-color: transparent transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlists-scroll:hover {
|
|
||||||
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.playlists-scroll::-webkit-scrollbar {
|
.playlists-scroll::-webkit-scrollbar {
|
||||||
width: 4px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
@@ -980,11 +976,16 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlists-scroll:hover::-webkit-scrollbar-thumb {
|
/* Show scrollbar when hovering the entire playlists section */
|
||||||
|
.playlists-section:hover .playlists-scroll {
|
||||||
|
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.playlists-section:hover .playlists-scroll::-webkit-scrollbar-thumb {
|
||||||
background: rgba(255, 255, 255, 0.15);
|
background: rgba(255, 255, 255, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlists-scroll:hover::-webkit-scrollbar-thumb:hover {
|
.playlists-section:hover .playlists-scroll::-webkit-scrollbar-thumb:hover {
|
||||||
background: rgba(255, 255, 255, 0.25);
|
background: rgba(255, 255, 255, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1003,14 +1004,14 @@
|
|||||||
|
|
||||||
.toggle-btn {
|
.toggle-btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -12px;
|
right: -11px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 24px;
|
width: 22px;
|
||||||
height: 24px;
|
height: 22px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: var(--bg-tertiary);
|
background: var(--bg-tertiary);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
|||||||
Reference in new issue
Block a user