Skip to content

Commit b7711ca

Browse files
committed
prettier
1 parent 35906ee commit b7711ca

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

modules/colors.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@
2727
font-family: monospace;
2828
}
2929
body {
30-
background: linear-gradient(-90deg, transparent 0 38%, 47%, rgb(0 0 0 / 0.7) 50%, white 50% 100%),
30+
background: linear-gradient(
31+
-90deg,
32+
transparent 0 38%,
33+
47%,
34+
rgb(0 0 0 / 0.7) 50%,
35+
white 50% 100%
36+
),
3137
conic-gradient(
3238
black 0 90deg,
3339
transparent 90deg 180deg,
@@ -195,11 +201,11 @@
195201
}
196202

197203
function hexOpacity(color, opacity) {
198-
let char = "00"
204+
let char = "00";
199205
if (opacity > 0) {
200-
char = Math.floor(opacity * 255).toString(16);
206+
char = Math.floor(opacity * 255).toString(16);
201207
}
202-
return `${color}${char}`
208+
return `${color}${char}`;
203209
}
204210
</script>
205211
</body>

0 commit comments

Comments
 (0)