Skip to content

Commit baf9346

Browse files
committed
Web styling
1 parent 43306b8 commit baf9346

File tree

3 files changed

+8
-51
lines changed

3 files changed

+8
-51
lines changed

web/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.wasm
2+
.vite
23

34
# Logs
45
logs

web/src/Run.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676

7777
return (
7878
<div>
79-
<div style={{color: "#4e4e4e"}}>Output format</div>
79+
<div style={{color: "#4e4e4e", fontSize: 12}}>Output format</div>
8080
<div style={{ display: "flex", gap: 2, alignItems: "center" }}>
8181
{Object.entries(FormatNames).map(([f, name]) => <OutputFormatButton $selected={format == f} key={f} onClick={() => setFormat(f as Format)}>{name}</OutputFormatButton>)}
8282
</div>
@@ -118,6 +118,11 @@ const OutputFormatButton = styled.button<{ $selected: boolean; }>`
118118
background: ${props => props.$selected ? "#c172a9" : "#474747"};
119119
color: ${props => props.$selected ? "white" : "white"};
120120
border-radius: 4px;
121+
padding: 6px 10px;
122+
border: 0;
123+
outline-offset: 2px;
124+
cursor: pointer;
125+
font-size: 14px;
121126
`
122127

123128
const TermContainer = styled.div`

web/src/index.css

+1-50
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
line-height: 1.5;
44
font-weight: 400;
55

6-
color-scheme: light dark;
7-
color: rgba(255, 255, 255, 0.87);
8-
background-color: #242424;
9-
106
font-synthesis: none;
117
text-rendering: optimizeLegibility;
128
-webkit-font-smoothing: antialiased;
@@ -20,49 +16,4 @@ a {
2016
}
2117
a:hover {
2218
color: #535bf2;
23-
}
24-
25-
body {
26-
margin: 0;
27-
display: flex;
28-
place-items: center;
29-
min-width: 320px;
30-
min-height: 100vh;
31-
}
32-
33-
h1 {
34-
font-size: 3.2em;
35-
line-height: 1.1;
36-
}
37-
38-
button {
39-
border-radius: 8px;
40-
border: 1px solid transparent;
41-
padding: 0.6em 1.2em;
42-
font-size: 1em;
43-
font-weight: 500;
44-
font-family: inherit;
45-
background-color: #1a1a1a;
46-
cursor: pointer;
47-
transition: border-color 0.25s;
48-
}
49-
button:hover {
50-
border-color: #646cff;
51-
}
52-
button:focus,
53-
button:focus-visible {
54-
outline: 4px auto -webkit-focus-ring-color;
55-
}
56-
57-
@media (prefers-color-scheme: light) {
58-
:root {
59-
color: #213547;
60-
background-color: #ffffff;
61-
}
62-
a:hover {
63-
color: #747bff;
64-
}
65-
button {
66-
background-color: #f9f9f9;
67-
}
68-
}
19+
}

0 commit comments

Comments
 (0)