Skip to content

Commit 07ca093

Browse files
committed
style: draggable and scrollbar
1 parent 80c34aa commit 07ca093

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

src/content-script/styles.scss

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,27 +88,20 @@
8888
padding: 5px 15px 10px;
8989
background-color: var(--theme-color);
9090
color: var(--font-color);
91-
::-webkit-scrollbar {
92-
background-color: var(--theme-color);
93-
}
94-
::-webkit-scrollbar-thumb {
95-
background-color: var(--dragbar-color);
96-
}
9791
&::-webkit-scrollbar {
9892
background-color: var(--theme-color);
93+
width: 9px;
9994
}
10095
&::-webkit-scrollbar-thumb {
101-
background-color: var(--dragbar-color);
102-
}
103-
::-webkit-resizer {
104-
background-color: var(--theme-color);
96+
background-color: var(--theme-border-color);
97+
border-radius: 20px;
98+
border: transparent;
10599
}
106-
&::-webkit-resizer {
107-
background-color: var(--theme-color);
100+
&::-webkit-scrollbar-corner {
101+
background: transparent;
108102
}
109103

110104
overflow-y: auto;
111-
min-height: 300px;
112105
p {
113106
color: var(--font-color);
114107
}
@@ -269,6 +262,19 @@
269262
&:focus {
270263
outline: none;
271264
}
265+
266+
&::-webkit-scrollbar {
267+
background-color: var(--theme-color);
268+
width: 9px;
269+
}
270+
&::-webkit-scrollbar-thumb {
271+
background-color: var(--theme-border-color);
272+
border-radius: 20px;
273+
border: transparent;
274+
}
275+
&::-webkit-scrollbar-corner {
276+
background: transparent;
277+
}
272278
}
273279

274280
.submit-button {
@@ -286,6 +292,10 @@
286292
box-shadow: 0 1px 0 rgba(31, 35, 40, 0.1);
287293
}
288294

295+
.draggable {
296+
cursor: move;
297+
}
298+
289299
.dragbar {
290300
cursor: move;
291301
width: 42%;

0 commit comments

Comments
 (0)