Skip to content

Commit

Permalink
feat: restyle markdown headers
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Jan 27, 2024
1 parent 99c697a commit 415c2e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 3 additions & 1 deletion frontend/src/lib/Markdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@
}
</script>

{@html mdToHTML}
<div class="text-stone-950">
{@html mdToHTML}
</div>
17 changes: 8 additions & 9 deletions frontend/src/routes/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,18 @@ body {
}

h1 {
font-size: 1.75rem;
margin: 0;
margin-top: 5px;
font-size: 1.8rem;
}

h2 {
margin-top: 3px;
font-size: 1.5rem;
margin: 0;
}

h3 {
margin-top: 2px;
font-weight: bold;
}

p {
Expand Down Expand Up @@ -87,12 +92,6 @@ button:focus:not(:focus-visible) {
outline: none;
}

@media (min-width: 720px) {
h1 {
font-size: 2.4rem;
}
}

.visually-hidden {
border: 0;
clip: rect(0 0 0 0);
Expand Down

0 comments on commit 415c2e6

Please sign in to comment.