Skip to content

Commit d67d462

Browse files
committed
Scrollbar beauty
1 parent 32ccadf commit d67d462

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/components/Sidebar/style.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
.sidebar-wrapper {
22
flex: 1;
3-
height: 100%;
4-
border-radius: 1rem;
5-
padding: 2rem;
3+
margin: 2rem;
64
overflow: hidden;
5+
border-radius: 1rem;
6+
background: linear-gradient(
7+
to bottom right,
8+
var(--color-primary),
9+
var(--color-secondary),
10+
var(--color-tertiary)
11+
);
712
}
813

914
.sidebar {
@@ -15,12 +20,12 @@
1520
flex-direction: column;
1621
gap: 1.5rem;
1722
overflow-y: auto;
18-
background: linear-gradient(
19-
to bottom right,
20-
var(--color-primary),
21-
var(--color-secondary),
22-
var(--color-tertiary)
23-
);
23+
}
24+
25+
.sidebar::-webkit-scrollbar {
26+
width: 0.5rem;
27+
height: 0.5rem;
28+
background: transparent;
2429
}
2530

2631
.sidebar-section {

0 commit comments

Comments
 (0)