Skip to content

Commit

Permalink
refactor(website): added some nicer padding on docs pages
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Oct 2, 2022
1 parent 5f0c704 commit b152a2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/templates/docs/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn docs_page<G: Html>(cx: Scope, props: DocsPageProps) -> View<G> {
docs_links: sidebar_content,
children: view! { cx,
// Because this is in a grid, we have to make sure it doesn't overflow by specifying this minimum width
div(class = "markdown min-w-0", dangerously_set_inner_html = &content)
div(class = "markdown min-w-0 pb-10", dangerously_set_inner_html = &content)
},
status,
manifest,
Expand Down
1 change: 1 addition & 0 deletions website/static/styles/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
font-size: 2.25rem;
line-height: 2.5rem;
margin-top: 0.5rem; /* Otherwise the warnings about versions look quite cramped */
margin-bottom: 0.5rem; /* This just looks good */
}
.markdown h2 {
font-size: 1.875rem;
Expand Down

0 comments on commit b152a2e

Please sign in to comment.