Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions public/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
transparent 50%,
rgba(0 0 0 0.04)
);

--columns: 96px auto 32px;
}

@media (prefers-color-scheme: dark) {
Expand All @@ -30,6 +32,10 @@
}
}

* {
box-sizing: border-box;
}

html,
body {
position: relative;
Expand All @@ -41,9 +47,8 @@ body {
background: var(--bg-color);
color: var(--fg-color);
margin: 0;
box-sizing: border-box;
font-family: "Inter", sans-serif;
font-size: 14px;
font-size: 16px;
}

a {
Expand Down
21 changes: 11 additions & 10 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,19 @@

<style>
main {
display: grid;
grid-template-columns:
minmax(1.2rem, 1fr)
minmax(auto, 24rem)
minmax(1.2rem, 1fr);
grid-template-rows: auto 1fr auto;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
max-width: 600px;
margin: auto;
padding: 16px;
}

article {
grid-column: 2;
display: grid;
grid-template-columns: 5rem auto 2rem;
grid-template-columns: var(--columns);
column-gap: 0.5rem;
align-items: center;
}
Expand All @@ -168,10 +169,10 @@

.derived {
background: transparent;
border: none;
border: dashed;
color: var(--fg-color);
margin: 0;
padding-left: 0;
margin: 12px 0;
font-size: 1.5rem;
font-weight: bold;
}
</style>
Expand Down
5 changes: 2 additions & 3 deletions src/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<style>
footer {
grid-column: 2;
margin-block-start: auto;
display: grid;
grid-template-columns: 5rem auto 1rem;
grid-template-columns: var(--columns);
column-gap: 0.5rem;
margin-top: 4rem;
font-size: small;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
header {
grid-column: 2;
display: grid;
grid-template-columns: 5rem auto 2rem;
grid-template-columns: var(--columns);
column-gap: 0.5rem;
margin: 1rem 0 2.5rem;
}
Expand Down