Skip to content

Commit

Permalink
website: Adjust spacing and headings styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jan 16, 2024
1 parent 71895c3 commit 94235b0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions website/src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
border: none;
}

:root .expressive-code {
padding: 0.8rem 0;
}

:root .expressive-code .frame {
--ec-frm-frameBoxShdCssVal: none;
--code-background: theme('colors.gray.800');
Expand Down Expand Up @@ -105,6 +109,28 @@
box-shadow: var(--sl-shadow-sm);
}

:root :not(li, a, strong, em, del, span, input, code) + :not(li, a, strong, em, del, span, input, code, :where(.not-content *)) {
margin-top: 1.3rem;
}

:root .sl-markdown-content :not(li, a, strong, em, del, span, input, code) + :where(h2, h3, h4, h5):not(:where(.not-content *)) {
margin-top: 1.2em;
margin-bottom: 0.2em;
}

:root .sl-markdown-content :where(h2, h3, h4, h5):not(:where(.not-content *)) > code:only-child {
border: none;
}

:root .sl-markdown-content ul:not(:where(.not-content *)) {
padding-left: 1.4ch;
}

:root .sl-markdown-content ul:not(:where(.not-content *)) li::marker {
content: '- ';
color: var(--sl-color-gray-3);
}

:root .sl-markdown-content video:not(:where(.not-content *)) {
border: 1px solid var(--sl-color-bg-inline-code-brd);
border-radius: 7px;
Expand Down

0 comments on commit 94235b0

Please sign in to comment.