Skip to content

Commit 6b9cafa

Browse files
authored
style: remove unused scrollbar styles from shared and custom theme (#4422)
1 parent a8681e7 commit 6b9cafa

File tree

2 files changed

+0
-65
lines changed

2 files changed

+0
-65
lines changed

website/src/css/_shared.scss

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,3 @@
4444
color: var(--ifm-link-color);
4545
}
4646
}
47-
48-
%scrollbar-style {
49-
&::-webkit-scrollbar {
50-
width: 7px;
51-
height: 7px;
52-
}
53-
54-
&::-webkit-scrollbar-thumb {
55-
background: #888;
56-
border-radius: 10px;
57-
}
58-
59-
&::-webkit-scrollbar-track {
60-
background: #f1f1f1;
61-
border-radius: 10px;
62-
}
63-
}
64-
65-
%scrollbar-style-dark {
66-
&::-webkit-scrollbar-track {
67-
background: #141414;
68-
}
69-
70-
&::-webkit-scrollbar-thumb {
71-
background: var(--ifm-color-emphasis-200);
72-
}
73-
}

website/src/css/customTheme.scss

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,6 @@ hr {
442442
background-color: var(--ifm-color-emphasis-300);
443443
}
444444

445-
.prism-code {
446-
@extend %scrollbar-style;
447-
}
448-
449445
.tabs {
450446
border-bottom: 1px solid var(--ifm-table-border-color);
451447
color: var(--ifm-font-color-base);
@@ -493,10 +489,6 @@ html[data-theme="dark"] {
493489
}
494490
}
495491

496-
.prism-code {
497-
@extend %scrollbar-style-dark;
498-
}
499-
500492
div[class*="codeBlockTitle"] {
501493
color: var(--docsearch-muted-color);
502494
background-color: var(--deepdark);
@@ -605,12 +597,6 @@ html[data-theme="dark"] .homepage {
605597
}
606598
}
607599

608-
/* Sidebars */
609-
610-
html[data-theme="dark"] {
611-
@extend %scrollbar-style-dark;
612-
}
613-
614600
/* Blog */
615601

616602
.avatar__name {
@@ -976,10 +962,6 @@ So we need to "revert" some CSS vars to not enforce dark mode
976962
aside[class^="theme-doc-sidebar-container"] {
977963
margin-right: 16px;
978964

979-
.thin-scrollbar {
980-
@extend %scrollbar-style;
981-
}
982-
983965
.menu__list .menu__list {
984966
margin-top: 0;
985967
}
@@ -1164,8 +1146,6 @@ aside[class^="theme-doc-sidebar-container"] {
11641146
}
11651147

11661148
html[data-theme="dark"] .menu {
1167-
@extend %scrollbar-style-dark;
1168-
11691149
.menu__list > .menu__list-item > .menu__link--sublist {
11701150
color: var(--ifm-color-emphasis-400);
11711151
}
@@ -1180,8 +1160,6 @@ html[data-theme="dark"] .menu {
11801160
div[class^="tableOfContents"] {
11811161
min-width: 100%;
11821162
width: 100%;
1183-
1184-
@extend %scrollbar-style;
11851163
}
11861164

11871165
.table-of-contents {
@@ -1255,10 +1233,6 @@ html[data-theme="dark"] {
12551233
}
12561234
}
12571235

1258-
html[data-theme="dark"] div[class^="tableOfContents"] {
1259-
@extend %scrollbar-style-dark;
1260-
}
1261-
12621236
button[class*="tocCollapsibleButton"] {
12631237
color: var(--ifm-color-content-secondary);
12641238
}
@@ -2044,18 +2018,6 @@ html[data-theme="dark"] .docsRating {
20442018
margin-bottom: 2.5rem !important;
20452019
}
20462020
}
2047-
2048-
aside nav {
2049-
@extend %scrollbar-style;
2050-
}
2051-
}
2052-
2053-
html[data-theme="dark"].blog-wrapper {
2054-
.main-wrapper {
2055-
aside nav {
2056-
@extend %scrollbar-style-dark;
2057-
}
2058-
}
20592021
}
20602022

20612023
html[data-theme="light"].blog-wrapper {

0 commit comments

Comments
 (0)