File tree Expand file tree Collapse file tree 5 files changed +61
-164
lines changed Expand file tree Collapse file tree 5 files changed +61
-164
lines changed Original file line number Diff line number Diff line change 1
1
@use ' ../shared/styles/utils' ;
2
2
@use ' ../shared/styles/properties' ;
3
3
@use ' ../shared/styles/theme' ;
4
+ @use ' ../shared/styles/scrollbars' ;
4
5
5
6
:root {
6
7
--gitlens-z-inline : 1000 ;
@@ -59,49 +60,9 @@ body {
59
60
min-height : 100% ;
60
61
line-height : 1.4 ;
61
62
font-size : var (--vscode-font-size );
62
-
63
- & .scrollable ,
64
- .scrollable {
65
- border-color : transparent ;
66
- transition : border-color 1s linear ;
67
- }
68
-
69
- & :hover ,
70
- & :focus-within {
71
- & .scrollable ,
72
- .scrollable {
73
- border-color : var (--vscode-scrollbarSlider-background );
74
- transition : none ;
75
- }
76
- }
77
-
78
- & .preload {
79
- & .scrollable ,
80
- .scrollable {
81
- transition : none ;
82
- }
83
- }
84
63
}
85
64
86
- ::-webkit-scrollbar-corner {
87
- background-color : transparent !important ;
88
- }
89
-
90
- ::-webkit-scrollbar-thumb {
91
- background-color : transparent ;
92
- border-color : inherit ;
93
- border-right-style : inset ;
94
- border-right-width : calc (100vw + 100vh );
95
- border-radius : unset !important ;
96
-
97
- & :hover {
98
- border-color : var (--vscode-scrollbarSlider-hoverBackground );
99
- }
100
-
101
- & :active {
102
- border-color : var (--vscode-scrollbarSlider-activeBackground );
103
- }
104
- }
65
+ @include scrollbars .scrollableBase ();
105
66
106
67
:focus {
107
68
@include utils .focus ();
Original file line number Diff line number Diff line change 1
1
@use ' ../../shared/styles/properties' ;
2
2
@use ' ../../shared/styles/theme' ;
3
+ @use ' ../../shared/styles/scrollbars' ;
3
4
4
5
:root {
5
6
--gitlens-z-inline : 1000 ;
@@ -54,49 +55,9 @@ body {
54
55
min-height : 100% ;
55
56
line-height : 1.4 ;
56
57
font-size : var (--vscode-font-size );
57
-
58
- & .scrollable ,
59
- .scrollable {
60
- border-color : transparent ;
61
- transition : border-color 1s linear ;
62
- }
63
-
64
- & :hover ,
65
- & :focus-within {
66
- & .scrollable ,
67
- .scrollable {
68
- border-color : var (--vscode-scrollbarSlider-background );
69
- transition : none ;
70
- }
71
- }
72
-
73
- & .preload {
74
- & .scrollable ,
75
- .scrollable {
76
- transition : none ;
77
- }
78
- }
79
- }
80
-
81
- ::-webkit-scrollbar-corner {
82
- background-color : transparent !important ;
83
58
}
84
59
85
- ::-webkit-scrollbar-thumb {
86
- background-color : transparent ;
87
- border-color : inherit ;
88
- border-right-style : inset ;
89
- border-right-width : calc (100vw + 100vh );
90
- border-radius : unset !important ;
91
-
92
- & :hover {
93
- border-color : var (--vscode-scrollbarSlider-hoverBackground );
94
- }
95
-
96
- & :active {
97
- border-color : var (--vscode-scrollbarSlider-activeBackground );
98
- }
99
- }
60
+ @include scrollbars .scrollableBase ();
100
61
101
62
:focus {
102
63
outline-color : var (--vscode-focusBorder );
Original file line number Diff line number Diff line change
1
+ @use ' ./styles/scrollbars' ;
2
+
1
3
html {
2
4
height : 100% ;
3
5
font-size : 62.5% ;
9
11
color : var (--color-foreground );
10
12
height : 100% ;
11
13
line-height : 1.4 ;
12
-
13
- & .scrollable ,
14
- .scrollable {
15
- border-color : transparent ;
16
- transition : border-color 1s linear ;
17
- }
18
-
19
- & :hover ,
20
- & :focus-within {
21
- & .scrollable ,
22
- .scrollable {
23
- border-color : var (--vscode-scrollbarSlider-background );
24
- transition : none ;
25
- }
26
- }
27
-
28
- & .preload {
29
- & .scrollable ,
30
- .scrollable {
31
- transition : none ;
32
- }
33
- }
34
14
}
35
15
36
- ::-webkit-scrollbar-corner {
37
- background-color : transparent !important ;
38
- }
39
-
40
- ::-webkit-scrollbar-thumb {
41
- background-color : transparent ;
42
- border-color : inherit ;
43
- border-right-style : inset ;
44
- border-right-width : calc (100vw + 100vh );
45
- border-radius : unset !important ;
46
-
47
- & :hover {
48
- border-color : var (--vscode-scrollbarSlider-hoverBackground );
49
- }
50
-
51
- & :active {
52
- border-color : var (--vscode-scrollbarSlider-activeBackground );
53
- }
54
- }
16
+ @include scrollbars .scrollableBase ();
55
17
56
18
a {
57
19
border : 0 ;
Original file line number Diff line number Diff line change 1
1
@use ' ./theme' ;
2
+ @use ' ./scrollbars' ;
2
3
3
4
:root {
4
5
--gitlens-gutter-width : 20px ;
@@ -45,49 +46,9 @@ body {
45
46
font-size : var (--font-size );
46
47
color : var (--color-foreground );
47
48
padding : 0 ;
48
-
49
- & .scrollable ,
50
- .scrollable {
51
- border-color : transparent ;
52
- transition : border-color 1s linear ;
53
-
54
- & :hover ,
55
- & :focus-within {
56
- & .scrollable ,
57
- .scrollable {
58
- border-color : var (--vscode-scrollbarSlider-background );
59
- transition : none ;
60
- }
61
- }
62
- }
63
-
64
- & .preload {
65
- & .scrollable ,
66
- .scrollable {
67
- transition : none ;
68
- }
69
- }
70
- }
71
-
72
- ::-webkit-scrollbar-corner {
73
- background-color : transparent !important ;
74
49
}
75
50
76
- ::-webkit-scrollbar-thumb {
77
- background-color : transparent ;
78
- border-color : inherit ;
79
- border-right-style : inset ;
80
- border-right-width : calc (100vw + 100vh );
81
- border-radius : unset !important ;
82
-
83
- & :hover {
84
- border-color : var (--vscode-scrollbarSlider-hoverBackground );
85
- }
86
-
87
- & :active {
88
- border-color : var (--vscode-scrollbarSlider-activeBackground );
89
- }
90
- }
51
+ @include scrollbars .scrollableBase ();
91
52
92
53
a {
93
54
text-decoration : none ;
Original file line number Diff line number Diff line change
1
+ @mixin scrollableBase () {
2
+ // This @supports selector is a temporary fix for https://github.com/microsoft/vscode/issues/213045#issuecomment-2211442905
3
+ @supports selector (::-webkit-scrollbar ) {
4
+ html {
5
+ scrollbar-color : unset ;
6
+ }
7
+ }
8
+
9
+ body {
10
+ & .scrollable ,
11
+ .scrollable {
12
+ border-color : transparent ;
13
+ transition : border-color 1s linear ;
14
+
15
+ & :hover ,
16
+ & :focus-within {
17
+ & .scrollable ,
18
+ .scrollable {
19
+ border-color : var (--vscode-scrollbarSlider-background );
20
+ transition : none ;
21
+ }
22
+ }
23
+ }
24
+
25
+ & .preload {
26
+ & .scrollable ,
27
+ .scrollable {
28
+ transition : none ;
29
+ }
30
+ }
31
+ }
32
+
33
+ ::-webkit-scrollbar-corner {
34
+ background-color : transparent !important ;
35
+ }
36
+
37
+ ::-webkit-scrollbar-thumb {
38
+ background-color : transparent ;
39
+ border-color : inherit ;
40
+ border-right-style : inset ;
41
+ border-right-width : calc (100vw + 100vh );
42
+ border-radius : unset !important ;
43
+
44
+ & :hover {
45
+ border-color : var (--vscode-scrollbarSlider-hoverBackground );
46
+ }
47
+
48
+ & :active {
49
+ border-color : var (--vscode-scrollbarSlider-activeBackground );
50
+ }
51
+ }
52
+ }
You can’t perform that action at this time.
0 commit comments