Skip to content

Commit cfcdb20

Browse files
authored
refactor: remove custom scrollbar styles and related variables (#1304)
1 parent 0c941eb commit cfcdb20

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

assets/scss/partials/base.scss

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
html {
22
font-size: 62.5%;
33
overflow-y: scroll;
4+
scrollbar-gutter: stable;
45
}
56

67
* {
@@ -17,25 +18,4 @@ body {
1718
-ms-text-autospace: ideograph-alpha;
1819
-webkit-font-smoothing: antialiased;
1920
-moz-osx-font-smoothing: grayscale;
20-
}
21-
22-
/* scrollbar styles for Firefox */
23-
* {
24-
scrollbar-width: auto;
25-
scrollbar-color: var(--scrollbar-thumb) transparent;
26-
}
27-
/**/
28-
29-
/* scrollbar styles for Chromium */
30-
::-webkit-scrollbar {
31-
height: auto;
32-
}
33-
34-
::-webkit-scrollbar-thumb {
35-
background-color: var(--scrollbar-thumb);
36-
}
37-
38-
::-webkit-scrollbar-track {
39-
background-color: transparent;
40-
}
41-
/**/
21+
}

assets/scss/partials/layout/article.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@
133133
display: flex;
134134
flex-direction: column;
135135
color: var(--card-text-color-main);
136-
137-
::-webkit-scrollbar-thumb {
138-
background-color: var(--card-separator-color);
139-
}
140136
}
141137

142138
.widget--toc {

assets/scss/variables.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@
1919

2020
--section-separation: 40px;
2121

22-
--scrollbar-thumb: hsl(0, 0%, 85%);
23-
--scrollbar-track: var(--body-background);
24-
2522
&[data-scheme="dark"] {
2623
--body-background: #303030;
2724
--accent-color: #ecf0f1;
2825
--accent-color-darker: #bdc3c7;
2926
--accent-color-text: #000;
3027
--body-text-color: rgba(255, 255, 255, 0.7);
31-
--scrollbar-thumb: hsl(0, 0%, 40%);
32-
--scrollbar-track: var(--body-background);
3328
}
3429
}
3530

0 commit comments

Comments
 (0)