Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit edce885

Browse files
committed
Fixed quiet scrollbar based on @TomMalbran's feedback.
1 parent 4ce40aa commit edce885

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

src/styles/brackets_scrollbars.less

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
}
4040

4141
::-webkit-scrollbar-thumb {
42-
background-color: rgba(0,0,0,0);
4342
box-shadow: none;
4443
border: none;
4544
}
@@ -52,20 +51,20 @@
5251
background-color: transparent;
5352
}
5453

55-
/* The data URIs for the thumb were generated from the Fireworks files in
56-
* styles/vertical-thumb-fw-outline.png and styles/horiz-thumb-fw-outline.png.
57-
*/
54+
:hover::-webkit-scrollbar-thumb,
55+
:focus::-webkit-scrollbar-thumb {
56+
border-radius: 999px;
57+
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6) inset;
58+
border: 2px solid transparent;
59+
}
60+
5861
:hover::-webkit-scrollbar-thumb:vertical,
5962
:focus::-webkit-scrollbar-thumb:vertical {
60-
border-color: transparent;
61-
border-width: 9px 0;
6263
min-height: 20px;
6364
}
6465

6566
:hover::-webkit-scrollbar-thumb:horizontal,
6667
:focus::-webkit-scrollbar-thumb:horizontal {
67-
border-color: transparent;
68-
border-width: 0 9px;
6968
min-width: 20px;
7069
}
7170
}
@@ -87,7 +86,7 @@
8786
::-webkit-scrollbar-thumb {
8887
border-radius: 999px;
8988
box-shadow: 0 0 0 4px @custom-scrollbar-thumb inset;
90-
border: 2px solid rgba(0, 0, 0, 0);
89+
border: 2px solid transparent;
9190
}
9291

9392
::-webkit-scrollbar-corner {

0 commit comments

Comments
 (0)