Skip to content

Commit

Permalink
Web styling
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Jul 12, 2024
1 parent 43306b8 commit baf9346
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 51 deletions.
1 change: 1 addition & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.wasm
.vite

# Logs
logs
Expand Down
7 changes: 6 additions & 1 deletion web/src/Run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:

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

const TermContainer = styled.div`
Expand Down
51 changes: 1 addition & 50 deletions web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
Expand All @@ -20,49 +16,4 @@ a {
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
}

0 comments on commit baf9346

Please sign in to comment.