Skip to content

Commit 1c832e2

Browse files
committed
Apply something similar to omgovich#175 PR
1 parent acec93f commit 1c832e2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/css/styles.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,22 @@
1818
linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
1919
}
2020

21-
.react-colorful__pointer-fill,
2221
.react-colorful__alpha-gradient {
23-
content: "";
2422
position: absolute;
2523
left: 0;
2624
top: 0;
2725
right: 0;
2826
bottom: 0;
27+
}
28+
29+
.react-colorful__pointer-fill {
30+
width: 90%;
31+
height: 90%;
32+
}
33+
34+
.react-colorful__pointer-fill,
35+
.react-colorful__alpha-gradient {
36+
content: "";
2937
pointer-events: none;
3038
border-radius: inherit;
3139
}
@@ -83,6 +91,9 @@
8391
border: 2px solid #fff;
8492
border-radius: 50%;
8593
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
94+
display: flex;
95+
justify-content: center;
96+
align-items: center;
8697
}
8798

8899
.react-colorful__interactive:focus .react-colorful__pointer {

0 commit comments

Comments
 (0)