Skip to content

Commit 8b06877

Browse files
committed
ref: extract some inline styles
1 parent 54c2695 commit 8b06877

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

webzebra/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
preserveAspectRatio="xMidYMid meet"
3232
id="board"
3333
viewBox="0 0 800 800"
34-
style="background-color: #3a7f46; border: 1vw brown solid;"
3534
>
3635
<g id="evals"></g>
3736
<g id="circles"></g>
@@ -56,9 +55,9 @@
5655
<div class="max-w-sm text-left p-1.5 w-full mt-3">
5756
<div class="flex justify-between items-center">
5857
<div class="flex items-center text-black text-2xl">
59-
<div style="width: 1em; height: 1em; border-radius: 0.5em; background: black"></div>
58+
<div class="circle-black"></div>
6059
<div class="px-2" id="score-black">0</div>
61-
<div style="width: 1em; height: 1em; border-radius: 0.5em; background: white"></div>
60+
<div class="circle-white"></div>
6261
<div class="px-2 text-white" id="score-white">0</div>
6362
</div>
6463

webzebra/src/index.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,22 @@ svg text {
1717
svg text::selection {
1818
background: none;
1919
}
20+
21+
#board {
22+
background-color: #3a7f46;
23+
border: 1vw brown solid;
24+
}
25+
26+
.circle-black, .circle-white {
27+
width: 1em;
28+
height: 1em;
29+
border-radius: 0.5em;
30+
}
31+
32+
.circle-black {
33+
background: black
34+
}
35+
36+
.circle-white {
37+
background: white
38+
}

0 commit comments

Comments
 (0)