Skip to content

Commit 2778555

Browse files
Yair Even OrYair Even Or
Yair Even Or
authored and
Yair Even Or
committed
decreased color value font size to better fit extra-long values
1 parent 2d3ce06 commit 2778555

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/styles/_value.scss

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.color-picker__value{
2-
// using "60" (instead of 50) to offset more to the white
3-
--isLightColor: Min(1, Max(60 - var(--lightness) - (100 - var(--alpha)), 0));
2+
--isLightColor: Min(1, Max(50 - var(--lightness) - (100 - var(--alpha)), 0));
43
grid-area: value;
54
position: relative;
65
display: inline-flex;
@@ -18,7 +17,7 @@
1817
letter-spacing: -.5px;
1918
word-spacing: -3px;
2019
font: 800 16px/2 monospace;
21-
font-size: calc(var(--width)*var(--width-units)/ 20);
20+
font-size: calc(var(--width)*var(--width-units)/ 22);
2221
text-transform: uppercase;
2322
padding: 0;
2423
text-align: center;

0 commit comments

Comments
 (0)