Skip to content

Commit f6f4a0e

Browse files
committed
fix: fretboard scrollbars on desktop
1 parent 817810d commit f6f4a0e

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

src/components/VirtualFretboard.pcss

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,8 @@
2626
.body {
2727
width: 24rem;
2828

29-
& > div.fret {
30-
background-color: transparent;
31-
}
32-
33-
& div.string-container {
34-
@apply cursor-auto;
35-
}
36-
37-
& div.string:first-of-type {
38-
@apply border-gray-600;
29+
.string {
30+
@apply m-0 w-full border-gray-600;
3931
}
4032
}
4133
}
@@ -46,13 +38,23 @@
4638
height: 87.5%;
4739
@apply flex w-full;
4840

49-
&.disabled {
50-
opacity: 0.7;
41+
& > .fret {
42+
min-width: 50px;
43+
@apply flex flex-col justify-around py-2 w-full relative;
5144
}
5245

46+
.string-container {
47+
@apply flex items-center h-6;
48+
}
49+
50+
.string {
51+
@apply border-gray-600 border-b-2;
52+
}
53+
}
54+
55+
.fretboard {
5356
& > .fret {
54-
min-width: 50px;
55-
@apply flex flex-col justify-around py-2 border-gray-300 border-r-2 w-full relative bg-gray-800;
57+
@apply bg-gray-800 border-gray-300 border-r-2;
5658

5759
&:first-of-type {
5860
@apply bg-gray-600;
@@ -72,48 +74,47 @@
7274
}
7375
}
7476

75-
& .string-container {
76-
@apply flex items-center h-6 cursor-pointer;
77+
.string-container {
78+
@apply cursor-pointer;
7779
}
7880

79-
& .string {
81+
.string {
8082
margin: 0 -2px;
8183
width: calc(100% + 2px);
82-
@apply border-gray-600 border-b-2;
8384
}
8485

85-
& .string-container:nth-child(n + 4) .string {
86+
.string-container:nth-child(n + 4) .string {
8687
border-bottom-width: 3px;
8788
}
8889

89-
& .dots {
90+
.dots {
9091
top: 15%;
9192
bottom: 15%;
9293
@apply flex flex-col justify-around items-center absolute inset-x-0 py-2 pointer-events-none;
9394
}
9495

95-
& .dot {
96+
.dot {
9697
transition: background-color 1s;
9798
@apply rounded-full h-4 w-4 bg-gray-200;
9899
}
99100

100-
& .dots.dots-feedback {
101+
.dots.dots-feedback {
101102
@apply inset-0;
102103
}
103104

104-
& .dots-feedback .dot {
105+
.dots-feedback .dot {
105106
background-color: transparent;
106107
}
107108

108-
& .dot.wrong {
109+
.dot.wrong {
109110
background-color: theme('colors.brand-red');
110111
}
111112

112-
& .dot.correct {
113+
.dot.correct {
113114
@apply bg-green-500;
114115
}
115116

116-
& .dot.no-transition {
117+
.dot.no-transition {
117118
transition: none;
118119
}
119120
}

0 commit comments

Comments
 (0)